From c865d7849368bec0808eb186dfa79948f1c2cf95 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期日, 17 八月 2025 10:32:36 +0800
Subject: [PATCH] 修改查询参数

---
 src/views/wel/shemi.vue |   32 ++++++++++++++++++++++++++++----
 1 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/src/views/wel/shemi.vue b/src/views/wel/shemi.vue
index 9f20201..d0c6c2b 100644
--- a/src/views/wel/shemi.vue
+++ b/src/views/wel/shemi.vue
@@ -22,7 +22,7 @@
           </el-col>
           <el-col :span="6">
             <el-select v-model="search.nodeType" placeholder="璇疯緭鍏ヨ妭鐐圭被鍨�" clearable>
-              <el-option v-for="item in nodeTypeList" :key="item.dictValue" :label="item.dictValue" :value="item.dictKey"/>
+              <el-option v-for="item in nodeTypeList" :key="item.dictValue" :label="item.dictValue" :value="item.dictKey"/>formApprove.
             </el-select>
           </el-col>
           <el-col :span="6">
@@ -46,7 +46,8 @@
         <!-- <el-button :size="size" text v-if="row.nodeType == 70" icon="el-icon-position" type="primary" @click="downsend(row)" placeholder="涓嬪彂" title="涓嬪彂"></el-button> -->
         <!-- 鏇挎崲 -->
         <el-button :size="size" text v-if="row.nodeType == 60 && row.parentIds.indexOf('0,1,')>-1" icon="el-icon-switch" type="primary" @click="replacement(row)" placeholder="鏇挎崲" title="鏇挎崲"></el-button>
-        <!-- <el-icon><Switch /></el-icon> -->
+        <el-button :size="size" text v-if="row.nodeType == 60 && row.parentIds.indexOf('0,2')>-1" icon="el-icon-lock" type="primary" @click="locked(row)" placeholder="閿佸畾" title="閿佸畾"></el-button>
+        <!-- <el-button :size="size" text v-if="row.nodeType == 60 && row.parentIds.indexOf('0,2')>-1" icon="el-icon-unlock" type="primary" @click="locked(row)" placeholder="瑙i攣" title="瑙i攣"></el-button> -->
       </template>
     </avue-crud>
     <!-- 鏂板鑺傜偣 -->
@@ -629,13 +630,32 @@
     
   },
   methods: {
+    locked(row) {
+      this.$confirm('鏄惁閿佸畾鍚�?', {
+        confirmButtonText: '纭畾',
+        cancelButtonText: '鍙栨秷',
+        type: 'warning',
+      }).then(() => {
+        axios({
+          url: '/blade-mdm/program/node/lock',
+          method: 'post',
+          params: {id: row.id}
+        }).then(res => {
+          if(res.data.code == 200) {
+            this.$message({type: 'success',message: '鎿嶄綔鎴愬姛!'});
+          }else {
+            this.$message({type: 'success',message: res.data.msg});
+          }
+        });
+      });
+    },
     handleSubmit(form, done) {
       //鍙戣捣绋嬪簭鏇挎崲娴佺▼
       var obj = {
         title: this.formApprove.title,
         nodeId: this.id,
         tempInstanceId: this.replaceDataId,
-		comment: this.formApprove.comment,
+		    comment: this.formApprove.comment,
         assignee: this.formApprove.assignee
       }
       axios({
@@ -710,7 +730,11 @@
         params: {drawingNo: this.drawingNo}
       }).then(
       resp => {
-        //console.log(res,9988)
+        if(resp.data.code == 200) {
+          this.formApprove.assignee = resp.data.data.checkerId;
+        }else {
+          this.$message.success(resp.msg);
+        }
       });
     },
     convertToHtml(text) {

--
Gitblit v1.9.3