agilebuilder-ui 1.0.90-tmp2 → 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
|
@@ -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
|
}
|
|
@@ -481,7 +477,10 @@ export default {
|
|
|
481
477
|
scanEnable = true
|
|
482
478
|
}
|
|
483
479
|
const componentId = this.listCode + '_' + this.column.prop
|
|
484
|
-
|
|
480
|
+
let lineEdit
|
|
481
|
+
if (gridParams.lineEdit !== null && gridParams.lineEdit !== undefined) {
|
|
482
|
+
lineEdit = gridParams.lineEdit
|
|
483
|
+
}
|
|
485
484
|
return {
|
|
486
485
|
selectRow: null,
|
|
487
486
|
that: this,
|
|
@@ -511,22 +510,24 @@ export default {
|
|
|
511
510
|
componentId,
|
|
512
511
|
controlConfig,
|
|
513
512
|
rowLinkConfigMapping: {},
|
|
514
|
-
requiredClass
|
|
513
|
+
requiredClass: '',
|
|
514
|
+
lineEdit,
|
|
515
|
+
options
|
|
515
516
|
}
|
|
516
517
|
},
|
|
517
518
|
computed: {
|
|
518
|
-
lineEdit() {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
},
|
|
519
|
+
// lineEdit() {
|
|
520
|
+
// let isLineEdit = false
|
|
521
|
+
// if (this.listCode) {
|
|
522
|
+
// const gridParams = store.get(this.listCode)
|
|
523
|
+
// if (gridParams.lineEdit !== null && gridParams.lineEdit !== undefined) {
|
|
524
|
+
// isLineEdit = gridParams.lineEdit
|
|
525
|
+
// } else {
|
|
526
|
+
// isLineEdit = false
|
|
527
|
+
// }
|
|
528
|
+
// }
|
|
529
|
+
// return isLineEdit
|
|
530
|
+
// },
|
|
530
531
|
|
|
531
532
|
...mapGetters(['preventReclick'])
|
|
532
533
|
},
|
|
@@ -612,6 +613,7 @@ export default {
|
|
|
612
613
|
}
|
|
613
614
|
}
|
|
614
615
|
this.setScanRuleSets()
|
|
616
|
+
this.requiredClass = this.isRequired(this.row.$editing) ? 'm-requried' : ''
|
|
615
617
|
},
|
|
616
618
|
mounted() {
|
|
617
619
|
// 监听保存时点击按钮事件线触发
|
|
@@ -971,7 +973,8 @@ export default {
|
|
|
971
973
|
}
|
|
972
974
|
},
|
|
973
975
|
isRequired(editing) {
|
|
974
|
-
|
|
976
|
+
console.log('isRequired---this.lineEdit=', this.lineEdit)
|
|
977
|
+
if (!this.isFormSubTable && this.lineEdit && this.lineEdit.editable && this.isEditable && editing && this.column.validations) {
|
|
975
978
|
if (this.column.validations.indexOf('"required":true') > 0) {
|
|
976
979
|
return true
|
|
977
980
|
}
|
|
@@ -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: {
|