bri-components 1.3.96 → 1.3.98
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 +1 -1
- package/src/components/controls/base/BriUpload/uploadList.vue +77 -27
- package/src/components/controls/mixins/controlMixin.js +36 -1
- package/src/components/controls/mixins/selectMixin.js +16 -8
- package/src/components/controls/senior/BriLabels.vue +1 -1
- package/src/components/controls/senior/selectDepartments.vue +4 -5
- package/src/components/form/DshForm.vue +6 -2
- package/src/components/list/DshCascaderTable.vue +4 -4
- package/src/components/list/mixins/DshCascaderTableMixin.js +228 -261
- package/src/components/list/mixins/DshFlatTableMixin.js +12 -8
- package/src/components/list/mixins/DshTreeTableMixin.js +2 -2
- package/src/components/list/mixins/tableBaseMixin.js +350 -279
- package/src/components/list/mixins/treeTableBaseMixin.js +6 -5
- package/src/components/unit/DshListUnit.vue +5 -5
- package/src/components/unit/unitMixin.js +4 -0
- package/src/utils/table.js +1 -1
|
@@ -13,6 +13,7 @@ export default {
|
|
|
13
13
|
selfPropsObj () {
|
|
14
14
|
return {
|
|
15
15
|
_treeForm: [],
|
|
16
|
+
...(this.typePropsObj || {}),
|
|
16
17
|
...this.commonPropsObj,
|
|
17
18
|
|
|
18
19
|
_maxLevel: this.commonPropsObj._maxLevel || 3 // 最大级数
|
|
@@ -56,7 +57,7 @@ export default {
|
|
|
56
57
|
: list.length;
|
|
57
58
|
list.splice(newRowIndex, 0, newRow);
|
|
58
59
|
|
|
59
|
-
this.change("createRow",
|
|
60
|
+
this.change("createRow", newRow, newRowIndex, null);
|
|
60
61
|
},
|
|
61
62
|
// 节点操作 -添加子行
|
|
62
63
|
clickCreateChild (operationItem, row, rowIndex, col) {
|
|
@@ -68,7 +69,7 @@ export default {
|
|
|
68
69
|
// 展开子级
|
|
69
70
|
this.toggleExpand(row, true);
|
|
70
71
|
|
|
71
|
-
this.change("createChildRow",
|
|
72
|
+
this.change("createChildRow", newRow, newRowIndex, null);
|
|
72
73
|
},
|
|
73
74
|
// 节点操作 -删除行
|
|
74
75
|
clickDelete (operationItem, row, rowIndex, col) {
|
|
@@ -80,7 +81,7 @@ export default {
|
|
|
80
81
|
const index = parentRow.children.findIndex(childRowItem => childRowItem._id === row._id);
|
|
81
82
|
parentRow.children.splice(index, 1);
|
|
82
83
|
|
|
83
|
-
this.change("deleteRow",
|
|
84
|
+
this.change("deleteRow", row, rowIndex, null);
|
|
84
85
|
}
|
|
85
86
|
});
|
|
86
87
|
},
|
|
@@ -88,11 +89,11 @@ export default {
|
|
|
88
89
|
clickDeleteChilds (operationItem, row, rowIndex, col) {
|
|
89
90
|
this.$Modal.confirm({
|
|
90
91
|
title: "警告",
|
|
91
|
-
content: "
|
|
92
|
+
content: "确定删除所有下级吗?",
|
|
92
93
|
onOk: () => {
|
|
93
94
|
row.children.splice(0);
|
|
94
95
|
|
|
95
|
-
this.change("deleteChildRows",
|
|
96
|
+
this.change("deleteChildRows", row, rowIndex, null);
|
|
96
97
|
}
|
|
97
98
|
});
|
|
98
99
|
},
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="DshListUnit">
|
|
3
|
-
<template v-if="
|
|
3
|
+
<template v-if="selfFormItem._type === 'index'">
|
|
4
4
|
<span>{{ indexStr || rowIndex + 1 }}</span>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
|
-
<template v-else-if="
|
|
7
|
+
<template v-else-if="selfFormItem.render">
|
|
8
8
|
<dsh-list-render
|
|
9
|
-
:column="
|
|
9
|
+
:column="selfFormItem"
|
|
10
10
|
:row="formData"
|
|
11
11
|
:index="rowIndex"
|
|
12
|
-
:render="
|
|
12
|
+
:render="selfFormItem.render"
|
|
13
13
|
></dsh-list-render>
|
|
14
14
|
</template>
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
:canEdit="canEdit"
|
|
20
20
|
:value="formData"
|
|
21
21
|
:propsObj="{
|
|
22
|
-
...
|
|
22
|
+
...selfFormItem,
|
|
23
23
|
size: 'default',
|
|
24
24
|
inTable: true
|
|
25
25
|
}"
|
|
@@ -59,6 +59,10 @@ export default {
|
|
|
59
59
|
computed: {
|
|
60
60
|
curComponentName () {
|
|
61
61
|
return componentNameMap[this.formItem._type] || "DshUndeveloped";
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
selfFormItem () {
|
|
65
|
+
return this.$transformDynamicProperty(this.formItem, this.formData, this.parentObj);
|
|
62
66
|
}
|
|
63
67
|
},
|
|
64
68
|
created () { },
|
package/src/utils/table.js
CHANGED