更新 Web/src/views/system/codeGen/component/editCodeGenDialog.vue
选择父菜单修改默认前端路径
This commit is contained in:
parent
9cd1f65d23
commit
1b2486fa35
@ -87,6 +87,7 @@
|
||||
clearable
|
||||
class="w100"
|
||||
v-model="state.ruleForm.menuPid"
|
||||
@change="menuChange"
|
||||
>
|
||||
<template #default="{ node, data }">
|
||||
<span>{{ data.title }}</span>
|
||||
@ -210,6 +211,11 @@ const tableChanged = (item: any) => {
|
||||
state.ruleForm.busName = item.tableComment;
|
||||
};
|
||||
|
||||
// 菜单改变
|
||||
const menuChange = (menu: any) => {
|
||||
state.ruleForm.pagePath = state.menuData.find((x) => x.id == menu)?.name;
|
||||
};
|
||||
|
||||
// print改变
|
||||
const printTypeChanged = () => {
|
||||
if (state.ruleForm.printType === '') return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user