Commit 39afc5c9 authored by 张海景's avatar 张海景

update:删除不需要的代码

parent 54271902
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
<script> <script>
import { listCalholiday } from "@/api/mes/cal/calholiday"; import { listCalholiday } from "@/api/mes/cal/calholiday";
import { listCalendars } from "@/api/mes/cal/calendar";
import calendar from '@/utils/calendar'; import calendar from '@/utils/calendar';
export default { export default {
name: 'CalendarTypeView', name: 'CalendarTypeView',
...@@ -69,12 +68,7 @@ export default { ...@@ -69,12 +68,7 @@ export default {
watch:{ watch:{
date:{ date:{
handler(newVal,oldVal){ handler(newVal,oldVal){
console.log(newVal.getFullYear()+'-'+(newVal.getMonth()+1)+'-'+newVal.getDate());
// this.teamShiftQueryParams.theDay = newVal.getFullYear()+'-'+(newVal.getMonth()+1)+'-'+newVal.getDate();
this.queryParams.theDay = newVal.getFullYear()+'-'+(newVal.getMonth()+1)+'-'+newVal.getDate(); this.queryParams.theDay = newVal.getFullYear()+'-'+(newVal.getMonth()+1)+'-'+newVal.getDate();
// listCalendars(this.teamShiftQueryParams).then(response =>{
// this.calendarDayList = response.data;
// });
this.getList(); this.getList();
} }
} }
......
...@@ -53,7 +53,6 @@ ...@@ -53,7 +53,6 @@
<script> <script>
import { listAllTeam } from "@/api/mes/cal/team"; import { listAllTeam } from "@/api/mes/cal/team";
import { listCalholiday } from "@/api/mes/cal/calholiday"; import { listCalholiday } from "@/api/mes/cal/calholiday";
import { listCalendars } from "@/api/mes/cal/calendar";
import calendar from '@/utils/calendar'; import calendar from '@/utils/calendar';
export default { export default {
name: 'TeamView', name: 'TeamView',
...@@ -80,12 +79,7 @@ export default { ...@@ -80,12 +79,7 @@ export default {
watch:{ watch:{
date:{ date:{
handler(newVal,oldVal){ handler(newVal,oldVal){
console.log(newVal.getFullYear()+'-'+(newVal.getMonth()+1)+'-'+newVal.getDate());
// this.teamShiftQueryParams.theDay = newVal.getFullYear()+'-'+(newVal.getMonth()+1)+'-'+newVal.getDate();
this.queryParams.theDay = newVal.getFullYear()+'-'+(newVal.getMonth()+1)+'-'+newVal.getDate(); this.queryParams.theDay = newVal.getFullYear()+'-'+(newVal.getMonth()+1)+'-'+newVal.getDate();
// listCalendars(this.teamShiftQueryParams).then(response =>{
// this.calendarDayList = response.data;
// });
this.getList(); this.getList();
} }
} }
...@@ -128,10 +122,6 @@ export default { ...@@ -128,10 +122,6 @@ export default {
this.loading = true; this.loading = true;
this.queryParams.workunitName = teamId; this.queryParams.workunitName = teamId;
this.queryParams.theDay = this.date.getFullYear()+'-'+(this.date.getMonth()+1)+'-'+this.date.getDate(); this.queryParams.theDay = this.date.getFullYear()+'-'+(this.date.getMonth()+1)+'-'+this.date.getDate();
// listCalendars(this.teamShiftQueryParams).then(response =>{
// this.calendarDayList = response.data;
// this.loading = false;
// });
this.getList() this.getList()
}, },
isFestival(slotDate, slotData) { isFestival(slotDate, slotData) {
......
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