ソースを参照

清空右侧推荐数据

wyq 3 年 前
コミット
5ef8f629b4
1 ファイル変更6 行追加0 行削除
  1. 6 0
      src/components/common/LtModal.vue

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

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