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