修改bug

This commit is contained in:
‘937886381’ 2024-07-10 15:46:21 +08:00
parent 91c352ff79
commit 8af5158a1b
5 changed files with 28 additions and 18 deletions

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2024-04-15 10:49:13 * @Date: 2024-04-15 10:49:13
* @LastEditTime: 2024-07-09 16:16:14 * @LastEditTime: 2024-07-10 15:45:28
* @LastEditors: zhp * @LastEditors: zhp
* @Description: * @Description:
--> -->
@ -344,11 +344,13 @@ export default {
}, },
async getDataList() { async getDataList() {
console.log(this.listQuery.type); console.log(this.listQuery.type);
if (this.listQuery.type == null || this.listQuery.type == '') { if (this.listQuery.type === '') {
return this.$message('请选择时间维度') this.$message.warning('请选择时间维度!')
return
} }
if (!this.listQuery.startDate && !this.listQuery.endDate) { if (!this.listQuery.startDate && !this.listQuery.endDate) {
return this.$message('请选择起止时间') this.$message.warning('请选择起止时间')
return
} }
this.otherProps = [] this.otherProps = []
let arr = [] let arr = []

View File

@ -546,11 +546,13 @@ export default {
this.chartMsgYearTarget.series[0].data = [] this.chartMsgYearTarget.series[0].data = []
this.chartMsgYearTarget.series[1].data = [] this.chartMsgYearTarget.series[1].data = []
this.title = '' this.title = ''
if (this.listQuery.date == null || this.listQuery.date == '') { if (this.listQuery.date === '') {
return this.$message('请选择时间维度') this.$message.warning('请选择时间维度!')
return
} }
if (!this.listQuery.beginTime && !this.listQuery.endTime) { if (!this.listQuery.beginTime && !this.listQuery.endTime) {
return this.$message('请选择起止时间') this.$message.warning('请选择起止时间')
return
} }
console.log(this.listQuery); console.log(this.listQuery);
if (this.listQuery.type == 3) { if (this.listQuery.type == 3) {

View File

@ -516,12 +516,14 @@ export default {
this.chartMsgTarget.series = [] this.chartMsgTarget.series = []
this.chartMsgYearTarget.series[0].data = [] this.chartMsgYearTarget.series[0].data = []
this.chartMsgYearTarget.series[1].data = [] this.chartMsgYearTarget.series[1].data = []
console.log(this.listQuery); console.log(this.listQuery.type);
if (this.listQuery.type == null || this.listQuery.type == '') { if (this.listQuery.type === '') {
return this.$message('请选择时间维度') this.$message.warning('请选择时间维度!')
return
} }
if (!this.listQuery.startDate && !this.listQuery.endDate) { if (!this.listQuery.startDate && !this.listQuery.endDate) {
return this.$message('请选择起止时间') this.$message.warning('请选择起止时间')
return
} }
let arr = [] let arr = []
this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0) this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0)

View File

@ -648,12 +648,14 @@ export default {
if (this.chartMsgYearTarget.series[3]) { if (this.chartMsgYearTarget.series[3]) {
this.chartMsgYearTarget.series[3].data = [] this.chartMsgYearTarget.series[3].data = []
} }
// console.log(this.listQuery); console.log(this.listQuery)
if (this.listQuery.type == null || this.listQuery.type == '') { if (this.listQuery.type === '') {
return this.$message('请选择时间维度') this.$message.warning('请选择时间维度!')
return
} }
if (!this.listQuery.startDate && !this.listQuery.endDate) { if (!this.listQuery.startDate && !this.listQuery.endDate) {
return this.$message('请选择起止时间') this.$message.warning('请选择起止时间')
return
} }
let arr = [] let arr = []
this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0) this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0)

View File

@ -567,11 +567,13 @@ export default {
this.chartMsgYearTarget.xData = [] this.chartMsgYearTarget.xData = []
this.chartMsgYearTarget.series[0].data = [] this.chartMsgYearTarget.series[0].data = []
this.chartMsgYearTarget.series[1].data = [] this.chartMsgYearTarget.series[1].data = []
if (this.listQuery.type == null || this.listQuery.type == '') { if (this.listQuery.type === '') {
return this.$message('请选择时间维度') this.$message.warning('请选择时间维度!')
return
} }
if (!this.listQuery.startDate && !this.listQuery.endDate) { if (!this.listQuery.startDate && !this.listQuery.endDate) {
return this.$message('请选择起止时间') this.$message.warning('请选择起止时间')
return
} }
let arr = [] let arr = []
this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0) this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0)