소스 검색

fix dialog show times

haojianlong 5 년 전
부모
커밋
f61856b463
1개의 변경된 파일20개의 추가작업 그리고 18개의 파일을 삭제
  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: {