fix: UDM鉴权键入Tenant Name主动重新获取列表
This commit is contained in:
@@ -1104,8 +1104,7 @@ function delBigRow(bigIndex: any) {
|
||||
bigRows.value.splice(bigIndex, 1);
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
// 初始字典数据
|
||||
function fnTenantNameFocus() {
|
||||
Promise.allSettled([listTenant({ parentId: 0 })]).then(resArr => {
|
||||
if (resArr[0].status === 'fulfilled') {
|
||||
var tenantNameData = resArr[0].value;
|
||||
@@ -1125,7 +1124,9 @@ onMounted(() => {
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
// 获取网元网元列表
|
||||
useNeInfoStore()
|
||||
.fnNelist()
|
||||
@@ -1218,6 +1219,7 @@ onMounted(() => {
|
||||
<a-auto-complete
|
||||
v-model:value="queryParams.tenantName"
|
||||
:options="modalStateFromOption.tenantName"
|
||||
@focus="fnTenantNameFocus"
|
||||
></a-auto-complete>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
Reference in New Issue
Block a user