Commit 9f802e15 authored by 沈翠玲's avatar 沈翠玲

排班日历

parent 30fb475c
......@@ -124,16 +124,18 @@ export default {
this.holidayList =[];
this.workdayList =[];
let that = this;
const params = JSON.parse(JSON.stringify(this.queryParams))
if (this.teamShiftQueryParams.workunitName) {
this.queryParams.workunitName = this.teamShiftQueryParams.workunitName
params.workunitName = this.teamShiftQueryParams.workunitName
}
if (type) {
delete this.queryParams.workunitName
delete params.workunitName
} else {
delete this.queryParams.workunitIds
delete params.workunitIds
params['id'] = this.selectRow.id
}
const fn = type ? getCalWorkunits : listCalholiday
fn(this.queryParams).then(response => {
fn(params).then(response => {
this.calendarDayList = response.data;
if(response.data !=null){
response.data.forEach(theDay => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment