Browse Source

fix dialog show times

haojianlong 5 years ago
parent
commit
f61856b463
1 changed files with 20 additions and 18 deletions
  1. 20 18
      src/views/point/dynamicdata/index.vue

+ 20 - 18
src/views/point/dynamicdata/index.vue

@@ -191,27 +191,29 @@ export default {
     // },
     //获取执行反馈
     getExecuteFeedback() {
-      dynamicExecuteFeedback('', res => {
-        this.allApplyClose()
-        let response = res.Content[0]
-        if (response.Completed == 'Processing') {
-          this.isPending = true;
-          this.tipsType = 0;
-          setTimeout(() => {
-            this.getExecuteFeedback()
-          }, 2500)
-        } else {
-          setTimeout(() => {
-            this.isPending = false;
-            this.getPrompt()
-          }, 2500)
-        }
-      })
+      setTimeout(() =>{
+        dynamicExecuteFeedback('', res => {
+          this.allApplyClose()
+          let response = res.Content[0]
+          if (response.Completed == 'Processing') {
+            this.isPending = true;
+            this.tipsType = 0;
+            setTimeout(() => {
+              this.getExecuteFeedback()
+            }, 2000)
+          } else {
+            setTimeout(() => {
+              this.isPending = false;
+              this.getPrompt()
+            }, 2000)
+          }
+        })
+      },2000)
     },
     //取消执行
-    cancelApply(){
+    cancelApply(x){
       this.isPending = false;
-      this.getPrompt()
+      this.tipsType = 1;
     }
   },
   watch: {