houzhongjian
2024-11-27 4c081adacb5088011148773cf72e9ae01fa3e1d2
解决双重遍历index定义重复bug
已修改2个文件
83 ■■■■ 文件已修改
src/views/system/tenantPackage/TenantPackageForm.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/tenantPackage/index.vue 80 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/tenantPackage/TenantPackageForm.vue
@@ -182,6 +182,9 @@
  formData.value = {
    id: null,
    name: null,
    icon: undefined,
    labels: [],
    description: null,
    remark: null,
    menuIds: [],
    status: CommonStatusEnum.ENABLE
src/views/system/tenantPackage/index.vue
@@ -55,51 +55,49 @@
  <!-- 列表 -->
  <ContentWrap>
    <el-row :gutter="20">
      <div v-loading="loading" class="package-card" v-for="(item, index) in packages" :key="`dynamics-${index}`">
        <el-col :span="6">
        <img class="card-icon" :src="item.icon" />
        <div class="card-middle">
          <div class="tenant-title">{{item.name}}</div>
          <div class="tenant-operation">
            <el-dropdown  @command="(command) => handleCommand(command, item)">
              <el-button type="primary" link><Icon icon="ep:more-filled" /> </el-button>
              <template #dropdown>
                <el-dropdown-menu>
                  <el-dropdown-item
                    command="handleUpdate"
                    v-if="checkPermi(['system:tenant-package:update'])"
                  >
                    <Icon icon="ep:edit" />修改
                  </el-dropdown-item>
                </el-dropdown-menu>
                <el-dropdown-menu>
                  <el-dropdown-item
                    command="handleDelete"
                    v-if="checkPermi(['system:tenant-package:delete'])"
                  >
                    <Icon icon="ep:delete" />删除
                  </el-dropdown-item>
                </el-dropdown-menu>
              </template>
            </el-dropdown>
          <img class="card-icon" :src="item.icon" />
          <div class="card-middle">
            <div class="tenant-title">{{item.name}}</div>
            <div class="tenant-operation">
              <el-dropdown  @command="(command) => handleCommand(command, item)">
                <el-button type="primary" link><Icon icon="ep:more-filled" /> </el-button>
                <template #dropdown>
                  <el-dropdown-menu>
                    <el-dropdown-item
                      command="handleUpdate"
                      v-if="checkPermi(['system:tenant-package:update'])"
                    >
                      <Icon icon="ep:edit" />修改
                    </el-dropdown-item>
                  </el-dropdown-menu>
                  <el-dropdown-menu>
                    <el-dropdown-item
                      command="handleDelete"
                      v-if="checkPermi(['system:tenant-package:delete'])"
                    >
                      <Icon icon="ep:delete" />删除
                    </el-dropdown-item>
                  </el-dropdown-menu>
                </template>
              </el-dropdown>
            </div>
          </div>
        </div>
        <div class="description">{{item.description}}</div>
        <div class="label-areas">
          <el-tag
            :disable-transitions="true"
            :key="index"
            v-for="(label, index) in item.labels"
            :index="index"
            class="label"
          >
            {{ label }}
          </el-tag>
        </div>
      </el-col>
          <div class="description">{{item.description}}</div>
          <div class="label-areas">
            <el-tag
              :disable-transitions="true"
              :key="i"
              v-for="(label, i) in item.labels"
              :index="i"
              class="label"
            >
              {{ label }}
            </el-tag>
          </div>
        </el-col>
      </div>
    </el-row>
    <!-- 分页 -->
    <Pagination
      :total="total"