Procházet zdrojové kódy

修改封装的table搜索条件重置后,无法输入问题

lihongxiao před 3 roky
rodič
revize
0afecc3961
1 změnil soubory, kde provedl 11 přidání a 9 odebrání
  1. 11 9
      src/components/TemplateTable/index.vue

+ 11 - 9
src/components/TemplateTable/index.vue

@@ -194,12 +194,12 @@ export default {
         return {};
       }
     },
-    searchDataClone: {
-      type: Object,
-      default: () => {
-        return {};
-      }
-    },
+    // searchDataClone: {
+    //   type: Object,
+    //   default: () => {
+    //     return {};
+    //   }
+    // },
     pagination: {
         type: Object,
         default: () => ({
@@ -219,7 +219,8 @@ export default {
   },
   data() {
     return {
-      InsCompanyList:[]
+      InsCompanyList:[],
+      searchDataClone:{}
     };
   },
   created() {
@@ -296,8 +297,9 @@ export default {
     },
     // 重置
     resetForm(formName) {
-      this.$refs[formName].resetFields();
-      this.handleSearchList();
+        this.searchDataClone={}
+        // this.$refs[formName].resetFields();
+        this.handleSearchList();
     },
     handleOpt(row,index) {
         this.$emit('handleOpt', row, index)