فهرست منبع

月报设置:确认逻辑修复

洪海涛 4 سال پیش
والد
کامیت
73f52d2c1a
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 2 2
      src/store/modules/monthlyReport/edit/index.js
  2. 1 0
      src/views/monthlyReport/childrenPage/editReport/index.vue

+ 2 - 2
src/store/modules/monthlyReport/edit/index.js

@@ -590,9 +590,9 @@ export default {
       }
       }
     },
     },
     // 月报发送
     // 月报发送
-    async sendReport({ commit, state, context }, { cb }) {
+    async sendReport({ commit, state, context }, { id, cb }) {
       const res = await sendConfirm({
       const res = await sendConfirm({
-        id: state.pageDate.id
+        id
       })
       })
       if (res.code === 200) {
       if (res.code === 200) {
         message.success('发送成功!')
         message.success('发送成功!')

+ 1 - 0
src/views/monthlyReport/childrenPage/editReport/index.vue

@@ -388,6 +388,7 @@ export default {
         return
         return
       }
       }
       this.$store.dispatch('monthlyReportEdit/sendReport', {
       this.$store.dispatch('monthlyReportEdit/sendReport', {
+        id: this.$route.query.reportId,
         cb: () => {
         cb: () => {
           this.$router.push({ path: '/monthlyReport/index' })
           this.$router.push({ path: '/monthlyReport/index' })
         }
         }