mirror of
https://github.com/yangzongzhuan/RuoYi-Vue3.git
synced 2025-06-07 10:49:30 +00:00
修复代码生成上级菜单显示问题
This commit is contained in:
parent
f476e35522
commit
d02ba57ffb
@ -91,11 +91,13 @@
|
||||
<el-icon><question-filled /></el-icon>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<tree-select
|
||||
v-model:value="info.parentMenuId"
|
||||
:options="menuOptions"
|
||||
:objMap="{ value: 'menuId', label: 'menuName', children: 'children' }"
|
||||
<el-tree-select
|
||||
v-model="info.parentMenuId"
|
||||
:data="menuOptions"
|
||||
:props="{ value: 'menuId', label: 'menuName', children: 'children' }"
|
||||
value-key="menuId"
|
||||
placeholder="请选择系统菜单"
|
||||
check-strictly
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -287,6 +289,10 @@ function getMenuTreeselect() {
|
||||
});
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
getMenuTreeselect();
|
||||
})
|
||||
|
||||
watch(() => props.info.subTableName, val => {
|
||||
setSubTableColumns(val);
|
||||
});
|
||||
@ -297,5 +303,4 @@ watch(() => props.info.tplWebType, val => {
|
||||
}
|
||||
});
|
||||
|
||||
getMenuTreeselect();
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user