vue2-client 1.7.16 → 1.7.17
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
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
:service-name="serviceName"
|
|
16
16
|
:get-data-params="getDataParams"
|
|
17
17
|
/>
|
|
18
|
-
<div v-for="(groupItem, groupIndex) in groupJsonData" :key="groupIndex">
|
|
18
|
+
<div v-for="(groupItem, groupIndex) in groupJsonData" :key="'group-' + groupIndex">
|
|
19
19
|
<x-form-item
|
|
20
20
|
v-for="(item, index) in groupItem.groupItems"
|
|
21
21
|
:key="index"
|
|
22
22
|
:attr="item"
|
|
23
|
-
:form="form
|
|
23
|
+
:form="form"
|
|
24
24
|
:service-name="serviceName"
|
|
25
25
|
:get-data-params="getDataParams"
|
|
26
26
|
/>
|
|
@@ -104,7 +104,7 @@ export default {
|
|
|
104
104
|
}).map((item) => {
|
|
105
105
|
item.groupItems = item.groupItems.filter(item => !item.isOnlyAddOrEdit).map((groupItem) => {
|
|
106
106
|
// 只保留第一个下划线后面的内容
|
|
107
|
-
groupItem.model = groupItem.model.substring(groupItem.model.indexOf('_') + 1)
|
|
107
|
+
// groupItem.model = groupItem.model.substring(groupItem.model.indexOf('_') + 1)
|
|
108
108
|
return groupItem
|
|
109
109
|
})
|
|
110
110
|
return item
|
|
@@ -128,10 +128,9 @@ export default {
|
|
|
128
128
|
// 处理分组数据表单
|
|
129
129
|
for (let i = 0; i < this.groupJsonData.length; i++) {
|
|
130
130
|
const groupItem = this.groupJsonData[i]
|
|
131
|
-
formData[groupItem.model] = {}
|
|
132
131
|
for (let j = 0; j < groupItem.groupItems.length; j++) {
|
|
133
132
|
const item = groupItem.groupItems[j]
|
|
134
|
-
this.setFormProps(formData
|
|
133
|
+
this.setFormProps(formData, item)
|
|
135
134
|
}
|
|
136
135
|
}
|
|
137
136
|
this.form = formData
|