fix: id类型错误
This commit is contained in:
@@ -25,8 +25,8 @@ const props = defineProps({
|
||||
},
|
||||
/**记录ID 优先级高于neId */
|
||||
editId: {
|
||||
type: String,
|
||||
default: '',
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
/**网元ID */
|
||||
neId: {
|
||||
@@ -219,7 +219,7 @@ function fnDownCode() {
|
||||
* 对话框弹出显示为 ID编辑
|
||||
* @param id id
|
||||
*/
|
||||
function fnModalVisibleById(id: string) {
|
||||
function fnModalVisibleById(id: number) {
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
getNeLicense(id)
|
||||
.then(res => {
|
||||
@@ -269,7 +269,7 @@ watch(
|
||||
() => props.open,
|
||||
val => {
|
||||
if (val) {
|
||||
if (props.editId) {
|
||||
if (props.editId > 0) {
|
||||
fnModalVisibleById(props.editId);
|
||||
}
|
||||
if (props.neType && props.neId) {
|
||||
|
||||
Reference in New Issue
Block a user