From 71041b60f259653f8da7baa93b27b0b1f08102aa Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 18 Oct 2022 15:10:01 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E7=94=B3=E8=AF=B7=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=90=8E=E5=BE=85=E5=8A=9E=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=95=B0=E4=B8=8D=E5=88=B7=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/main-sidebar.vue | 10 +++++++++- .../views/modules/myAgent/CompetencyApplication.vue | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/back/src/views/main-sidebar.vue b/back/src/views/main-sidebar.vue index 40f882b0..7a2f1d0e 100644 --- a/back/src/views/main-sidebar.vue +++ b/back/src/views/main-sidebar.vue @@ -37,6 +37,7 @@ import http from '@/utils/request' import SubMenu from "./main-sidebar-sub-menu"; import returnLocationStr from '@/utils/location'; +import bus from '@/views/bus.js' export default { data() { return { @@ -49,12 +50,19 @@ export default { created() { this.getNum() //this.$store.state.sidebarMenuList = window.SITE_CONFIG["menuList"]; + //更新我的待办得数量 + bus.$off('updateTaskNum') + bus.$on('updateTaskNum', () => { + this.getNum() + }) }, methods: { getNum(){ - http.get('/act/task/myToDoTaskNum').then(({ data: res }) => { + http.get('/act/task/myToDoTaskNum').then(({ data: res }) => { this.numObject=res.data let menuList= window.SITE_CONFIG["menuList"]; + console.log('menuList====>',menuList); + console.log('this.numObject====>',this.numObject); for(var i=0;i + + + { - this.getDataList() + this.getDataList(); + bus.$emit('updateTaskNum') }) } } From 811e80a27ccab17351dff7ac8057f7e1df8430c8 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Tue, 18 Oct 2022 15:14:50 +0800 Subject: [PATCH 2/7] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/mixins/view-module.js | 1 - back/src/router/index.js | 2 +- back/src/views/main-sidebar.vue | 99 +- .../views/modules/devtools/generator-menu.vue | 13 +- .../views/modules/sys/menu-add-or-update.vue | 3 +- back/src/views/modules/sys/menu.vue | 7 + front/src/store/modules/user.js | 7 + front/src/views/home/apply.vue | 1660 +++++++++-------- 8 files changed, 972 insertions(+), 820 deletions(-) diff --git a/back/src/mixins/view-module.js b/back/src/mixins/view-module.js index 98b075fb..edd9378c 100644 --- a/back/src/mixins/view-module.js +++ b/back/src/mixins/view-module.js @@ -107,7 +107,6 @@ export default { } else { this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total : 0 } - console.log('数据列表', this.dataList, this.mixinViewModuleOptions.getDataListURL) if (this.dataList[0].type === '组件服务') { this.dataList.map(val => { diff --git a/back/src/router/index.js b/back/src/router/index.js index c386dc1b..08f69ea5 100644 --- a/back/src/router/index.js +++ b/back/src/router/index.js @@ -104,7 +104,7 @@ router.beforeEach((to, from, next) => { Vue.prototype.$message.error(res.msg) return next({ name: 'login' }) } - window.SITE_CONFIG.menuList = res.data + window.SITE_CONFIG.menuList = res.data.filter(item => item.site === 0) fnAddDynamicMenuRoutes(window.SITE_CONFIG.menuList) next({ ...to, replace: true }) }).catch(() => { diff --git a/back/src/views/main-sidebar.vue b/back/src/views/main-sidebar.vue index 40f882b0..66f28d04 100644 --- a/back/src/views/main-sidebar.vue +++ b/back/src/views/main-sidebar.vue @@ -1,8 +1,8 @@ @@ -25,7 +25,7 @@ :menu="menu" > sdddd - + @@ -35,63 +35,64 @@ \ No newline at end of file + diff --git a/back/src/views/modules/sys/menu-add-or-update.vue b/back/src/views/modules/sys/menu-add-or-update.vue index ed7ddd49..318254cb 100644 --- a/back/src/views/modules/sys/menu-add-or-update.vue +++ b/back/src/views/modules/sys/menu-add-or-update.vue @@ -123,11 +123,12 @@ export default { }, // 获取菜单列表 getMenuList () { + console.log('获取菜单位置2') return this.$http.get('/sys/menu/list?type=0').then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } - this.menuList = res.data + this.menuList = res.data.filter(item => item.site === 0) }).catch(() => {}) }, // 获取信息 diff --git a/back/src/views/modules/sys/menu.vue b/back/src/views/modules/sys/menu.vue index 4fe46da1..bbc70ae3 100644 --- a/back/src/views/modules/sys/menu.vue +++ b/back/src/views/modules/sys/menu.vue @@ -1,3 +1,10 @@ + From e96c0c11b1f771813ee7c129605a6539c768ee11 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Tue, 18 Oct 2022 15:23:33 +0800 Subject: [PATCH 3/7] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/main-sidebar.vue | 87 +++++++++++++++++---------------- 1 file changed, 45 insertions(+), 42 deletions(-) diff --git a/back/src/views/main-sidebar.vue b/back/src/views/main-sidebar.vue index b11a8017..62dc4831 100644 --- a/back/src/views/main-sidebar.vue +++ b/back/src/views/main-sidebar.vue @@ -2,7 +2,7 @@ * @Author: kongjun qdkongjun@gmail.com * @Date: 2022-06-20 09:29:59 * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-10-18 15:15:37 + * @LastEditTime: 2022-10-18 15:22:45 * @FilePath: \back\src\views\main-sidebar.vue * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE --> @@ -35,8 +35,8 @@