修改 禁用

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

@@ -161,3 +161,7 @@ export function getSupervisionData(data: any) {
export function getSupervisionDetailsData(data: any) { export function getSupervisionDetailsData(data: any) {
return request({ url: '/supervision-boot/gridDiagram/getSupervisionDetailsData', method: 'post', data }) return request({ url: '/supervision-boot/gridDiagram/getSupervisionDetailsData', method: 'post', data })
} }
//技术监督市级详细页面展示
export function getSupervisionCityDetailsData(data: any) {
return request({ url: '/supervision-boot/gridDiagram/getSupervisionCityDetailsData', method: 'post', data })
}

View File

@@ -22,48 +22,51 @@
import { ref } from 'vue' import { ref } from 'vue'
import MyEChart from '@/components/echarts/MyEchart.vue' import MyEChart from '@/components/echarts/MyEchart.vue'
import { defaultAttribute } from '@/components/table/defaultAttribute' 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 dialogVisible: any = ref(false)
const tableData: any = ref([]) const tableData: any = ref([])
const picEChart = 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 open = async (row: any) => { const open = async (row: any) => {
dialogVisible.value = true dialogVisible.value = true
getSupervisionDetailsData(row).then(res => { getSupervisionDetailsData(row).then(res => {
tableData.value = res.data 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 }) defineExpose({ open })

View File

@@ -159,7 +159,7 @@ const tableStore = new TableStore({
type: 'primary', type: 'primary',
icon: 'el-icon-Open', icon: 'el-icon-Open',
render: 'basicButton', render: 'basicButton',
showDisabled: row => { disabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0) return row.createBy != adminInfo.$state.id || !(row.status == 0)
}, },
click: row => { click: row => {

View File

@@ -176,7 +176,7 @@ const tableStore = new TableStore({
type: 'primary', type: 'primary',
icon: 'el-icon-Open', icon: 'el-icon-Open',
render: 'basicButton', render: 'basicButton',
showDisabled: row => { disabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0) return row.createBy != adminInfo.$state.id || !(row.status == 0)
}, },
click: row => { click: row => {

View File

@@ -177,7 +177,7 @@ const tableStore = new TableStore({
type: 'primary', type: 'primary',
icon: 'el-icon-Open', icon: 'el-icon-Open',
render: 'basicButton', render: 'basicButton',
showDisabled: row => { disabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0) return row.createBy != adminInfo.$state.id || !(row.status == 0)
}, },
click: row => { click: row => {

View File

@@ -171,7 +171,7 @@ const tableStore = new TableStore({
type: 'primary', type: 'primary',
icon: 'el-icon-Open', icon: 'el-icon-Open',
render: 'basicButton', render: 'basicButton',
showDisabled: row => { disabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0) return row.createBy != adminInfo.$state.id || !(row.status == 0)
}, },
click: row => { click: row => {

View File

@@ -175,7 +175,7 @@ const tableStore = new TableStore({
type: 'primary', type: 'primary',
icon: 'el-icon-Open', icon: 'el-icon-Open',
render: 'basicButton', render: 'basicButton',
showDisabled: row => { disabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0) return row.createBy != adminInfo.$state.id || !(row.status == 0)
}, },
click: row => { click: row => {

View File

@@ -172,7 +172,7 @@ const tableStore = new TableStore({
type: 'primary', type: 'primary',
icon: 'el-icon-Open', icon: 'el-icon-Open',
render: 'basicButton', render: 'basicButton',
showDisabled: row => { disabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0) return row.createBy != adminInfo.$state.id || !(row.status == 0)
}, },
click: row => { click: row => {

View File

@@ -170,7 +170,7 @@ const tableStore = new TableStore({
type: 'primary', type: 'primary',
icon: 'el-icon-Open', icon: 'el-icon-Open',
render: 'basicButton', render: 'basicButton',
showDisabled: row => { disabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0) return row.createBy != adminInfo.$state.id || !(row.status == 0)
}, },
click: row => { click: row => {

View File

@@ -152,7 +152,7 @@ const tableStore = new TableStore({
type: 'primary', type: 'primary',
icon: 'el-icon-Open', icon: 'el-icon-Open',
render: 'basicButton', render: 'basicButton',
showDisabled: row => { disabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0) return row.createBy != adminInfo.$state.id || !(row.status == 0)
}, },
click: row => { click: row => {

View File

@@ -135,7 +135,7 @@ const tableStore = new TableStore({
type: 'primary', type: 'primary',
icon: 'el-icon-Open', icon: 'el-icon-Open',
render: 'basicButton', render: 'basicButton',
showDisabled: row => { disabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0) return row.createBy != adminInfo.$state.id || !(row.status == 0)
}, },
click: row => { click: row => {

View File

@@ -129,7 +129,7 @@ const tableStore = new TableStore({
type: 'primary', type: 'primary',
icon: 'el-icon-Open', icon: 'el-icon-Open',
render: 'basicButton', render: 'basicButton',
showDisabled: row => { disabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0) return row.createBy != adminInfo.$state.id || !(row.status == 0)
}, },
click: row => { click: row => {

View File

@@ -172,7 +172,7 @@ const tableStore = new TableStore({
type: 'primary', type: 'primary',
icon: 'el-icon-Open', icon: 'el-icon-Open',
render: 'basicButton', render: 'basicButton',
showDisabled: row => { disabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0) return row.createBy != adminInfo.$state.id || !(row.status == 0)
}, },
click: row => { click: row => {

View File

@@ -157,7 +157,7 @@ const tableStore = new TableStore({
type: 'primary', type: 'primary',
icon: 'el-icon-Open', icon: 'el-icon-Open',
render: 'basicButton', render: 'basicButton',
showDisabled: row => { disabled: row => {
return row.createBy != adminInfo.$state.id || !(row.status == 0) return row.createBy != adminInfo.$state.id || !(row.status == 0)
}, },
click: row => { click: row => {