| | |
| | | logo: { |
| | | label: 'å¹³å°logo', |
| | | des: 'æ¾ç¤ºå¹³å°logoç¶æ', |
| | | fileName: 'gjdw', // gjdw, nfdw, gjdx |
| | | value: false, |
| | | fileName: 'qwh', // gjdw, nfdw, gjdx, qwh |
| | | value: true, |
| | | }, |
| | | uKey: { |
| | | label: 'uKey', |
| | |
| | | des: 'å¯å¨å
æ¾çµæµè¯ä½¿ç¨äººè¸è¯å«', |
| | | value: false, |
| | | }, |
| | | copyRight: { |
| | | label: 'çæå£°æ', |
| | | des: 'çæææï¼å京æ¸
ç½åç§æè¡ä»½æéå
¬å¸ çµè¯ï¼021-75498ï¼è·¯çµï¼', |
| | | value: true, |
| | | }, |
| | | } |
| | |
| | | import nfdw from '@/assets/images/nfdw-log.png'; |
| | | import gjdw from '@/assets/images/gjdw-log.png'; |
| | | import gjdx from '@/assets/images/gjdx-log.png'; |
| | | import qwh from '@/assets/images/qwh-logo.png'; |
| | | import { |
| | | Timeout |
| | | } from '../assets/js/tools' |
| | |
| | | case "gjdx": |
| | | image = gjdx; |
| | | break; |
| | | case 'qwh': |
| | | image = qwh; |
| | | break; |
| | | } |
| | | return image; |
| | | } |
| | |
| | | <template> |
| | | <div class="e-chart-root" @dblclick="fullScreen" :class="{'full-screen': fullScreenState}"> |
| | | <div class="e-chart-container"> |
| | | <div class="e-chart" :id="id" :ref="id"></div> |
| | | <div class="e-chart-tools" v-if="showTools"> |
| | | <i class="iconfont el-icon-yanjingkejian" :class="eleClass" @click="changeEyeState"></i> |
| | | </div> |
| | | <div class="e-chart-root" @dblclick="fullScreen" :class="{'full-screen': fullScreenState}"> |
| | | <div class="e-chart-container"> |
| | | <div class="e-chart" :id="id" :ref="id"></div> |
| | | <div class="e-chart-tools" v-if="showTools"> |
| | | <i class="iconfont el-icon-yanjingkejian" :class="eleClass" @click="changeEyeState"></i> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | import "./theme/transparent" |
| | | |
| | | export default { |
| | | props: { |
| | | id: { |
| | | type: String, |
| | | required: true, |
| | | }, |
| | | unit: { |
| | | type: String, |
| | | default: '', |
| | | }, |
| | | showTools: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | showLabel: { |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | maxColor: { |
| | | type: String, |
| | | default: 'green', |
| | | }, |
| | | minColor: { |
| | | type: String, |
| | | default: 'red', |
| | | }, |
| | | rightMenu: { |
| | | type: Boolean, |
| | | default: false, |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | fullScreenState: false, |
| | | eye: true, |
| | | } |
| | | }, |
| | | methods: { |
| | | getOption(opt) { |
| | | let unit = this.unit; |
| | | let alarmVol = this.getAlarmVal(opt); |
| | | // æ´ä½é
置项 |
| | | let option = { |
| | | animation: false, |
| | | color: this.getColor(opt), |
| | | title: this.getTitle(opt), |
| | | tooltip: { |
| | | trigger: 'axis', |
| | | axisPointer: { // åæ è½´æç¤ºå¨ï¼åæ è½´è§¦åææ |
| | | type: 'shadow' // é»è®¤ä¸ºç´çº¿ï¼å¯é为ï¼'line' | 'shadow' |
| | | }, |
| | | formatter(params) { |
| | | var res = params[0].name + '<br/>'; |
| | | params.forEach(item => { |
| | | res += item.marker; |
| | | res += item.seriesName; |
| | | res += ' : ' + item.data[1] + unit + '</br>'; |
| | | }); |
| | | return res; |
| | | } |
| | | props: { |
| | | id: { |
| | | type: String, |
| | | required: true, |
| | | }, |
| | | grid: { |
| | | left: '1%', |
| | | right: '1%', |
| | | bottom: '2%', |
| | | containLabel: true |
| | | unit: { |
| | | type: String, |
| | | default: '', |
| | | }, |
| | | xAxis: [ |
| | | { |
| | | type: 'category', |
| | | } |
| | | ], |
| | | yAxis: [ |
| | | { |
| | | type: 'value', |
| | | splitLine: { |
| | | show: true, |
| | | }, |
| | | min: function (data) { |
| | | let min = data.min; |
| | | if (min == Infinity) { |
| | | return 0; |
| | | } |
| | | min = alarmVol.low == false ? min : alarmVol.low < min ? alarmVol.low : min; |
| | | return Number((min - min * 0.2).toFixed(2)); |
| | | }, |
| | | max: function (data) { |
| | | let max = data.max; |
| | | if (max == -Infinity) { |
| | | max = 1; |
| | | } |
| | | max = alarmVol.high == false ? max : alarmVol.high > max ? alarmVol.high : max; |
| | | return Number((max + max * 0.2).toFixed(2)); |
| | | } |
| | | } |
| | | ], |
| | | series: this.getSeries(opt), |
| | | }; |
| | | return option; |
| | | }, |
| | | setOption(opt) { |
| | | let option = this.getOption(opt); |
| | | // æ¸
çç»å¸ |
| | | this.$G.chartManage.get(this.id).clear(); |
| | | // 设置é
置项 |
| | | this.$G.chartManage.get(this.id).setOption(option); |
| | | }, |
| | | getAlarmVal(opt) { |
| | | let result = { |
| | | low: false, |
| | | high: false |
| | | }; |
| | | if (opt && opt.series) { |
| | | let markLine = opt.series[0].markLine; |
| | | if (opt.series && markLine && markLine.data) { |
| | | result.low = markLine.data[0].yAxis; |
| | | result.high = markLine.data[1].yAxis; |
| | | showTools: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | showLabel: { |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | maxColor: { |
| | | type: String, |
| | | default: 'green', |
| | | }, |
| | | minColor: { |
| | | type: String, |
| | | default: 'red', |
| | | }, |
| | | rightMenu: { |
| | | type: Boolean, |
| | | default: false, |
| | | } |
| | | } |
| | | |
| | | return result; |
| | | }, |
| | | getColor(opt) { // é
ç½®èªå®ä¹é¢è² |
| | | // æªé
ç½®èªå®ä¹é¢è² |
| | | if (!opt || !opt.color) { |
| | | return [] |
| | | } |
| | | |
| | | // è¿åé¢è² |
| | | return opt.color; |
| | | }, |
| | | getTitle(opt) { // é
ç½®æ é¢ |
| | | // æªé
ç½®æ é¢ |
| | | if (!opt || !opt.title) { |
| | | data() { |
| | | return { |
| | | show: false, |
| | | }; |
| | | } |
| | | |
| | | // è¿åæ é¢ |
| | | return opt.title; |
| | | fullScreenState: false, |
| | | eye: true, |
| | | } |
| | | }, |
| | | getSeries(opt) { // 设置series |
| | | // æªé
ç½®series |
| | | if (!opt || !opt.series) { |
| | | return []; |
| | | } |
| | | let minColor = this.minColor; |
| | | let maxColor = this.maxColor; |
| | | // 设置é
置项 |
| | | let series = opt.series.map(item => { |
| | | let max = this.getMax(item.data); |
| | | let min = this.getMin(item.data); |
| | | item.type = "bar"; |
| | | methods: { |
| | | getOption(opt) { |
| | | let unit = this.unit; |
| | | let alarmVol = this.getAlarmVal(opt); |
| | | // æ´ä½é
置项 |
| | | let option = { |
| | | animation: false, |
| | | color: this.getColor(opt), |
| | | title: this.getTitle(opt), |
| | | tooltip: { |
| | | trigger: 'axis', |
| | | axisPointer: { // åæ è½´æç¤ºå¨ï¼åæ è½´è§¦åææ |
| | | type: 'shadow' // é»è®¤ä¸ºç´çº¿ï¼å¯é为ï¼'line' | 'shadow' |
| | | }, |
| | | formatter(params) { |
| | | var res = params[0].name + '<br/>'; |
| | | params.forEach(item => { |
| | | res += item.marker; |
| | | res += item.seriesName; |
| | | res += ' : ' + item.data[1] + unit + '</br>'; |
| | | }); |
| | | return res; |
| | | } |
| | | }, |
| | | grid: { |
| | | left: '1%', |
| | | right: '1%', |
| | | bottom: '2%', |
| | | containLabel: true |
| | | }, |
| | | xAxis: [ |
| | | { |
| | | type: 'category', |
| | | } |
| | | ], |
| | | yAxis: [ |
| | | { |
| | | type: 'value', |
| | | splitLine: { |
| | | show: true, |
| | | }, |
| | | min: function (data) { |
| | | let min = data.min; |
| | | if (min == Infinity) { |
| | | return 0; |
| | | } |
| | | min = alarmVol.low == false ? min : alarmVol.low < min ? alarmVol.low : min; |
| | | return Number((min - min * 0.2).toFixed(2)); |
| | | }, |
| | | max: function (data) { |
| | | let max = data.max; |
| | | if (max == -Infinity) { |
| | | max = 1; |
| | | } |
| | | max = alarmVol.high == false ? max : alarmVol.high > max ? alarmVol.high : max; |
| | | return Number((max + max * 0.2).toFixed(2)); |
| | | } |
| | | } |
| | | ], |
| | | series: this.getSeries(opt), |
| | | }; |
| | | return option; |
| | | }, |
| | | setOption(opt) { |
| | | let option = this.getOption(opt); |
| | | // æ¸
çç»å¸ |
| | | this.$G.chartManage.get(this.id).clear(); |
| | | // 设置é
置项 |
| | | this.$G.chartManage.get(this.id).setOption(option); |
| | | }, |
| | | getAlarmVal(opt) { |
| | | let result = { |
| | | low: false, |
| | | high: false |
| | | }; |
| | | if (opt && opt.series && opt.series.length !=0 ) { |
| | | |
| | | // æ¾ç¤ºæ°æ® |
| | | item.label = { |
| | | show: this.showChartLabel, |
| | | position: 'top', |
| | | color: '#fff', |
| | | }; |
| | | // 设置é¢è² |
| | | if (item.hColor) { |
| | | // è®¾ç½®èæ¯ |
| | | item.itemStyle = { |
| | | color: item.hColor, |
| | | }; |
| | | } else { |
| | | // è®¾ç½®èæ¯ |
| | | item.itemStyle = { |
| | | color: function (value) { |
| | | let val = value.value[1]; |
| | | if (val == max) { |
| | | return maxColor; |
| | | } else if (val == min) { |
| | | return minColor; |
| | | } |
| | | let markLine = opt.series[0].markLine; |
| | | if (opt.series && markLine && markLine.data) { |
| | | result.low = markLine.data[0].yAxis; |
| | | result.high = markLine.data[1].yAxis; |
| | | } |
| | | } |
| | | }; |
| | | |
| | | return result; |
| | | }, |
| | | getColor(opt) { // é
ç½®èªå®ä¹é¢è² |
| | | // æªé
ç½®èªå®ä¹é¢è² |
| | | if (!opt || !opt.color) { |
| | | return [] |
| | | } |
| | | |
| | | // è¿åé¢è² |
| | | return opt.color; |
| | | }, |
| | | getTitle(opt) { // é
ç½®æ é¢ |
| | | // æªé
ç½®æ é¢ |
| | | if (!opt || !opt.title) { |
| | | return { |
| | | show: false, |
| | | }; |
| | | } |
| | | |
| | | // è¿åæ é¢ |
| | | return opt.title; |
| | | }, |
| | | getSeries(opt) { // 设置series |
| | | // æªé
ç½®series |
| | | if (!opt || !opt.series) { |
| | | return []; |
| | | } |
| | | let minColor = this.minColor; |
| | | let maxColor = this.maxColor; |
| | | // 设置é
置项 |
| | | let series = opt.series.map(item => { |
| | | let max = this.getMax(item.data); |
| | | let min = this.getMin(item.data); |
| | | item.type = "bar"; |
| | | |
| | | // æ¾ç¤ºæ°æ® |
| | | item.label = { |
| | | show: this.showChartLabel, |
| | | position: 'top', |
| | | color: '#fff', |
| | | }; |
| | | // 设置é¢è² |
| | | if (item.hColor) { |
| | | // è®¾ç½®èæ¯ |
| | | item.itemStyle = { |
| | | color: item.hColor, |
| | | }; |
| | | } else { |
| | | // è®¾ç½®èæ¯ |
| | | item.itemStyle = { |
| | | color: function (value) { |
| | | let val = value.value[1]; |
| | | if (val == max) { |
| | | return maxColor; |
| | | } else if (val == min) { |
| | | return minColor; |
| | | } |
| | | } |
| | | }; |
| | | } |
| | | return item; |
| | | }); |
| | | // è¿å |
| | | return series; |
| | | }, |
| | | getMax(list) { |
| | | let arr = list.map(item => { |
| | | return item[1]; |
| | | }); |
| | | return Math.max.apply(null, arr); |
| | | }, |
| | | getMin(list) { |
| | | let arr = list.map(item => { |
| | | return item[1]; |
| | | }); |
| | | return Math.min.apply(null, arr); |
| | | }, |
| | | fullScreen() { |
| | | this.fullScreenState = this.fullScreenState ? false : true; |
| | | this.$nextTick(() => { |
| | | // éç½®å¤§å° |
| | | this.$G.chartManage.get(this.id).resize(); |
| | | }); |
| | | }, |
| | | resize() { |
| | | // éç½®å¤§å° |
| | | this.$G.chartManage.get(this.id).resize(); |
| | | }, |
| | | changeEyeState() { |
| | | this.eye = this.eye ? false : true; |
| | | let option = this.$G.chartManage.get(this.id).getOption(); |
| | | this.setOption(option); |
| | | } |
| | | return item; |
| | | }); |
| | | // è¿å |
| | | return series; |
| | | }, |
| | | getMax(list) { |
| | | let arr = list.map(item => { |
| | | return item[1]; |
| | | }); |
| | | return Math.max.apply(null, arr); |
| | | }, |
| | | getMin(list) { |
| | | let arr = list.map(item => { |
| | | return item[1]; |
| | | }); |
| | | return Math.min.apply(null, arr); |
| | | }, |
| | | fullScreen() { |
| | | this.fullScreenState = this.fullScreenState ? false : true; |
| | | this.$nextTick(() => { |
| | | // éç½®å¤§å° |
| | | this.$G.chartManage.get(this.id).resize(); |
| | | }); |
| | | }, |
| | | resize() { |
| | | // éç½®å¤§å° |
| | | this.$G.chartManage.get(this.id).resize(); |
| | | }, |
| | | changeEyeState() { |
| | | this.eye = this.eye ? false : true; |
| | | let option = this.$G.chartManage.get(this.id).getOption(); |
| | | this.setOption(option); |
| | | } |
| | | }, |
| | | computed: { |
| | | eleClass() { |
| | | return this.eye ? "el-icon-yanjingkejian" : "el-icon-yanjing-bukejian"; |
| | | }, |
| | | showChartLabel() { |
| | | return this.showLabel && this.eye ? true : false; |
| | | } |
| | | }, |
| | | mounted() { |
| | | let self = this; |
| | | this.$refs[this.id].oncontextmenu = function() { |
| | | return false; |
| | | } |
| | | // åºäºåå¤å¥½çdomï¼åå§åechartså®ä¾ |
| | | let chart = ECharts.init(this.$refs[this.id], 'transparent'); |
| | | // å°å¾è¡¨æ·»å å°å¾è¡¨ç®¡ç |
| | | this.$G.chartManage.set(this.id, chart); |
| | | // 设置é
置项 |
| | | this.setOption(); |
| | | |
| | | // ç¹å»äºä»¶ |
| | | chart.getZr().on('mousedown', function(params) { |
| | | if(params.which == 3) { |
| | | let pointInPixel= [params.offsetX, params.offsetY]; |
| | | if (chart.containPixel('grid',pointInPixel)) { |
| | | /*åå»å¾æ Xè½´æ°æ®ï¼æå¼è¯¦æ
*/ |
| | | let xIndex = chart.convertFromPixel({seriesIndex:0},pointInPixel)[0]; |
| | | self.$emit('right-click', { |
| | | x: params.event.clientX+16, |
| | | y: params.event.clientY+16, |
| | | xIndex: xIndex |
| | | }); |
| | | computed: { |
| | | eleClass() { |
| | | return this.eye ? "el-icon-yanjingkejian" : "el-icon-yanjing-bukejian"; |
| | | }, |
| | | showChartLabel() { |
| | | return this.showLabel && this.eye ? true : false; |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | let self = this; |
| | | this.$refs[this.id].oncontextmenu = function () { |
| | | return false; |
| | | } |
| | | // åºäºåå¤å¥½çdomï¼åå§åechartså®ä¾ |
| | | let chart = ECharts.init(this.$refs[this.id], 'transparent'); |
| | | // å°å¾è¡¨æ·»å å°å¾è¡¨ç®¡ç |
| | | this.$G.chartManage.set(this.id, chart); |
| | | // 设置é
置项 |
| | | this.setOption(); |
| | | |
| | | }); |
| | | // ç¹å»äºä»¶ |
| | | chart.getZr().on('mousedown', function (params) { |
| | | if (params.which == 3) { |
| | | let pointInPixel = [params.offsetX, params.offsetY]; |
| | | if (chart.containPixel('grid', pointInPixel)) { |
| | | /*åå»å¾æ Xè½´æ°æ®ï¼æå¼è¯¦æ
*/ |
| | | let xIndex = chart.convertFromPixel({seriesIndex: 0}, pointInPixel)[0]; |
| | | self.$emit('right-click', { |
| | | x: params.event.clientX + 16, |
| | | y: params.event.clientY + 16, |
| | | xIndex: xIndex |
| | | }); |
| | | } |
| | | } |
| | | |
| | | // æ ¹æ®åè½å±è½å³é®èå |
| | | if (this.rightMenu) { |
| | | document.getElementById(this.id).oncontextmenu = function () { |
| | | return false; |
| | | }; |
| | | }); |
| | | |
| | | // æ ¹æ®åè½å±è½å³é®èå |
| | | if (this.rightMenu) { |
| | | document.getElementById(this.id).oncontextmenu = function () { |
| | | return false; |
| | | }; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | |
| | | .e-chart-root, |
| | | .e-chart-container, |
| | | .e-chart { |
| | | height: 100%; |
| | | box-sizing: border-box; |
| | | height: 100%; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .e-chart-root.full-screen .e-chart-container { |
| | | position: fixed; |
| | | top: 0; |
| | | left: 0; |
| | | right: 0; |
| | | bottom: 0; |
| | | background-size: 100% 100%; |
| | | z-index: 9999; |
| | | position: fixed; |
| | | top: 0; |
| | | left: 0; |
| | | right: 0; |
| | | bottom: 0; |
| | | background-size: 100% 100%; |
| | | z-index: 9999; |
| | | } |
| | | |
| | | .e-chart-tools { |
| | | position: absolute; |
| | | top: 16px; |
| | | right: 16px; |
| | | z-index: 9; |
| | | position: absolute; |
| | | top: 16px; |
| | | right: 16px; |
| | | z-index: 9; |
| | | } |
| | | |
| | | .e-chart-tools .iconfont { |
| | | margin-left: 8px; |
| | | font-size: 24px; |
| | | cursor: pointer; |
| | | color: #00fefe; |
| | | margin-left: 8px; |
| | | font-size: 24px; |
| | | cursor: pointer; |
| | | color: #00fefe; |
| | | } |
| | | |
| | | .e-chart-tools .iconfont:hover { |
| | | color: #04b1b1; |
| | | color: #04b1b1; |
| | | } |
| | | |
| | | .e-chart-tools .iconfont:active { |
| | | color: #FF0000; |
| | | color: #FF0000; |
| | | } |
| | | </style> |
| | |
| | | dataSeachroms(data) |
| | | .then((res) => { |
| | | let result = JSON.parse(res.data.result); |
| | | console.log(result); |
| | | // å
³éçå¾
æ¡ |
| | | this.$layer.close(loading); |
| | | if (result.code == 1 || result.length > 0) { |
| | |
| | | } else if (binf != undefined) { |
| | | obj.category = 2; |
| | | } |
| | | |
| | | // 设置å
æ¾çµåç§° |
| | | if(tdata != undefined) { |
| | | if (item.test_type == 3) { |
| | | // æµè¯ç±»å为æ¾çµ |
| | | if (item.test_starttype == 3) { |
| | | // æ ¸å®¹æ¾çµ |
| | | obj.testLabel = 'herongDischarge'; |
| | | } else { |
| | | // çæµæ¾çµ |
| | | obj.testLabel = 'jianceDischarge'; |
| | | } |
| | | } else if (item.test_type == 2) { |
| | | // æµè¯ç±»å为å
çµ |
| | | if (item.test_starttype == 3) { |
| | | // æ ¸å®¹å
çµ |
| | | obj.testLabel = 'herongCharge'; |
| | | } else { |
| | | // çæµå
çµ |
| | | obj.testLabel = 'jianceCharge'; |
| | | } |
| | | } |
| | | }else { |
| | | obj.testLabel = ''; |
| | | } |
| | | |
| | | |
| | | if (item.smodel.code == 1) { |
| | | obj.sum = item.smodel.sum; //è½åå使°é |
| | |
| | | "&home=" + |
| | | StationName[3] + |
| | | "&batt=" + |
| | | data.BattGroupId; |
| | | data.BattGroupId+ |
| | | "&testLabel="+ |
| | | data.testLabel+ |
| | | "&testStartTime="+ |
| | | data.test_starttime; |
| | | window.parent.postMessage( |
| | | { |
| | | cmd: "syncPage", |
| | |
| | | baseURL = baseURL ? baseURL : ""; |
| | | return { |
| | | loading: false, |
| | | isNew: true, |
| | | showComparison: false, |
| | | data: [], |
| | | batt: {}, |
| | |
| | | this.init(); |
| | | // è·åå
æ¾çµè®°å½ |
| | | this.searchBattTestData(); |
| | | this.isNew = false; |
| | | }, |
| | | // åå§å页颿°æ® |
| | | init() { |
| | |
| | | <template> |
| | | <div class="login_container"> |
| | | <div class="sliderCon"> |
| | | <div class="logo"> |
| | | <img src="../assets/images/yuanchang_logo2.png" class="logoImg"> |
| | | {{ platformName }} |
| | | <div class="login-wrapper"> |
| | | <div class="login_container"> |
| | | <div class="sliderCon"> |
| | | <div class="logo"> |
| | | <img :src="logoUrl" class="logoImg"> |
| | | {{ platformName }} |
| | | </div> |
| | | <img src="../assets/images/login-img.png" class="picImg"> |
| | | </div> |
| | | <img src="../assets/images/login-img.png" class="picImg"> |
| | | <div class="login_box"> |
| | | <div class="title">ç¨æ·ç»å½</div> |
| | | <!-- ç»å½è¡¨ååº --> |
| | | <el-form label-width="0px" class="login_from" :model="loginForm" ref="loginFormRef"> |
| | | <!-- ç¨æ·å --> |
| | | <el-form-item prop="username"> |
| | | <el-input class="input" v-model="loginForm.username" prefix-icon="el-icon-user" |
| | | @keyup.enter.native.stop="onSubmit"></el-input> |
| | | </el-form-item> |
| | | <!-- å¯ç --> |
| | | <el-form-item prop="password"> |
| | | <el-input class="input" v-model="loginForm.password" prefix-icon="el-icon-lock" type="password" |
| | | @keyup.enter.native.stop="onSubmit"></el-input> |
| | | </el-form-item> |
| | | <el-form-item class="btns"> |
| | | <el-button :loading="loading" type="primary" @click="onSubmit" class="loginBtn">ç»å½</el-button> |
| | | </el-form-item> |
| | | <el-form-item v-if="!register"> |
| | | <a href="javascript:;" @click="license.show = true" |
| | | class="regBtn">平尿³¨å</a> |
| | | </el-form-item> |
| | | <el-form-item v-else> |
| | | <a href="javascript:;" class="regBtn">å·²æ¿æ´»</a> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <!-- licenseå¼¹æ¡è¾å
¥é¢æ¿ --> |
| | | <el-dialog |
| | | title="平尿³¨åæç¤º" width="600px" |
| | | :visible.sync="license.show" |
| | | :close-on-click-modal="false" top="0" |
| | | class="dialog-center" :modal-append-to-body="false"> |
| | | <add-license v-if="license.show" :visible.sync="license.show"></add-license> |
| | | </el-dialog> |
| | | <!-- 人è¸ç»é --> |
| | | <el-dialog |
| | | title="人è¸ç»é" width="480px" |
| | | :visible.sync="face.show" |
| | | :close-on-click-modal="false" top="0" |
| | | class="dialog-center" :modal-append-to-body="false"> |
| | | <face-login v-if="face.show" :visible.sync="face.show" @success="checkServeLicense"></face-login> |
| | | </el-dialog> |
| | | <!-- åè½æè¿° --> |
| | | <el-dialog |
| | | title="é
ç½®æ¸
å" width="960px" |
| | | :visible.sync="config.show" |
| | | :close-on-click-modal="false" top="0" |
| | | class="dialog-center" :modal-append-to-body="false"> |
| | | <config-info></config-info> |
| | | </el-dialog> |
| | | <!-- uKeyçéªè¯ --> |
| | | <el-dialog |
| | | title="uKeyç»å®" width="750px" |
| | | :visible.sync="uKey.show" |
| | | :close-on-click-modal="false" top="0" |
| | | class="dialog-center" :modal-append-to-body="false"> |
| | | <ukey-bind v-if="uKey.show" :visible.sync="uKey.show"></ukey-bind> |
| | | </el-dialog> |
| | | <div class="tools-container"> |
| | | <div class="tools-item" :class="uKeyState" v-if="$CFG.uKey.value" @click="uKey.show=true"> |
| | | <span class="iconfont el-icon-CombinedShape"></span> |
| | | </div> |
| | | <div class="tools-item" v-if="$CFG.face.value" @click="face.show=true"> |
| | | <span class="iconfont el-icon-renlianshibie"></span> |
| | | </div> |
| | | <div class="tools-item" @click="config.show=true"> |
| | | <span class="iconfont el-icon-peizhi"></span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="login_box"> |
| | | <div class="title">ç¨æ·ç»å½</div> |
| | | <!-- ç»å½è¡¨ååº --> |
| | | <el-form label-width="0px" class="login_from" :model="loginForm" ref="loginFormRef"> |
| | | <!-- ç¨æ·å --> |
| | | <el-form-item prop="username"> |
| | | <el-input class="input" v-model="loginForm.username" prefix-icon="el-icon-user" |
| | | @keyup.enter.native.stop="onSubmit"></el-input> |
| | | </el-form-item> |
| | | <!-- å¯ç --> |
| | | <el-form-item prop="password"> |
| | | <el-input class="input" v-model="loginForm.password" prefix-icon="el-icon-lock" type="password" |
| | | @keyup.enter.native.stop="onSubmit"></el-input> |
| | | </el-form-item> |
| | | <el-form-item class="btns"> |
| | | <el-button :loading="loading" type="primary" @click="onSubmit" class="loginBtn">ç»å½</el-button> |
| | | </el-form-item> |
| | | <el-form-item v-if="!register"> |
| | | <a href="javascript:;" @click="license.show = true" |
| | | class="regBtn">平尿³¨å</a> |
| | | </el-form-item> |
| | | <el-form-item v-else> |
| | | <a href="javascript:;" class="regBtn">å·²æ¿æ´»</a> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <!-- licenseå¼¹æ¡è¾å
¥é¢æ¿ --> |
| | | <el-dialog |
| | | title="平尿³¨åæç¤º" width="600px" |
| | | :visible.sync="license.show" |
| | | :close-on-click-modal="false" top="0" |
| | | class="dialog-center" :modal-append-to-body="false"> |
| | | <add-license v-if="license.show" :visible.sync="license.show"></add-license> |
| | | </el-dialog> |
| | | <!-- 人è¸ç»é --> |
| | | <el-dialog |
| | | title="人è¸ç»é" width="480px" |
| | | :visible.sync="face.show" |
| | | :close-on-click-modal="false" top="0" |
| | | class="dialog-center" :modal-append-to-body="false"> |
| | | <face-login v-if="face.show" :visible.sync="face.show" @success="checkServeLicense"></face-login> |
| | | </el-dialog> |
| | | <!-- åè½æè¿° --> |
| | | <el-dialog |
| | | title="é
ç½®æ¸
å" width="960px" |
| | | :visible.sync="config.show" |
| | | :close-on-click-modal="false" top="0" |
| | | class="dialog-center" :modal-append-to-body="false"> |
| | | <config-info></config-info> |
| | | </el-dialog> |
| | | <!-- uKeyçéªè¯ --> |
| | | <el-dialog |
| | | title="uKeyç»å®" width="750px" |
| | | :visible.sync="uKey.show" |
| | | :close-on-click-modal="false" top="0" |
| | | class="dialog-center" :modal-append-to-body="false"> |
| | | <ukey-bind v-if="uKey.show" :visible.sync="uKey.show"></ukey-bind> |
| | | </el-dialog> |
| | | <div class="tools-container"> |
| | | <div class="tools-item" :class="uKeyState" v-if="$CFG.uKey.value" @click="uKey.show=true"> |
| | | <span class="iconfont el-icon-CombinedShape"></span> |
| | | </div> |
| | | <div class="tools-item" v-if="$CFG.face.value" @click="face.show=true"> |
| | | <span class="iconfont el-icon-renlianshibie"></span> |
| | | </div> |
| | | <div class="tools-item" @click="config.show=true"> |
| | | <span class="iconfont el-icon-peizhi"></span> |
| | | </div> |
| | | <div class="copy-right" v-if="copyRight.value"> |
| | | {{copyRight.des}} |
| | | </div> |
| | | </div> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | } from "@/assets/js/api"; |
| | | import ConfigInfo from "@/pages/configInfo"; |
| | | import UkeyBind from "@/components/UKeyBind"; |
| | | import nfdw from '@/assets/images/nfdw-log.png'; |
| | | import gjdw from '@/assets/images/gjdw-log.png'; |
| | | import gjdx from '@/assets/images/gjdx-log.png'; |
| | | import qwh from '@/assets/images/qwh-logo.png'; |
| | | import yuanchange from '@/assets/images/yuanchang_logo2.png'; |
| | | import platform from "@/assets/js/config"; |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | show: false, |
| | | }, |
| | | platformName: "", |
| | | logoConfig: platform.logo, |
| | | copyRight: platform.copyRight, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | } |
| | | return cls; |
| | | }, |
| | | logoUrl() { |
| | | let logoConfig = this.logoConfig; |
| | | let image = yuanchange; |
| | | switch (logoConfig.fileName) { |
| | | case "nfdw": |
| | | image = nfdw |
| | | break; |
| | | case "gjdx": |
| | | image = gjdx; |
| | | break; |
| | | case 'qwh': |
| | | image = qwh; |
| | | break; |
| | | case 'gjdw': |
| | | image = gjdw; |
| | | break; |
| | | } |
| | | return image; |
| | | } |
| | | }, |
| | | mounted() { |
| | | // åå§åuserçä¿¡æ¯ |
| | |
| | | </style> |
| | | |
| | | <style lang="less" scoped> |
| | | .login-wrapper { |
| | | position: relative; |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | /* ç»å½å¤§çåèæ¯ */ |
| | | .login_container { |
| | | width: 100%; |
| | |
| | | font-weight: bold; |
| | | |
| | | .logoImg { |
| | | height: 40px; |
| | | height: 60px; |
| | | margin-right: 14px; |
| | | } |
| | | } |
| | |
| | | width: 416px; |
| | | height: 376px; |
| | | } |
| | | |
| | | } |
| | | </style> |
| | | |
| | | <style scoped> |
| | | .copy-right { |
| | | position: absolute; |
| | | width: 100%; |
| | | text-align: center; |
| | | bottom: 16px; |
| | | z-index: 999; |
| | | font-size: 12px; |
| | | } |
| | | </style> |
| | |
| | | ``` |
| | | å
¬å¼ï¼ç»èªæ¶é¿=æåä¸ç¬æ°æ®çå®é
容é/è´è½½çµæµ |
| | | ä¿ç使°ï¼ï¼éè¦è½¬å为å夿¶é´ï¼ |
| | | ``` |
| | | 3.åè¦è§åç³»æ°è®¡ç®æ¹å¼ |
| | | ``` |
| | | åè¦ç±»å æ ¡åå¼ |
| | | ç»ç«¯/å¨çº¿çµå æ ç§°çµå*å使°éï¼48ï¼ |
| | | çµæµ æ 称容é/10 |
| | | åä½çµå æ ç§°çµå |
| | | å使¸©åº¦ 25 |
| | | åä½å
é» ï¼1*(æ ç§°çµå/2)/ï¼æ 称容é/100ï¼ï¼ |
| | | è¿æ¥æ¡é»æ 0.2 |
| | | æ¼æ¶²çµå 1 |
| | | ``` |