Pārlūkot izejas kodu

Merge branch 'termLink0615' into test

wyq 3 gadi atpakaļ
vecāks
revīzija
bf17bf0111
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      src/components/common/LtModal.vue

+ 6 - 0
src/components/common/LtModal.vue

@@ -46,6 +46,7 @@
                       style="minWidth: 240px"
                       style="minWidth: 240px"
                       @input="onchange"
                       @input="onchange"
                       @blur="onblur"
                       @blur="onblur"
+                      @clear="clear"
                     ></el-input>
                     ></el-input>
                   </el-form-item>
                   </el-form-item>
                   <el-form-item :label="detail+'预览:'">
                   <el-form-item :label="detail+'预览:'">
@@ -265,6 +266,7 @@ export default {
       } else if (hisName !== '' && hisDetailName !== '' && this.type == 1) {
       } else if (hisName !== '' && hisDetailName !== '' && this.type == 1) {
         this.ty = 2;
         this.ty = 2;
       }
       }
+      console.log(this.ty)
       this.searchType = this.ty;
       this.searchType = this.ty;
       if (this.getIndex == row.index) {
       if (this.getIndex == row.index) {
         this.getIndex = 6;
         this.getIndex = 6;
@@ -382,6 +384,10 @@ export default {
       }
       }
       this.getTermMatching(type, name);
       this.getTermMatching(type, name);
     },
     },
+    clear(){
+      const { hisName, hisDetailName } = this.form;
+      this.getTermMatching(1, hisName);
+    },
     getTermMatching(type, name) {
     getTermMatching(type, name) {
       let params = {
       let params = {
         type: type ? type : this.type,
         type: type ? type : this.type,