agilebuilder-ui 1.0.92 → 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.
@@ -1127,7 +1127,7 @@ const apis = {
1127
1127
  gridParams.superGrid.clearSelection()
1128
1128
  }
1129
1129
  gridParams.isCreateRow = false
1130
- if (isRestore !== undefined && isRestore === true) {
1130
+ if (isRestore === undefined || !isRestore) {
1131
1131
  // 表示是删除操作,执行删除记录后回调
1132
1132
  if (isEditOptionFunction('afterDelete', listCode)) {
1133
1133
  const isSubTableShowPage = gridParams.isSubTableShowPage
@@ -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>