|
@@ -191,7 +191,7 @@
|
|
:show-dialog="false"
|
|
:show-dialog="false"
|
|
:title="'取消月报'"
|
|
:title="'取消月报'"
|
|
width="320px"
|
|
width="320px"
|
|
- @succes="$router.push({ path: '/monthlyReport/index' })"
|
|
|
|
|
|
+ @succes="$router.push({ path: '/monthlyReport/index' });window.log({ c: 'report_edit', d: 'report_edit_cancel' })"
|
|
@cancel="$refs.dialogCancel.visible = false"
|
|
@cancel="$refs.dialogCancel.visible = false"
|
|
>
|
|
>
|
|
<div class="report-delete">
|
|
<div class="report-delete">
|
|
@@ -468,6 +468,7 @@ export default {
|
|
this.$store.commit('monthlyReportEdit/SET_LOADING', false)
|
|
this.$store.commit('monthlyReportEdit/SET_LOADING', false)
|
|
}
|
|
}
|
|
if (key === 'cb') {
|
|
if (key === 'cb') {
|
|
|
|
+ window.log({ c: 'report_edit', d: 'report_edit_save' })
|
|
this.$message.success('保存成功!')
|
|
this.$message.success('保存成功!')
|
|
// this.$router.push({ path: '/monthlyReport/index' })
|
|
// this.$router.push({ path: '/monthlyReport/index' })
|
|
}
|
|
}
|
|
@@ -481,18 +482,21 @@ export default {
|
|
this.$store.dispatch('monthlyReportEdit/confirmReport', {
|
|
this.$store.dispatch('monthlyReportEdit/confirmReport', {
|
|
id: this.$route.query.subReportId,
|
|
id: this.$route.query.subReportId,
|
|
callback: () => {
|
|
callback: () => {
|
|
|
|
+ window.log({ c: 'report_edit', d: 'report_edit_confirm' })
|
|
this.$store.commit('monthlyReportEdit/SET_LOADING', false)
|
|
this.$store.commit('monthlyReportEdit/SET_LOADING', false)
|
|
this.$router.push({ path: '/monthlyReport/index' })
|
|
this.$router.push({ path: '/monthlyReport/index' })
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 删除月报
|
|
deleteReport(key) {
|
|
deleteReport(key) {
|
|
this.$refs['dialogDelete'].visible = false
|
|
this.$refs['dialogDelete'].visible = false
|
|
if (key === '删除') {
|
|
if (key === '删除') {
|
|
this.$store.dispatch('monthlyReportEdit/deleteReport', {
|
|
this.$store.dispatch('monthlyReportEdit/deleteReport', {
|
|
key,
|
|
key,
|
|
callback: () => {
|
|
callback: () => {
|
|
|
|
+ window.log({ c: 'report_edit', d: 'report_edit_delete' })
|
|
this.$router.push({ path: '/monthlyReport/index' })
|
|
this.$router.push({ path: '/monthlyReport/index' })
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -500,12 +504,14 @@ export default {
|
|
// this.$message('删除操作已取消!')
|
|
// this.$message('删除操作已取消!')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 月报发布确认
|
|
publishAllReport(key) {
|
|
publishAllReport(key) {
|
|
this.$refs['dialogPublishAll'].visible = false
|
|
this.$refs['dialogPublishAll'].visible = false
|
|
this.$store.commit('monthlyReportEdit/SET_LOADING', true)
|
|
this.$store.commit('monthlyReportEdit/SET_LOADING', true)
|
|
this.$store.dispatch('monthlyReportEdit/publishAllReport', {
|
|
this.$store.dispatch('monthlyReportEdit/publishAllReport', {
|
|
id: this.$route.query.reportId,
|
|
id: this.$route.query.reportId,
|
|
callback: () => {
|
|
callback: () => {
|
|
|
|
+ window.log({ c: 'report_edit', d: 'report_edit_push' })
|
|
this.$store.commit('monthlyReportEdit/SET_LOADING', false)
|
|
this.$store.commit('monthlyReportEdit/SET_LOADING', false)
|
|
this.$router.push({ path: '/monthlyReport/index' })
|
|
this.$router.push({ path: '/monthlyReport/index' })
|
|
}
|
|
}
|
|
@@ -531,6 +537,7 @@ export default {
|
|
this.$store.dispatch('monthlyReportEdit/sendReport', {
|
|
this.$store.dispatch('monthlyReportEdit/sendReport', {
|
|
id: this.$route.query.reportId,
|
|
id: this.$route.query.reportId,
|
|
callback: () => {
|
|
callback: () => {
|
|
|
|
+ window.log({ c: 'report_edit', d: 'report_edit_send' })
|
|
this.$store.commit('monthlyReportEdit/SET_LOADING', false)
|
|
this.$store.commit('monthlyReportEdit/SET_LOADING', false)
|
|
// this.$store.commit('monthlyReportEdit/SET_LOADING', false)
|
|
// this.$store.commit('monthlyReportEdit/SET_LOADING', false)
|
|
this.$router.push({ path: '/monthlyReport/index' })
|
|
this.$router.push({ path: '/monthlyReport/index' })
|
|
@@ -567,6 +574,7 @@ export default {
|
|
subReportIds: list
|
|
subReportIds: list
|
|
},
|
|
},
|
|
callback: () => {
|
|
callback: () => {
|
|
|
|
+ window.log({ c: 'report_edit', d: 'report_edit_return' })
|
|
this.$store.commit('monthlyReportEdit/SET_LOADING', false)
|
|
this.$store.commit('monthlyReportEdit/SET_LOADING', false)
|
|
this.$message.success('退回成功!')
|
|
this.$message.success('退回成功!')
|
|
this.$router.push({ path: '/monthlyReport/index' })
|
|
this.$router.push({ path: '/monthlyReport/index' })
|