|
@@ -657,7 +657,18 @@ export default {
|
|
|
})
|
|
|
myChart.on('legendselectchanged', (params) => {
|
|
|
if (params.name == '维修中' || params.name == '故障中') {
|
|
|
- this.showDeviceStatusTable(params)
|
|
|
+ this.$confirm('是否显示' + params.name + '任务?', '提示', {
|
|
|
+ confirmButtonText: '显示' + params.name + '任务',
|
|
|
+ cancelButtonText: '过滤' + params.name + '任务数据',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ myChart.dispatchAction({
|
|
|
+ type: 'legendSelect',
|
|
|
+ name: params.name
|
|
|
+ })
|
|
|
+ this.showDeviceStatusTable(params)
|
|
|
+ }).catch(() => {
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -881,7 +892,18 @@ export default {
|
|
|
})
|
|
|
myChart.on('legendselectchanged', (params) => {
|
|
|
if (params.name == '已过期' || params.name == '审核关闭') {
|
|
|
- this.showPatrolTaskTable(params)
|
|
|
+ this.$confirm('是否显示' + params.name + '任务?', '提示', {
|
|
|
+ confirmButtonText: '显示' + params.name + '任务',
|
|
|
+ cancelButtonText: '过滤' + params.name + '任务数据',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ myChart.dispatchAction({
|
|
|
+ type: 'legendSelect',
|
|
|
+ name: params.name
|
|
|
+ })
|
|
|
+ this.showPatrolTaskTable(params)
|
|
|
+ }).catch(() => {
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -1011,7 +1033,18 @@ export default {
|
|
|
})
|
|
|
myChart.on('legendselectchanged', (params) => {
|
|
|
if (params.name == '待处理' || params.name == '已超期') {
|
|
|
- this.showDeviceTaskTable(params)
|
|
|
+ this.$confirm('是否显示' + params.name + '任务?', '提示', {
|
|
|
+ confirmButtonText: '显示' + params.name + '任务',
|
|
|
+ cancelButtonText: '过滤' + params.name + '任务数据',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ myChart.dispatchAction({
|
|
|
+ type: 'legendSelect',
|
|
|
+ name: params.name
|
|
|
+ })
|
|
|
+ this.showDeviceTaskTable(params)
|
|
|
+ }).catch(() => {
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -1130,7 +1163,18 @@ export default {
|
|
|
})
|
|
|
myChart.on('legendselectchanged', (params) => {
|
|
|
if (params.name == '已过期' || params.name == '审核关闭') {
|
|
|
- this.showMaintenanceTaskTable(params)
|
|
|
+ this.$confirm('是否显示' + params.name + '任务?', '提示', {
|
|
|
+ confirmButtonText: '显示' + params.name + '任务',
|
|
|
+ cancelButtonText: '过滤' + params.name + '任务数据',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ myChart.dispatchAction({
|
|
|
+ type: 'legendSelect',
|
|
|
+ name: params.name
|
|
|
+ })
|
|
|
+ this.showMaintenanceTaskTable(params)
|
|
|
+ }).catch(() => {
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
}
|