|
@@ -7,7 +7,7 @@
|
|
@click.stop="$store.commit('monthlyReportEdit/INIT_EDIT_KEYS')"
|
|
@click.stop="$store.commit('monthlyReportEdit/INIT_EDIT_KEYS')"
|
|
>
|
|
>
|
|
<headerCom :key="subTitle" title="月报" :sub-title="subTitle" :address="address">
|
|
<headerCom :key="subTitle" title="月报" :sub-title="subTitle" :address="address">
|
|
- <template v-if="pageDate" slot="content">
|
|
|
|
|
|
+ <template v-if="pageDate && !isHistory" slot="content">
|
|
<el-button
|
|
<el-button
|
|
v-if="pageDate && pageDate.status < 20 && (roleCode === 100 || roleCode === 50 || roleCode === 0)"
|
|
v-if="pageDate && pageDate.status < 20 && (roleCode === 100 || roleCode === 50 || roleCode === 0)"
|
|
type="primary"
|
|
type="primary"
|
|
@@ -264,7 +264,7 @@ export default {
|
|
return pathName
|
|
return pathName
|
|
},
|
|
},
|
|
...mapState('monthlyReportEdit',
|
|
...mapState('monthlyReportEdit',
|
|
- ['pageDate', 'tabPageData', 'subTitle', 'tabsList', 'tabsActive', 'treeData', 'subTabsActive', 'domKeys', 'offsetList', 'pageType', 'subReportInfo', 'roleCode', 'loading', 'version']
|
|
|
|
|
|
+ ['pageDate', 'tabPageData', 'subTitle', 'tabsList', 'tabsActive', 'treeData', 'subTabsActive', 'domKeys', 'offsetList', 'pageType', 'subReportInfo', 'roleCode', 'loading', 'version', 'isHistory']
|
|
)
|
|
)
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -273,6 +273,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
|
|
+ this.SETISHISTORY(this.$route.query.isHistory)
|
|
this.INIT_STATE_DATA()
|
|
this.INIT_STATE_DATA()
|
|
this.SET_LOADING(true)
|
|
this.SET_LOADING(true)
|
|
this.indexShow = true
|
|
this.indexShow = true
|
|
@@ -301,6 +302,7 @@ export default {
|
|
id: this.$route.query.reportId,
|
|
id: this.$route.query.reportId,
|
|
subActive: this.$route.query.subActive,
|
|
subActive: this.$route.query.subActive,
|
|
subReportId: this.$route.query.subReportId,
|
|
subReportId: this.$route.query.subReportId,
|
|
|
|
+ historyId: this.$route.query.historyId,
|
|
windowHref: window.location.href
|
|
windowHref: window.location.href
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -328,7 +330,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapMutations('monthlyReportEdit',
|
|
...mapMutations('monthlyReportEdit',
|
|
- ['INIT_STATE_DATA', 'SET_LOADING', 'SET_PAGE_TYPE', 'SET_SUB_TITLE']
|
|
|
|
|
|
+ ['INIT_STATE_DATA', 'SET_LOADING', 'SET_PAGE_TYPE', 'SET_SUB_TITLE', 'SETISHISTORY']
|
|
),
|
|
),
|
|
...mapActions('monthlyReportEdit',
|
|
...mapActions('monthlyReportEdit',
|
|
['getUserPermission', 'deleteReport', 'setSelectEnum', 'initPageData', 'upDateReport', 'upDateSubReport', 'confirmReport']
|
|
['getUserPermission', 'deleteReport', 'setSelectEnum', 'initPageData', 'upDateReport', 'upDateSubReport', 'confirmReport']
|