| | |
| | | face: { |
| | | label: "人脸识别", |
| | | des: "用户可以直接通过人脸识别登录", |
| | | value: false |
| | | value: true |
| | | }, |
| | | autograph: { |
| | | label: '签名', |
| | |
| | | import faceManager from '../../assets/js/apis/faceManager/faceManager.js' |
| | | import {uKeyLogin} from "@/assets/js/api"; |
| | | import const_num from "@/assets/js/const/const_num"; |
| | | import sysConfig from "@/assets/js/config"; |
| | | import RSA from "@/assets/js/tools/RSA"; |
| | | export default { |
| | | props: { |
| | | faceShow: { |
| | |
| | | }, |
| | | // 请求后台验证人脸 |
| | | facePost: function () { |
| | | if(!this.$store.state.ukey.isIn) { |
| | | if(!this.$store.state.ukey.isIn && sysConfig.uKey.value) { |
| | | this.faceDetect = '请先插入ukey'; |
| | | this.setTime = setTimeout(() => { |
| | | this.facePost(); |
| | |
| | | faceManager.getUserName().then(res => { |
| | | let result = JSON.parse(res.data.result); |
| | | if (result.code == 1) { |
| | | let password = RSA.decrypt(result.data.USnId, const_num.privateKey) |
| | | this.uKeyLogin(result.data.UName, password); |
| | | let password = RSA.decrypt(result.data.USnId, const_num.privateKey); |
| | | if(sysConfig.uKey.value) { |
| | | this.uKeyLogin(result.data.UName, password); |
| | | }else { |
| | | this.faceSuccessLogin(result.data.UName, password); |
| | | } |
| | | |
| | | } |
| | | }).catch(err => { |
| | | console.log(err); |
| | |
| | | this.facePost(); |
| | | }); |
| | | }, |
| | | faceSuccessLogin(username, password) { |
| | | this.$emit("successLogin", { |
| | | username, |
| | | password |
| | | }); |
| | | }, |
| | | handleLogin(res, username) { |
| | | let rs = JSON.parse(res.data.result); |
| | | if (rs.code == 1) { |
| | |
| | | show: true, |
| | | position: 'end', |
| | | formatter: [ |
| | | '{a|' + allData.groupVol[specialPoint.min][0] + '}' + '{c|}', |
| | | '{b|锅底电压:' + allData.groupVol[specialPoint.min][1] + 'V}' + '{c|}' |
| | | '{a|Tg:' + allData.groupVol[specialPoint.min][0] + '}' + '{c|}', |
| | | '{b|锅底电压Vg:' + allData.groupVol[specialPoint.min][1] + 'V}' + '{c|}' |
| | | ].join('\n'), |
| | | rich: { |
| | | a: { |
| | |
| | | show: true, |
| | | position: 'end', |
| | | formatter: [ |
| | | '{c|}' + '{a|' + allData.groupVol[specialPoint.max][0] + '}', |
| | | '{c|}' + '{b|驼峰电压:' + allData.groupVol[specialPoint.max][1] + 'V}' |
| | | '{c|}' + '{a|Tt:' + allData.groupVol[specialPoint.max][0] + '}', |
| | | '{c|}' + '{b|驼峰电压Vt:' + allData.groupVol[specialPoint.max][1] + 'V}' |
| | | ].join('\n'), |
| | | rich: { |
| | | a: { |
| | |
| | | <template> |
| | | <div class="auto-login-loading" v-if="isAutoLogin"> |
| | | <img src="../assets/images/loading-open.gif"> |
| | | <img src="../assets/images/login_loading.gif"> |
| | | </div> |
| | | <div class="login-wrapper" v-else> |
| | | <div class="login_container"> |
| | |
| | | v-if="face.show" |
| | | :visible.sync="face.show" |
| | | @success="checkServeLicense" |
| | | @successLogin="faceSuccessLogin" |
| | | ></face-login> |
| | | </el-dialog> |
| | | <!-- 功能描述 --> |
| | |
| | | sessionStorage.setItem("passwordType", "4"); |
| | | }); |
| | | }, |
| | | faceSuccessLogin(info) { |
| | | this.face.show = false; |
| | | this.loginForm.username = info.username; |
| | | this.loginForm.password = info.password; |
| | | this.loginForm.verify = this.verifyCode; |
| | | this.$nextTick(()=>{ |
| | | this.normalLogin(); |
| | | }); |
| | | } |
| | | }, |
| | | computed: { |
| | | uKeyState() { |
| | |
| | | //console.log(AES.decrypt("FCGylc7v1wXzmTqpRXPPGA==")); |
| | | //console.log(md5("a123456")); |
| | | //console.log(JSON.stringify("5OUaEnC33sVNY+jeXlx3Qg==")); |
| | | // let rsaWord = RSA.encrypt("123456"); |
| | | // let rsaWord = RSA.encrypt("890-ppPP"); |
| | | // console.log(rsaWord); |
| | | //console.log(RSA.decrypt("", const_num.privateKey)); |
| | | }, |
| | |
| | | return { |
| | | exportUrl: baseURL+"ExportTable.servlet", |
| | | allSelected: true, |
| | | limitValues: { |
| | | lowCA: 0.4, |
| | | lowCH: 0.5, |
| | | lowRA: 0.94, |
| | | lowRH: 0.01, |
| | | }, |
| | | eleAnalysetable: { |
| | | headers: [{ |
| | | prop: "BattGroupId", |
| | |
| | | prop: "group_vol_percentage", |
| | | label: "容量百分比", |
| | | width: 95 |
| | | }, |
| | | { |
| | | prop: "records", |
| | | label: "指导建议", |
| | | width: 95 |
| | | } |
| | | ], |
| | | datas: [] |
| | |
| | | this.$layer.msg('暂无查询结果!'); |
| | | } |
| | | }).catch((err) => { |
| | | console.log(err); |
| | | // 关闭等待框 |
| | | this.$layer.close(loading); |
| | | this.$layer.msg('查询失败'); |
| | |
| | | let order_num = 1; |
| | | let battgroupid = 0; |
| | | let line_arr = new Array(); |
| | | let limitValues = this.limitValues; |
| | | allData = []; |
| | | this.chartData = []; |
| | | this.eleAnalysetable.datas = []; |
| | |
| | | pointArray.push(data[i].tmodel.data[j].group_vol.toFixed(0)); |
| | | allDate.push(data[i].tmodel.data[j].test_starttime); |
| | | line_arr.push(pointArray); |
| | | let realCap = tableObj.group_vol; |
| | | let MonCapStd = data[i].data.MonCapStd; |
| | | |
| | | if (realCap >= MonCapStd * limitValues.lowCA) { |
| | | tableObj.records = '正常'; //指导建议 |
| | | } else if (realCap < MonCapStd * limitValues.lowCA && realCap > MonCapStd * limitValues.lowCH) { |
| | | tableObj.records = '告警'; //指导建议 |
| | | } else { |
| | | tableObj.records = '更换'; //指导建议 |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | label: "容量百分比", |
| | | }, |
| | | { |
| | | prop: "capDecline", |
| | | label: "容量下降原因", |
| | | }, |
| | | { |
| | | prop: "records", |
| | | label: "维护记录", |
| | | label: "指导建议", |
| | | } |
| | | ], |
| | | datas: [] |
| | |
| | | this.$layer.close(loading); |
| | | this.eleAnalysetable.datas = []; |
| | | serchLowResdata = JSON.parse(res.data.result); |
| | | console.log(serchLowResdata); |
| | | lowCA = serchLowResdata.lowCA; |
| | | lowCH = serchLowResdata.lowCH; |
| | | lowRa = serchLowResdata.lowRA; |
| | |
| | | label: "容量百分比", |
| | | }, |
| | | { |
| | | prop: "capDecline", |
| | | label: "容量下降原因", |
| | | }, |
| | | { |
| | | prop: "records", |
| | | label: "维护记录", |
| | | label: "指导建议", |
| | | } |
| | | ]; |
| | | let order_num = 0; |
| | |
| | | tableObj.vol_percentage = (realCap * 100 / data[i].binf.MonCapStd).toFixed(0) + |
| | | "%"; //容量百分比 |
| | | if (realCap >= data[i].binf.MonCapStd * lowCA) { |
| | | tableObj.records = '正常'; //维护记录 |
| | | tableObj.records = '正常'; //指导建议 |
| | | } else if (realCap < data[i].binf.MonCapStd * lowCA && realCap > data[i].binf |
| | | .MonCapStd * lowCH) { |
| | | tableObj.records = '告警'; //维护记录 |
| | | tableObj.records = '告警'; //指导建议 |
| | | } else { |
| | | tableObj.records = '更换'; //维护记录 |
| | | tableObj.records = '更换'; //指导建议 |
| | | } |
| | | |
| | | tableObj.capDecline = ""; |
| | | debugger; |
| | | let item = data[i]; |
| | | // 浮充电压过低 |
| | | if((item.binf.FloatVolLevel-item.sdata.group_vol)>2) { |
| | | tableObj.capDecline +="浮充电压过低"; |
| | | } |
| | | |
| | | // 充电电流过大 |
| | | if(item.binf.MonCapStd/10*2<item.sdata.test_curr) { |
| | | tableObj.capDecline += tableObj.capDecline?",充电电流过大":"充电电流过大"; |
| | | } |
| | | //tableObj.capDecline = tableObj.capDecline?"无":tableObj.capDecline; |
| | | this.eleAnalysetable.datas.push(tableObj); //请求表格数据 |
| | | } |
| | | MonNumlist.forEach((item, index) => { |
| | |
| | | }, |
| | | { |
| | | prop: "advice", |
| | | label: "维护建议", |
| | | label: "指导建议", |
| | | } |
| | | ].filter(item=>{ |
| | | let isIn = false; |
| | |
| | | if (serchLowResdata.newsum == 1) { |
| | | //根据平均值比较 |
| | | if (conduct >= ((this.arrAverageNum(monser_arr[test_index]).toFixed(0)) * lowRa)) { |
| | | tableObj.advice = "正常"; //维护建议; |
| | | tableObj.advice = "正常"; //指导建议; |
| | | } else if (conduct < (this.arrAverageNum(monser_arr[test_index]).toFixed(0)) * lowRa && |
| | | conduct > (this.arrAverageNum(monser_arr[test_index]).toFixed(0)) * lowRH) { |
| | | tableObj.advice = "告警"; //维护建议; |
| | | tableObj.advice = "告警"; //指导建议; |
| | | } else { |
| | | tableObj.advice = "更换"; //维护建议; |
| | | tableObj.advice = "更换"; //指导建议; |
| | | } |
| | | |
| | | } else if (serchLowResdata.newsum == 0) { |
| | | //根据标称值比较 |
| | | let MonSerstd = resdata.binf.MonResStd; |
| | | if (conduct >= (MonSerstd * lowRa)) { |
| | | tableObj.advice = "正常"; //维护建议; |
| | | tableObj.advice = "正常"; //指导建议; |
| | | } else if (conduct < (MonSerstd * lowRa) && conduct > MonSerstd * lowRH) { |
| | | tableObj.advice = "告警"; //维护建议; |
| | | tableObj.advice = "告警"; //指导建议; |
| | | } else { |
| | | tableObj.advice = "更换"; //维护建议; |
| | | tableObj.advice = "更换"; //指导建议; |
| | | } |
| | | } |
| | | |