Explorar el Código

清空右侧推荐数据

wyq hace 4 años
padre
commit
a7586beb49
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/components/base/LtModal.vue

+ 5 - 0
src/components/base/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+'预览:'">
@@ -390,6 +391,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,