🐛 fix代码生成清空上级菜单后提交数据异常
This commit is contained in:
parent
9dd69d768d
commit
0c561459e9
@ -97,6 +97,7 @@
|
||||
:props="{ checkStrictly: true, value: 'menuId', label: 'menuName', emitPath: false }"
|
||||
placeholder="请选择上级菜单"
|
||||
clearable
|
||||
@change="clearParentMent($event)"
|
||||
v-model="info.parentMenuId">
|
||||
<template #default="{ node, data }">
|
||||
<span>{{ data.menuName }}</span>
|
||||
@ -396,6 +397,11 @@ function tplSelectChange(value) {
|
||||
props.info.subTableFkName = ''
|
||||
}
|
||||
}
|
||||
function clearParentMent(e) {
|
||||
if (e == null) {
|
||||
props.info.parentMenuId = 0
|
||||
}
|
||||
}
|
||||
function setSubTableColumns(value) {
|
||||
if (value == null || value == undefined || value == '') {
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user