fix 网元输入框自动完成下拉选择
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
||||
import { saveAs } from 'file-saver';
|
||||
import useI18n from '@/hooks/useI18n';
|
||||
import { getConfigInfo, updateConfig } from '@/api/configManage/config';
|
||||
import useNeInfoStore from '@/store/modules/neinfo';
|
||||
const { t } = useI18n();
|
||||
const route = useRoute();
|
||||
|
||||
@@ -251,7 +252,7 @@ function fnModalVisibleByEdit() {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
modalState.from.configTag = res.data.configTag
|
||||
modalState.from.autoBackupTime = res.data.value
|
||||
modalState.title = t('views.configManage.backupManage.SetBackupTask');
|
||||
modalState.title = t('views.configManage.backupManage.setBackupTask');
|
||||
modalState.visibleByEdit = true;
|
||||
} else {
|
||||
message.error(`获取配置信息失败`, 2);
|
||||
@@ -333,11 +334,12 @@ onMounted(() => {
|
||||
:label="t('views.configManage.backupManage.neType')"
|
||||
name="neType "
|
||||
>
|
||||
<a-input
|
||||
<a-auto-complete
|
||||
v-model:value="queryParams.neType"
|
||||
:options="useNeInfoStore().getNeSelectOtions"
|
||||
allow-clear
|
||||
:placeholder="t('views.configManage.backupManage.neTypePlease')"
|
||||
></a-input>
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6" :md="12" :xs="24">
|
||||
@@ -364,7 +366,7 @@ onMounted(() => {
|
||||
<a-space :size="8" align="center">
|
||||
<a-button type="primary" @click.prevent="fnModalVisibleByEdit()">
|
||||
<template #icon><FieldTimeOutlined /></template>
|
||||
{{ t('views.configManage.backupManage.SetBackupTask') }}
|
||||
{{ t('views.configManage.backupManage.setBackupTask') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user