agilebuilder-ui 1.0.91 → 1.0.93-temp2

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.
@@ -20,6 +20,7 @@
20
20
  :additional-param-map="additionalParamMap"
21
21
  :listCode="listCode"
22
22
  :component-id="componentId"
23
+ :page-context="pageContext"
23
24
  @change="cellEvent('change', $event)"
24
25
  @input="cellEvent('input', $event)"
25
26
  />
@@ -742,25 +743,29 @@ export default {
742
743
  }
743
744
  }
744
745
  this.getDateAllowTime()
745
- if(!this.gridOptions.customRules){
746
+ if (!this.gridOptions.customRules) {
746
747
  this.gridOptions.customRules = {}
747
748
  }
748
- this.$watch('gridOptions.customRules.'+this.column.prop,
749
- (newVal, oldVal)=> {
750
- this.packageCustomRules(newVal)
751
- },
752
- {
753
- immediate: true,
754
- deep: true,
755
- })
756
- this.$watch('gridOptions.customRules._all_fields',
757
- (newVal, oldVal)=> {
758
- this.packageCustomRules(newVal)
759
- },
760
- {
761
- immediate: true,
762
- deep: true,
763
- })
749
+ this.$watch(
750
+ 'gridOptions.customRules.' + this.column.prop,
751
+ (newVal, oldVal) => {
752
+ this.packageCustomRules(newVal)
753
+ },
754
+ {
755
+ immediate: true,
756
+ deep: true
757
+ }
758
+ )
759
+ this.$watch(
760
+ 'gridOptions.customRules._all_fields',
761
+ (newVal, oldVal) => {
762
+ this.packageCustomRules(newVal)
763
+ },
764
+ {
765
+ immediate: true,
766
+ deep: true
767
+ }
768
+ )
764
769
  },
765
770
  mounted() {
766
771
  // 去掉该监听,否则导致焦点总是跳到第一个编辑框
@@ -1551,7 +1556,14 @@ export default {
1551
1556
  if (prop && prop === this.column.prop) {
1552
1557
  // 必须手动调用一下input事件,否则不会更新组件的值
1553
1558
  // console.log('organizationInputEvent2---prop=', prop, 'value=', value)
1554
- this.callCustomEventWithParam('input', { value, row: this.row, column: this.column, prop })
1559
+ if (this.column && this.column.events && this.column.events.length > 0) {
1560
+ this.callCustomEventWithParam(this.column.events[eventName], {
1561
+ value,
1562
+ row: this.row,
1563
+ column: this.column,
1564
+ prop
1565
+ })
1566
+ }
1555
1567
  }
1556
1568
  },
1557
1569
  // 组织结构树文本框值清空事件
@@ -1824,13 +1836,13 @@ export default {
1824
1836
  },
1825
1837
  packageCustomRules(columnRule) {
1826
1838
  console.log('packageCustomRules---columnRule=', columnRule)
1827
- if(!columnRule){
1839
+ if (!columnRule) {
1828
1840
  return
1829
1841
  }
1830
- if(columnRule.disabled !== undefined){
1842
+ if (columnRule.disabled !== undefined) {
1831
1843
  this.$emit('change-disabled', columnRule.disabled)
1832
1844
  }
1833
- if(columnRule.required !== undefined){
1845
+ if (columnRule.required !== undefined) {
1834
1846
  this.$emit('change-required', columnRule.required)
1835
1847
  }
1836
1848
  }
@@ -119,6 +119,7 @@
119
119
  :value="getCellValue(row)"
120
120
  :additional-param-map="additionalParamMap"
121
121
  :additional-settings="additionalSettings"
122
+ :page-context="options?.pageContext"
122
123
  />
123
124
  </span>
124
125
  <!-- 自定义格式的时候 -->
@@ -155,6 +156,7 @@
155
156
  :listCode="listCode"
156
157
  :component-id="componentId"
157
158
  :additional-settings="additionalSettings"
159
+ :page-context="options?.pageContext"
158
160
  @prohibitToEdit="prohibitToEdit"
159
161
  @refresh-list="refreshList"
160
162
  /></span>
@@ -176,6 +176,7 @@ const superGridService = {
176
176
  gridParams.pagination = this.pagination
177
177
  gridParams.pageContext = this.pageContext
178
178
  gridParams.configureObj = this.configureObj
179
+ gridParams.hiddenColumns = this.options.hiddenColumns?JSON.parse(JSON.stringify(this.options.hiddenColumns)):[]
179
180
  if (this.pagination) {
180
181
  // 监控每行显示多少条变量使用
181
182
  this.pageSize = this.pagination.pageSize
@@ -545,6 +545,7 @@ export default {
545
545
  if (
546
546
  hiddenColumns &&
547
547
  hiddenColumns.length > 0 &&
548
+ column.prop &&
548
549
  hiddenColumns.indexOf(column.prop) !== -1
549
550
  ) {
550
551
  // 如果当前字段包含在隐藏字段集合中,则不显示该字段
@@ -101,13 +101,13 @@ class TextCalculator extends CalculatorFactory {
101
101
  this.result = false
102
102
  } else {
103
103
  if (operator === 'NET') {
104
- this.result = leftVale !== rightValue
104
+ this.result = (leftVale+'') !== (rightValue+'')
105
105
  } else if (operator === 'EQ') {
106
- this.result = leftVale === rightValue
106
+ this.result = (leftVale+'') === (rightValue+'')
107
107
  } else if (operator === 'NOT_CONTAIN') {
108
- this.result = !leftVale.includes(rightValue)
108
+ this.result = !(leftVale+'').includes(rightValue+'')
109
109
  } else if (operator === 'CONTAIN') {
110
- this.result = leftVale.includes(rightValue)
110
+ this.result = (leftVale+'').includes(rightValue+'')
111
111
  } else if (operator === 'IS_NULL') {
112
112
  this.result =
113
113
  leftVale === undefined || leftVale === null || leftVale === ''