From 00d714e17b44527f788b06648c681d73f1afb815 Mon Sep 17 00:00:00 2001 From: "JinLu.Yin" <411641505@qq.com> Date: Fri, 10 Jun 2022 22:59:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E7=8F=AD=E6=97=A5=E5=8E=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/cal/calendar/calendarType.vue | 41 +++++++++++++++++++-- 1 file changed, 38 insertions(+), 3 deletions(-) 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() {