From a4a7426f1286c8d8afe512f155fb650e3e8b940c Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期一, 02 十二月 2024 17:57:43 +0800
Subject: [PATCH] 整合代码&&表单定义扩展属性添加提示文字&&显示类型修改默认值和绑定值

---
 Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue |   34 +++++++++++++++-------------------
 1 files changed, 15 insertions(+), 19 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue
index 8faee80..40ce6de 100644
--- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue
+++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/statusPool/index.vue
@@ -33,11 +33,11 @@
       </template>
 
       <template #icon="{ row }">
-          <span class="avue-icon avue-icon--small">
-            <svg v-if="row.icon && row.icon.indexOf('#')==-1" aria-hidden="true">
-              <use :xlink:href="row.icon"></use>
+          <span class="avue-icon avue-icon--small" style="display: block">
+            <svg v-if="row.imagePath && row.imagePath.indexOf('#')==0" aria-hidden="true">
+              <use :xlink:href="row.imagePath"></use>
             </svg>
-            <i v-else :class="row.icon"></i>
+            <i v-else :class="row.imagePath"></i>
           </span>
       </template>
     </avue-crud>
@@ -65,8 +65,8 @@
             </el-form-item>
           </el-col>
           <el-col :span="24">
-            <el-form-item label="鍥炬爣锛�" prop="icon">
-              <avue-input-icon v-model="form.icon" :icon-list="iconList" placeholder="璇烽�夋嫨鍥炬爣">
+            <el-form-item label="鍥炬爣锛�" prop="imagePath">
+              <avue-input-icon v-model="form.imagePath" :icon-list="iconList" placeholder="璇烽�夋嫨鍥炬爣">
               </avue-input-icon>
             </el-form-item>
           </el-col>
@@ -85,7 +85,7 @@
 
     <!-- 瀵煎叆 -->
     <upload-file ref="upload" :fileType="upFileType" :fileUrl="fileUrl" :tipList="tipList" title="瀵煎叆"
-                 @updata="getTreeList"></upload-file>
+                 @updata="getList"></upload-file>
 
     <!-- 鏌ョ湅浣跨敤鑼冨洿 -->
     <el-dialog
@@ -107,7 +107,6 @@
       </avue-crud>
     </el-dialog>
   </basic-container>
-
 </template>
 
 <script>
@@ -208,24 +207,21 @@
     }
   },
   created() {
-    this.getTreeList();
+    this.getList();
   },
   methods: {
-    // 宸︿晶鏍戣姹�
-    getTreeList() {
+    getList() {
       gridStatus(this.page.currentPage, this.page.pageSize).then(res => {
         const data = res.data.data;
         this.data = data;
         this.page.total = res.data.total;
         this.loading = false;
-      }).catch(err => {
-        this.$message.error(err);
       });
     },
 
     // 琛ㄦ牸鍒锋柊
     handleRefresh() {
-      this.getTreeList();
+      this.getList();
     },
 
     // 琛ㄦ牸澶氶��
@@ -236,13 +232,13 @@
     //  鏉℃暟
     sizeChange(val) {
       this.page.pageSize = val;
-      this.getTreeList();
+      this.getList();
     },
 
     // 椤电爜
     currentChange(val) {
       this.page.currentPage = val;
-      this.getTreeList();
+      this.getList();
     },
 
     // 琛屽崟閫�
@@ -288,7 +284,7 @@
         deleteStatus(this.selectList).then(res => {
           if (res.data.code === 200) {
             this.$message.success(res.data.obj);
-            this.getTreeList();
+            this.getList();
           }
         })
       }).catch(() => {
@@ -311,7 +307,7 @@
         deleteStatus(list).then(res => {
           if (res.data.code === 200) {
             this.$message.success(res.data.obj);
-            this.getTreeList();
+            this.getList();
           }
         })
       }).catch(() => {
@@ -344,7 +340,7 @@
             if (res.data.code === 200) {
               this.$message.success(res.data.obj);
               this.loading = true;
-              this.getTreeList();
+              this.getList();
               this.visible = false;
             } else {
               this.$message.error(res.data.obj);

--
Gitblit v1.9.3