From effbd81dd598750429c05e88f5fb6789bec1bc0f Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期三, 16 十月 2024 09:57:01 +0800
Subject: [PATCH] 1、项目名增加plat 2、增加数据和模型的swagger接口api 3、增加应用列表及应用切换功能,暂时放home页 4、其它相关修改

---
 src/views/model/mpk/icon/index.vue |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/views/model/mpk/icon/index.vue b/src/views/model/mpk/icon/index.vue
index e4b361e..8d0f95f 100644
--- a/src/views/model/mpk/icon/index.vue
+++ b/src/views/model/mpk/icon/index.vue
@@ -48,6 +48,11 @@
     >
       <el-table-column prop="iconName" label="名称"/>
       <el-table-column prop="iconDesc" label="描述"/>
+      <el-table-column align="center" label="图标" prop="icon" width="100">
+        <template #default="scope">
+          <img :src="'/SimtreeUnitImage/' + scope.row.iconName" class="mpk-icon-list" :alt=" scope.row.iconDesc" />
+        </template>
+      </el-table-column>
       <el-table-column prop="sort" label="排序"/>
       <el-table-column label="操作" align="center" width="200px">
         <template #default="scope">
@@ -70,7 +75,7 @@
     <!-- 分页 -->
     <Pagination
       v-model:limit="queryParams.pageSize"
-      v-model:page="queryParams.page"
+      v-model:page="queryParams.pageNo"
       :total="total"
       @pagination="getList"
     />
@@ -93,7 +98,7 @@
 const total = ref(0) // 列表的总页数
 const list = ref([]) // 字典表格数据
 const queryParams = reactive({
-  page: 1,
+  pageNo: 1,
   pageSize: 10,
   iconName: ''
 })
@@ -117,7 +122,7 @@
 
 /** 重置按钮操作 */
 const resetQuery = () => {
-  queryParams.page = 1
+  queryParams.pageNo = 1
   queryFormRef.value.resetFields()
   handleQuery()
 }
@@ -147,3 +152,10 @@
   await getList()
 })
 </script>
+<style scoped>
+.mpk-icon-list {
+  height: 30px;
+  margin: 0;
+}
+
+</style>

--
Gitblit v1.9.3