fix: 网元软件id类型错误
This commit is contained in:
@@ -34,7 +34,7 @@ type ModalStateType = {
|
||||
title: string;
|
||||
/**表单数据 */
|
||||
from: {
|
||||
id: string;
|
||||
id: number | undefined;
|
||||
neType: string;
|
||||
name: string;
|
||||
path: string;
|
||||
@@ -54,7 +54,7 @@ let modalState: ModalStateType = reactive({
|
||||
openByEdit: false,
|
||||
title: '软件包文件',
|
||||
from: {
|
||||
id: '',
|
||||
id: undefined,
|
||||
neType: '',
|
||||
name: '',
|
||||
path: '',
|
||||
@@ -364,7 +364,7 @@ onMounted(() => {});
|
||||
:label-col="{ span: 8 }"
|
||||
:labelWrap="true"
|
||||
>
|
||||
<template v-if="modalState.from.id === ''">
|
||||
<template v-if="modalState.from.id === undefined">
|
||||
<a-form-item
|
||||
:label="t('views.ne.neSoftware.path')"
|
||||
:help="t('views.ne.neSoftware.uploadFileName')"
|
||||
@@ -434,13 +434,13 @@ onMounted(() => {});
|
||||
<a-auto-complete
|
||||
v-model:value="modalState.from.neType"
|
||||
:options="NE_TYPE_LIST.map(v => ({ value: v }))"
|
||||
:disabled="modalState.from.id !== ''"
|
||||
:disabled="modalState.from.id !== undefined"
|
||||
>
|
||||
<a-input
|
||||
allow-clear
|
||||
:placeholder="t('common.inputPlease')"
|
||||
:maxlength="32"
|
||||
:disabled="modalState.from.id !== ''"
|
||||
:disabled="modalState.from.id !== undefined"
|
||||
>
|
||||
</a-input>
|
||||
</a-auto-complete>
|
||||
|
||||
Reference in New Issue
Block a user