|
@@ -271,6 +271,11 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
+ created(){
|
|
|
+ const form = { ...this.searchForm };
|
|
|
+ form.month = dayjs().format("YYYY-MM");
|
|
|
+ this.searchForm = form;
|
|
|
+ },
|
|
|
mounted() {
|
|
|
this.$store.dispatch("setBranchs");
|
|
|
// getEmployeeOrgan().then(res => {
|
|
@@ -283,24 +288,23 @@ export default {
|
|
|
this.cooperations = res.data.rows;
|
|
|
}
|
|
|
});
|
|
|
- const form = { ...this.searchForm };
|
|
|
- form.month = dayjs().format("YYYY-MM");
|
|
|
- this.searchForm = form;
|
|
|
+
|
|
|
this.getList();
|
|
|
- var now = new Date();
|
|
|
- var startDate = new Date(
|
|
|
- Date.UTC(now.getFullYear(), now.getMonth(), now.getDate())
|
|
|
- )
|
|
|
- .toISOString()
|
|
|
- .slice(0, 10);
|
|
|
- var endDate = new Date(
|
|
|
- Date.UTC(now.getFullYear(), now.getMonth(), now.getDate())
|
|
|
- )
|
|
|
- .toISOString()
|
|
|
- .slice(0, 10);
|
|
|
- this.orderDate = [];
|
|
|
- this.orderDate.push(startDate);
|
|
|
- this.orderDate.push(endDate);
|
|
|
+
|
|
|
+ // var now = new Date();
|
|
|
+ // var startDate = new Date(
|
|
|
+ // Date.UTC(now.getFullYear(), now.getMonth(), now.getDate())
|
|
|
+ // )
|
|
|
+ // .toISOString()
|
|
|
+ // .slice(0, 10);
|
|
|
+ // var endDate = new Date(
|
|
|
+ // Date.UTC(now.getFullYear(), now.getMonth(), now.getDate())
|
|
|
+ // )
|
|
|
+ // .toISOString()
|
|
|
+ // .slice(0, 10);
|
|
|
+ // this.orderDate = [];
|
|
|
+ // this.orderDate.push(startDate);
|
|
|
+ // this.orderDate.push(endDate);
|
|
|
},
|
|
|
methods: {
|
|
|
search() {
|