|
@@ -95,7 +95,7 @@ export default {
|
|
|
const subReports = [...params.subReports]
|
|
|
// 设置部门数据
|
|
|
// state.selectEnum = [...params.dependence.deptArch.children]
|
|
|
- setDeptArch(state.selectEnum)
|
|
|
+ // setDeptArch(state.selectEnum)
|
|
|
// 设置端数据
|
|
|
if (params.dependence.clientType) {
|
|
|
state.clientTypeList = [...params.dependence.clientType]
|
|
@@ -405,8 +405,10 @@ export default {
|
|
|
},
|
|
|
// 获取部门数据
|
|
|
SET_SELECT_ENUM(state, params) {
|
|
|
+ console.log(params);
|
|
|
state.selectEnum = params
|
|
|
- setDeptArch(state.selectEnum)
|
|
|
+ console.log(state.selectEnum);
|
|
|
+ // setDeptArch(state.selectEnum)
|
|
|
},
|
|
|
// 标记为本月重点问题
|
|
|
MARK_ISSUES(state, { cascaderValue, normalAreaName, multiplePeople }) {
|
|
@@ -650,11 +652,11 @@ export default {
|
|
|
// 单个月报与完整月报数据梳理
|
|
|
if (pageType === 'read' || pageType === 'edit') {
|
|
|
commit('SET_CLIENT_TYPE_LIST', res.data.dependence.clientType)
|
|
|
- commit('SET_SELECT_ENUM', res.data.dependence.deptArch.children)
|
|
|
+ // commit('SET_SELECT_ENUM', res.data.dependence.deptArch.children)
|
|
|
commit('SET_PAGE_DATA', res.data)
|
|
|
}
|
|
|
console.log(res);
|
|
|
- if (params.catalogTitle.search(/服务端详情|客户端详情/) > -1 && pageType === 'readAll') {
|
|
|
+ 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: []})
|
|
|
console.log(params)
|
|
|
}
|
|
@@ -721,11 +723,16 @@ export default {
|
|
|
},
|
|
|
// 获取部门数据
|
|
|
async setSelectEnum({ commit }, reportId) {
|
|
|
- const res = await getDeptArch({
|
|
|
- reportId
|
|
|
- })
|
|
|
- if (res.code === 200) {
|
|
|
- commit('SET_SELECT_ENUM', res.data.children)
|
|
|
+ const depth = JSON.parse(window.localStorage.getItem('depth'))
|
|
|
+ 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{
|
|
|
+ commit('SET_SELECT_ENUM', depth)
|
|
|
}
|
|
|
},
|
|
|
// 删除月报
|