fix: 参数配置list回显

This commit is contained in:
TsMask
2023-11-15 19:53:21 +08:00
parent a5d380209e
commit b9f8426b3f

View File

@@ -44,6 +44,11 @@ let tabState: TabStateType = reactive({
/**tab标签栏标签点击监听 */
function fnTabActiveTopTag(key: string | number) {
if (tableState.loading) return;
tableState.listData = [];
tableState.listColumns = [];
tableState.arrayData = [];
tableState.arrayColumns = [];
tableState.loading = true;
if (key !== '#') {
tabState.tabActiveTopTag = key as string;
@@ -81,11 +86,9 @@ function fnTabActiveTopTag(key: string | number) {
}
})
.finally(() => {
tableState.arrayNewIndex = -1;
tableState.editRecord = {};
tableState.arrayChildNewIndex = -1;
tableState.arrayChildEditRecord = {};
tableState.loading = false;
listEditClose();
arrayEditClose();
});
}
@@ -270,6 +273,7 @@ function arrayEditClose() {
tableState.arrayData.pop();
}
tableState.editRecord = {};
arrayChildEditClose();
}
/**多列表编辑确认 */
@@ -1254,7 +1258,10 @@ onMounted(() => {
</a-space>
</div>
<div v-else class="editable-cell__text-wrapper">
{{ `${text}` || '&nbsp;' }}
<template v-if="record['type'] === 'enum'">
{{ JSON.parse(record['filter'])[text] }}
</template>
<template v-else>{{ `${text}` || '&nbsp;' }}</template>
<EditOutlined
class="editable-cell__icon"
v-if="record.access !== 'read'"
@@ -1426,7 +1433,7 @@ onMounted(() => {
{{ t('common.viewText') }}
</a-button>
<div v-else class="editable-cell__text-wrapper">
{{ `${text.value}` }}
{{ `${text.value}` || '&nbsp;' }}
</div>
</div>
</a-tooltip>
@@ -1616,7 +1623,7 @@ onMounted(() => {
{{ t('common.viewText') }}
</a-button>
<div v-else class="editable-cell__text-wrapper">
{{ `${text.value}` }}
{{ `${text.value}` || '&nbsp;' }}
</div>
</div>
</a-tooltip>