From 02148424662ce08bec755588c3b77ac6abc8e6af Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期五, 04 八月 2023 16:19:29 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue |   36 ++++++++++++++++++++----------------
 1 files changed, 20 insertions(+), 16 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
index 0b8e3cd..f2ccf2b 100644
--- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -66,7 +66,7 @@
           <FormTemplateDialog :codeClassifyOid="this.codeClassifyOid" :codeRuleOid="this.codeRuleOid"
                               :disabledProp="disabledProp" :rowOid="rowOid" :templateOid="templateOid"
                               :title="'宸插彂甯冩暟鎹洿鏀�'"
-                              :type="edit"
+                              type="edit"
                               :visible.sync="DataVisible"></FormTemplateDialog>
           <!--          鍙戝竷-->
           <set-personnel :parameter="this.parameter" :title="title" :visible.sync="visibleFlow"
@@ -125,6 +125,7 @@
 import BatchImport from '@/components/BatchImport'
 import {validatenull} from "@/util/validate";
 import fileInHtml from "@/components/file/inHtml.vue";
+import {getUserInfo} from "@/api/system/user";
 
 export default {
   components: {
@@ -269,8 +270,12 @@
   },
   computed: {},
   created() {
-    const index = this.$route.query.id.indexOf('@name=') + '@name='.length;
-    this.result = this.$route.query.id.substring(index);
+    // const index = this.$route.query.id.indexOf('@name=') + '@name='.length;
+    // this.result = this.$route.query.id.substring(index);
+    getUserInfo().then(res=>{
+      console.log(res.data.data)
+      this.result=res.data.data.realName
+    })
   },
   mounted() {
   },
@@ -295,8 +300,6 @@
     },
     tableDataArray: {
       handler(newval, oldval) {
-        this.keyWordFind='';
-        this.WupinFindValue=''
         this.tableData = newval;
         this.searchResults = newval
         this.doLayout()
@@ -318,8 +321,13 @@
               }
             }
           }
+
+          if(_index==0){
+            this.keyWordFind=record.field
+          }
         })
         this.tableHeadFindDatas = newval;
+        this.WupinFindValue=''
       },
     },
     total: {
@@ -440,8 +448,7 @@
           } else if (showMessage) {
             processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => {
               if (res.data.data.records && res.data.data.records.length != 0) {
-                this.userName = localStorage.getItem("username");
-                this.parameter.template = this.userName + '-鐢宠[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']';
+                this.parameter.processName = this.result + '-鐢宠[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']';
                 this.parameter.type = 'PUBLIC';
                 this.parameter.code = this.templateOid;
                 this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype;
@@ -491,8 +498,7 @@
           } else if (this.selectRow.length >= 1 && hasEditing && showMessage) {
             processTS({templateId: this.templateOid, buttonTypeKey: 'DISABLE'}).then(res => {
               if (res.data.records != [] && res.data.data.records.length != 0) {
-                this.userName = localStorage.getItem("username");
-                this.parameter.template = this.userName + '-鍋滅敤[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']';
+                this.parameter.processName = this.result + '-鍋滅敤[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']';
                 this.parameter.type = 'DISABLE';
                 this.parameter.code = this.templateOid
                 this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype;
@@ -543,8 +549,7 @@
             processTS({templateId: this.templateOid, buttonTypeKey: 'ENABLE'}).then(res => {
               if (res.data.data.records && res.data.data.records.length != 0) {
                 this.parameter = res.data.data.records[0]
-                this.userName = localStorage.getItem("username");
-                this.parameter.template = this.userName + '-鍚敤[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']';
+                this.parameter.processName = this.result + '-鍚敤[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']';
                 this.parameter.type = 'Released';
                 this.parameter.code = this.templateOid
                 this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype;
@@ -601,8 +606,7 @@
             //disabledCount 鍜� releasedCount 涓换鎰忎竴涓瓑浜� this.selectRow 鏁扮粍鐨勯暱搴﹀垯琛ㄧず鍏ㄩ儴鏄悓涓�绉嶇姸鎬侊紝杩斿洖 true 濡傛灉disabledCount 鍜� releasedCount 閮藉ぇ浜�0锛屽垯琛ㄧず鏃㈡湁Disabled涔熸湁Released杩斿洖 true
             processTS({templateId: this.templateOid, buttonTypeKey: 'ROLLBACK'}).then(res => {
               if (res.data.records != [] && res.data.data.records.length != 0) {
-                this.userName = localStorage.getItem("username");
-                this.parameter.template = this.userName + '-鍥炴敹[' + this.selectRow[0].btmname + '-' + this.selectRow[0].name + ']';
+                this.parameter.processName = this.result + '-鍥炴敹[' + this.selectRow[0].btmname + '-' + this.selectRow[0].name + ']';
                 this.parameter.type = 'TakeBack';
                 this.parameter.code = this.templateOid
                 this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype;
@@ -848,6 +852,7 @@
         this.$message.warning("鍙湁鐘舵�佷负宸插彂甯冪殑鏁版嵁鎵嶈兘杩涜鏁版嵁鏇存敼");
       } else {
         this.DataVisible = true;
+        this.rowOid = this.selectRow[0]['oid']
       }
     },
     //澧炲姞淇濆瓨
@@ -874,10 +879,10 @@
     },
     //杈撳叆鍥炶溅鎼滅储
     tableFindInp() {
-      if (this.WupinFindValue.trim() === '') {
+      /*if (this.WupinFindValue.trim() === '') {
         this.$message.warning('杈撳叆鍊间笉鑳戒负绌�')
         return;
-      }
+      }*/
       TableData({
         templateOid: this.templateOid,
         codeClassifyOid: this.codeClassifyOid,
@@ -885,7 +890,6 @@
         limit: this.page.pageSize,
         [ 'conditionMap[' + this.keyWordFind + ']']: '*' + this.WupinFindValue + '*'
       }).then(res => {
-        console.log(res)
         this.tableData = res.data.data
       })
     }

--
Gitblit v1.9.3