Browse Source

no message

wyq 4 năm trước cách đây
mục cha
commit
5a8a19912f
1 tập tin đã thay đổi với 31 bổ sung0 xóa
  1. 31 0
      src/components/knowledgeExtra/AddDiagBase.vue

+ 31 - 0
src/components/knowledgeExtra/AddDiagBase.vue

@@ -97,6 +97,7 @@
                   :rules="rules.conditionType"
                 >
                   <el-select
+                  ref="aa"
                     v-model="form.klDiagnoseTypeVO[scope.$index].conditionType"
                     @change="(val)=>basTypeChange(val,scope.$index)"
                   >
@@ -732,7 +733,37 @@ export default {
       return dest;
     }
   },
+  // mounted() {
+  //   this.onscroll();
+  // },
   methods: {
+    // onscroll() {
+    //   this.$nextTick(function() {
+    //     // 监听当前组件的滚动事件
+    //     this.box = this.$refs.tableList.bodyWrapper;
+    //     this.box.addEventListener(
+    //       'scroll',
+    //       () => {
+    //         // select组件层级太高,滚动隐藏
+    //         if (this.$refs.tableList.bodyWrapper.scrollLeft > 0) {
+    //           console.log(this.$refs.aa.handleClose)
+    //           // this.$refs.aa.handleClose()
+    //           // this.$refs.aa.blur()
+    //           // const SELECTWRAP_BODY = document.body; // body
+    //           // const SELECTWRAP_DOWNALL = document.querySelectorAll(
+    //           //   '.el-select-dropdown'
+    //           // ); // select下拉框
+    //           // SELECTWRAP_BODY.click();
+
+    //           // SELECTWRAP_DOWNALL.forEach(item => {
+    //           //   item.blur();
+    //           // });
+    //         }
+    //       },
+    //       false
+    //     );
+    //   });
+    // },
     // 最大值 选择rule
     maxOperator(items, rule, value, callback) {
       const { maxVal, minOperator, minVal } = items;