From a20489fcb197b876a0570b1aa9e3bd0994c722a0 Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期四, 02 十一月 2023 12:32:49 +0800
Subject: [PATCH] s

---
 src/views/quality/processconfiguration/index.vue |   31 ++++++-------------------------
 src/views/common/ztt-table.vue                   |    3 ++-
 2 files changed, 8 insertions(+), 26 deletions(-)

diff --git a/src/views/common/ztt-table.vue b/src/views/common/ztt-table.vue
index f0f12a8..5b4be1e 100644
--- a/src/views/common/ztt-table.vue
+++ b/src/views/common/ztt-table.vue
@@ -959,8 +959,9 @@
           arr.push(this.paramArr[i])
         }
       }
-      this.dataListLoading = false
+
       return this.doCallback(this.ajaxFun, arr, selectedId)
+      this.dataListLoading = false
     },
     doCallback(fn, args, selectedId) {
       return fn
diff --git a/src/views/quality/processconfiguration/index.vue b/src/views/quality/processconfiguration/index.vue
index 0dc0fd2..2f21df8 100644
--- a/src/views/quality/processconfiguration/index.vue
+++ b/src/views/quality/processconfiguration/index.vue
@@ -76,7 +76,7 @@
       // WayIdea:'',
       UserId:{},
       type:'',
-      ajaxFun: UnqualifiedList,
+      ajaxFun: UnqualifiedList,pullInsUnapi,AuditSuggestion,
       addOrUpdateVisible: false,
       multipleSelection: [],
       typeOptions: [],
@@ -324,6 +324,7 @@
   },
   computed: {
     ...mapGetters(['permissions'])
+
   },
   created() {
     // this.getType()
@@ -331,24 +332,17 @@
   methods: {
     //瀹℃牳缁撴灉
     AuditResult(row){
-      console.log(row);
       this.UserId = row.id
       this.type = row.type
       this.dialogVisible = true;
-      console.log(row.type);
-      // setTimeout(() => {
-			// 		if (this.type === 鍘熸潗鏂欐楠�) {
-			// 			return 
-			// 		} else 
-      //     if (this.type === 浜у搧妫�楠�) {
-			// 		}
-			// 	}, 100)
+
     },
     WaySure(){
       AuditSuggestion({id:this.UserId,way:this.checkList}).then(
         res =>{
           this.checkList = null
           this.WayIdea = null
+          this.$refs.processconfiguration.refreshData()
           ;})
       this.dialogVisible = false
     },
@@ -357,6 +351,7 @@
       console.log(row.id);
        pullInsUnapi({id:row.id}).then(res =>{
         console.log(res);
+        this.$refs.processconfiguration.refreshData()
        })
     },
    
@@ -382,23 +377,9 @@
             return "<span style='color:#34BD66;'></span>"
         }
     }, 
-    // materialTypeList(row, column, cellValue){
-    //         if(cellValue != undefined || cellValue != null){
-    //             if(cellValue == 鍘熸潗鏂欐楠�){
-    //                 return "<span style='color:#E84738;'>鍘熸潗鏂欐楠�</span>"
-    //             }
-    //             if(cellValue == 杩囩▼妫�楠�){
-    //               return "<span style='color:#34BD66;'>杩囩▼妫�楠�</span>"
-    //             }
-    //             if(cellValue == 璐ㄩ噺妫�楠�){
-    //               return "<span style='color:#34BD66;'>璐ㄩ噺妫�楠�</span>"
-    //             }
-    //         }
-    //     }, 
-      
     // 鑾峰彇鏁版嵁鍒楄〃
     getData() {
-      this.$refs.processconfiguration.getDataList()
+      // this.$refs.processconfiguration.getDataList()
     },
     handleSelectionChange(val) {
       // 澶氳閫変腑

--
Gitblit v1.9.3