fix: 参数配置list回显
This commit is contained in:
@@ -44,6 +44,11 @@ let tabState: TabStateType = reactive({
|
|||||||
|
|
||||||
/**tab标签栏标签点击监听 */
|
/**tab标签栏标签点击监听 */
|
||||||
function fnTabActiveTopTag(key: string | number) {
|
function fnTabActiveTopTag(key: string | number) {
|
||||||
|
if (tableState.loading) return;
|
||||||
|
tableState.listData = [];
|
||||||
|
tableState.listColumns = [];
|
||||||
|
tableState.arrayData = [];
|
||||||
|
tableState.arrayColumns = [];
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
if (key !== '#') {
|
if (key !== '#') {
|
||||||
tabState.tabActiveTopTag = key as string;
|
tabState.tabActiveTopTag = key as string;
|
||||||
@@ -81,11 +86,9 @@ function fnTabActiveTopTag(key: string | number) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
tableState.arrayNewIndex = -1;
|
|
||||||
tableState.editRecord = {};
|
|
||||||
tableState.arrayChildNewIndex = -1;
|
|
||||||
tableState.arrayChildEditRecord = {};
|
|
||||||
tableState.loading = false;
|
tableState.loading = false;
|
||||||
|
listEditClose();
|
||||||
|
arrayEditClose();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -270,6 +273,7 @@ function arrayEditClose() {
|
|||||||
tableState.arrayData.pop();
|
tableState.arrayData.pop();
|
||||||
}
|
}
|
||||||
tableState.editRecord = {};
|
tableState.editRecord = {};
|
||||||
|
arrayChildEditClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**多列表编辑确认 */
|
/**多列表编辑确认 */
|
||||||
@@ -1254,7 +1258,10 @@ onMounted(() => {
|
|||||||
</a-space>
|
</a-space>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="editable-cell__text-wrapper">
|
<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
|
<EditOutlined
|
||||||
class="editable-cell__icon"
|
class="editable-cell__icon"
|
||||||
v-if="record.access !== 'read'"
|
v-if="record.access !== 'read'"
|
||||||
@@ -1426,7 +1433,7 @@ onMounted(() => {
|
|||||||
{{ t('common.viewText') }}
|
{{ t('common.viewText') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<div v-else class="editable-cell__text-wrapper">
|
<div v-else class="editable-cell__text-wrapper">
|
||||||
{{ `${text.value}` }}
|
{{ `${text.value}` || ' ' }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
@@ -1616,7 +1623,7 @@ onMounted(() => {
|
|||||||
{{ t('common.viewText') }}
|
{{ t('common.viewText') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<div v-else class="editable-cell__text-wrapper">
|
<div v-else class="editable-cell__text-wrapper">
|
||||||
{{ `${text.value}` }}
|
{{ `${text.value}` || ' ' }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
|||||||
Reference in New Issue
Block a user