From fb30ee6255abf18e0830742db7209fa8a732d3c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BC=9F=E5=BA=9A?= Date: Tue, 22 Nov 2022 11:34:33 +0800 Subject: [PATCH] =?UTF-8?q?update=EF=BC=9A=E8=8F=9C=E5=8D=95=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=96=B0=E5=A2=9E=E8=B5=84=E6=BA=90=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 16 ++++++++-------- src/page/main/develop/menu/index.vue | 3 +++ src/page/main/develop/menu/menu-form.vue | 5 ++++- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/App.vue b/src/App.vue index b3c7081..ea27381 100644 --- a/src/App.vue +++ b/src/App.vue @@ -92,21 +92,21 @@ export default { menuIndex:'', } }, - created(){}, - mounted() { + created(){ this.initMsg() }, + mounted() { + }, methods:{ openMsg(data) { - console.log(123123123) this.readFlag = !this.readFlag; }, initMsg() { - if(this.userInfo && this.userInfo.userId) { - this.$trace.setOptionValue('userId',this.userInfo.userId) - this.$trace.setOptionValue('userType',this.userInfo.userType) - this.$trace.setOptionValue('roleId',this.userInfo.roleIds.join(',')) - this.$trace.setOptionValue('organization',this.userInfo.orgId) + if(this.userInfo && this.userInfo.system_id) { + this.$trace.setOptionValue('userId',this.userInfo.system_id) + // this.$trace.setOptionValue('userType',this.userInfo.userType) + // this.$trace.setOptionValue('roleId',this.userInfo.roleIds.join(',')) + this.$trace.setOptionValue('organization',this.userInfo.organization_id) } }, handleClose() { diff --git a/src/page/main/develop/menu/index.vue b/src/page/main/develop/menu/index.vue index cd27ed0..db9db51 100644 --- a/src/page/main/develop/menu/index.vue +++ b/src/page/main/develop/menu/index.vue @@ -305,6 +305,7 @@ const fileAction = (val,data,parent,disabled=false) => { state: 1, // 启用状态 menu_url: "", // 路径 menu_logo: "", // 图标 + source: "", level: data.level, // 当前的level p_menu_type: parent ? parent.menu_type : 0 // 父级的类型,用于判断菜单下不能建目录 } @@ -325,6 +326,7 @@ const fileAction = (val,data,parent,disabled=false) => { state: 1, menu_url: "", menu_logo: "", + source: "", p_menu_type: data.menu_type, level: data.level + 1 } @@ -443,6 +445,7 @@ const saveMenu = (el,type) => { state: el.menuForm.state, menu_url: el.menuForm.menu_url, menu_logo: el.menuForm.menu_logo, + source: el.menuForm.menu_type == 0 ? "" : el.menuForm.source, } if (state.selectData.id) { // 编辑 axios diff --git a/src/page/main/develop/menu/menu-form.vue b/src/page/main/develop/menu/menu-form.vue index 25b9aba..2f0f717 100644 --- a/src/page/main/develop/menu/menu-form.vue +++ b/src/page/main/develop/menu/menu-form.vue @@ -90,7 +90,9 @@ - + + + @@ -117,6 +119,7 @@ const state = reactive({ state: 1, menu_url: "", menu_logo: "", + source: "", }, formRules: { menu_name: [ -- 2.26.0