|
@@ -5,7 +5,8 @@ import {
|
|
|
delMonthlyReport,
|
|
|
getAllSubReportCatalog,
|
|
|
getSubReport,
|
|
|
- getReportDependence,
|
|
|
+ // getReportDependence,
|
|
|
+ getDeptArch,
|
|
|
sendConfirm,
|
|
|
returnReport,
|
|
|
sendSubConfirm,
|
|
@@ -93,7 +94,7 @@ export default {
|
|
|
// state.subTitle = state.pageDate.reportName
|
|
|
const subReports = [...params.subReports]
|
|
|
// 设置部门数据
|
|
|
- state.selectEnum = [...params.dependence.deptArch.children]
|
|
|
+ // state.selectEnum = [...params.dependence.deptArch.children]
|
|
|
setDeptArch(state.selectEnum)
|
|
|
// 设置端数据
|
|
|
if (params.dependence.clientType) {
|
|
@@ -652,6 +653,11 @@ export default {
|
|
|
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') {
|
|
|
+ res.data.splice(0,0,{depth: 1, fromUser: false, hiddenAncestor: null, isVisible: true, subTitles: null, title: "整体概览", type: "Head1", content: []})
|
|
|
+ console.log(params)
|
|
|
+ }
|
|
|
commit('SET_TAB_PAGE_DATA', {
|
|
|
data:
|
|
|
pageType === 'readAll' ? res.data : res.data.reportCatalog.children,
|
|
@@ -715,11 +721,11 @@ export default {
|
|
|
},
|
|
|
// 获取部门数据
|
|
|
async setSelectEnum({ commit }, reportId) {
|
|
|
- const res = await getReportDependence({
|
|
|
+ const res = await getDeptArch({
|
|
|
reportId
|
|
|
})
|
|
|
if (res.code === 200) {
|
|
|
- commit('SET_SELECT_ENUM', res.data.deptArch.children)
|
|
|
+ commit('SET_SELECT_ENUM', res.data.children)
|
|
|
}
|
|
|
},
|
|
|
// 删除月报
|