From 31cffcb9d4c9c774d824c2eb1adc52abc8a3dfb6 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期一, 30 十二月 2024 08:35:42 +0800 Subject: [PATCH] 若依 3.8.9 --- src/views/tool/gen/genInfoForm.vue | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/views/tool/gen/genInfoForm.vue b/src/views/tool/gen/genInfoForm.vue index 2e7ca45..926d268 100644 --- a/src/views/tool/gen/genInfoForm.vue +++ b/src/views/tool/gen/genInfoForm.vue @@ -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 @@ }); } +onMounted(() => { + getMenuTreeselect(); +}) + watch(() => props.info.subTableName, val => { setSubTableColumns(val); }); @@ -297,5 +303,4 @@ } }); -getMenuTreeselect(); </script> -- Gitblit v1.9.3