houzhongjian
2024-11-27 bc910a95b8584460b56a3162a9e636e0b5124823
进入应用事件修改
租户套餐分页位置调整
已修改2个文件
108 ■■■■ 文件已修改
src/views/Home/Index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/tenantPackage/index.vue 103 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/Index.vue
@@ -5,13 +5,13 @@
  <el-skeleton :loading="loading" animated>
    <div id="app">
      <div class="card" v-for="(item, index) in appList" :key="`dynamics-${index}`">
        <div @click="gotoApp(item)">
        <div>
          <img class="card-left" :src="item.icon"/>
          <div class="card-right">
            <div class="app-title">
              {{ item.appName }}
            </div>
            <div class="goto-app">
            <div class="goto-app" @click="gotoApp(item)">
              <div>进入应用</div>
            </div>
          </div>
@@ -134,6 +134,7 @@
  margin-top: 5px;
  background: #3A99FD;
  border-radius: 80px 80px 80px 80px;
  cursor: pointer;
}
.goto-app > div {
  padding: 6px;
src/views/system/tenantPackage/index.vue
@@ -49,64 +49,67 @@
    </el-form>
  </ContentWrap>
  <!-- 列表 -->
  <el-skeleton :loading="loading">
    <div class="package-card" v-for="(item, index) in packages" :key="`dynamics-${index}`">
      <div class="card-content">
        <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)"
                         v-hasPermi="[
                    'system:tenant-package:update',
                    'system:tenant-package:delete'
                  ]">
              <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-item
                    command="handleDelete"
                    v-if="checkPermi(['system:tenant-package:delete'])"
                  >
                    <Icon icon="ep:delete"/>
                    删除
                  </el-dropdown-item>
                </el-dropdown-menu>
              </template>
            </el-dropdown>
  <ContentWrap>
    <el-skeleton :loading="loading">
      <div class="package-card" v-for="(item, index) in packages" :key="`dynamics-${index}`">
        <div class="card-content">
          <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)"
                           v-hasPermi="[
                      'system:tenant-package:update',
                      'system:tenant-package:delete'
                    ]">
                <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-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 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>
        </div>
        <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>
      </div>
    </div>
    </el-skeleton>
    <!-- 分页 -->
    <Pagination
      class="pagination"
      :total="total"
      v-model:page="queryParams.pageNo"
      v-model:limit="queryParams.pageSize"
      @pagination="getList"
    />
  </el-skeleton>
  </ContentWrap>
  <!-- 表单弹窗:添加/修改 -->
  <TenantPackageForm ref="formRef" @success="getList"/>
@@ -277,4 +280,8 @@
  border-radius: 80px 80px 80px 80px;
  border: 1px solid #417CFF;
}
.pagination {
  margin-right: 30px;
  margin-top: 400px;
}
</style>