From e5ced3e405d2eb5a8772ff4e01e81ed045306475 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期一, 04 八月 2025 00:45:53 +0800
Subject: [PATCH] 字段调整

---
 src/views/wel/index.vue |   38 +++++++++++++++++++++++++++-----------
 1 files changed, 27 insertions(+), 11 deletions(-)

diff --git a/src/views/wel/index.vue b/src/views/wel/index.vue
index c7f98c6..9b69456 100644
--- a/src/views/wel/index.vue
+++ b/src/views/wel/index.vue
@@ -31,14 +31,14 @@
           </el-col>
         </el-row>
       </template>
-      <template #menu-left>
+      <!-- <template #menu-left>
         <el-button :size="size" type="primary" @click="showAdd()">鏂板鏍硅妭鐐�</el-button>
-      </template>
+      </template> -->
       <template #name="{ row }">
         <span>{{row.name}}</span>
         <el-button :size="size" text v-if="row.nodeType != 70" icon="el-icon-setting" type="primary" placeholder="淇敼" @click="showEdit(row)" title="淇敼"></el-button>
-        <el-button :size="size" text icon="el-icon-delete" type="primary" @click="showDel(row)" placeholder="鍒犻櫎" title="鍒犻櫎"></el-button>
-        <el-button :size="size" text v-if="row.nodeType < 60" icon="el-icon-document-add" type="primary" @click="showAdd(row)" placeholder="鏂板瀛愮骇" title="鏂板瀛愮骇"></el-button>
+        <el-button :size="size" text v-if="row.nodeType != 10" icon="el-icon-delete" type="primary" @click="showDel(row)" placeholder="鍒犻櫎" title="鍒犻櫎"></el-button>
+        <el-button :size="size" text v-if="row.nodeType != 60 && row.nodeType != 70" icon="el-icon-document-add" type="primary" @click="showAdd(row)" placeholder="鏂板瀛愮骇" title="鏂板瀛愮骇"></el-button>
         <el-button :size="size" text v-if="row.nodeType == 60 || row.nodeType == 50" icon="el-icon-upload" type="primary" @click="showUpload(row)" placeholder="鏂囦欢涓婁紶" title="鏂囦欢涓婁紶"></el-button>
         <!-- 娑夊瘑缃戞墠鏈� -->
         <el-button :size="size" text v-if="row.nodeType == 70 && isSM" icon="el-icon-pie-chart" type="primary" @click="upgrade(row)" placeholder="鍗囩増" title="鍗囩増"></el-button>
@@ -285,19 +285,31 @@
             label: '璁惧',
             prop: 'machineCode'
           },
+		  /*
           {
             label: '鍥哄寲鐘舵��',
             prop: 'abc'
           },
+		  */
           {
             label: '閿佸畾鐘舵��',
-            prop: 'abc'
+            prop: 'isLocked',
+			formatter: (val, value, label) => {
+      			if(val.nodeType == '60' || val.nodeType == '70'){
+					if(value==1){
+						return '宸查攣瀹�';
+					}else{
+						return '鏈攣瀹�';
+					}
+				}
+			}
+			      
           },
           {
             label: '娴佺▼鐘舵��',
             prop: 'flowStatus',
 			      formatter: (val, value, label) => {
-      				if(val.nodeType != '70'){
+      				if(val.nodeType != '60'){
       					//闈炵▼搴忚妭鐐�
       					return '';
       				}else{
@@ -715,18 +727,22 @@
       })
     },
     showAdd (row) {  //鏂板瀛愯妭鐐�
-      console.log(this.nodeTypeList,111)
-      console.log(this.nodeTypeList[0].dictKey,222)
       if(!row) {
         this.modalTitle = "鏂板鏍硅妭鐐�";
-        this.modalForm.nodeType = "10";
+        this.modalForm.nodeType = this.nodeTypeList[0].dictKey;
         this.modalForm.parentId = 0;
       }else {
-        if(row.nodeType == 60) {
+        if(row.nodeType == 60) { //绋嬪簭鍖�
           return;
         }
+        var defalutNodeType = "";  //涓嬩竴绾ц妭鐐圭被鍨�
+        for(var i=0;i<this.nodeTypeList.length;i++) {
+          if(row.nodeType == this.nodeTypeList[i].dictKey) {
+            defalutNodeType = this.nodeTypeList[i+1].dictKey;
+          }
+        }
         this.modalTitle = "鏂板瀛愯妭鐐�";
-        this.selectedColumn.nodeType = String(Number(row.nodeType) + 10);
+        this.selectedColumn.nodeType = defalutNodeType;
         this.selectedColumn.parentId = row.id;
         this.selectedColumn.name = "";
         this.selectedColumn.id = "";

--
Gitblit v1.9.3