centaline-data-driven 1.3.71 → 1.3.72

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": "centaline-data-driven",
3
- "version": "1.3.71",
3
+ "version": "1.3.72",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -288,7 +288,7 @@ export default {
288
288
  this.selectAllType = this.model.getSelectAll();
289
289
 
290
290
  this.$nextTick(() => {
291
- self.loadStats();
291
+ self.loadStats();
292
292
  window.addEventListener("resize", (ev) => {
293
293
  self.setTableHeight();
294
294
  });
@@ -433,6 +433,9 @@ export default {
433
433
  self.tableLoading = true;
434
434
 
435
435
  this.model.getPage(index, next);
436
+ self.$nextTick(() => {
437
+ self.loadStats();
438
+ });
436
439
  },
437
440
  toSort(ev, col, action) {
438
441
  var self = this;
@@ -796,7 +799,7 @@ export default {
796
799
  }
797
800
 
798
801
  if (field.flagAttachSearchCondition) {
799
- submitData["searchFields"] = self.model.searchModel.searchData;
802
+ submitData["searchFields"] = self.model.getSearchData();
800
803
  }
801
804
 
802
805
  this.routerClickHandler(field, submitData, action);
@@ -481,13 +481,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
481
481
  // self.searchModel.setBtnLoading(true);
482
482
  }
483
483
 
484
- var newSearchModel = common.deepClone(this.searchModel.searchData ? this.searchModel.searchData : {});
485
- if (self.searchStats && self.searchStats.searchData && self.searchStats.searchData.fields) {
486
-
487
- self.searchStats.searchData.fields.forEach((v) => {
488
- newSearchModel.fields.push(v);
489
- });
490
- }
484
+ var newSearchModel = this.getSearchData();
491
485
 
492
486
  Vue.prototype.$api.postHandler(common.globalUri(), {
493
487
  action: data,
@@ -555,6 +549,16 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
555
549
  console.error(error);
556
550
  });
557
551
  },
552
+ getSearchData(){
553
+ var self = this;
554
+ var newSearchModel = common.deepClone(this.searchModel.searchData ? this.searchModel.searchData : {});
555
+ if (self.searchStats && self.searchStats.searchData && self.searchStats.searchData.fields) {
556
+ self.searchStats.searchData.fields.forEach((v) => {
557
+ newSearchModel.fields.push(v);
558
+ });
559
+ }
560
+ return newSearchModel;
561
+ },
558
562
  getCurrentRowApiData(callback, rtnData, router, cellindex) {
559
563
  var self = this;
560
564
  var searchFields = {