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] =?UTF-8?q?1.=E6=9B=B4=E6=8D=A2=E7=B3=BB=E7=BB=9F=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E9=A2=9C=E8=89=B2=202.=E5=A2=9E=E5=8A=A0=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E6=8A=A5=E8=AD=A6=E8=AE=B0=E5=BD=95=E6=A8=A1=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 @@