diff --git a/index.html b/index.html index b93d434..9af6336 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Tunnel Cloud + 地下复杂洞群智能通风控制系统
diff --git a/src/assets/images/login/bg.png b/src/assets/images/login/bg.png new file mode 100644 index 0000000..b376e3a Binary files /dev/null and b/src/assets/images/login/bg.png differ diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 61c4fd9..3e69ee6 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -6,11 +6,11 @@ background-repeat: no-repeat; background-size: 100% 100%; background-position: center; - -moz-user-select: none; /*火狐*/ - -webkit-user-select: none; /*webkit浏览器*/ - -ms-user-select: none; /*IE10*/ - -khtml-user-select: none; /*早期浏览器*/ - user-select: none; + //-moz-user-select: none; /*火狐*/ + //-webkit-user-select: none; /*webkit浏览器*/ + //-ms-user-select: none; /*IE10*/ + //-khtml-user-select: none; /*早期浏览器*/ + //user-select: none; font-family: "MicrosoftYaHei", "微软雅黑", "Helvetica Neue", Helvetica, Arial, sans-serif; } @@ -298,6 +298,7 @@ body, height: 1160px; //width: 1300px; } + #containerFan { flex: 1; height: 1160px; @@ -452,28 +453,44 @@ body, .el-overlay-message-box { .el-message-box { - width: 500px; - height: 230px; + padding-bottom: 23px; + width: 310px; + //height:190px; background: rgba(7, 35, 72, 0.79); border-radius: 20px; border: 2px solid #0f82af; + .el-message-box__header { + display: none; + //padding: 15px; + } + .el-message-box__title { display: none; } + .el-message-box__close { + display: none; + } + .el-message-box__content { + padding: 18px 15px; + .el-icon { display: none; } .el-message-box__message { + display: flex; + align-items: center; + justify-content: center; //width: 315px; height: 80px; - font-size: 32px; + //line-height: 80px; + font-size: 22px; font-weight: bold; color: #08b7b8; - letter-spacing: 3px; + letter-spacing: 0.5px; p { line-height: 40px; @@ -481,16 +498,22 @@ body, } } + .el-message-box__status + .el-message-box__message { + padding-left: 22px; + padding-right: 12px; + word-break: break-word; + } + .el-message-box__btns { - margin-top: 20px; + padding: 0; display: flex; justify-content: space-around; .el-button { - width: 130px; - height: 50px; + width: 80px; + height: 40px; border: 2px solid #0f82af; - font-size: 28px; + font-size: 18px; background-color: #072348; color: #08b7b8; } @@ -506,9 +529,11 @@ body, .el-dropdown-menu__item:not(.is-disabled):focus { background-color: transparent !important; } + .el-popper__arrow::before { display: none; } + .current-site { .el-select-dropdown { @@ -625,8 +650,9 @@ input[type="number"] { background-color: transparent !important; color: #60DDDE !important; } -.showNull{ - font-size:35px; + +.showNull { + font-size: 35px; min-height: 350px; display: flex; flex-direction: column; @@ -635,17 +661,19 @@ input[type="number"] { color: #2fb0df; letter-spacing: 3px; } + //loading -.loading-block{ +.loading-block { display: flex; flex-direction: column; justify-content: center; align-items: center; - height:900px; + height: 900px; font-size: 55px; color: #38CAFB; letter-spacing: 3px; } + .loading { margin-bottom: 20px; width: 100px; @@ -655,6 +683,7 @@ input[type="number"] { border-radius: 100%; animation: circle infinite 0.75s linear; } + // 转转转动画 @keyframes circle { 0% { diff --git a/src/components/content/airInfo/childComps/ItemInfo.vue b/src/components/content/airInfo/childComps/ItemInfo.vue index f09c288..6bb9879 100644 --- a/src/components/content/airInfo/childComps/ItemInfo.vue +++ b/src/components/content/airInfo/childComps/ItemInfo.vue @@ -41,14 +41,28 @@ const setValue = () => { value.value.style.width = `${width}px`; let flag = (params.wp.point * length.value.offsetWidth) / params.wp.max; point.value.style.left = `${flag}px`; - if (width >= flag) { - value.value.style.background = - "linear-gradient(270deg, #FB3838 0%, #E98526 100%)"; - } else { - value.value.style.background = - "linear-gradient(270deg, #38CAFB 0%, #E9D726 100%)"; + + + if(params.wp.name=='氧气'){ + if (width < flag) { + value.value.style.background = + "linear-gradient(270deg, #FB3838 0%, #E98526 100%)"; + } else { + value.value.style.background = + "linear-gradient(270deg, #38CAFB 0%, #E9D726 100%)"; + } + isWaring.value = params.wp.value < params.wp.point; + }else { + if (width >= flag) { + value.value.style.background = + "linear-gradient(270deg, #FB3838 0%, #E98526 100%)"; + } else { + value.value.style.background = + "linear-gradient(270deg, #38CAFB 0%, #E9D726 100%)"; + } + isWaring.value = params.wp.value >= params.wp.point; } - isWaring.value = params.wp.value >= params.wp.point; + } // let isWaring = computed(() => { // return params.wp.value >= params.wp.point; @@ -114,9 +128,9 @@ const setValue = () => { position: absolute; height: 20px; width: 3px; - background: #92D18F; + background: #fff; border-radius: 4px; - box-shadow: 0 0 10px #92D18F; + box-shadow: 0 0 10px #fff; top: 1px; left: 1px; } diff --git a/src/components/content/badGasInfo/childComps/GasInfoItem.vue b/src/components/content/badGasInfo/childComps/GasInfoItem.vue index f82c8e8..6693c76 100644 --- a/src/components/content/badGasInfo/childComps/GasInfoItem.vue +++ b/src/components/content/badGasInfo/childComps/GasInfoItem.vue @@ -135,12 +135,13 @@ function setPoint() { display: block; height: 20px; width: 2px; - background: #7EDFEC; + background: #fff; position: absolute; - bottom: 2px; + bottom: 2.5px; left: 50%; transform: translateX(-50%); - box-shadow: 0 0 10px #7EDFEC; + box-shadow: 0 0 10px #fff; + border-radius: 4px; } .info { width: 200px; diff --git a/src/components/content/fanInfo/FanInfo.vue b/src/components/content/fanInfo/FanInfo.vue index 126df2c..c2c485b 100644 --- a/src/components/content/fanInfo/FanInfo.vue +++ b/src/components/content/fanInfo/FanInfo.vue @@ -403,6 +403,11 @@ const initChart = (type, valueA,valueB,valueC) => {
${params[0].name}
${params[0].value}
+
${params[1].name}
+
${params[1].value}
+
${params[2].name}
+
${params[2].value}
+
`; return content; }, diff --git a/src/components/content/fanInfo/FanInfoItem.vue b/src/components/content/fanInfo/FanInfoItem.vue index ced3b89..e74fc68 100644 --- a/src/components/content/fanInfo/FanInfoItem.vue +++ b/src/components/content/fanInfo/FanInfoItem.vue @@ -168,10 +168,10 @@ let isWaringC = computed(() => { .point { position: absolute; height: 20px; - background: #92D18F; + background: #fff; width: 3px; border-radius: 4px; - box-shadow: 0 0 10px #92D18F; + box-shadow: 0 0 10px #fff; top: 1px; left: 1px; } diff --git a/src/components/content/usedEle/UsedEle.vue b/src/components/content/usedEle/UsedEle.vue index 4e5fe39..10de6ca 100644 --- a/src/components/content/usedEle/UsedEle.vue +++ b/src/components/content/usedEle/UsedEle.vue @@ -7,7 +7,7 @@
- 当月用电量:{{ electricityConsumptionMonthly }}v + 当月用电量:{{ electricityConsumptionMonthly }}kwh
@@ -16,7 +16,7 @@
- 当月节省量:{{ monthlySavings }}v + 当月节省量:{{ monthlySavings }}kwh
@@ -27,15 +27,15 @@
- 12月总用电量 + {{ month }}总用电量
-
2345v
+
{{ electricityConsumptionMonthly }}kwh
当月节省量
-
345v
+
{{ monthlySavings }}kwh
@@ -55,7 +55,7 @@ @@ -123,11 +123,11 @@ let isWaring = computed(() => { #point { position: absolute; height: 20px; - background: #92D18F; + background: #fff; width: 3px; border-radius: 4px; - box-shadow: 0 0 10px #92D18F; - top: 1px; + box-shadow: 0 0 10px #fff; + top: 2px; left: 1px; } } diff --git a/src/utils/date.js b/src/utils/date.js index 61af94a..1b01ba1 100644 --- a/src/utils/date.js +++ b/src/utils/date.js @@ -1,9 +1,10 @@ -export const dateFormat = (time = new Date().getTime()) => { //YYYY年MM月DD日 星期d +export const dateFormat = (time = new Date().getTime(),flag) => { //YYYY年MM月DD日 星期d const _time = time.toString().length > 10 ? time : time * 1000 const weekList = ["日","一", "二", "三", "四", "五", "六" ]; const date = new Date(_time); const Y = date.getFullYear(); const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1); + const Mm = (date.getMonth() + 1 < 10 ? (date.getMonth() + 1) : date.getMonth() + 1); const D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()); const h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()); const m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()); @@ -11,7 +12,11 @@ export const dateFormat = (time = new Date().getTime()) => { //YYYY年MM月DD日 let weekDay = new Date().getDay(); const week= weekList[weekDay] // const strDate = `${Y}/${M}/${D} ${h}:${m}:${s}` - return `${Y}年${M}月${D}日 星期${week}`; + if(flag){ + return `${Mm}月`; + }else { + return `${Y}年${M}月${D}日 星期${week}`; + } } export default { diff --git a/src/utils/request.js b/src/utils/request.js index 5befe96..1845eb8 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -62,7 +62,8 @@ serveice.interceptors.response.use(response=>{ confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning', - closeOnClickModal: false + closeOnClickModal: false, + customClass:'message-id' }).then(()=>{ removeToken() window.location = '/login' diff --git a/src/views/debug/index.vue b/src/views/debug/index.vue index 8de3ce5..6ada50e 100644 --- a/src/views/debug/index.vue +++ b/src/views/debug/index.vue @@ -10,16 +10,16 @@ 清除
-
+
server send:
{{ item.cmd }}
-
+
server receive:
{{ item.cmd }}
-
+
server send:
{{ item.cmd }}
@@ -66,7 +66,7 @@ let socket = reactive('') const handleSend = () => { let data = { type: "send", - typeCmd: 1, + cmdType: 1, cmd: number.value } if (number.value === '') return; @@ -75,7 +75,7 @@ const handleSend = () => { } const initWebSocket = () => { // let wsUrl = `ws://192.168.31.175:9000/websocket/equipment/${token}/${serialNumber.value}` - let wsUrl = `ws://web-tunnel.feashow.com/api/wstunnel/websocket/equipment/${token}/${serialNumber.value}` + let wsUrl = `ws://web-tunnel.feashow.com/api/wstunnel/websocket/debug/${token}/${serialNumber.value}` console.log(wsUrl) socket = new WebSocket(wsUrl) //连接发生错误的回调方法 diff --git a/src/views/login/index.vue b/src/views/login/index.vue index b93c23c..3ced737 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -6,7 +6,7 @@ :rules="rules" label-width="65px" > -

Tunnel Cloud

+

地下复杂洞群智能通风控制系统

@@ -116,12 +116,13 @@ onBeforeUnmount(() => { .login-box { height: 100%; background-color: #4158d0; - background-image: linear-gradient( - 43deg, - #4158d0 0%, - #c850c0 46%, - #ffcc70 100% - ); + //background-image: linear-gradient( + // 43deg, + // #4158d0 0%, + // #c850c0 46%, + // #ffcc70 100% + //); + background-image: url("../../assets/images/login/bg.png"); display: flex; justify-content: center; align-items: center; @@ -130,6 +131,8 @@ onBeforeUnmount(() => { padding: 12px 15px; border-radius: 12px; width: 25%; + min-width: 407px; + min-height: 300px; background-color: #fff; h3 { diff --git a/src/views/user/index.vue b/src/views/user/index.vue index 9d1785c..2cadfcd 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -355,6 +355,9 @@ const handleSelect = async (selection, row) => { } .el-popper { + width: auto; + min-width: auto; + margin-left: 0; box-sizing: border-box; }