From da4257bc32483409af02a06dd342c6981ec786ec Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期一, 17 十一月 2025 17:14:14 +0800
Subject: [PATCH] 更新大屏幕页面和任务信息页面
---
项目代码/BigScreen/src/components/echart/centerLeft/centerLeft1Chart/index.vue | 88 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 88 insertions(+), 0 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/components/echart/centerLeft/centerLeft1Chart/index.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/components/echart/centerLeft/centerLeft1Chart/index.vue"
new file mode 100644
index 0000000..ead1804
--- /dev/null
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/BigScreen/src/components/echart/centerLeft/centerLeft1Chart/index.vue"
@@ -0,0 +1,88 @@
+<template>
+ <div>
+ <Chart :cdata="cdata" />
+ </div>
+</template>
+
+<script>
+import Chart from "./chart.vue";
+import axios from "@/api/ajax.js";
+export default {
+ data() {
+ return {
+ isEfficient: true,
+ cdata: {
+ xData: [],
+ seriesData: [
+ {
+ value: 200,
+ name: "宸插畬鎴�",
+ itemStyle: { color: "#32c5e9" },
+ label: {
+ normal: {
+ show: true,
+ formatter: "{d}%",
+ textStyle: {
+ fontSize: 16,
+ fontWeight: "bolder",
+ },
+ },
+ },
+ },
+ { value: 100, name: "鏈畬鎴�", itemStyle: { color: "#00000000" } },
+ ],
+ },
+ };
+ },
+ components: {
+ Chart,
+ },
+ mounted() {
+ // this.GetEfficient();
+ },
+ methods: {
+ GetEfficient() {
+ axios.post("/api/xxx/GetEfficient", null, "").then((x) => {
+ if (x.data.status) {
+ var data = x.data.data;
+ this.cdata.seriesData = [
+ {
+ value: data.dayeta[0], //宸插畬鎴愬��
+ name: "宸插畬鎴�",
+ itemStyle: { color: "#32c5e9" },
+ label: {
+ normal: {
+ show: true,
+ formatter: "{d}%",
+ textStyle: {
+ fontSize: 16,
+ fontWeight: "bolder",
+ },
+ },
+ },
+ },
+ {
+ value: data.dayeta[1],//鏈畬鎴愬��
+ name: "鏈畬鎴�",
+ itemStyle: { color: "#00000000" },
+ },
+ ];
+ //寮�鍚畾鏃跺櫒
+ if (this.isEfficient) {
+ setInterval(() => {
+ this.isEfficient = false;
+ this.GetEfficient();
+ }, 10000);
+ }
+ }
+ });
+ },
+ },
+};
+</script>
+
+<style lang="scss" scoped>
+.ec-font {
+ font-size: 18px;
+}
+</style>
\ No newline at end of file
--
Gitblit v1.9.3