Browse Source

运行首页质控高亮

liyanyan 1 day ago
parent
commit
c8372e4e92
2 changed files with 15 additions and 15 deletions
  1. 13 13
      src/views/data/query/details.vue
  2. 2 2
      src/views/medicalRecord/index.vue

+ 13 - 13
src/views/data/query/details.vue

@@ -1449,19 +1449,19 @@ export default {
         this.$refs[item.error_field][0].className = item.category <= 1 ? 'choose-twinkle' : 'choose-twinkle-1';
         this.$refs[item.error_field][0].className = item.category <= 1 ? 'choose-twinkle' : 'choose-twinkle-1';
         this.$refs[item.error_field][0].scrollIntoView({ block: 'start', behavior: 'smooth' });
         this.$refs[item.error_field][0].scrollIntoView({ block: 'start', behavior: 'smooth' });
       } else {
       } else {
-        // this.$refs[item.error_field].className = item.category<=1 ? 'choose-twinkle':'choose-twinkle-1';
-        // this.$refs[item.error_field].scrollIntoView({ block: 'start', behavior: 'smooth' });
-        if (item.basis.length > 1) {
-          this.$nextTick(() => {
-            item.basis.forEach(e => {
-              this.$refs[e].className = item.category <= 1 ? 'choose-twinkle' : 'choose-twinkle-1';
-            });
-            this.$refs[item.error_field].scrollIntoView({ block: 'start', behavior: 'smooth' });
-          });
-        } else {
-          this.$refs[item.error_field].className = item.category <= 1 ? 'choose-twinkle' : 'choose-twinkle-1';
-          this.$refs[item.error_field].scrollIntoView({ block: 'start', behavior: 'smooth' });
-        }
+        this.$refs[item.error_field].className = item.category<=1 ? 'choose-twinkle':'choose-twinkle-1';
+        this.$refs[item.error_field].scrollIntoView({ block: 'start', behavior: 'smooth' });
+        // if (item.basis.length > 1) {
+        //   this.$nextTick(() => {
+        //     item.basis.forEach(e => {
+        //       this.$refs[e].className = item.category <= 1 ? 'choose-twinkle' : 'choose-twinkle-1';
+        //     });
+        //     this.$refs[item.error_field].scrollIntoView({ block: 'start', behavior: 'smooth' });
+        //   });
+        // } else {
+        //   this.$refs[item.error_field].className = item.category <= 1 ? 'choose-twinkle' : 'choose-twinkle-1';
+        //   this.$refs[item.error_field].scrollIntoView({ block: 'start', behavior: 'smooth' });
+        // }
       }
       }
     },
     },
     // 加载数据后渲染颜色
     // 加载数据后渲染颜色

+ 2 - 2
src/views/medicalRecord/index.vue

@@ -1338,7 +1338,7 @@ export default {
         this.blInfo = res.data;
         this.blInfo = res.data;
       });
       });
     },
     },
-    // 质控栏锚点及高亮
+    // 质控栏锚点及高亮ICD10_ID1,ICD9_ID1
     handleZK(val) {
     handleZK(val) {
       console.log('点击质控接收的', val);
       console.log('点击质控接收的', val);
       const { anchor, codes } = val;
       const { anchor, codes } = val;
@@ -1386,7 +1386,7 @@ export default {
         //   });
         //   });
         //   this.$refs[item.error_field].scrollIntoView({ block: 'start', behavior: 'smooth' });
         //   this.$refs[item.error_field].scrollIntoView({ block: 'start', behavior: 'smooth' });
         // });
         // });
-        if (item.basis.length > 1) {
+        if (item.error_field == 'ICD10_ID1' || item.error_field == 'ICD9_ID1') {
           this.$nextTick(() => {
           this.$nextTick(() => {
             item.basis.forEach(e => {
             item.basis.forEach(e => {
               this.$refs[e].className = item.category <= 1 ? 'choose-twinkle' : 'choose-twinkle-1';
               this.$refs[e].className = item.category <= 1 ? 'choose-twinkle' : 'choose-twinkle-1';