From ebc552900444d25b1158bf53d07f24c9ee36cc75 Mon Sep 17 00:00:00 2001
From: liriming <1343021927@qq.com>
Date: 星期一, 20 一月 2025 14:40:57 +0800
Subject: [PATCH] 预警配置

---
 src/views/model/mpk/icon/index.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/views/model/mpk/icon/index.vue b/src/views/model/mpk/icon/index.vue
index ca3c041..2f97330 100644
--- a/src/views/model/mpk/icon/index.vue
+++ b/src/views/model/mpk/icon/index.vue
@@ -50,7 +50,7 @@
       <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" />
+          <img :src="staticDir + 'SimtreeUnitImage/' + scope.row.iconName" class="mpk-icon-list" :alt=" scope.row.iconDesc" />
         </template>
       </el-table-column>
       <el-table-column prop="sort" label="排序"/>
@@ -75,7 +75,7 @@
     <!-- 分页 -->
     <Pagination
       v-model:limit="queryParams.pageSize"
-      v-model:page="queryParams.page"
+      v-model:page="queryParams.pageNo"
       :total="total"
       @pagination="getList"
     />
@@ -91,6 +91,8 @@
 
 defineOptions({name: 'MpkIcon'})
 
+const staticDir = ref(import.meta.env.VITE_STATIC_DIR)
+
 const message = useMessage() // 消息弹窗
 const {t} = useI18n() // 国际化
 
@@ -98,7 +100,7 @@
 const total = ref(0) // 列表的总页数
 const list = ref([]) // 字典表格数据
 const queryParams = reactive({
-  page: 1,
+  pageNo: 1,
   pageSize: 10,
   iconName: ''
 })
@@ -122,7 +124,7 @@
 
 /** 重置按钮操作 */
 const resetQuery = () => {
-  queryParams.page = 1
+  queryParams.pageNo = 1
   queryFormRef.value.resetFields()
   handleQuery()
 }

--
Gitblit v1.9.3