fix: 网元IMS参数配置plmn禁止删除index0

This commit is contained in:
TsMask committed 2024-08-15 18:05:56 +08:00
1 parent f6b62c6c7e
commit 4268fa3198
2 files changed
+17 -4

No files matched your search

@@ -53,6 +53,13 @@ export default function useConfigList({
/**单列表编辑 */
function listEdit(row: Record<string, any>) {
if (
listState.confirmLoading ||
['read-only', 'read', 'ro'].includes(row.access)
) {
return;
}
listState.editRecord = Object.assign({}, row);
}
+10 -4
View File
@@ -597,9 +597,8 @@ onMounted(() => {
@click="listEdit(record)"
style="margin-left: 18px"
v-if="
!['read-only', 'read', 'ro'].includes(
record.access
) && !listState.confirmLoading
!listState.confirmLoading &&
!['read-only', 'read', 'ro'].includes(record.access)
"
/>
</div>
@@ -658,7 +657,14 @@ onMounted(() => {
</a-button>
</a-tooltip>
<a-tooltip
v-if="treeState.selectNode.paramPerms.includes('delete')"
v-if="
treeState.selectNode.paramPerms.includes('delete') &&
!(
neTypeSelect[0] === 'IMS' &&
treeState.selectNode.paramName === 'plmn' &&
text['value'] === 0
)
"
>
<template #title>{{ t('common.deleteText') }}</template>
<a-button type="link" @click.prevent="arrayDelete(text)">