From fe2fcae9a5430e1ad1260a001832d223b5688fd1 Mon Sep 17 00:00:00 2001 From: DengJiangKun <921253515@qq.com> Date: Sat, 9 Dec 2023 14:13:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F=E4=B8=89?= =?UTF-8?q?=E7=9A=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/datav/CenterCmp.vue | 60 +++++++++++++++++++--------- src/components/datav/LeftChart2.vue | 4 +- src/components/datav/RightChart1.vue | 4 +- src/components/datav/RightChart3.vue | 12 +++--- src/components/datav/index.vue | 8 ++-- 5 files changed, 57 insertions(+), 31 deletions(-) diff --git a/src/components/datav/CenterCmp.vue b/src/components/datav/CenterCmp.vue index b7fced4..e3c7d3b 100644 --- a/src/components/datav/CenterCmp.vue +++ b/src/components/datav/CenterCmp.vue @@ -2,29 +2,29 @@
-
- 当月入库 +
+ 当日入库
-
- 当月出库 +
+ 当日出库
-
-
{{r1}}
-
{{r2}}
-
{{r3}}
-
{{r4}}
-
{{r5}}
+
+
{{this.inZX}}
+ +
{{this.inDZX}}
+ +
-
-
{{c1}}
-
{{c2}}
-
{{c3}}
-
{{c4}}
-
{{c5}}
+
+
{{this.outZX}}
+ +
{{this.outDZX}}
+ +
@@ -32,8 +32,10 @@
- - + {{this.inAllData}} + {{this.outAllData}} + +
@@ -66,7 +68,13 @@ export default { c2:'0', c3:'0', c4:'0', - c5:'0' + c5:'0', + outAllData:0, + outZX:0, + outDZX:0, + inAllData:0, + inZX:0, + inDZX:0 } }, mounted () { @@ -75,11 +83,13 @@ export default { this.getListData() this.getListData2() this.getListData3() + this.getListData4() }, 2500) setInterval(this.getListData, 535000) setInterval(this.getListData2, 545000) setInterval(this.getListData3, 555000) + setInterval(this.getListData4, 60000) }, methods: { getListData () { @@ -134,6 +144,18 @@ export default { //let data2=JSON.parse(this.list); }) + }, + getListData4(){ + this.$axios.post('/api/api/screeView/inOutData',{}).then(res => { + console.log("===============") + console.log(res) + this.outAllData=res.data.outAll; + this.outZX=res.data.outZX; + this.outDZX=res.data.outDZX; + this.inAllData=res.data.inAll; + this.inZX=res.data.inZX; + this.inDZX=res.data.inDZX; + }) } } } diff --git a/src/components/datav/LeftChart2.vue b/src/components/datav/LeftChart2.vue index fc8124c..66ffb94 100644 --- a/src/components/datav/LeftChart2.vue +++ b/src/components/datav/LeftChart2.vue @@ -114,8 +114,8 @@ export default { flex-direction: column; justify-content: center; align-items: center; - border-left: 3px solid rgb(6, 30, 93); - border-right: 3px solid rgb(6, 30, 93); + border-left: 3px solid #052650; + border-right: 3px solid #052650; } .digital-flop-title { diff --git a/src/components/datav/RightChart1.vue b/src/components/datav/RightChart1.vue index 2bf139b..8d5ebc8 100644 --- a/src/components/datav/RightChart1.vue +++ b/src/components/datav/RightChart1.vue @@ -161,7 +161,8 @@ export default { box-sizing: border-box; margin: 0; padding: 0; - padding: 10px; + margin-top: -16px; + right: 20px; } .m-video { @@ -171,6 +172,7 @@ export default { position: relative; background: #ffffff00; cursor: pointer; + transform: scale(0.85); .u-play { position: absolute; top: 0; diff --git a/src/components/datav/RightChart3.vue b/src/components/datav/RightChart3.vue index a2a9e49..14ff312 100644 --- a/src/components/datav/RightChart3.vue +++ b/src/components/datav/RightChart3.vue @@ -1,6 +1,6 @@ @@ -17,7 +17,7 @@ export default { ['料号行', '0'] ], rowNum: 6, - headerBGC: '#000fff82', + headerBGC: '#061a3a', oddRowBGC: '#ededed33', evenRowBGC: '#ededed33', headerHeight:60, @@ -32,14 +32,14 @@ export default { console.log('123123213123131') setTimeout(() => { this.getListData() - }, 3500) + }, 6000) - setInterval(this.getListData, 585000) + setInterval(this.getListData, 60000) }, methods: { getListData () { // 这里getList获取到的res是接口返回的所有内容(包含code、msg、data等),里面只有data是业务数据 - this.$axios.post('/api/api/screeView/inventoryView',{ + this.$axios.post('/api/api/screeView/taskPerformed',{ methodType:9 }) .then(res => { @@ -59,7 +59,7 @@ export default { .bottom-right-table-3 { width: 400px; height: 100%; - margin: 0 -5px; + margin: 0 -3px; .border-box-content { padding: 20px; diff --git a/src/components/datav/index.vue b/src/components/datav/index.vue index eff719c..9523548 100644 --- a/src/components/datav/index.vue +++ b/src/components/datav/index.vue @@ -3,7 +3,8 @@
-
荆州洗衣机数据可视化平台
+ + 荆州洗衣机数据可视化平台
@@ -40,7 +41,7 @@
- + @@ -98,7 +99,8 @@ export default { color: #fff; #dv-full-screen-container { - background-image: url('./img/bg3.png'); + //background-image: url('./img/bg3.png'); + background-color: #050c1e; background-size: 100% 100%; box-shadow: 0 0 3px blue; display: flex;