فهرست منبع

Merge branch 'bug0818' into test

1178232204@qq.com 2 سال پیش
والد
کامیت
270138834e

+ 6 - 0
src/components/autoTest/AutoKnowledgeMapRuleTest.vue

@@ -241,6 +241,9 @@ export default {
     },
     // 执行测试
     handleTest(row, index) {
+      if (this.implement) {
+        this._getRunningStatus();
+      }
       this.runningStatusArr = this.runningStatusArr.map((item, idx) => {
         if (idx === index) {
           return 1;
@@ -277,6 +280,9 @@ export default {
         });
         return;
       }
+      if (this.implement) {
+        this._getRunningStatus();
+      }
       this.runningStatusArr = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
       api.allRuleTest({ hospitalId: this.hospitalId }).then((res) => {
         this.runningStatusArr = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];

+ 7 - 5
src/components/testManager/staticKnowledgeMap/StaticKnowledgeMapTest.vue

@@ -261,7 +261,9 @@ export default {
 
     // 导入数据
     uploadFile(e) {
-      console.log(this.runningStatusArr, 222);
+      if (this.implement) {
+        this._getRunningStatus();
+      }
       if (this.statusIndex !== "") {
         this.runningStatusArr = this.runningStatusArr.map((item, idx) => {
           if (idx === this.statusIndex) {
@@ -287,8 +289,8 @@ export default {
         if (res.data.code === "00020007") {
           this.$message.error(res.data.msg || "数据存在异常");
           this.getDataList(this.hospitalId); // 重新获取列表
-          this._getRunningStatus()
-          this.getRunningState
+          this._getRunningStatus();
+          this.getRunningState();
         } else if (res.data.code === "0" && res.data.data) {
           this.$message({
             message: "测试成功",
@@ -298,8 +300,8 @@ export default {
         } else {
           this.$message.error(res.data.msg || "数据存在异常");
           this.getDataList(this.hospitalId);
-          this._getRunningStatus()
-          this.getRunningState
+          this._getRunningStatus();
+          this.getRunningState();
         }
         this.runningStatusArr = [0, 0, 0, 0, 0, 0, 0];
       });