修改 禁用

This commit is contained in:
GGJ
2024-06-24 17:53:41 +08:00
parent fac32cd2e0
commit 6292e7ab18
14 changed files with 52 additions and 45 deletions

View File

@@ -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 })