From 0d5d4a8c55b562090f1a1ac48cda7fcab943979b Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期三, 15 十月 2025 15:48:40 +0800
Subject: [PATCH] 更新二进制文件及新增异步POST方法
---
CodeManagement/BigScreenVue/src/views/indexs/station-two.vue | 69 +++++++++++++---------------------
1 files changed, 26 insertions(+), 43 deletions(-)
diff --git a/CodeManagement/BigScreenVue/src/views/indexs/station-two.vue b/CodeManagement/BigScreenVue/src/views/indexs/station-two.vue
index 8c14a2d..04e85f1 100644
--- a/CodeManagement/BigScreenVue/src/views/indexs/station-two.vue
+++ b/CodeManagement/BigScreenVue/src/views/indexs/station-two.vue
@@ -7,7 +7,7 @@
-->
<template>
<div id="name" style="width: 100%; height: 100%">
- <Echart :options="options" style="width: 100%; height: 100%"></Echart>
+ <Echart :options="options2" style="width: 100%; height: 100%"></Echart>
</div>
</template>
@@ -23,7 +23,7 @@
return {
pageflag: true,
myChart: {},
- options: {},
+ options2: {},
};
},
filters: {
@@ -101,7 +101,8 @@
}
-this.options = {
+this.options1 = {
+
backgroundColor: '#021228',
title: {
text: '鎶ヨ鎬绘暟',
@@ -206,39 +207,22 @@
},
async getData() {
this.pageflag = true;
- // currentGET("big2").then((res) => {
- // if (!this.timer) {
- // console.log("璁惧鎬昏2", res);
- // }
- // if (res.success) {
- // this.userOverview = res.data;
- // this.onlineconfig = {
- // ...this.onlineconfig,
- // number: [1]
- // }
- // this.config = {
- // ...this.config,
- // number: [7]
- // }
- // this.offlineconfig = {
- // ...this.offlineconfig,
- // number: [4]
- // }
- // this.laramnumconfig = {
- // ...this.laramnumconfig,
- // number: [10]
- // }
- // this.switper();
- // } else {
- // this.pageflag = false;
- // this.$Message.warning(res.msg);
- // }
- // });
- // var rep = await ProductionStock();
+ var rep=await ProductionStock();
+ var rep1=0;
+ for(var items of rep){
+ if(items.areaCode.includes("CW")){
+
+ rep1+=items.items.length
+ }
+ }
+
+ console.log(rep1)
+
+
let dataPie = [
{
- value: 430,
- name: '搴撳瓨浜у搧'
+ value: parseInt(rep1) ,
+ name: '浠婃棩寰呭嚭瀹炵洏鎬绘暟'
},
];
let colorPie = ['#173852'];
@@ -252,7 +236,6 @@
itemStyle: {
normal: {
borderWidth: 50,
-
borderColor: colorPie[i],
}
@@ -285,10 +268,10 @@
}
-this.options = {
+this.options2 = {
title: {
- text: '浜у搧鎬绘暟',
- subtext: '430',
+ text: '浠婃棩寰呭嚭瀹炵洏鎬绘暟',
+ subtext:parseInt(rep1),
textStyle: {
color: '#00b5f3',
fontSize: 12,
@@ -309,7 +292,7 @@
formatter: "{a}锛歿b} <br/>鍗犳瘮锛歿d}%"
},
legend: {
- data: ['搴撳瓨浜у搧'],
+ data: ['浠婃棩寰呭嚭瀹炵洏鎬绘暟'],
icon: 'vertical',
right: '1%',
top: 'center',
@@ -346,16 +329,16 @@
{
name: '',
type: 'pie',
- clockWise: false, //椤烘椂鍔犺浇
- hoverAnimation: false, //榧犳爣绉诲叆鍙樺ぇ
+ clockWise: true, //椤烘椂鍔犺浇
+ hoverAnimation: true, //榧犳爣绉诲叆鍙樺ぇ
center: ['40%', '50%'],
radius: ['80%', '81%'],
tooltip: {
- show: false
+ show: true
},
label: {
normal: {
- show: false
+ show: true
}
},
data: baseDataWrap
--
Gitblit v1.9.3