| | |
| | | this.form.date[0] = moment().format('YYYY-MM-DD') |
| | | } |
| | | // console.log(this.months) |
| | | this.$HTTP.post('/api/blade-cps/shift-off-day/list', { |
| | | this.$HTTP.post('/api/smis/shift-off-day/list', { |
| | | year: currentYear, |
| | | startOffDay: `${currentYear}-01-01`, |
| | | endOffDay: `${currentYear}-12-31` |
| | |
| | | status: 1, |
| | | dateDTOList: list |
| | | } |
| | | this.$HTTP.post('/api/blade-cps/calendar', data).then(res => { |
| | | this.$HTTP.post('/api/smis/calendar', data).then(res => { |
| | | if (res.code === 200) { |
| | | this.$emit('success') |
| | | } else { |
| | |
| | | id: this.drawerInfo.id, |
| | | dateDTOList: list |
| | | } |
| | | this.$HTTP.put('/api/blade-cps/calendar', data).then(res => { |
| | | this.$HTTP.put('/api/smis/calendar', data).then(res => { |
| | | if (res.code === 200) { |
| | | this.$emit('success') |
| | | } else { |