agilebuilder-ui 1.0.90-tmp3 → 1.0.90-tmp5
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/lib/super-ui.css +1 -1
- package/lib/super-ui.js +33 -40
- package/lib/super-ui.umd.cjs +2 -2
- package/package.json +1 -1
- package/packages/super-grid/src/apis.js +3 -1
- package/packages/super-grid/src/dynamic-input.vue +2 -2
- package/packages/super-grid/src/normal-column-content.vue +3 -6
- package/packages/super-grid/src/normal-column.vue +3 -6
package/package.json
CHANGED
|
@@ -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
|
}
|
|
@@ -743,7 +743,7 @@ export default {
|
|
|
743
743
|
if(!this.gridOptions.customRules){
|
|
744
744
|
this.gridOptions.customRules = {}
|
|
745
745
|
}
|
|
746
|
-
this
|
|
746
|
+
this.$watch('gridOptions.customRules.'+this.column.prop,
|
|
747
747
|
(newVal, oldVal)=> {
|
|
748
748
|
this.packageCustomRules()
|
|
749
749
|
},
|
|
@@ -751,7 +751,7 @@ export default {
|
|
|
751
751
|
immediate: true,
|
|
752
752
|
deep: true,
|
|
753
753
|
})
|
|
754
|
-
this
|
|
754
|
+
this.$watch('gridOptions.customRules._all_fields',
|
|
755
755
|
(newVal, oldVal)=> {
|
|
756
756
|
this.packageCustomRules()
|
|
757
757
|
},
|
|
@@ -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: {
|