wui-components-v2 1.1.23 → 1.1.25
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.
|
@@ -37,8 +37,8 @@ const form = ref<any>(null)
|
|
|
37
37
|
const model = ref<any>({})
|
|
38
38
|
const fields = computed(() => {
|
|
39
39
|
return props.fieldGroup?.fields.filter((item) => {
|
|
40
|
-
|
|
41
|
-
return !item.title?.endsWith('y')// 排除字符串的最后一个字符为y的项
|
|
40
|
+
return item
|
|
41
|
+
// return !item.title?.endsWith('y')// 排除字符串的最后一个字符为y的项
|
|
42
42
|
})
|
|
43
43
|
})
|
|
44
44
|
// 初始化表单数据
|
|
@@ -275,7 +275,7 @@ defineExpose({
|
|
|
275
275
|
@success="(e) => { handleFileChange(e, item) }"
|
|
276
276
|
/>
|
|
277
277
|
</wd-cell>
|
|
278
|
-
<wd-cell v-else-if="ControlTypeSupportor.getControlType(item, props.entity && props.entity[item.sourceId]) === 'relselect'" :prop="item.sourceId" :title="item.title" title-width="100px">
|
|
278
|
+
<wd-cell v-else-if="ControlTypeSupportor.getControlType(item, props.entity && props.entity[item.sourceId]) === 'relselect'" :style="{ display: item.title?.includes('y') ? 'none' : null }" :prop="item.sourceId" :title="item.title" title-width="100px">
|
|
279
279
|
<mulselectPicker v-model="model[item.sourceId]" :source-id="item.sourceId" :title="item.title" :ext-control-type="Number(item.max) === 1 ? 'relselect' : 'ss' " :readonly="item.disabled" :clearable="!item.disabled" />
|
|
280
280
|
</wd-cell>
|
|
281
281
|
<wd-cell v-else-if="ControlTypeSupportor.getControlType(item, props.entity && props.entity[item.sourceId]) === 'relselectvalue'" :prop="item.sourceId" :title="item.title" title-width="100px">
|
|
@@ -277,7 +277,7 @@ async function save() {
|
|
|
277
277
|
editPageDataSave(tree.value.sourceId || sourceId.value, id.value, newAll, tree.value.value || mainCode.value).then((res: any) => {
|
|
278
278
|
// 发送事件
|
|
279
279
|
if (addEvent.value)
|
|
280
|
-
uni.$emit(addEvent.value, res.entityCode)
|
|
280
|
+
uni.$emit(addEvent.value, { entityCode: res.entityCode, data: newAll })
|
|
281
281
|
if (editEvent.value)
|
|
282
282
|
uni.$emit(editEvent.value, res.entityCode)
|
|
283
283
|
|
|
@@ -390,7 +390,7 @@ function gotoAdd(group: Groups) {
|
|
|
390
390
|
// 接收添加页面发送过来的数据
|
|
391
391
|
uni.$once(addEvent, (data: any) => {
|
|
392
392
|
uni.$off(addEvent)
|
|
393
|
-
getAddData([data], group.id)
|
|
393
|
+
getAddData([data.entityCode], group.id)
|
|
394
394
|
})
|
|
395
395
|
}
|
|
396
396
|
|