From 0cce10d0db3ea3786edf4b322925057ad87814cf Mon Sep 17 00:00:00 2001 From: chenyong <chenyong@hnkhzn.com> Date: 星期四, 15 五月 2025 09:16:19 +0800 Subject: [PATCH] 三楼大屏 --- CodeManagement/BigScreenVue/src/views/indexs/station-one.vue | 60 +++++++++++++++++------------------------------------------- 1 files changed, 17 insertions(+), 43 deletions(-) diff --git a/CodeManagement/BigScreenVue/src/views/indexs/station-one.vue b/CodeManagement/BigScreenVue/src/views/indexs/station-one.vue index eaa6e13..1cd69b4 100644 --- a/CodeManagement/BigScreenVue/src/views/indexs/station-one.vue +++ b/CodeManagement/BigScreenVue/src/views/indexs/station-one.vue @@ -11,7 +11,7 @@ <div class="user_Overview_nums allnum "> <dv-digital-flop :config="inboundConfig" style="width:100%;height:100%;" /> </div> - <p>鎴愬搧鍏ュ簱</p> + <p>瀹炴鍏ュ簱</p> <br> <!-- <p>{{stationstate[0].station_state}}</p> --> <!-- <p v-if="stationstate[0].station_state == '妫�淇腑'">{{stationstate[0].station_checkName}}</p> --> @@ -20,7 +20,7 @@ <div class="user_Overview_nums online"> <dv-digital-flop :config="outboundConfig" style="width:100%;height:100%;" /> </div> - <p>鎴愬搧鍑哄簱</p> + <p>瀹炴鍑哄簱</p> <br> <!-- <p>{{stationstate[1].station_state}}</p> --> <!-- <p v-if="stationstate[1].station_state == '妫�淇腑'">{{stationstate[1].station_checkName}}</p> --> @@ -29,7 +29,7 @@ <div class="user_Overview_nums offline"> <dv-digital-flop :config="backConfig" style="width:100%;height:100%;" /> </div> - <p>鎴愬搧鍥炴</p> + <p>绌烘鍏ュ簱</p> <br> <!-- <p>{{stationstate[1].station_state}}</p> --> <!-- <p v-if="stationstate[1].station_state == '妫�淇腑'">{{stationstate[1].station_checkName}}</p> --> @@ -38,7 +38,7 @@ <div class="user_Overview_nums laramnum"> <dv-digital-flop :config="surplusConfig" style="width:100%;height:100%;" /> </div> - <p>鎴愬搧閫�搴�</p> + <p>绌烘鍑哄簱</p> <br> <!-- <p>{{stationstate[1].station_state}}</p> --> <!-- <p v-if="stationstate[1].station_state == '妫�淇腑'">{{stationstate[1].station_checkName}}</p> --> @@ -70,6 +70,7 @@ <script> import { currentGET } from 'api/modules' import {Floorfault} from "@/api/http.js" + let style = { fontSize: 24 } @@ -86,8 +87,8 @@ stationstate:[], pageflag: true, timer: null, - backConfig: { //鎴愬搧鍥炴 - number: [9999], + backConfig: { //绌烘鍏ュ簱 + number: [50], content: '{nt}', style: { ...style, @@ -147,51 +148,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 Floorfault(); - + + var rep1 = await Floorfault(); + var rep=rep1.filter(task=>task.roadway.includes("JZ")) this.inboundConfig={ - ...this.inboundConfig, - number: [rep.inboundCount] + number: [rep.filter(task => task.taskType === "鍏ュ簱").length] } this.outboundConfig={ - ...this.outboundConfig, - number: [rep.outboundCount] + number: [rep.filter(task => task.taskType === "鍑哄簱").length] } this.backConfig={ ...this.backConfig, - number: [rep.backboundCount] + number: [rep.filter(task => task.taskType === "绌烘墭鐩樺叆搴�").length] } this.surplusConfig={ ...this.surplusConfig, - number: [rep.surplusCount] + number: [rep.filter(task => task.taskType === "绌烘墭鐩樺嚭搴�").length] } // this.onlineconfig = { // ...this.onlineconfig, @@ -213,7 +185,9 @@ }, //杞 switper() { - if (this.timer) { + + + if (this.timer) { return } let looper = (a) => { -- Gitblit v1.9.3