doway-coms 1.6.13 → 1.6.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.6.13",
3
+ "version": "1.6.15",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -47,7 +47,7 @@
47
47
  </ValidationProvider>
48
48
  </template>
49
49
  <template #dropdown>
50
- <div class="pulldown-grid interceptor-class">
50
+ <div class="pulldown-grid interceptor-class" >
51
51
  <vxe-grid
52
52
  size="mini"
53
53
  border
@@ -90,7 +90,7 @@
90
90
  </template>
91
91
  <!-- 普通输入框的过滤筛选-->
92
92
  <template #text_filter="{ column }">
93
- <div class="interceptor-class">
93
+ <div class="interceptor-class">
94
94
  <div
95
95
  v-for="(item, $index) in column.filters"
96
96
  :key="$index"
@@ -765,7 +765,9 @@ export default {
765
765
  if (this.isOld === true) {
766
766
  tempExp = "";
767
767
  }
768
- if (this.currentValue) {
768
+ if(this.filterExpression.expressions.length > 0) {
769
+ tempExp.expressions.push(this.filterExpression)
770
+ }else if (this.currentValue) {
769
771
  for (let i = 0; i < this.filterCols.length; i++) {
770
772
  if (this.isOld === true) {
771
773
  tempExp =
@@ -823,9 +825,6 @@ export default {
823
825
  };
824
826
  //查询之前从外部组件构造其他的条件
825
827
  this.$emit("preSearch", postExpression, repeatRowInfo);
826
- if(this.filterExpression.expressions.length > 0) {
827
- postExpression.expression.expressions.push(this.filterExpression)
828
- }
829
828
  let postData = {
830
829
  fields: this.fetchFields,
831
830
  begin:
@@ -1029,7 +1028,7 @@ export default {
1029
1028
  })
1030
1029
  },
1031
1030
 
1032
- // 清楚筛选条件
1031
+ // 清除筛选条件
1033
1032
  clearColumnFilter() {
1034
1033
  let columns = []
1035
1034
  let vm = this
@@ -1040,6 +1039,9 @@ export default {
1040
1039
  }
1041
1040
  XEUtils.each(columns, item => {
1042
1041
  let col= vm.columns.find(x=>x.field === item.field)
1042
+ if(!col) {
1043
+ return
1044
+ }
1043
1045
  if(!col.controlType) {
1044
1046
  col.controlType = 'text'
1045
1047
  }