doway-coms 2.6.4 → 2.6.6

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": "2.6.4",
3
+ "version": "2.6.6",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -2006,7 +2006,7 @@ export default {
2006
2006
 
2007
2007
  //是否系统显示还是系统隐藏
2008
2008
  colParams['sysVisible'] = true
2009
- if (!originCol.sysVisible) {
2009
+ if (originCol.sysVisible===false) {
2010
2010
  colParams['sysVisible'] = false
2011
2011
  }
2012
2012
  if (originCol.children) {
@@ -895,8 +895,23 @@ export default {
895
895
  dataSource: [],
896
896
  }
897
897
  this.$emit('preSearch', tempSearch)
898
- this.searchRows = tempSearch.dataSource
899
- this.gridPagerConfig.total = tempSearch.dataSource.length
898
+ this.searchRows = []
899
+ //判断删选条件过滤
900
+ XEUtils.arrayEach(tempSearch.dataSource,loopItem=>{
901
+ let tempFlag = this.filterCols.length===0
902
+ for(let i=0;i< this.filterCols.length;i++){
903
+ let tempValue = loopItem[this.filterCols[i].field]
904
+ if(XEUtils.isString(tempValue) && tempValue.includes(this.currentValue)===true){
905
+ tempFlag = true
906
+ break
907
+ }
908
+ }
909
+ if(tempFlag===true || !this.currentValue){
910
+ this.searchRows.push(loopItem)
911
+ }
912
+
913
+ })
914
+ this.gridPagerConfig.total = this.searchRows.length
900
915
  return
901
916
  }
902
917