Ver código fonte

规则类型添加

luolei 4 anos atrás
pai
commit
1937f7f28c

+ 5 - 5
src/components/autoTest/AutoKnowledgeMapRuleTest.vue

@@ -86,7 +86,7 @@ export default {
       list: [],
       hospitalData: [],
       hospitalId: '', //选中医院
-      runningStatusArr: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] //知识图谱规则 测试状态
+      runningStatusArr: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] //知识图谱规则 测试状态
     };
   },
   computed: {
@@ -131,7 +131,7 @@ export default {
       if (this.hospitalId === '') return;
       api.getRunningStatusByHospitalId({ hospitalId }).then(res => {
         if (res.data.code === '0' && res.data.data) {
-          this.runningStatusArr = Object.values(res.data.data).slice(0, 10);
+          this.runningStatusArr = Object.values(res.data.data).slice(0, 15);
         }
       });
     },
@@ -191,7 +191,7 @@ export default {
           this.$message.error('测试失败');
           this.getDataList(this.hospitalId);
         }
-        this.runningStatusArr = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
+        this.runningStatusArr = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
       });
     },
     // 所有规则测试
@@ -203,9 +203,9 @@ export default {
         });
         return;
       }
-      this.runningStatusArr = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
+      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];
+        this.runningStatusArr = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
         if (res.data.code === '0' && res.data.data) {
           this.getDataList(this.hospitalId);
           this.$message({