Przeglądaj źródła

排班记录增加历史排班复显

(cherry picked from commit 29a607dfe7cf4844c0820d5cc3fbc5fa3edcdfe1)
zhonghuizhen 1 rok temu
rodzic
commit
a8aaad4d8f
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/views/business/​scheduleManage/edit.vue

+ 2 - 2
src/views/business/​scheduleManage/edit.vue

@@ -656,7 +656,7 @@ export default {
                     return
                 }
                 const response = await getStaffSchedule({ id: this.pageParams.id })
-                const { staffScheduleDetailPoList: records, title, endDate, startDate, type, overview, config, status, id } = response.data
+                const { staffScheduleDetailPoList: records, title, endDate, startDate, type, overview, config, status, id, oldScheduleId } = response.data
                 const temp = config ? JSON.parse(config) : {}
                 this.responseData = response.data
                 console.log('responseData:', response.data)
@@ -668,6 +668,7 @@ export default {
                     config: temp.id,
                     dateRange: [startDate, endDate],
                     approver: temp.approver || [],
+                    oldScheduleId: oldScheduleId,
                     overview: overview,
                     scheduleType: type,
                     scheduleRule: temp.scheduleRule || [],
@@ -995,7 +996,6 @@ export default {
             const self = this
             if (val) {
                 await getStaffSchedule({ id: val }).then((res) => {
-                    debugger
                     const { staffScheduleDetailPoList: records, title, endDate, startDate, overview, config,type } = res.data
                     const temp = config ? JSON.parse(config) : {}
                     self.responseData = res.data