• elementUI循环动态生成表格内容


    、、、、、、、循环动态展示表格内容
    <el-table
          border
          :header-cell-style="{ background: '#f2f6fc' }"
          :data="proGroup"
          :height="tableheight"
        >
          <el-table-column align="center" prop="roleName" label="项目群名称">
          </el-table-column>
          <template>
            <el-table-column
              v-for="(item, index) in roleList"
              :key="index"
              align="center"
              :label="item.proleName"
            >
              <template slot-scope="scope">
                <div
                  style="display: block;height:25px;cursor: pointer"
                  @click="editRole(scope.row, item)"
                >
                  <div v-for="(items, indexs) in userList" :key="indexs">
                    <div
                      v-if="
                        items.proleName == item.proleName &&
                          scope.row.roleId == items.roleGroupId
                      "
                    >
                      {{ items.userName }}
                      <span
                        style="cursor: pointer;color: #0f8ae4;border-bottom: 1px solid #0f8ae4;margin-left: 5px"
                        @click.stop="synchronization(scope.row, item)"
                        v-if="items.proleName == '交付经理'"
                        >同步</span
                      >
                    </div>
                  </div>
                </div>
              </template>
            </el-table-column>
          </template>

          <el-table-column
            align="center"
            width="120px"
            label="操作"
            header-align="center"
          >
            <template slot-scope="scope">
              <div style="display: flex;justify-content: space-between">
                <span
                  style="cursor: pointer;color: #0f8ae4"
                  @click="jumpProject(scope.row)"
                  >项目列表</span
                >
              </div>
            </template>
          </el-table-column>
        </el-table>

  • 相关阅读:
    平均回复在5s内的快捷短语
    Python测试题15道(含答案)
    Python调用edge-tts实现在线文字转语音
    【高并发】通过源码深度分析线程池中Worker线程的执行流程
    程序员坐牢了,会被安排去写代码吗?
    基于SpringBoot+Vue+uniapp的点餐平台系统(源码+lw+部署文档+讲解等)
    asm:operand number missing after %-letter
    服务发现原理分析与源码解读
    C++ Reference: Standard C++ Library reference: C Library: cstdio: putchar
    Android 静态代码检查
  • 原文地址:https://blog.csdn.net/qq_40390762/article/details/125554650