agilebuilder-ui 1.0.90-tmp3 → 1.0.90-tmp4

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": "agilebuilder-ui",
3
- "version": "1.0.90-tmp3",
3
+ "version": "1.0.90-tmp4",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -1453,7 +1453,8 @@ const apis = {
1453
1453
  }
1454
1454
  ]
1455
1455
  */
1456
- dynamicControlTableEdit(pageContext, customRules){
1456
+ dynamicControlTableEdit(pageContext, customRules, listCode){
1457
+ const gridParams = store.get(listCode)
1457
1458
  console.log('dynamicControlTableEdit----customRules-----', customRules)
1458
1459
  if(!customRules){
1459
1460
  return
@@ -1483,6 +1484,7 @@ const apis = {
1483
1484
  // 当前列总的自定义规则更新
1484
1485
  copyItem.rules = columnRules
1485
1486
  this.options.customRules[prop] = copyItem
1487
+ gridParams.options.customRules[prop] = this.options.customRules[prop]
1486
1488
  })
1487
1489
  console.log('dynamicControlTableEdit----this.options-----', this.options)
1488
1490
  }
@@ -457,16 +457,12 @@ export default {
457
457
  isShowForm: {
458
458
  type: Boolean,
459
459
  default: false
460
- },
461
- // 列表配置信息
462
- options: {
463
- type: Object,
464
- default: null
465
460
  }
466
461
  },
467
462
  data() {
468
463
  let parentFormData
469
464
  const gridParams = store.get(this.listCode)
465
+ const options = gridParams.options
470
466
  if (gridParams.options.extraParam && gridParams.options.extraParam.entityMap) {
471
467
  parentFormData = gridParams.options.extraParam.entityMap
472
468
  }
@@ -515,7 +511,8 @@ export default {
515
511
  controlConfig,
516
512
  rowLinkConfigMapping: {},
517
513
  requiredClass: '',
518
- lineEdit
514
+ lineEdit,
515
+ options
519
516
  }
520
517
  },
521
518
  computed: {
@@ -146,16 +146,12 @@ export default {
146
146
  listToolbarFormData: {
147
147
  type: Object,
148
148
  default: null
149
- },
150
- // 列表配置信息
151
- options: {
152
- type: Object,
153
- default: null
154
149
  }
155
150
  },
156
151
  data() {
157
152
  let parentFormData
158
153
  const gridParams = store.get(this.listCode)
154
+ const options = gridParams.options
159
155
  if (gridParams.options.extraParam && gridParams.options.extraParam.entityMap) {
160
156
  parentFormData = gridParams.options.extraParam.entityMap
161
157
  }
@@ -169,7 +165,8 @@ export default {
169
165
  subTableCanAdd: true, // 表单子表时是否有新增权限
170
166
  isShowAdd: false, // 是否显示表头的新增按钮
171
167
  cellWidth: null,
172
- parentFormData
168
+ parentFormData,
169
+ options
173
170
  }
174
171
  },
175
172
  computed: {