|
@@ -5,6 +5,7 @@
|
|
|
class="uni-calendar--hook"
|
|
|
:selected="info.selected"
|
|
|
:showMonth="false"
|
|
|
+ :date="day"
|
|
|
@change="change"
|
|
|
@monthSwitch="monthSwitch"
|
|
|
>
|
|
@@ -185,9 +186,9 @@ export default {
|
|
|
this.currentList = e.extraInfo.list || [];
|
|
|
},
|
|
|
monthSwitch(e) {
|
|
|
- console.log(e);
|
|
|
this.monthDate = moment(`${e.year}-${e.month}-01`, "YYYY-MM-DD");
|
|
|
- console.log(this.monthDate);
|
|
|
+ this.day = `${e.year}-${e.month < 10 ? "0" + e.month : e.month}-${moment(this.day).format("DD")}`;
|
|
|
+ this.currentList = [];
|
|
|
this.queryWorkHours();
|
|
|
// this.day = e.fulldate;
|
|
|
// this.currentList = e.extraInfo.list || [];
|