@@ -590,9 +590,9 @@ export default {
}
},
// 月报发送
- async sendReport({ commit, state, context }, { cb }) {
+ async sendReport({ commit, state, context }, { id, cb }) {
const res = await sendConfirm({
- id: state.pageDate.id
+ id
})
if (res.code === 200) {
message.success('发送成功!')
@@ -388,6 +388,7 @@ export default {
return
this.$store.dispatch('monthlyReportEdit/sendReport', {
+ id: this.$route.query.reportId,
cb: () => {
this.$router.push({ path: '/monthlyReport/index' })