New file |
| | |
| | | export default { |
| | | base: 20, |
| | | } |
| | |
| | | import const_curing from "@/assets/js/const/const_curing"; |
| | | import const_plan from "@/assets/js/const/const_plan"; |
| | | import const_outline from "@/assets/js/const/const_outline"; |
| | | import const_font from "@/assets/js/const/const_font"; |
| | | export { |
| | | const_9100, |
| | | const_61850, |
| | |
| | | const_battGroup, |
| | | const_curing, |
| | | const_plan, |
| | | const_outline |
| | | const_outline, |
| | | const_font |
| | | }; |
| | |
| | | padding-left: 18px; |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 6px; |
| | | } |
| | | |
| | | .header-info-item { |
| | | display: inline-block; |
| | | min-width: 85px; |
| | | min-width: 85Px; |
| | | padding-top: 4px; |
| | | padding-bottom: 2px; |
| | | } |
| | |
| | | |
| | | <style scoped> |
| | | .map-panel-content { |
| | | width: 300px; |
| | | width: 300Px; |
| | | } |
| | | |
| | | .content-item { |
| | | padding: 4px; |
| | | font-size: 12px; |
| | | padding: 4Px; |
| | | font-size: 12Px; |
| | | } |
| | | |
| | | .content-item-nowrap { |
| | |
| | | } |
| | | |
| | | .content-detail { |
| | | margin-left: 8px; |
| | | margin-left: 8Px; |
| | | } |
| | | </style> |
New file |
| | |
| | | import store from "@/store"; |
| | | import { |
| | | const_font |
| | | } from '@/assets/js/const' |
| | | //格式化时间 |
| | | Date.prototype.format = function(format) { |
| | | var o = { |
| | | "M+": this.getMonth() + 1, //month |
| | | "d+": this.getDate(), //day |
| | | "h+": this.getHours(), //hour |
| | | "m+": this.getMinutes(), //minute |
| | | "s+": this.getSeconds(), //second |
| | | "q+": Math.floor((this.getMonth() + 3) / 3), //quarter |
| | | "S": this.getMilliseconds() //millisecond |
| | | }; |
| | | if (/(y+)/.test(format)) format = format.replace(RegExp.$1, |
| | | (this.getFullYear() + "").substr(4 - RegExp.$1.length)); |
| | | for (var k in o) |
| | | if (new RegExp("(" + k + ")").test(format)) |
| | | format = format.replace(RegExp.$1, |
| | | RegExp.$1.length == 1 ? o[k] : |
| | | ("00" + o[k]).substr(("" + o[k]).length)); |
| | | return format; |
| | | }; |
| | | |
| | | // 对toFixed数字保留位数二次封装(ps:toFixed返回的是字符串) |
| | | Number.prototype.toHold = function(value) { |
| | | var hold = this.toFixed(value); |
| | | hold = Number(hold); |
| | | return hold; |
| | | }; |
| | | |
| | | /* eslint-disable */ |
| | | ;(function(doc, win) { |
| | | let docEl = doc.documentElement, |
| | | resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', |
| | | recalc = function() { |
| | | let clientWidth = docEl.clientWidth; |
| | | if (!clientWidth) return; |
| | | let fontSize = const_font.base * (clientWidth / 1920); |
| | | docEl.style.fontSize = fontSize + 'px'; |
| | | store.dispatch('theme/changeFontTimes', fontSize/const_font.base); |
| | | }; |
| | | if (!doc.addEventListener) return; |
| | | win.addEventListener(resizeEvt, recalc, false); |
| | | doc.addEventListener('DOMContentLoaded', recalc, false); |
| | | })(document, window); |
| | |
| | | // 引入vuex |
| | | import store from './store' |
| | | |
| | | //格式化时间 |
| | | Date.prototype.format = function(format) { |
| | | var o = { |
| | | "M+": this.getMonth() + 1, //month |
| | | "d+": this.getDate(), //day |
| | | "h+": this.getHours(), //hour |
| | | "m+": this.getMinutes(), //minute |
| | | "s+": this.getSeconds(), //second |
| | | "q+": Math.floor((this.getMonth() + 3) / 3), //quarter |
| | | "S": this.getMilliseconds() //millisecond |
| | | }; |
| | | if (/(y+)/.test(format)) format = format.replace(RegExp.$1, |
| | | (this.getFullYear() + "").substr(4 - RegExp.$1.length)); |
| | | for (var k in o) |
| | | if (new RegExp("(" + k + ")").test(format)) |
| | | format = format.replace(RegExp.$1, |
| | | RegExp.$1.length == 1 ? o[k] : |
| | | ("00" + o[k]).substr(("" + o[k]).length)); |
| | | return format; |
| | | }; |
| | | |
| | | // 对toFixed数字保留位数二次封装(ps:toFixed返回的是字符串) |
| | | Number.prototype.toHold = function(value) { |
| | | var hold = this.toFixed(value); |
| | | hold = Number(hold); |
| | | return hold; |
| | | }; |
| | | import "./global/common" |
| | | |
| | | /** |
| | | * @注册一个全局方法储存skin方法 |
| | |
| | | } |
| | | } |
| | | return storage.setItem(key, data); |
| | | } |
| | | |
| | | /* eslint-disable */ |
| | | ;(function(doc, win) { |
| | | let docEl = doc.documentElement, |
| | | resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', |
| | | recalc = function() { |
| | | let clientWidth = docEl.clientWidth; |
| | | if (!clientWidth) return; |
| | | docEl.style.fontSize = 20 * (clientWidth / 1920) + 'px'; |
| | | }; |
| | | if (!doc.addEventListener) return; |
| | | win.addEventListener(resizeEvt, recalc, false); |
| | | doc.addEventListener('DOMContentLoaded', recalc, false); |
| | | })(document, window); |
| | | |
| | | }; |
| | | |
| | | new Vue({ |
| | | router, |
| | |
| | | titleLeft |
| | | toggle |
| | | @toggleChange="toggleChange" |
| | | style="width:320px"> |
| | | class="context-box-w"> |
| | | <flex-layout> |
| | | <div slot="header"> |
| | | <el-select |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .context-box-w { |
| | | width: 320px; |
| | | } |
| | | .box-tools { |
| | | width: 200px; |
| | | text-align: right; |
| | |
| | | <content-box title="站点列表" |
| | | titleLeft |
| | | toggle |
| | | @toggleChange="toggleChange" |
| | | style="width:320px" |
| | | class="siteList"> |
| | | @toggleChange="toggleChange" |
| | | class="siteList context-box-w"> |
| | | <box-tools slot="box-tools" :batt="batt"></box-tools> |
| | | <flex-layout> |
| | | <div slot="header"> |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .context-box-w { |
| | | width: 320px; |
| | | } |
| | | .box-tools { |
| | | width: 200px; |
| | | text-align: right; |
| | |
| | | position: absolute; |
| | | background-color: #ffffff; |
| | | color: rgb(0, 0, 0); |
| | | border: 1px solid #999; |
| | | border: 1Px solid #999; |
| | | } |
| | | |
| | | .infoPanel .infoPanel-Title { |
| | | border-bottom: 1px solid #ccc; |
| | | height: 31px; |
| | | line-height: 30px; |
| | | border-bottom: 1Px solid #ccc; |
| | | height: 31Px; |
| | | line-height: 30Px; |
| | | background-color: #f9f9f9; |
| | | overflow: hidden; |
| | | height: 30px; |
| | | padding: 0 5px; |
| | | font-size: 12px; |
| | | height: 30Px; |
| | | padding: 0 5Px; |
| | | font-size: 12Px; |
| | | position: relative; |
| | | } |
| | | |
| | |
| | | background: url('../assets/images/iw_close1d3.gif') 0 0 no-repeat; |
| | | background-size: 100% 100%; |
| | | position: absolute; |
| | | top: 9px; |
| | | right: 12px; |
| | | width: 10px; |
| | | height: 10px; |
| | | top: 9Px; |
| | | right: 12Px; |
| | | width: 10Px; |
| | | height: 10Px; |
| | | -moz-user-select: none; |
| | | overflow: hidden; |
| | | cursor: pointer; |
| | | line-height: 9999px; |
| | | line-height: 9999Px; |
| | | z-index: 10000; |
| | | } |
| | | |
| | | .infoPanel .infoPanel-center { |
| | | padding: 3px 5px; |
| | | padding: 3Px 5Px; |
| | | overflow-x: auto; |
| | | overflow-y: hidden; |
| | | } |
| | |
| | | display: block; |
| | | z-index: 5; |
| | | position: absolute; |
| | | bottom: -31px; |
| | | width: 58px; |
| | | height: 31px; |
| | | left: 125px; |
| | | bottom: -31Px; |
| | | width: 58Px; |
| | | height: 31Px; |
| | | left: 125Px; |
| | | background: url('../assets/images/iw_tail.png') 0 0 no-repeat; |
| | | background-size: 100% 100%; |
| | | } |
| | |
| | | state() { |
| | | return { |
| | | themeName: "", |
| | | fontTimes: 1, |
| | | } |
| | | }, |
| | | mutations: { |
| | | changeThemeName(state, name) { |
| | | state.themeName = name; |
| | | }, |
| | | changeFontTimes(state, fontTimes) { |
| | | state.fontTimes = fontTimes; |
| | | } |
| | | }, |
| | | actions: { |
| | | changeThemeName(context, name) { |
| | | context.commit('changeThemeName', name); |
| | | }, |
| | | changeFontTimes(context, fontTimes) { |
| | | context.commit('changeFontTimes', fontTimes); |
| | | } |
| | | }, |
| | | } |