排班及bug

This commit is contained in:
2023-09-18 14:49:03 +08:00
parent eff5e0d1e1
commit 0371859d14
10 changed files with 79 additions and 186 deletions

View File

@@ -118,16 +118,16 @@ export default {
window.addEventListener('resize', () => {
this.tableH = this.tableHeight(260)
})
this.formConfig[2].defaultSelect = [Date.now() - 7*24*3600000, Date.now()]
if (this.$route.params.startTime && this.$route.params.endTime) {
this.formConfig[2].defaultSelect = [this.$route.params.startTime, this.$route.params.endTime]
} else {
this.formConfig[2].defaultSelect = [Date.now() - 7*24*3600000, Date.now()]
}
this.queryParams.startTime = this.formConfig[2].defaultSelect[0]
this.queryParams.endTime = this.formConfig[2].defaultSelect[1]
this.getList()
this.getTypeList()
},
mounted() {
console.log(this.$route.params.name)
console.log('22222')
},
methods: {
getTypeList() {
getEnergyTypeListAll().then((res) => {