From 65f74a05a6e32bc98b7d92c9d00db0ca9ac5db41 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=8F=E8=AF=BA?= <1253070437@qq.com>
Date: Sun, 26 Nov 2023 01:28:36 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91=E9=92=88?=
=?UTF-8?q?=E5=AF=B9=E8=8F=9C=E5=8D=95=E9=9A=90=E8=97=8F=E5=8A=9F=E8=83=BD?=
=?UTF-8?q?=E5=8A=A0=E5=85=A5=E5=AD=97=E5=85=B8=E5=B0=8F=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/sys/resource/menu/form.vue | 15 ++----
.../src/views/sys/resource/menu/index.vue | 46 ++++++++++++-------
.../user/service/impl/SysUserServiceImpl.java | 2 +-
3 files changed, 33 insertions(+), 30 deletions(-)
diff --git a/snowy-admin-web/src/views/sys/resource/menu/form.vue b/snowy-admin-web/src/views/sys/resource/menu/form.vue
index 007c11c5..b15765f0 100644
--- a/snowy-admin-web/src/views/sys/resource/menu/form.vue
+++ b/snowy-admin-web/src/views/sys/resource/menu/form.vue
@@ -157,12 +157,12 @@
formData.value = record
// 因为版本升级后该字段无参数,所以默认为可见
if (!record.visible) {
- formData.value.visible = 'true'
+ formData.value.visible = 'TRUE'
}
} else {
formData.value = {
menuType: 'MENU',
- visible: 'true',
+ visible: 'TRUE',
sortCode: 99
}
formData.value = Object.assign(formData.value, record)
@@ -219,16 +219,7 @@
}
const categoryOptions = tool.dictList('MENU_TYPE')
- const visibleOptions = [
- {
- label: '显示',
- value: 'true'
- },
- {
- label: '隐藏',
- value: 'false'
- }
- ]
+ const visibleOptions = tool.dictList('MENU_VISIBLE')
// 验证并提交数据
const onSubmit = () => {
formRef.value
diff --git a/snowy-admin-web/src/views/sys/resource/menu/index.vue b/snowy-admin-web/src/views/sys/resource/menu/index.vue
index 70837e56..70c93c1e 100644
--- a/snowy-admin-web/src/views/sys/resource/menu/index.vue
+++ b/snowy-admin-web/src/views/sys/resource/menu/index.vue
@@ -35,7 +35,7 @@
>