lw-cdp-ui 1.3.49 → 1.3.50
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/dist/components/lwTableForm/index.vue +5 -7
- package/dist/lw-cdp-ui.esm.js +2884 -2874
- package/dist/lw-cdp-ui.umd.js +17 -17
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
ref="table"
|
|
5
5
|
:columns="config.formItems"
|
|
6
6
|
:max-height="maxHeight"
|
|
7
|
-
:row-key="config.rowKey || '
|
|
7
|
+
:row-key="config.rowKey || 'tableUUID'"
|
|
8
8
|
:tree-props="config?.treeProps || { children: 'children', hasChildren: 'hasChildren' }"
|
|
9
9
|
style="width: 100%">
|
|
10
10
|
<el-table-column v-for="(item, index) in config.formItems"
|
|
@@ -522,13 +522,11 @@ export default {
|
|
|
522
522
|
// 校验通过后才推送数据
|
|
523
523
|
let id = this.$tool.getUUID(this.config.rowKey, '4')
|
|
524
524
|
tableData.push({
|
|
525
|
-
|
|
525
|
+
tableUUID: id,
|
|
526
526
|
...this.itemConfig,
|
|
527
|
-
...form
|
|
527
|
+
...form,
|
|
528
|
+
[this.config.rowKey]: id
|
|
528
529
|
})
|
|
529
|
-
|
|
530
|
-
// 用于识别是否是新增的
|
|
531
|
-
this.ids.push(id)
|
|
532
530
|
},
|
|
533
531
|
// 二级 新增/删除
|
|
534
532
|
clickFun(type, row, index) {
|
|
@@ -561,7 +559,7 @@ export default {
|
|
|
561
559
|
},
|
|
562
560
|
// 是否禁用
|
|
563
561
|
isDisabled(item, row) {
|
|
564
|
-
return (!
|
|
562
|
+
return (!row?.tableUUID && item.options?.disabled) || this.isView
|
|
565
563
|
},
|
|
566
564
|
//合并深结构对象
|
|
567
565
|
deepMerge(obj1, obj2) {
|