修改 禁用
This commit is contained in:
@@ -22,48 +22,51 @@
|
||||
import { ref } from 'vue'
|
||||
import MyEChart from '@/components/echarts/MyEchart.vue'
|
||||
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
||||
import { getSupervisionDetailsData } from '@/api/device-boot/panorama'
|
||||
import { getSupervisionDetailsData, getSupervisionCityDetailsData } from '@/api/device-boot/panorama'
|
||||
const dialogVisible: any = ref(false)
|
||||
|
||||
const tableData: any = ref([])
|
||||
|
||||
const picEChart = ref({
|
||||
title: {
|
||||
text: ''
|
||||
},
|
||||
xAxis: {
|
||||
name: '(区域)',
|
||||
data: ['技术监督计划', '用户投诉', '在线率问题']
|
||||
},
|
||||
|
||||
yAxis: {
|
||||
name: '',
|
||||
min: 0,
|
||||
max: 100
|
||||
},
|
||||
|
||||
options: {
|
||||
dataZoom: null,
|
||||
series: [
|
||||
{
|
||||
name: '问题个数',
|
||||
type: 'bar',
|
||||
data: [12, 12, 12, 12]
|
||||
},
|
||||
{
|
||||
name: '已处理',
|
||||
type: 'bar',
|
||||
|
||||
data: [12, 12, 12, 12]
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
const picEChart = ref({})
|
||||
const open = async (row: any) => {
|
||||
dialogVisible.value = true
|
||||
getSupervisionDetailsData(row).then(res => {
|
||||
tableData.value = res.data
|
||||
})
|
||||
getSupervisionCityDetailsData(row).then(res => {
|
||||
picEChart.value = {
|
||||
title: {
|
||||
text: ''
|
||||
},
|
||||
xAxis: {
|
||||
name: '',
|
||||
data: ['技术监督计划', '用户投诉', '在线率问题']
|
||||
},
|
||||
|
||||
yAxis: {
|
||||
name: '',
|
||||
min: 0,
|
||||
max: 100
|
||||
},
|
||||
|
||||
options: {
|
||||
dataZoom: null,
|
||||
series: [
|
||||
{
|
||||
name: '问题个数',
|
||||
type: 'bar',
|
||||
data: [res.data.survey.abnormalNum, res.data.user.abnormalNum, res.data.onLine.abnormalNum]
|
||||
},
|
||||
{
|
||||
name: '已处理',
|
||||
type: 'bar',
|
||||
|
||||
data: [res.data.survey.processedNum, res.data.user.processedNum, res.data.onLine.processedNum]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
defineExpose({ open })
|
||||
|
||||
Reference in New Issue
Block a user