Просмотр исходного кода

:bug: 修复字典级联查询的bug

smallchill 6 лет назад
Родитель
Сommit
dc9ffffc1e
4 измененных файлов с 6 добавлено и 4 удалено
  1. 2 2
      src/const/system/dict.js
  2. 2 2
      src/const/system/dictbiz.js
  3. 1 0
      src/views/system/dict.vue
  4. 1 0
      src/views/system/dictbiz.vue

+ 2 - 2
src/const/system/dict.js

@@ -3,7 +3,7 @@ export const optionParent = {
   calcHeight: 95,
   calcHeight: 95,
   tip: false,
   tip: false,
   searchShow: true,
   searchShow: true,
-  searchMenuSpan: 8,
+  searchMenuSpan: 10,
   tree: true,
   tree: true,
   border: true,
   border: true,
   index: true,
   index: true,
@@ -93,7 +93,7 @@ export const optionChild = {
   calcHeight: 95,
   calcHeight: 95,
   tip: false,
   tip: false,
   searchShow: true,
   searchShow: true,
-  searchMenuSpan: 6,
+  searchMenuSpan: 10,
   tree: true,
   tree: true,
   border: true,
   border: true,
   index: true,
   index: true,

+ 2 - 2
src/const/system/dictbiz.js

@@ -3,7 +3,7 @@ export const optionParent = {
   calcHeight: 95,
   calcHeight: 95,
   tip: false,
   tip: false,
   searchShow: true,
   searchShow: true,
-  searchMenuSpan: 8,
+  searchMenuSpan: 10,
   tree: true,
   tree: true,
   border: true,
   border: true,
   index: true,
   index: true,
@@ -93,7 +93,7 @@ export const optionChild = {
   calcHeight: 95,
   calcHeight: 95,
   tip: false,
   tip: false,
   searchShow: true,
   searchShow: true,
-  searchMenuSpan: 6,
+  searchMenuSpan: 10,
   tree: true,
   tree: true,
   border: true,
   border: true,
   index: true,
   index: true,

+ 1 - 0
src/views/system/dict.vue

@@ -211,6 +211,7 @@
           });
           });
       },
       },
       handleRowClick(row) {
       handleRowClick(row) {
+        this.query = {};
         this.parentId = row.id;
         this.parentId = row.id;
         this.dictValue = row.dictValue;
         this.dictValue = row.dictValue;
         this.$refs.crudChild.value.code = row.code;
         this.$refs.crudChild.value.code = row.code;

+ 1 - 0
src/views/system/dictbiz.vue

@@ -211,6 +211,7 @@
           });
           });
       },
       },
       handleRowClick(row) {
       handleRowClick(row) {
+        this.query = {};
         this.parentId = row.id;
         this.parentId = row.id;
         this.dictValue = row.dictValue;
         this.dictValue = row.dictValue;
         this.$refs.crudChild.value.code = row.code;
         this.$refs.crudChild.value.code = row.code;