wui-components-v2 1.0.45 → 1.0.47
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.
|
@@ -522,14 +522,23 @@ function rowEdit(group: Groups, field: Entities) {
|
|
|
522
522
|
|
|
523
523
|
// 显示数据
|
|
524
524
|
if (pageConfig.value.entity.arrayMap[group.id]) {
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
const index = pageConfig.value.entity.arrayMap[group.id].findIndex((item: any) => item.code === newData.id)
|
|
526
|
+
console.log('index', index)
|
|
527
|
+
pageConfig.value.entity.arrayMap[group.id][index] = {
|
|
527
528
|
arrayMap: {},
|
|
528
529
|
code: '',
|
|
529
530
|
fieldMap: {
|
|
530
531
|
...newData,
|
|
531
532
|
},
|
|
532
|
-
}
|
|
533
|
+
}
|
|
534
|
+
// pageConfig.value.entity.arrayMap[group.id] = pageConfig.value.entity.arrayMap[group.id].filter((item: any) => item.code !== newData.id)
|
|
535
|
+
// pageConfig.value.entity.arrayMap[group.id].push({
|
|
536
|
+
// arrayMap: {},
|
|
537
|
+
// code: '',
|
|
538
|
+
// fieldMap: {
|
|
539
|
+
// ...newData,
|
|
540
|
+
// },
|
|
541
|
+
// })
|
|
533
542
|
}
|
|
534
543
|
|
|
535
544
|
console.log(rowData.value, group.id, 'rowData.value')
|
|
@@ -49,6 +49,8 @@ const config = ref<Config>({
|
|
|
49
49
|
pointSourceId: '',
|
|
50
50
|
mstrucId: '',
|
|
51
51
|
relationNames: [],
|
|
52
|
+
readOnly: false,
|
|
53
|
+
displayConfig: [],
|
|
52
54
|
})
|
|
53
55
|
const sourceId = ref('')
|
|
54
56
|
const datas = ref<Entities[]>([])
|
|
@@ -205,9 +207,9 @@ function submitSearch(data: any) {
|
|
|
205
207
|
<z-paging ref="Zpaging" v-model="datas" :show-loading-more-when-reload="true" @query="queryList">
|
|
206
208
|
<template #top>
|
|
207
209
|
<Search :criterias="config.criterias" :primary-criteria="config.primaryCriteria" @submit="submitSearch" />
|
|
208
|
-
<view>
|
|
210
|
+
<!-- <view>
|
|
209
211
|
<ListTopButtons :buttons="config.buttons" :source-id="sourceId" :page-title="pageTitle" />
|
|
210
|
-
</view>
|
|
212
|
+
</view> -->
|
|
211
213
|
<slot name="top" />
|
|
212
214
|
</template>
|
|
213
215
|
|
|
@@ -215,9 +217,9 @@ function submitSearch(data: any) {
|
|
|
215
217
|
<template #select>
|
|
216
218
|
<wd-checkbox :true-value="`${item.code}`" false-value="" :model-value="selectDataforMat[item.code]" />
|
|
217
219
|
</template>
|
|
218
|
-
<template #buttons>
|
|
219
|
-
<CardBotomButtons :source-id="sourceId" :item="config" :code="item.code" />
|
|
220
|
-
</template>
|
|
220
|
+
<!-- <template #buttons>
|
|
221
|
+
<CardBotomButtons :data="item" :groups="config" :source-id="sourceId" :item="config" :code="item.code" />
|
|
222
|
+
</template> -->
|
|
221
223
|
</foldCard>
|
|
222
224
|
|
|
223
225
|
<template #bottom>
|