浏览代码

检查修改细项清空搜索条件

wyq 3 年之前
父节点
当前提交
ba9ff635a4
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      src/components/common/LtModal.vue

+ 9 - 1
src/components/common/LtModal.vue

@@ -44,7 +44,7 @@
                       v-model.trim="form.hisDetailName"
                       clearable
                       style="minWidth: 240px"
-                      @input="onchange"
+                      @input="onchanges"
                       @blur="onblur"
                     ></el-input>
                   </el-form-item>
@@ -309,6 +309,14 @@ export default {
     onchange() {
       this.getRelatedMapping();
     },
+    onchanges() {
+      this.form.searchText = '';
+      this.form.conceptId = '';
+      this.form.icdCode = '';
+      this.$$nextTick(() => {
+        this.getRelatedMapping();
+      });
+    },
     getRelatedMapping() {
       const { hisName, hisDetailName } = this.form;
       let params = {