Преглед на файлове

Merge branch 'bug0818' into test

1178232204@qq.com преди 2 години
родител
ревизия
4a7b84c612
променени са 1 файла, в които са добавени 7 реда и са изтрити 6 реда
  1. 7 6
      src/components/testManager/staticKnowledgeMap/StaticKnowledgeMapTest.vue

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

@@ -122,7 +122,7 @@ export default {
       hospitalId: "", //选中医院
       type: "",
       caseId: "",
-      runningStatusArr: [0, 0, 0, 0, 0],
+      runningStatusArr: [0, 0, 0, 0, 0, 0, 0],
       statusIndex: "",
       implement: false,
     };
@@ -168,7 +168,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(9, 14);
+          this.runningStatusArr = Object.values(res.data.data).slice(9, 16);
         }
       });
     },
@@ -225,17 +225,15 @@ export default {
             this.getDataList(this.hospitalId); // 重新获取列表
             this.getRunningState();
           }
-          this.runningStatusArr = [0, 0, 0, 0, 0];
+          this.runningStatusArr = [0, 0, 0, 0, 0, 0, 0];
         });
     },
 
     // 执行测试
     handleTest(row, index) {
-      console.log(this.handleType(caseName), 1111);
       let inp = document.getElementById("upFile");
       inp.click();
       const { caseName, caseId } = row;
-      console.log(row, 222);
       this.type = this.handleType(caseName); //术语类型(1:诊断、2:检验、3:检查、4:药品、5:手术/操作)
       this.caseId = caseId; //测试用例id
       this.statusIndex = index;
@@ -243,8 +241,11 @@ export default {
 
     // 导入数据
     uploadFile(e) {
+      console.log(this.runningStatusArr,222);
       if (this.statusIndex !== "") {
         this.runningStatusArr = this.runningStatusArr.map((item, idx) => {
+          console.log(idx);
+          console.log(this.statusIndex,112);
           if (idx === this.statusIndex) {
             return 1;
           } else {
@@ -278,7 +279,7 @@ export default {
           this.$message.error(res.data.msg || "数据存在异常");
           this.getDataList(this.hospitalId);
         }
-        this.runningStatusArr = [0, 0, 0, 0, 0];
+        this.runningStatusArr = [0, 0, 0, 0, 0, 0, 0];
       });
       //解决上传相同文件不触发change
       let inp = document.getElementById("upFile");