diff --git a/src/views/mes/cal/calendar/calendarType.vue b/src/views/mes/cal/calendar/calendarType.vue index 29ab808..9fa674b 100644 --- a/src/views/mes/cal/calendar/calendarType.vue +++ b/src/views/mes/cal/calendar/calendarType.vue @@ -28,7 +28,17 @@ - + + +
+ {{ teamShift.teamName }} + {{ teamShift.teamName }} + {{ teamShift.teamName }} + {{ teamShift.teamName }} +
+
+
+ @@ -70,7 +81,31 @@ export default { date: new Date(), holidayList:[],//假日 workdayList:[],//工作日 - selectedType:null + selectedType:null, + calendarDayList:[ + { + theDay:'2022-06-04', + shiftType: 'SHIFT_TWO', + teamShifts:[{teamName: '注塑1组',shiftName:'白班',orderNum: 1},{teamName: '注塑2组',shiftName:'中班',orderNum: 2},{teamName: '注塑3组',shiftName:'晚班',orderNum: 3}] + }, + { + theDay:'2022-06-13', + shiftType: 'SHIFT_TWO', + teamShifts:[{teamName: '注塑1组',shiftName:'白班',orderNum: 1},{teamName: '注塑2组',shiftName:'中班',orderNum: 2},{teamName: '注塑3组',shiftName:'晚班',orderNum: 3}] + }, + { + theDay:'2022-06-14', + shiftType: 'SHIFT_THREE', + teamShifts:[{teamName: '注塑1组',shiftName:'白班',orderNum: 1},{teamName: '注塑2组',shiftName:'中班',orderNum: 2},{teamName: '注塑3组',shiftName:'晚班',orderNum: 3}] + } + ] + } + }, + watch:{ + date:{ + handler(newVal,oldVal){ + console.log(newVal.getFullYear()+'-'+(newVal.getMonth()+1)+'-'+newVal.getDate()); + } } }, created() {