修改 变电站总数量 趋势图

This commit is contained in:
GGJ
2024-08-08 12:40:56 +08:00
parent 455c7be84f
commit d04336e1c8
4 changed files with 96 additions and 91 deletions

View File

@@ -4,8 +4,10 @@
"version": "0.0.0", "version": "0.0.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite --mode dev",
"build": "vite build ", "dev:jibei": "vite --mode jibei",
"build": "vite build --mode dev",
"build:jibei": "vite build --mode jibei",
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {

View File

@@ -68,6 +68,7 @@ const trendEChart: any = ref()
const picEChart = ref() const picEChart = ref()
const open = async (row: any) => { const open = async (row: any) => {
time.value = '1'
rowList.value = { rowList.value = {
deviceInfoParam: { deviceInfoParam: {
...row ...row
@@ -99,8 +100,8 @@ const analysis = (e: any) => {
let num = 0 let num = 0
for (let k in res.data) { for (let k in res.data) {
name.push(k) name.push(k)
num = num + res.data[k] // num = num + res.data[k]
data.push(num) data.push(res.data[k])
} }
trendEChart.value = { trendEChart.value = {

View File

@@ -101,6 +101,7 @@ const tableData: any = ref([])
const picEChart: any = ref([{}, {}, {}, {}, {}]) const picEChart: any = ref([{}, {}, {}, {}, {}])
const open = async (row: any) => { const open = async (row: any) => {
time.value = '1'
rowList.value = { rowList.value = {
deviceInfoParam: { deviceInfoParam: {
...row ...row
@@ -289,8 +290,8 @@ const analysis = (e: any) => {
let num = 0 let num = 0
for (let k in res.data) { for (let k in res.data) {
name.push(k) name.push(k)
num = num + res.data[k] // num = num + res.data[k]
data.push(num) data.push(res.data[k])
} }
trendEChart.value = { trendEChart.value = {

View File

@@ -84,6 +84,7 @@ const trendEChart: any = ref({})
const picEChart = ref() const picEChart = ref()
const open = async (row: any) => { const open = async (row: any) => {
time.value = '1'
rowList.value = { rowList.value = {
deviceInfoParam: { deviceInfoParam: {
...row ...row
@@ -184,8 +185,8 @@ const analysis = (e: any) => {
let num = 0 let num = 0
for (let k in res.data) { for (let k in res.data) {
name.push(k) name.push(k)
num = num + res.data[k] // num = num + res.data[k]
data.push(num) data.push(res.data[k])
} }
trendEChart.value = { trendEChart.value = {