From cfd8d4c470cc6db6f6689ebf01eae07e47a46990 Mon Sep 17 00:00:00 2001
From: 田源 <tianyuan@vci-tech.com>
Date: 星期四, 16 一月 2025 11:09:20 +0800
Subject: [PATCH] 修改个人信息&&添加操作类型

---
 Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/plShow.vue |   46 +++++++++++++++++++++++++++++++++++++---------
 1 files changed, 37 insertions(+), 9 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/plShow.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/plShow.vue
index 14102a9..0a87d9b 100644
--- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/plShow.vue
+++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/plShow.vue
@@ -13,14 +13,27 @@
       @selection-change="selectChangeHandler"
       @row-click="rowClickHandler">
       <template slot="menuLeft">
-        <el-button icon="el-icon-plus" size="small" type="primary" @click="addHandler">鍒涘缓</el-button>
+        <el-button v-if="permissionChildrenList.UiTabAddBtn" class="button-custom-icon" size="small" type="primary" @click="addHandler">
+          <icon-show :name="permissionChildrenList.UiTabAddBtn.source"></icon-show>
+          鍒涘缓
+        </el-button>
         <!--<el-button icon="el-icon-edit" plain size="small" type="primary" @click="editHandler">淇敼</el-button>
         <el-button icon="el-icon-delete" plain size="small" type="danger" @click="delHandler">鍒犻櫎</el-button>-->
       </template>
       <template slot="menu" slot-scope="scope">
-        <el-button icon="el-icon-edit" size="small" type="text" @click="rowEditBtnClick(scope.row)">缂栬緫</el-button>
-        <el-button icon="el-icon-delete" size="small" type="text" @click="rowDeleteHandler(scope.row)">鍒犻櫎</el-button>
-        <el-button icon="el-icon-document-copy" size="small" type="text" @click="rowCloneHandler(scope.row)">鍏嬮殕</el-button>
+        <el-button v-if="permissionChildrenList.UiTabEditBtn" size="small" type="text"
+                   @click="rowEditBtnClick(scope.row)">
+          <icon-show :name="permissionChildrenList.UiTabEditBtn.source"></icon-show>
+          缂栬緫
+        </el-button>
+        <el-button v-if="permissionChildrenList.UiTabDelBtn" size="small" type="text" @click="rowDeleteHandler(scope.row)">
+          <icon-show :name="permissionChildrenList.UiTabDelBtn.source"></icon-show>
+          鍒犻櫎
+        </el-button>
+        <el-button v-if="permissionChildrenList.UiTabCloneBtn"  size="small" type="text" @click="rowCloneHandler(scope.row)">
+          <icon-show :name="permissionChildrenList.UiTabCloneBtn.source"></icon-show>
+          鍏嬮殕
+        </el-button>
       </template>
       <template slot="plIsOpen" slot-scope="{row}">
         <el-tag v-if="row.plIsOpen === 1" type="success">鍚敤</el-tag>
@@ -54,7 +67,8 @@
           </el-col>
           <el-col :span="12">
             <el-form-item label="搴忓彿锛�" prop="plSeq">
-              <el-input v-model="form.plSeq"></el-input>
+              <el-input-number  v-model="form.plSeq" :max="9999" :min="1"
+                                controls-position="right"></el-input-number >
             </el-form-item>
           </el-col>
           <el-col :span="12">
@@ -113,6 +127,7 @@
 import func from "@/util/func";
 import bottomTable from "./bottomTable/index";
 import cloneDialog from "@/views/modelingMenu/ui/uiDefine/rightRegion/cloneDialog";
+import {mapGetters} from "vuex";
 
 export default {
 name: "plShow",
@@ -170,7 +185,8 @@
           prop: 'plExtAttr'
         }, {
           label: '鎻忚堪',
-          prop: 'plDesc'
+          prop: 'plDesc',
+          overHidden: true
         }]
       },
       data: [],
@@ -207,6 +223,17 @@
       },
     }
   },
+  computed:{
+    ...mapGetters(["permission"]),
+    permissionChildrenList() {
+      return {
+        UiTabAddBtn: this.vaildData(this.permission[this.$route.query.id].ADD2, false),
+        UiTabEditBtn: this.vaildData(this.permission[this.$route.query.id].EDIT2, false),
+        UiTabDelBtn: this.vaildData(this.permission[this.$route.query.id].DELETE2, false),
+        UiTabCloneBtn: this.vaildData(this.permission[this.$route.query.id].CLONE, false),
+      }
+    }
+  },
   watch: {
     uiDefineData:{
       handler(val) {
@@ -238,9 +265,9 @@
         areaType:this.areaType
       }
       getTabByContextIdAndType( params).then(res => {
+        this.$refs.crud.clearSelection();
         this.data = res.data.data;
         this.selectList=[];
-        this.$refs.crud.clearSelection();
         this.tableLoading = false;
       })
     },
@@ -257,7 +284,7 @@
           this.lastIndex = newIndex;
         },
         () => {
-          this.selectList = [];
+          this.selectList = [row];
         }
       );
     },
@@ -312,7 +339,7 @@
     },
     // 缂栬緫鎸夐挳
     rowEditBtnClick(row) {
-      this.form=row;
+      this.form=JSON.parse(JSON.stringify(row));
       this.dialogType = 'edit';
       this.dialogVisible = true;
     },
@@ -376,6 +403,7 @@
         } else {
           return false;
         }
+        done();
       });
     },
     rowCloneHandler(row) {

--
Gitblit v1.9.3