Compare commits

..

3 Commits

Author SHA1 Message Date
‘937886381’
074432851c Merge branch 'projects/mescc/develop' into projects/mescc/zhp 2024-07-10 15:46:53 +08:00
‘937886381’
8af5158a1b 修改bug 2024-07-10 15:46:21 +08:00
46743fa4ef Merge pull request 'projects/mescc/zhp' (#90) from projects/mescc/zhp into projects/mescc/develop
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #90
2024-07-10 15:26:27 +08:00
5 changed files with 28 additions and 18 deletions

View File

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

View File

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

View File

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

View File

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

View File

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