修改bug
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: zhp
|
||||
* @Date: 2024-04-15 10:49:13
|
||||
* @LastEditTime: 2024-06-24 09:39:27
|
||||
* @LastEditTime: 2024-06-25 08:39:48
|
||||
* @LastEditors: zhp
|
||||
* @Description:
|
||||
-->
|
||||
@@ -155,6 +155,11 @@ export default {
|
||||
// all: {}
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
currentMenu() {
|
||||
this.getDataList()
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
weekNum() {
|
||||
return Math.round((this.end - this.start) / (24 * 60 * 60 * 1000 * 7)) + 1
|
||||
@@ -314,9 +319,12 @@ export default {
|
||||
}
|
||||
},
|
||||
async getDataList() {
|
||||
if (!this.listQuery.startDate && !this.listQuery.endDate) {
|
||||
return this.$message('请选择起止时间')
|
||||
}
|
||||
this.otherProps = []
|
||||
let arr = []
|
||||
this.currentMenu === '邯郸' ? arr.push(1) : arr.push(2)
|
||||
this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0)
|
||||
this.listQuery.factory = arr
|
||||
const res = await getComprehensiveDataPage(this.listQuery)
|
||||
// this.tableData = res.data.list
|
||||
|
||||
Reference in New Issue
Block a user