From b8017e80af4b24d7c9fd5cfffc9104a6efa0706e Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期日, 29 九月 2024 08:54:18 +0800
Subject: [PATCH] 模型库页面优化

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

diff --git a/src/views/model/mpk/icon/index.vue b/src/views/model/mpk/icon/index.vue
index e4b361e..ca3c041 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">
@@ -147,3 +152,10 @@
   await getList()
 })
 </script>
+<style scoped>
+.mpk-icon-list {
+  height: 30px;
+  margin: 0;
+}
+
+</style>

--
Gitblit v1.9.3