From 873baee8390e8ca1c448fb40c86aac862af5ada8 Mon Sep 17 00:00:00 2001 From: hzz Date: Mon, 5 Jun 2023 10:48:25 +0800 Subject: [PATCH 01/29] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E5=92=8C=E6=9C=BA=E6=A2=B0=E5=88=86=E5=8E=82?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=A4=A7=E5=B1=8F=20=E7=B2=89=E5=B0=98?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=95=88=E6=9E=9C=20=E5=9B=BA=E5=AE=9A=20?= =?UTF-8?q?=E7=84=8A=E6=8E=A5=EF=BC=8C=E7=B2=BE=E9=A5=B0=20=E5=A4=A7?= =?UTF-8?q?=E4=BB=B6=E7=B2=89=E5=B0=98=E4=BC=A0=E6=84=9F=E5=99=A8devId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/moduleSocket.ts | 49 ++- src/store/moduleSocketjixie.ts | 20 +- .../generalEnvironment/content/right.vue | 312 ++++++++++-------- .../content/right.vue | 296 +++++++++-------- 4 files changed, 378 insertions(+), 299 deletions(-) diff --git a/src/store/moduleSocket.ts b/src/store/moduleSocket.ts index d1f97b7..1a9d5c6 100644 --- a/src/store/moduleSocket.ts +++ b/src/store/moduleSocket.ts @@ -9,7 +9,7 @@ */ import { defineStore } from "pinia"; import { Names } from '@/store/storeName' -import {gettime,clacendTime} from "@/utils/time" +import { gettime, clacendTime } from "@/utils/time" export const useSocketStore = defineStore(Names.socket, { // 使用方式 // const Index= useIndexStore() @@ -172,16 +172,35 @@ export const useSocketStore = defineStore(Names.socket, { * @函数备注: */ changePM(val) { - if (val.enName == 'welding') { - this.pm.welding.two = val.pm25 - this.pm.welding.ten = val.pm10 - } else if (val.enName == 'stuff') { - this.pm.stuff.two = val.pm25 - this.pm.stuff.ten = val.pm10 - } else if (val.enName == 'ornaments') { - this.pm.ornaments.two = val.pm25 - this.pm.ornaments.ten = val.pm10 - } + let arr = ['083e3900-3435-11ed-a7e1-fd42bca6c8c6', 'bcbfb530-88b2-11ed-a926-570995ad0254', '01336fd0-1fa0-11ed-9223-7db1174970a8'] + + // if (arr.indexOf(val.devId) > -1) { + // console.log(val,'这三个设备'); + + // } + + if (val.devId == '083e3900-3435-11ed-a7e1-fd42bca6c8c6') { + this.pm.welding.two = val.pm25 + this.pm.welding.ten = val.pm10 + } else if (val.devId == 'bcbfb530-88b2-11ed-a926-570995ad0254') { + this.pm.ornaments.two = val.pm25 + this.pm.ornaments.ten = val.pm10 + } else if (val.devId == '01336fd0-1fa0-11ed-9223-7db1174970a8') { + this.pm.stuff.two = val.pm25 + this.pm.stuff.ten = val.pm10 + } + + + // if (val.enName == 'welding') { + // this.pm.welding.two = val.pm25 + // this.pm.welding.ten = val.pm10 + // } else if (val.enName == 'stuff') { + // this.pm.stuff.two = val.pm25 + // this.pm.stuff.ten = val.pm10 + // } else if (val.enName == 'ornaments') { + // this.pm.ornaments.two = val.pm25 + // this.pm.ornaments.ten = val.pm10 + // } }, /** @@ -325,17 +344,17 @@ export const useSocketStore = defineStore(Names.socket, { cIndex = this.newVerticalNum[pIndex].value.findIndex(item => item.name == val.data.name) } if (cIndex != -1) { - if (val.data.val>this.newVerticalNum[pIndex].limit) { - + if (val.data.val > this.newVerticalNum[pIndex].limit) { + let now = new Date().getTime() if (this.newVerticalNum[pIndex].value[cIndex].date == null) { this.newVerticalNum[pIndex].value[cIndex].date = gettime() this.newVerticalNum[pIndex].value[cIndex].time = now } - + let time = this.newVerticalNum[pIndex].value[cIndex].time - this.newVerticalNum[pIndex].value[cIndex].continuous = clacendTime(now,time) + this.newVerticalNum[pIndex].value[cIndex].continuous = clacendTime(now, time) } else { this.newVerticalNum[pIndex].value[cIndex].date = null this.newVerticalNum[pIndex].value[cIndex].time = null diff --git a/src/store/moduleSocketjixie.ts b/src/store/moduleSocketjixie.ts index e5e9254..a16b67e 100644 --- a/src/store/moduleSocketjixie.ts +++ b/src/store/moduleSocketjixie.ts @@ -172,16 +172,16 @@ export const useSocketStore = defineStore(Names.socketjixiefenchang,{ * @函数备注: */ changePM(val){ - if(val.enName=='welding'){ - this.pm.welding.two=val.pm25 - this.pm.welding.ten=val.pm10 - }else if(val.enName=='stuff'){ - this.pm.stuff.two=val.pm25 - this.pm.stuff.ten=val.pm10 - }else if(val.enName=='ornaments'){ - this.pm.ornaments.two=val.pm25 - this.pm.ornaments.ten=val.pm10 - } + if (val.devId == '083e3900-3435-11ed-a7e1-fd42bca6c8c6') { + this.pm.welding.two = val.pm25 + this.pm.welding.ten = val.pm10 + } else if (val.devId == 'bcbfb530-88b2-11ed-a926-570995ad0254') { + this.pm.ornaments.two = val.pm25 + this.pm.ornaments.ten = val.pm10 + } else if (val.devId == '01336fd0-1fa0-11ed-9223-7db1174970a8') { + this.pm.stuff.two = val.pm25 + this.pm.stuff.ten = val.pm10 + } }, /** diff --git a/src/views/generalEnvironment/content/right.vue b/src/views/generalEnvironment/content/right.vue index 773937b..c8eb618 100644 --- a/src/views/generalEnvironment/content/right.vue +++ b/src/views/generalEnvironment/content/right.vue @@ -1,119 +1,121 @@ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ - + - + \ No newline at end of file diff --git a/src/views/generalEnvironmentjixiefenchang/content/right.vue b/src/views/generalEnvironmentjixiefenchang/content/right.vue index eb0a4d5..f274e34 100644 --- a/src/views/generalEnvironmentjixiefenchang/content/right.vue +++ b/src/views/generalEnvironmentjixiefenchang/content/right.vue @@ -1,120 +1,123 @@ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ - + - + \ No newline at end of file From 7f5777ab60785e4162f305a3af497c32af7da9bf Mon Sep 17 00:00:00 2001 From: 15133876896-BGG25 <2233720980@qq.com> Date: Tue, 6 Jun 2023 16:57:53 +0800 Subject: [PATCH 02/29] =?UTF-8?q?1.=E6=9B=B4=E6=8D=A2=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E9=A2=9C=E8=89=B2=202.=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E6=8A=A5=E8=AD=A6=E8=AE=B0=E5=BD=95=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/iconfont.css | 10 +- src/components/assembly/RotationTable.vue | 13 +- .../headerBox/dialog/headerDialog.vue | 97 +++ src/components/headerBox/header2.vue | 551 ++++++++++-------- src/main.ts | 4 +- src/utils/devSever.ts | 4 +- src/utils/websocket.ts | 6 +- src/views/AerialView/content/tip.vue | 11 +- src/views/AerialView/content/tip2.vue | 11 +- .../child/component/Details.vue | 13 +- .../child/component/RotationTable.vue | 13 +- .../child/component/origin.vue | 11 +- .../content/chart/deviceslist.vue | 14 +- src/views/MechanicalView/content/tip.vue | 13 +- src/views/MechanicalView/content/tip2.vue | 11 +- src/views/MechanicalViewEdit/content/tip.vue | 11 +- src/views/MechanicalViewEdit/content/tip2.vue | 11 +- .../MechanicalView_dajian/content/tip.vue | 11 +- .../MechanicalView_dajian/content/tip2.vue | 11 +- .../MechanicalView_hanjie/content/tip.vue | 11 +- .../MechanicalView_hanjie/content/tip2.vue | 11 +- .../MechanicalView_jijia/content/tip.vue | 11 +- .../MechanicalView_jijia/content/tip2.vue | 11 +- .../MechanicalView_jingjia/content/tip.vue | 11 +- .../MechanicalView_jingjia/content/tip2.vue | 11 +- .../MechanicalView_jingshi/content/tip.vue | 11 +- .../MechanicalView_jingshi/content/tip2.vue | 11 +- .../Offsite/content/chart/deviceslist.vue | 11 +- .../Temp/Large_Format/component/Details.vue | 11 +- .../Large_Format/component/RotationTable.vue | 13 +- .../Temp/Large_Format/component/origin.vue | 11 +- src/views/index.vue | 6 +- .../legionProducts/chart/scrollBoard.vue | 7 +- .../content/chart/verticalNum.vue | 4 +- .../content/chart/verticalNumLoop.vue | 2 +- .../content/chart/verticalNum.vue | 2 +- .../content/chart/verticalNumLoop.vue | 2 +- 37 files changed, 707 insertions(+), 276 deletions(-) create mode 100644 src/components/headerBox/dialog/headerDialog.vue diff --git a/src/assets/css/iconfont.css b/src/assets/css/iconfont.css index c774f27..0c8c886 100644 --- a/src/assets/css/iconfont.css +++ b/src/assets/css/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 3879194 */ - src: url('//at.alicdn.com/t/c/font_3879194_0vtcz1yxgvk.woff2?t=1683879014134') format('woff2'), - url('//at.alicdn.com/t/c/font_3879194_0vtcz1yxgvk.woff?t=1683879014134') format('woff'), - url('//at.alicdn.com/t/c/font_3879194_0vtcz1yxgvk.ttf?t=1683879014134') format('truetype'); + src: url('//at.alicdn.com/t/c/font_3879194_xfchth53vyb.woff2?t=1686011466607') format('woff2'), + url('//at.alicdn.com/t/c/font_3879194_xfchth53vyb.woff?t=1686011466607') format('woff'), + url('//at.alicdn.com/t/c/font_3879194_xfchth53vyb.ttf?t=1686011466607') format('truetype'); } .iconfont { @@ -13,6 +13,10 @@ -moz-osx-font-smoothing: grayscale; } +.icon-lishijilu:before { + content: "\eaf7"; +} + .icon-zhongyingwen:before { content: "\e607"; } diff --git a/src/components/assembly/RotationTable.vue b/src/components/assembly/RotationTable.vue index 8c8c8ba..bb53219 100644 --- a/src/components/assembly/RotationTable.vue +++ b/src/components/assembly/RotationTable.vue @@ -1,5 +1,5 @@ + + + + + diff --git a/src/components/headerBox/header2.vue b/src/components/headerBox/header2.vue index 33a1e07..4750404 100644 --- a/src/components/headerBox/header2.vue +++ b/src/components/headerBox/header2.vue @@ -1,5 +1,5 @@ @@ -359,16 +440,14 @@ defineExpose({ width: 100%; } h1 { - position: absolute; top: 10px; - } -.zh-title{ +.zh-title { margin-top: 6px; font-size: 2.5rem; } -.en-title{ +.en-title { font-size: 2rem; max-width: 600px; height: 80px; @@ -376,7 +455,6 @@ h1 { align-items: center; overflow: hidden; /* line-height: 80px; */ - } /* .header2 p { position: absolute; @@ -406,7 +484,7 @@ h1 { font-size: 20px; color: #fff; } -.tip{ +.tip { margin-top: 15px; } .tipspan { @@ -414,7 +492,7 @@ h1 { margin-left: 10px; align-items: center; } -.comeBack{ +.comeBack { position: absolute; /* width: 2rem; height: 2rem; */ @@ -423,10 +501,10 @@ h1 { font-size: 3rem; color: #fff; } -.comeBack>i{ +.comeBack > i { font-size: 3rem; } -.AbnormalData{ +.AbnormalData { position: absolute; display: flex; align-items: center; @@ -437,30 +515,30 @@ h1 { font-size: 3rem; color: #fff; } -.AbnormalData:hover{ - cursor:pointer; +.AbnormalData:hover { + cursor: pointer; } -.AbnormalData>span{ +.AbnormalData > span { font-size: 1rem; } -.popoverBOX{ +.popoverBOX { max-height: 15rem; font-size: 18px; overflow-y: auto; } -.popoverBOX li{ -padding: 10px 0 10px 0; +.popoverBOX li { + padding: 10px 0 10px 0; } -.lookdown{ +.lookdown { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; - color: #1C78C2; + color: #1c78c2; } -.lookdown:hover{ - cursor:pointer; +.lookdown:hover { + cursor: pointer; } .time { position: absolute; @@ -470,29 +548,48 @@ padding: 10px 0 10px 0; left: 4.2rem; font-size: 25px; } -.i-badge{ +.i-badge { width: 3rem; height: 3rem; } -.i-badge>i{ +.i-badge > i { font-size: 3rem; position: relative; top: -5px; } - /* .dv-scroll-board /deep/ .ceil { +/* .dv-scroll-board /deep/ .ceil { font-size: 1.2rem; -} */ +} */ .dv-scroll-boardclass :deep(.ceil) { font-size: 20px; } -.el-popper.is-dark:deep(){ +.el-popper.is-dark:deep() { background: #14274b !important; } -.el-popover.el-popper:deep(){ +.el-popover.el-popper:deep() { background: #14274b !important; } -.Abnormal-icon-yellow{ - color: #DDB14F; +.Abnormal-icon-yellow { + color: #ddb14f; +} +.lishijilu { + font-size: 2rem; + color: #fff; +} +.popoverHeader { + padding: 0 !important; + display: flex; + justify-content: flex-end; + align-items: center; + line-height: 1.5rem; +} +.popoverHeader span { + display: flex; + justify-content: center; + align-items: center; + padding: 5px; + /* border-radius: 50px; + background: linear-gradient(315deg, #404040, #4c4c4c); */ + /* box-shadow: -20px -20px 60px #3c3c3c, 20px 20px 60px #525252; */ } - diff --git a/src/main.ts b/src/main.ts index 90c0ae3..17be6fe 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,5 @@ /* - * @FilePath: \screenFront\src\main.ts + * @FilePath: \code\gitscreenFront\src\main.ts * @Author: 王路平 * @文件版本: V1.0.0 * @Date: 2023-01-29 15:16:36 @@ -11,7 +11,7 @@ import { createApp } from 'vue' import App from './App.vue' import ElementPlus from 'element-plus' import 'element-plus/dist/index.css' - +import 'element-plus/theme-chalk/dark/css-vars.css' // import echarts from '@/utils/echarts.js' import echarts from '@/utils/echarts' import {createPinia} from 'pinia' diff --git a/src/utils/devSever.ts b/src/utils/devSever.ts index 99d6906..26da8af 100644 --- a/src/utils/devSever.ts +++ b/src/utils/devSever.ts @@ -1,5 +1,5 @@ /* - * @FilePath: \screenFront\src\utils\devSever.ts + * @FilePath: \gitscreenFront\src\utils\devSever.ts * @Author: 王路平 * @文件版本: V1.0.0 * @Date: 2023-03-03 08:59:37 @@ -9,7 +9,7 @@ */ // export const development={xhr:process.env.VUE_APP_BASE_API,ws:"ws://192.168.3.97:9018/",imgxhr:process.env.VUE_APP_BASE_API+"/image/"} -export const development={xhr:process.env.VUE_APP_BASE_API,ws:"ws://8.130.165.100:9018/",imgxhr:process.env.VUE_APP_BASE_API+"/image/"} +export const development={xhr:process.env.VUE_APP_BASE_API,ws:"ws://192.168.110.238:9018/",imgxhr:process.env.VUE_APP_BASE_API+"/image/"} export const production={xhr:process.env.VUE_APP_BASE_API,ws:"ws://8.130.165.100:9018/",imgxhr:process.env.VUE_APP_BASE_API+"/image/"} //拼接图片url路径 export function imgurlAddXhr(img){ diff --git a/src/utils/websocket.ts b/src/utils/websocket.ts index d501aa6..f72a1af 100644 --- a/src/utils/websocket.ts +++ b/src/utils/websocket.ts @@ -1,5 +1,5 @@ /* - * @FilePath: \daping\src\utils\websocket.ts + * @FilePath: \gitscreenFront\src\utils\websocket.ts * @Author: 王路平 * @文件版本: V1.0.0 * @Date: 2023-02-24 13:14:26 @@ -58,7 +58,7 @@ export const closeWebsocket = () => { if (wsObj) { writeToScreen('手动关闭websocket') wsObj.close() // 关闭websocket - // wsObj.onclose() // 关闭websocket(如果上面的关闭不生效就加上这一条) + wsObj.onclose() // 关闭websocket(如果上面的关闭不生效就加上这一条) // 关闭重连 lockReconnect = true wsCreateHandler && clearTimeout(wsCreateHandler) @@ -153,6 +153,8 @@ const onWsClose = (event) => { } const onWsError = (event) => { // writeToScreen('onWsError: ', event.data) +console.log(event); + errorCallback() } diff --git a/src/views/AerialView/content/tip.vue b/src/views/AerialView/content/tip.vue index 6831499..3d9619a 100644 --- a/src/views/AerialView/content/tip.vue +++ b/src/views/AerialView/content/tip.vue @@ -11,9 +11,10 @@