From 404966637eda6881a0f17683c5aacc7c1c34aed8 Mon Sep 17 00:00:00 2001
From: 田源 <tianyuan@vci-tech.com>
Date: 星期四, 16 一月 2025 16:18:34 +0800
Subject: [PATCH] 增加操作类型

---
 Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/versioning/index.vue |   46 ++++++++++++++++++++++++++++++++--------------
 1 files changed, 32 insertions(+), 14 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/versioning/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/versioning/index.vue
index cdbf72a..431e01c 100644
--- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/versioning/index.vue
+++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/versioning/index.vue
@@ -9,19 +9,36 @@
       @selection-change="selectChange"
       @row-click="rowClickHandler">
       <template slot="menuLeft" slot-scope="scope">
-        <el-button v-if="permissionList.addBtn" icon="el-icon-plus" plain size="small" type="primary" @click="addClickHandler">鍒涘缓</el-button>
-        <el-button v-if="permissionList.importBtn" icon="el-icon-upload2" plain size="small" type="primary" @click="uploadClickHandler">瀵煎叆
+        <el-button v-if="permissionList.addBtn" class="button-custom-icon" plain size="small" type="primary"
+                   @click="addClickHandler">
+          <icon-show :name="permissionList.addBtn.source"></icon-show>
+          鍒涘缓
         </el-button>
-        <el-button v-if="permissionList.exportBtn" icon="el-icon-download" plain size="small" type="primary" @click="exportClickHandler">瀵煎嚭
+        <el-button v-if="permissionList.viewTheScopeBtn" class="button-custom-icon" plain size="small" type="primary"
+                   @click="checkViewClickHandler">
+          <icon-show :name="permissionList.viewTheScopeBtn.source"></icon-show>
+          鏌ョ湅浣跨敤鑼冨洿
         </el-button>
-        <el-button v-if="permissionList.viewTheScopeBtn" icon="el-icon-view" plain size="small" type="primary"
-                   @click="checkViewClickHandler">鏌ョ湅浣跨敤鑼冨洿
+        <el-button v-if="permissionList.importBtn" class="button-custom-icon" plain size="small" type="primary"
+                   @click="uploadClickHandler">
+          <icon-show :name="permissionList.importBtn.source"></icon-show>
+          瀵煎叆
+        </el-button>
+        <el-button v-if="permissionList.exportBtn" class="button-custom-icon" plain size="small" type="primary"
+                   @click="exportClickHandler">
+          <icon-show :name="permissionList.exportBtn.source"></icon-show>
+          瀵煎嚭
         </el-button>
       </template>
-      <template slot="menu" slot-scope="scope">
-        <el-button v-if="permissionList.editBtn" icon="el-icon-edit" size="small" type="text" @click="editClickHandler(scope.row)">缂栬緫
+      <template slot="menu" slot-scope="{row,index}">
+        <el-button v-if="permissionList.editBtn" size="small" type="text"
+                   @click="editClickHandler(row)">
+          <icon-show :name="permissionList.editBtn.source"></icon-show>
+          缂栬緫
         </el-button>
-        <el-button v-if="permissionList.delBtn" icon="el-icon-delete" size="small" type="text" @click="delClickHandler(scope.row)">鍒犻櫎
+        <el-button v-if="permissionList.delBtn" size="small" type="text" @click="delClickHandler(row)">
+          <icon-show :name="permissionList.delBtn.source"></icon-show>
+          鍒犻櫎
         </el-button>
       </template>
     </avue-crud>
@@ -35,7 +52,7 @@
       width="800px"
       @close="visibleCloseHandler"
     >
-      <el-form ref="form" size="small" :model="form" :rules="rules" label-width="95px">
+      <el-form ref="form" :model="form" :rules="rules" label-width="95px" size="small">
         <el-row>
           <el-col :span="24">
             <el-form-item label="鍚嶇О锛�" prop="id">
@@ -80,8 +97,8 @@
         </el-row>
       </el-form>
       <span slot="footer" class="dialog-footer">
-         <el-button type="primary" @click="addSaveHandler">纭� 瀹�</el-button>
-         <el-button @click="visibleCloseHandler">鍙� 娑�</el-button>
+         <el-button size="small" type="primary" @click="addSaveHandler">纭� 瀹�</el-button>
+         <el-button size="small" @click="visibleCloseHandler">鍙� 娑�</el-button>
         </span>
     </el-dialog>
 
@@ -190,7 +207,7 @@
         searchMenuSpan: 8,
         refreshBtn: false,
         selection: false,
-        header:false,
+        header: false,
         column: [
           {
             label: '鍚嶇О',
@@ -274,7 +291,7 @@
       lastIndex: null,
     }
   },
-  computed:{
+  computed: {
     ...mapGetters(["permission"]),
     permissionList() {
       return {
@@ -283,7 +300,7 @@
         editBtn: this.vaildData(this.permission[this.$route.query.id].EDIT, false),
         exportBtn: this.vaildData(this.permission[this.$route.query.id].EXPORT, false),
         importBtn: this.vaildData(this.permission[this.$route.query.id].IMPORT, false),
-        viewTheScopeBtn: this.vaildData(this.permission[this.$route.query.id].viewTheScope, false),
+        viewTheScopeBtn: this.vaildData(this.permission[this.$route.query.id].SEARCH, false),
       };
     },
   },
@@ -474,6 +491,7 @@
   .el-scrollbar__wrap {
     overflow: auto !important;
   }
+
   .el-input-number--small {
     width: 100%;
   }

--
Gitblit v1.9.3