fix: 参数配置list回显
This commit is contained in:
@@ -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}` || ' ' }}
|
||||
<template v-if="record['type'] === 'enum'">
|
||||
{{ JSON.parse(record['filter'])[text] }}
|
||||
</template>
|
||||
<template v-else>{{ `${text}` || ' ' }}</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}` || ' ' }}
|
||||
</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}` || ' ' }}
|
||||
</div>
|
||||
</div>
|
||||
</a-tooltip>
|
||||
|
||||
Reference in New Issue
Block a user