|
|
@@ -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
|