|
@@ -405,9 +405,9 @@ export default {
|
|
|
},
|
|
|
// 获取部门数据
|
|
|
SET_SELECT_ENUM(state, params) {
|
|
|
- console.log(params);
|
|
|
+ console.log(params)
|
|
|
state.selectEnum = params
|
|
|
- console.log(state.selectEnum);
|
|
|
+ console.log(state.selectEnum)
|
|
|
// setDeptArch(state.selectEnum)
|
|
|
},
|
|
|
// 标记为本月重点问题
|
|
@@ -655,9 +655,9 @@ export default {
|
|
|
// commit('SET_SELECT_ENUM', res.data.dependence.deptArch.children)
|
|
|
commit('SET_PAGE_DATA', res.data)
|
|
|
}
|
|
|
- console.log(res);
|
|
|
+ console.log(res)
|
|
|
if (pageType === 'readAll' && params.catalogTitle.search(/服务端详情|客户端详情/) > -1) {
|
|
|
- res.data.splice(0,0,{depth: 1, fromUser: false, hiddenAncestor: null, isVisible: true, subTitles: null, title: "整体概览", type: "Head1", content: []})
|
|
|
+ res.data.splice(0, 0, { depth: 1, fromUser: false, hiddenAncestor: null, isVisible: true, subTitles: null, title: '整体概览', type: 'Head1', content: [{ type: 'overallOverviewo' }] })
|
|
|
console.log(params)
|
|
|
}
|
|
|
commit('SET_TAB_PAGE_DATA', {
|
|
@@ -724,14 +724,14 @@ export default {
|
|
|
// 获取部门数据
|
|
|
async setSelectEnum({ commit }, reportId) {
|
|
|
const depth = JSON.parse(window.localStorage.getItem('depth'))
|
|
|
- console.log(depth);
|
|
|
- if(!depth){
|
|
|
- const res = await getDeptArch({ reportId })
|
|
|
+ console.log(depth)
|
|
|
+ if (!depth) {
|
|
|
+ const res = await getDeptArch({ reportId })
|
|
|
if (res.code === 200) {
|
|
|
window.localStorage.setItem('depth', JSON.stringify(res.data.children))
|
|
|
commit('SET_SELECT_ENUM', res.data.children)
|
|
|
}
|
|
|
- } else{
|
|
|
+ } else {
|
|
|
commit('SET_SELECT_ENUM', depth)
|
|
|
}
|
|
|
},
|