Compare commits
3 Commits
8d9ccf97a7
...
2026-01
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59489aaafa | ||
|
|
5d0421dd40 | ||
|
|
6d7ef7cf5d |
@@ -17,6 +17,7 @@ const config = useConfig()
|
||||
// import { nextTick } from 'process'
|
||||
const emit = defineEmits(['triggerPoint', 'group', 'echartClick'])
|
||||
color[0] = config.layout.elementUiPrimary[0]
|
||||
|
||||
const chartRef = ref<HTMLDivElement>()
|
||||
|
||||
const props = defineProps(['options', 'isInterVal', 'pieInterVal'])
|
||||
|
||||
@@ -79,7 +79,7 @@ const init = async () => {
|
||||
// 设置消息接收回调
|
||||
mqttClient.onMessage((topic, message) => {
|
||||
const msg = JSON.parse(message.toString())
|
||||
console.log('🚀 ~ init ~ msg:', msg)
|
||||
// console.log('🚀 ~ init ~ msg:', msg)
|
||||
if (msg.deptList.includes(adminInfo.$state.deptId)) {
|
||||
drawer.value = true
|
||||
isLoading.value = true
|
||||
|
||||
@@ -100,10 +100,10 @@ const tableStore = new TableStore({
|
||||
}
|
||||
},
|
||||
{ field: 'areaName', title: '区域',minWidth: 100 },
|
||||
{ field: 'gdName', title: '地级区' ,minWidth: 100},
|
||||
{ field: 'gdName', title: '供电公司' ,minWidth: 100},
|
||||
{
|
||||
field: 'bdName',
|
||||
title: '供电公司',
|
||||
title: '场站',
|
||||
minWidth: 100
|
||||
},
|
||||
{ field: 'objName', title: '对象名称' , minWidth: 240},
|
||||
|
||||
@@ -145,10 +145,10 @@ const tableStore = new TableStore({
|
||||
}
|
||||
},
|
||||
{ field: 'areaName', title: '区域', minWidth: 100 },
|
||||
{ field: 'gdName', title: '地级区', minWidth: 100 },
|
||||
{ field: 'gdName', title: '供电公司', minWidth: 100 },
|
||||
{
|
||||
field: 'bdName',
|
||||
title: '供电公司',
|
||||
title: '场站',
|
||||
minWidth: 100
|
||||
},
|
||||
{ field: 'manufacturer', title: '厂家', minWidth: 100 },
|
||||
|
||||
@@ -30,6 +30,7 @@ import { ref, onMounted, provide, nextTick } from 'vue'
|
||||
import { mainHeight } from '@/utils/layout'
|
||||
import { useDictData } from '@/stores/dictData'
|
||||
import MyEchart from '@/components/echarts/MyEchart.vue'
|
||||
|
||||
const dictData = useDictData()
|
||||
const tableRef = ref()
|
||||
const options = ref({})
|
||||
@@ -88,6 +89,7 @@ const tableStore = new TableStore({
|
||||
text: '暂降原因统计',
|
||||
top: '20'
|
||||
},
|
||||
|
||||
legend: {
|
||||
type: 'scroll',
|
||||
orient: 'vertical',
|
||||
|
||||
@@ -82,7 +82,8 @@ const tableStore: any = new TableStore({
|
||||
{ field: 'updateBy', title: '修改人' },
|
||||
{ field: 'updateTime', title: '修改时间' },
|
||||
{
|
||||
title: '操作',fixed: 'right',
|
||||
title: '操作',
|
||||
fixed: 'right',
|
||||
width: '220',
|
||||
render: 'buttons',
|
||||
buttons: [
|
||||
@@ -147,9 +148,13 @@ const okRun = () => {
|
||||
})
|
||||
}
|
||||
onMounted(() => {
|
||||
getIcdList().then(res => {
|
||||
options.value = res.data
|
||||
})
|
||||
tableStore.index()
|
||||
getIcdList()
|
||||
.then(res => {
|
||||
options.value = res.data
|
||||
tableStore.index()
|
||||
})
|
||||
.catch(err => {
|
||||
tableStore.index()
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user