|
@ -5,8 +5,8 @@ import global from '../../utils/common.js' |
|
|
import store from '../../store' |
|
|
import store from '../../store' |
|
|
import router, { resetRouter } from '../../router' |
|
|
import router, { resetRouter } from '../../router' |
|
|
import Vue from 'vue' |
|
|
import Vue from 'vue' |
|
|
import { getOwnList, getRenwuListByPath } from '@/api/renwu' |
|
|
// import { getOwnList, getRenwuListByPath } from '@/api/renwu'
|
|
|
import { getNeedRecordList } from '@/api/ysjl' |
|
|
// import { getNeedRecordList } from '@/api/ysjl'
|
|
|
|
|
|
|
|
|
const user = { |
|
|
const user = { |
|
|
state: { |
|
|
state: { |
|
@ -126,7 +126,7 @@ const user = { |
|
|
setToken() |
|
|
setToken() |
|
|
global.it = data.userVO.id |
|
|
global.it = data.userVO.id |
|
|
// 查询相关待办条数
|
|
|
// 查询相关待办条数
|
|
|
const messagePush = [] |
|
|
/* const messagePush = [] |
|
|
const departmentId = user.state.departmentId |
|
|
const departmentId = user.state.departmentId |
|
|
getOwnList({ // 我的任务
|
|
|
getOwnList({ // 我的任务
|
|
|
pageNum: 1, // 页码
|
|
|
pageNum: 1, // 页码
|
|
@ -263,7 +263,7 @@ const user = { |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
user.state.messageCount = messagePush // 赋值要放在 set_user 后面,否则被冲刷掉了。
|
|
|
user.state.messageCount = messagePush*/ // 赋值要放在 set_user 后面,否则被冲刷掉了。 |
|
|
// 查询路由
|
|
|
// 查询路由
|
|
|
const asyncRouter = filterAsyncRouter(data.menuList) |
|
|
const asyncRouter = filterAsyncRouter(data.menuList) |
|
|
asyncRouter.push({ path: '*', redirect: '/404', hidden: true }) |
|
|
asyncRouter.push({ path: '*', redirect: '/404', hidden: true }) |
|
|