| | |
| | | timeType: null, |
| | | dataTime: null, |
| | | nodeId: null, |
| | | modelCode: '' |
| | | }) |
| | | |
| | | import { getByNodeId, getCountInfo } from "@/api/alarmManage/alarmManage" |
| | | import { el } from "element-plus/es/locales.mjs" |
| | | import { useRoute } from "vue-router" |
| | | const route = useRoute() |
| | | let form = ref({}) |
| | | let currentNode = ref() |
| | | |
| | |
| | | handleTimeType(period.value[0].value) |
| | | |
| | | getByNodeIdFun() |
| | | getCountInfoFun() |
| | | } |
| | | |
| | | function getByNodeIdFun() { |
| | |
| | | // getByNodeIdFun() |
| | | function handleQuery() { |
| | | getByNodeIdFun() |
| | | getCountInfoFun() |
| | | } |
| | | function resetQuery() { |
| | | handleTimeType("YEAR") |
| | | getByNodeIdFun() |
| | | getCountInfoFun() |
| | | } |
| | | let dataArray = ref({ |
| | | indexCount: 0, |
| | |
| | | monthCount: 0, |
| | | }) |
| | | function getCountInfoFun() { |
| | | getCountInfo(queryParams.value).then((res) => { |
| | | getCountInfo({ |
| | | ...queryParams.value, |
| | | modelCode: route.query.modelCode, |
| | | }).then((res) => { |
| | | if (res.code == 200) { |
| | | dataArray.value = res.data |
| | | } |
| | | }) |
| | | } |
| | | |
| | | getCountInfoFun() |
| | | function pieChart(Id, data, name) { |
| | | console.log(data) |
| | | let total = 0 |
| | |
| | | axisPointer: { |
| | | type: "shadow", |
| | | }, |
| | | axisTick: { |
| | | show: false, |
| | | alignWithLabel: true, |
| | | length: 5, |
| | | }, |
| | | // axisTick: { |
| | | // show: false, |
| | | // alignWithLabel: true, |
| | | // length: 5, |
| | | // }, |
| | | // 坐标轴刻度线样式 |
| | | axisTick: { |
| | | show: false, |
| | |
| | | padding: [0, 0, 5, 0], |
| | | }, |
| | | // 坐标轴刻度 |
| | | axisTick: { |
| | | show: false, |
| | | alignWithLabel: true, |
| | | length: 5, |
| | | }, |
| | | // axisTick: { |
| | | // show: false, |
| | | // alignWithLabel: true, |
| | | // length: 5, |
| | | // }, |
| | | // 坐标轴刻度线样式 |
| | | axisTick: { |
| | | show: false, |