fix: 默认选择AMF找不到选首个
This commit is contained in:
@@ -1071,9 +1071,12 @@ onMounted(() => {
|
|||||||
);
|
);
|
||||||
// 默认选择AMF
|
// 默认选择AMF
|
||||||
const item = neCascaderOtions.value.find(s => s.value === 'AMF');
|
const item = neCascaderOtions.value.find(s => s.value === 'AMF');
|
||||||
if (item) {
|
if (item && item.children) {
|
||||||
const info = item.children[0];
|
const info = item.children[0];
|
||||||
neTypeSelect.value = [info.neType, info.neId];
|
neTypeSelect.value = [info.neType, info.neId];
|
||||||
|
} else {
|
||||||
|
const info = neCascaderOtions.value[0].children[0];
|
||||||
|
neTypeSelect.value = [info.neType, info.neId];
|
||||||
}
|
}
|
||||||
fnGetParamConfigTopTab();
|
fnGetParamConfigTopTab();
|
||||||
}
|
}
|
||||||
@@ -1421,7 +1424,6 @@ onMounted(() => {
|
|||||||
v-else-if="Array.isArray(text.array)"
|
v-else-if="Array.isArray(text.array)"
|
||||||
>
|
>
|
||||||
{{ 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}` }}
|
||||||
@@ -1465,7 +1467,9 @@ onMounted(() => {
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>{{t('views.configManage.configParam.post')}}</template>
|
<template #title>{{
|
||||||
|
t('views.configManage.configParam.post')
|
||||||
|
}}</template>
|
||||||
<a-popconfirm
|
<a-popconfirm
|
||||||
v-if="
|
v-if="
|
||||||
tableState.arrayChildNewIndex ===
|
tableState.arrayChildNewIndex ===
|
||||||
|
|||||||
@@ -297,9 +297,12 @@ onMounted(() => {
|
|||||||
);
|
);
|
||||||
// 默认选择AMF
|
// 默认选择AMF
|
||||||
const item = neCascaderOtions.value.find(s => s.value === 'AMF');
|
const item = neCascaderOtions.value.find(s => s.value === 'AMF');
|
||||||
if (item) {
|
if (item && item.children) {
|
||||||
const info = item.children[0];
|
const info = item.children[0];
|
||||||
state.neType = [info.neType, info.neId];
|
state.neType = [info.neType, info.neId];
|
||||||
|
} else {
|
||||||
|
const info = neCascaderOtions.value[0].children[0];
|
||||||
|
state.neType = [info.neType, info.neId];
|
||||||
}
|
}
|
||||||
fnGetList();
|
fnGetList();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user