diff --git a/src/api/disRevenue/resource.js b/src/api/disRevenue/resource.js index 07a196f..ab0c2b7 100644 --- a/src/api/disRevenue/resource.js +++ b/src/api/disRevenue/resource.js @@ -720,7 +720,7 @@ export function getLogicalNode() { method: 'get', }) } - +// 所有资源管理的列表 export function getRegistList(query) { return request({ url: '/system/registration/getRegistList', diff --git a/src/api/menu.js b/src/api/menu.js index 0e7f7ff..891e07d 100644 --- a/src/api/menu.js +++ b/src/api/menu.js @@ -24,3 +24,18 @@ export function getColumnList(data) { data: data }) } +// 点击菜单 计数 +export function clicMenuCount(data) { + return request({ + url: '/system/sysMenuClick', + method: 'post', + data: data + }) +} +// 获取最受欢迎的前八位菜单 +export function getMenuTopEight() { + return request({ + url: '/system/sysMenuClick/getMenuListTopEight', + method: 'get' + }) +} diff --git a/src/components/table/index.vue b/src/components/table/index.vue index 09e55e8..65e2878 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -369,6 +369,7 @@ this.selectList = []; this.ids = []; if (tableInstance) { + console.log('rows===',rows); if (rows && rows.length > 0) { rows.forEach(row => { tableInstance.toggleRowSelection(row, true); @@ -380,6 +381,34 @@ } } }, + // 提供给父组件调用的方法:默认选中值 otherRow:新的回显方式,防止破坏原来rows判断的逻辑与回显 + defaultSelectRows(rows,otherRow){ + const tableInstance = this.config && this.config.tableKey ? this.$refs[`tableRef_${this.config.tableKey}`] : this.$refs.selChangeList; + this.selectList = []; + this.ids = []; + if (tableInstance) { + if (otherRow && otherRow.length > 0) { + otherRow.forEach(rowVal => { + this.tableList.some(tabVal => { + if (rowVal.id === tabVal.id) { + tableInstance.toggleRowSelection(tabVal, true); + this.selectList.push(tabVal); + this.ids.push(tabVal.id); + return true; + } + }); + }); + } else if (rows && rows.length > 0) { + rows.forEach(row => { + tableInstance.toggleRowSelection(row, true); + this.selectList.push(row); + this.ids.push(row.id); + }); + } else { + tableInstance.clearSelection(); + } + } + }, renderList() { this.$emit("fnRenderList"); }, diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index 53cc7b0..bddb65f 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -1,99 +1,99 @@ - - - + + + diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index cd86ea6..26bf6e3 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -11,6 +11,7 @@ :active-text-color="settings.theme" :collapse-transition="false" mode="vertical" + @select="handleMenuSelect" > {}); + }, + // 处理菜单 + menuHandle(menu) { + menu.forEach(item => { + if (!item.hidden) { + item.children.forEach(val => { + if (!val.hidden) { + if (val.children) { + val.path = item.path + '/' + val.path; + this.menuHandle([val]); + } else { + let link = item.path && item.path === '/' ? item.path + val.path : item.path + '/' + val.path; + this.menuList[link] = val.meta.title; + } + } + }); + } + }); + }, + } } diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index fa837fc..f0b0837 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -1,337 +1,337 @@ - - - - - - - + + + + + + + diff --git a/src/router/index.js b/src/router/index.js index 51642cc..ffd4d0c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -6,6 +6,7 @@ Vue.use(Router) /* Layout */ import Layout from '@/layout' import DialogView from '@/views/earnManage/server/dialogView.vue' +import Welcome from '@/views/welcome.vue' /** * Note: 路由配置项 @@ -62,19 +63,12 @@ export const constantRoutes = [ component: () => import('@/views/error/401'), hidden: true }, - // { - // path: '', - // component: Layout, - // redirect: 'index', - // children: [ - // { - // path: 'index', - // component: () => import('@/views/index'), - // name: 'Index', - // meta: { title: '首页', icon: 'dashboard', affix: true } - // } - // ] - // }, + { + path: '', + component: Welcome, + hidden: true, + name: 'Welcome' + }, { path: '/user', component: Layout, diff --git a/src/views/earnManage/busValueCount/details.vue b/src/views/earnManage/busValueCount/details.vue index 39e0d79..5e95995 100644 --- a/src/views/earnManage/busValueCount/details.vue +++ b/src/views/earnManage/busValueCount/details.vue @@ -2,22 +2,24 @@
- + - 用户管理 - 配置管理 + + - +
- +
- - + +
+ +
@@ -32,10 +34,9 @@