From bc910a95b8584460b56a3162a9e636e0b5124823 Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期三, 27 十一月 2024 17:51:33 +0800
Subject: [PATCH] 进入应用事件修改 租户套餐分页位置调整

---
 src/views/Home/Index.vue                 |    5 +-
 src/views/system/tenantPackage/index.vue |  103 +++++++++++++++++++++++++++------------------------
 2 files changed, 58 insertions(+), 50 deletions(-)

diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue
index e9f6870..0993b39 100644
--- a/src/views/Home/Index.vue
+++ b/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;
diff --git a/src/views/system/tenantPackage/index.vue b/src/views/system/tenantPackage/index.vue
index 39670e4..56f8f3d 100644
--- a/src/views/system/tenantPackage/index.vue
+++ b/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>

--
Gitblit v1.9.3