Merge branch 'hdw' of http://118.89.139.230:10101/r/admin_manage into hdw
| | |
| | | }, |
| | | //æ¾çµæ¶é¿ |
| | | DisTime: { |
| | | pattern: /^[0-9]{1,3}(\.[0-9]{0,3})?$/, |
| | | pattern: /^[0-9]{1,4}(\.[0-9]{0,3})?$/, |
| | | regVal: true, |
| | | min: 0, |
| | | max: 500, |
| | | msg: 'åå¼èå´0~500' |
| | | max: 6000, |
| | | msg: 'åå¼èå´0~6000' |
| | | }, |
| | | //å
å®éç½® |
| | | DisWaitTime: { |
| | |
| | | }, |
| | | //åä½ä¸éæ°é |
| | | MonVolHightLimitCount: { |
| | | pattern: /^[0-9]{1,3}(\.[0-9]{0,3})?$/, |
| | | pattern: /^[0-9]{1,3}$/, |
| | | regVal: true, |
| | | min: 1, |
| | | max: 300, |
| | |
| | | }, |
| | | //åä½ä¸éæ°é |
| | | MonomerLowCount: { |
| | | pattern: /^[0-9]{1,3}(\.[0-9]{0,3})?$/, |
| | | pattern: /^[0-9]{1,3}$/, |
| | | regVal: true, |
| | | min: 1, |
| | | max: 240, |
| | | msg: 'åå¼èå´0~240' |
| | | max: 300, |
| | | msg: 'åå¼èå´1~300' |
| | | }, |
| | | //æ¾çµè¿æ¸© |
| | | MonomerTmp_High: { |
| | |
| | | </el-form-item> |
| | | </div> |
| | | <div class="table-cell pr16"> |
| | | <el-form-item label="æµ®å
çµå(V)" prop="AutoTestStartVol"> |
| | | <el-input v-model="params.AutoTestStartVol"></el-input> |
| | | <el-form-item label="å
çµæ¶é¿(åé)" prop="CharTimeLong"> |
| | | <el-input v-model="params.CharTimeLong"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <!-- <div class="table-cell"> |
| | |
| | | </div> |
| | | <div class="table-row"> |
| | | <div class="table-cell pr16"> |
| | | <el-form-item label="æªæ¢çµæµ(A)" prop="CharSotpCurr"> |
| | | <el-form-item label="æµ®å
çµå(V)" prop="AutoTestStartVol"> |
| | | <el-input v-model="params.AutoTestStartVol"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="table-cell pr16"> |
| | | <el-form-item label="æµ®å
çµæµ(A)" prop="CharSotpCurr"> |
| | | <el-input v-model="params.CharSotpCurr"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="table-cell pr16"> |
| | | <el-form-item label="æµ®å
æ¶é¿(åé)" prop="FloatCharTimeLong"> |
| | | <el-input v-model="params.FloatCharTimeLong"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <!-- <div class="table-cell pr16"> |
| | |
| | | <el-input v-model.number="params.CharCap"></el-input> |
| | | </el-form-item> |
| | | </div> --> |
| | | </div> |
| | | <div class="table-row"> |
| | | <div class="table-cell pr16"> |
| | | <el-form-item label="åä½ä¸é(V)" prop="MonVolHightLimit"> |
| | | <el-input v-model="params.MonVolHightLimit"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="table-cell"> |
| | | <el-form-item label="ç»ç«¯ä¸é(V)" prop="DCVolHighLimit"> |
| | | <el-input v-model="params.DCVolHighLimit"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | | <div class="table-row"> |
| | | <div class="table-cell pr16"> |
| | | <el-form-item label="åä½ä¸éæ°é(个)" prop="MonVolHightLimitCount"> |
| | | <el-input v-model="params.MonVolHightLimitCount"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="table-cell pr16"> |
| | | <el-form-item label="å
çµæ¶é¿(åé)" prop="CharTimeLong"> |
| | | <el-input v-model="params.CharTimeLong"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div class="table-cell pr16"> |
| | | <el-form-item label="æµ®å
æ¶é¿(åé)" prop="FloatCharTimeLong"> |
| | | <el-input v-model="params.FloatCharTimeLong"></el-input> |
| | | <el-form-item label="ç»ç«¯ä¸é(V)" prop="DCVolHighLimit"> |
| | | <el-input v-model="params.DCVolHighLimit"></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | } from "@/assets/js/const" |
| | | import config from "@/assets/js/config"; |
| | | // import checkFace from "@/components/checkFace"; |
| | | let rules = const_aio.dischargeRules; |
| | | export default { |
| | | name: "dischargeParams", |
| | | components: { |
| | |
| | | data() { |
| | | let cmd = const_aio.cmd; |
| | | let testType = const_aio.testType; |
| | | let rules = const_aio.dischargeRules; |
| | | let cycleStart = const_aio.cycleStart; |
| | | let HourRate = const_aio.HourRate; |
| | | let batt = this.batt; |
| | |
| | | rules.MonomerVol_Low.min = (batt.MonVolStd*0.9).toHold(1); |
| | | rules.MonomerVol_Low.max = (batt.MonVolStd*1.2).toHold(1); |
| | | rules.MonomerVol_Low.msg = "åå¼èå´"+rules.MonomerVol_Low.min+"~"+rules.MonomerVol_Low.max+"(ä¿çä¸ä½å°æ°)"; |
| | | |
| | | // åä½ä¸éæ°é |
| | | rules.MonomerLowCount.max = batt.MonCount; |
| | | rules.MonomerLowCount.msg = "åå¼èå´" + rules.MonomerLowCount.min + "~" + rules.MonomerLowCount.max; |
| | | |
| | | // åä½ä¸éæ°é |
| | | rules.MonVolHightLimitCount.max = batt.MonCount; |
| | | rules.MonVolHightLimitCount.msg = 'åå¼èå´' + rules.MonVolHightLimitCount.min + '~' + rules.MonVolHightLimitCount.max; |
| | | |
| | | return { |
| | | setFaceShow: false, |
| | |
| | | CharTimeLong: 0, //å
çµæ¶é¿ |
| | | CharWaitTime: 0, //æ¾å®éç½® |
| | | ChargeCurrSet: 0, //å
çµçµæµ |
| | | DCVolHighLimit: 0, //ç»ç«¯ä¸é |
| | | DCVolHighLimit: 5, //ç»ç«¯ä¸é |
| | | DisCap: 0, //æ¾çµå®¹é |
| | | DisCurr: 0, //æ¾çµçµæµ |
| | | DisPower: 0, //颿¾åç |
| | |
| | | }, |
| | | } |
| | | }, |
| | | watch: { |
| | | "params.OnLineVol_Low" (n) { |
| | | // ä¿®æ¹ç»ç«¯ä¸éçåå¼èå´ |
| | | rules.DCVolHighLimit.min = n; |
| | | rules.DCVolHighLimit.msg = "åå¼èå´" + rules.DCVolHighLimit.min + "~" + rules.DCVolHighLimit.max; |
| | | |
| | | this.params.DCVolHighLimit = (n * 1 + 5) ? (n * 1 + 5) : 5; |
| | | |
| | | this.rules.DCVolHighLimit = [{ |
| | | validator(rule, value, callback) { |
| | | testVal(rule, value, callback, rules.DCVolHighLimit); |
| | | }, |
| | | trigger: 'change' |
| | | }]; |
| | | } |
| | | }, |
| | | methods: { |
| | | initParams() { |
| | | // åå§ååæ° |
| | |
| | | CharTimeLong: 0, //å
çµæ¶é¿ |
| | | CharWaitTime: 0, //æ¾å®éç½® |
| | | ChargeCurrSet: 0, //å
çµçµæµ |
| | | DCVolHighLimit: 0, //ç»ç«¯ä¸é |
| | | DCVolHighLimit: 5, //ç»ç«¯ä¸é |
| | | DisCap: 0, //æ¾çµå®¹é |
| | | DisCurr: 0, //æ¾çµçµæµ |
| | | DisPower: 0, //颿¾åç |
| | |
| | | Img_load.src = loadImage; |
| | | Img_batt.src = battImage; |
| | | |
| | | // console.log(Date.now(), 'init') |
| | | |
| | | // if (Img_batt.complete) { |
| | | // console.log(Date.now(), 'batt'); |
| | | // } else { |
| | | // Img_batt.addEventListener('load', () => { |
| | | // console.log(Date.now(), 'batt load'); |
| | | // }); |
| | | // } |
| | | |
| | | // let Img_screen = 'url(' + screenImage + ')'; |
| | | // let Img_load = 'url(' + loadImage + ')'; |
| | | // let Img_batt = 'url(' + battImage + ')'; |
| | | |
| | | // function getDataUrl (img) { |
| | | // let can = document.createElement('canvas'); |
| | | // let offCtx = can.getContext('2d'); |
| | | // let width = img.width; |
| | | // let height = img.height; |
| | | // can.width = width; |
| | | // can.height = height; |
| | | // console.dir(img); |
| | | // if (img.complete) { |
| | | // offCtx.drawImage(img, 0, 0, width, height); |
| | | // } else { |
| | | // img.addEventListener('load', () => { |
| | | // offCtx.drawImage(img, 0, 0, width, height); |
| | | // }); |
| | | // } |
| | | // return can; |
| | | // } |
| | | |
| | | // console.log(getDataUrl(Img_batt)); |
| | | |
| | | |
| | | let timer = new Timeout(); |
| | | const BALLCOLOR = '#00f7f9'; |
| | | let list = { |
| | |
| | | } |
| | | // äºæç®¡ |
| | | ,'diode_1': { |
| | | x: 628 |
| | | x: 800 |
| | | ,y: 254 |
| | | ,method: 'drawDiode' |
| | | } |
| | | ,'diode_2': { |
| | | x: 628 |
| | | x: 800 |
| | | ,y: 552 |
| | | ,method: 'drawDiode' |
| | | } |
| | |
| | | } |
| | | // çµé» |
| | | ,'resistance_0': { |
| | | x: 800 |
| | | ,y: 216 |
| | | // x: 800 |
| | | x: 490 |
| | | ,y: 180 |
| | | ,name: 'R1' |
| | | ,method: 'drawResistance' |
| | | } |
| | | // ,'switch_0': { |
| | | // x: 300 |
| | | // ,y: 120 |
| | | // ,distance: 60 |
| | | // ,method: 'drawSwitch' |
| | | // ,isOn: false |
| | | // ,name: 'K1' |
| | | // ,description: '80A' |
| | | // } |
| | | // ,'switch_1': { |
| | | // x: 300 |
| | | // ,y: 330 |
| | | // ,distance: 60 |
| | | // ,method: 'drawSwitch' |
| | | // ,isOn: false |
| | | // ,name: 'K2' |
| | | // ,description: '80A' |
| | | // } |
| | | // ,'switch_2': { |
| | | // x: 300 |
| | | // ,y: 420 |
| | | // ,distance: 60 |
| | | // ,method: 'drawSwitch' |
| | | // ,isOn: false |
| | | // ,name: 'K3' |
| | | // ,description: '80A' |
| | | // } |
| | | // ,'switch_3': { |
| | | // x: 820 |
| | | // ,y: 60 |
| | | // ,distance: 60 |
| | | // ,method: 'drawSwitch' |
| | | // ,isOn: false |
| | | // ,name: 'K4' |
| | | // // ,description: '80A' |
| | | // } |
| | | // ,'switch_4': { |
| | | // x: 660 |
| | | // ,y: 420 |
| | | // ,distance: 60 |
| | | // ,method: 'drawSwitch' |
| | | // ,isOn: false |
| | | // ,name: 'K5' |
| | | // ,description: '80A' |
| | | // } |
| | | // ,'switch_5': { |
| | | // x: 580 |
| | | // ,y: 220 |
| | | // ,distance: 60 |
| | | // ,method: 'drawSwitch' |
| | | // ,isOn: false |
| | | // ,direction: 'ver' |
| | | // } |
| | | // ,'switch_6': { |
| | | // x: 580 |
| | | // ,y: 520 |
| | | // ,distance: 60 |
| | | // ,method: 'drawSwitch' |
| | | // ,isOn: false |
| | | // ,direction: 'ver' |
| | | // } |
| | | ,'inductance_0': { |
| | | x: 404 |
| | | x: 530 |
| | | ,y: 420 |
| | | ,method: 'drawInductance' |
| | | ,name: 'L1' |
| | |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_5': { |
| | | points: [[364, 120], [805, 120], [805, 216]] |
| | | points: [[364, 120], [752, 120]] |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_6': { |
| | | points: [[805, 276], [805, 420], [724, 420]] |
| | | points: [[495, 364], [495, 420]] |
| | | // points: [[805, 276], [805, 420], [724, 420]] |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_7': { |
| | | points: [[452, 420], [656, 420]] |
| | | points: [[578, 420], [752, 420]] |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_8': { |
| | | points: [[364, 420], [404, 420]] |
| | | points: [[364, 420], [530, 420]] |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_9': { |
| | |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_12': { |
| | | points: [[580, 120], [580, 216]] |
| | | points: [[752, 120], [752, 216]] |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_13': { |
| | | points: [[580, 284], [580, 516]] |
| | | points: [[752, 284], [752, 516]] |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_14': { |
| | | points: [[580, 584], [580, 700]] |
| | | points: [[752, 584], [752, 700]] |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_15': { |
| | | points: [[580, 196], [638, 196], [638, 244]] |
| | | points: [[752, 196], [810, 196], [810, 244]] |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_16': { |
| | | points: [[638, 254], [638, 304], [580, 304]] |
| | | points: [[810, 254], [810, 304], [752, 304]] |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_17': { |
| | | points: [[580, 496], [638, 496], [638, 542]] |
| | | points: [[752, 496], [810, 496], [810, 542]] |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_18': { |
| | | points: [[638, 552], [638, 604], [580, 604]] |
| | | points: [[810, 552], [810, 604], [752, 604]] |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_19': { |
| | |
| | | } |
| | | ,'line_20': { |
| | | points: [[990, 440], [990, 700]] |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_21': { |
| | | points: [[495, 120], [495, 180]] |
| | | ,method: 'drawLine' |
| | | } |
| | | ,'line_22': { |
| | | points: [[495, 296], [495, 240]] |
| | | ,method: 'drawLine' |
| | | } |
| | | }; |
| | |
| | | |
| | | const list1 = [ |
| | | {points: [47, 480, 47, 420], direction: status.state == 2 ? 'top' : 'bottom', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [47, 420, 580, 420], direction: status.state == 2 ? 'right' : 'left', fillStyle: BALLCOLOR, ballNum: 4} |
| | | ,{points: [580, 420, 580, 700], direction: status.state == 2 ? 'bottom' : 'top', fillStyle: BALLCOLOR, ballNum: 3} |
| | | ,{points: [47, 420, 752, 420], direction: status.state == 2 ? 'right' : 'left', fillStyle: BALLCOLOR, ballNum: 5} |
| | | ,{points: [752, 420, 752, 700], direction: status.state == 2 ? 'bottom' : 'top', fillStyle: BALLCOLOR, ballNum: 3} |
| | | ]; |
| | | |
| | | const list2 = [ |
| | | {points: [580, 420, 580, 120], direction: 'top', fillStyle: BALLCOLOR, ballNum: 3} |
| | | ,{points: [580, 120, 805, 120], direction: 'right', fillStyle: BALLCOLOR, ballNum: 2} |
| | | ,{points: [805, 120, 805, 216], direction: 'bottom', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [805, 276, 805, 420], direction: 'bottom', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [580, 420, 805, 420], direction: 'left', fillStyle: BALLCOLOR, ballNum: 2} |
| | | {points: [495, 420, 495, 240], direction: 'top', fillStyle: BALLCOLOR, ballNum: 2} |
| | | ,{points: [495, 120, 495, 180], direction: 'top', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [495, 120, 752, 120], direction: 'right', fillStyle: BALLCOLOR, ballNum: 2} |
| | | ,{points: [752, 120, 752, 216], direction: 'bottom', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [752, 276, 752, 420], direction: 'bottom', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [495, 420, 752, 420], direction: 'left', fillStyle: BALLCOLOR, ballNum: 2} |
| | | ]; |
| | | |
| | | const list3 = [ |
| | |
| | | ,{points: [47, 60, 1222, 60], direction: 'right', fillStyle: BALLCOLOR, ballNum: 10} |
| | | ,{points: [1222, 323, 1222, 60], direction: 'bottom', fillStyle: BALLCOLOR, ballNum: 3} |
| | | ,{points: [1222, 458, 1222, 700], direction: 'bottom', fillStyle: BALLCOLOR, ballNum: 3} |
| | | ,{points: [580, 700, 1222, 700], direction: 'left', fillStyle: BALLCOLOR, ballNum: 5} |
| | | ,{points: [752, 700, 1222, 700], direction: 'left', fillStyle: BALLCOLOR, ballNum: 4} |
| | | ]; |
| | | // list1ä¸list3å
Œ
±ç¬¬äºé¨å |
| | | const list30 = [ |
| | | {points: [47, 700, 580, 700], direction: status.state == 2 ? 'left' : 'right', fillStyle: BALLCOLOR, ballNum: 4} |
| | | {points: [47, 700, 752, 700], direction: status.state == 2 ? 'left' : 'right', fillStyle: BALLCOLOR, ballNum: 5} |
| | | ,{points: [47, 624, 47, 700], direction: status.state == 2 ? 'top' : 'bottom', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ]; |
| | | |
| | | const list31 = [ |
| | | {points: [47, 700, 580, 700], direction: 'left', fillStyle: BALLCOLOR, ballNum: 4} |
| | | {points: [47, 700, 752, 700], direction: 'left', fillStyle: BALLCOLOR, ballNum: 5} |
| | | ,{points: [47, 624, 47, 700], direction: 'top', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ]; |
| | | |
| | | |
| | | const list4 = [ |
| | | {points: [154, 162, 154, 120], direction: 'top', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [154, 120, 580, 120], direction: 'right', fillStyle: BALLCOLOR, ballNum: 4} |
| | | ,{points: [580, 420, 580, 120], direction: 'bottom', fillStyle: BALLCOLOR, ballNum: 3} |
| | | ,{points: [580, 420, 384, 420], direction: 'left', fillStyle: BALLCOLOR, ballNum: 2} |
| | | ,{points: [154, 120, 752, 120], direction: 'right', fillStyle: BALLCOLOR, ballNum: 5} |
| | | ,{points: [752, 420, 752, 120], direction: 'bottom', fillStyle: BALLCOLOR, ballNum: 3} |
| | | ,{points: [752, 420, 384, 420], direction: 'left', fillStyle: BALLCOLOR, ballNum: 3} |
| | | ,{points: [384, 330, 384, 420], direction: 'top', fillStyle: BALLCOLOR, ballNum: 1} |
| | | ,{points: [154, 330, 384, 330], direction: 'left', fillStyle: BALLCOLOR, ballNum: 2} |
| | | ,{points: [154, 330, 154, 260], direction: 'top', fillStyle: BALLCOLOR, ballNum: 1} |
| | |
| | | ,description: '80A' |
| | | }); |
| | | stateL.draw_switch({ |
| | | x: 580 |
| | | x: 752 |
| | | ,y: 520 |
| | | ,distance: 60 |
| | | ,method: 'drawSwitch' |
| | |
| | | }); |
| | | |
| | | stateL.draw_switch({ |
| | | x: 660 |
| | | ,y: 420 |
| | | x: 495 |
| | | ,y: 300 |
| | | ,distance: 60 |
| | | ,method: 'drawSwitch' |
| | | ,isOn: Q2 |
| | | ,name: 'K5' |
| | | ,description: '80A' |
| | | ,direction: 'ver' |
| | | }); |
| | | |
| | | stateL.draw_switch({ |
| | | x: 580 |
| | | x: 752 |
| | | ,y: 220 |
| | | ,distance: 60 |
| | | ,method: 'drawSwitch' |
| | |
| | | return list; |
| | | } |
| | | let batt_state_text = this.diagram.powerCut?"åçµæ¾çµ":obj[this.inputs.batt_state]; |
| | | list.batt_state = batt_state_text+this.diagram.desc; |
| | | list.batt_state = batt_state_text + '(' + this.diagram.desc + ')'; |
| | | list.group_online_vol = |
| | | `å¨çº¿:${this.inputs.online_vol.toFixed(2)}V; ç»ç«¯:${this.inputs.group_vol.toFixed(2)}V`; |
| | | list.group_curr = this.inputs.group_curr.toFixed(2) + "A"; |
| | |
| | | ``` |
| | | ä¸ä½æºåæ°è®¾ç½®ä¸æ¾ç¤ºæ¾çµè¿æ¸© å
çµè¿æ¸© |
| | | ``` |
| | | ####2021/7/31 |
| | | ``` |
| | | ä¸ä½æºåæ°è®¾ç½® å
çµçµåæ¹åæ¶ ç»ç«¯ä¸é为 å
çµçµå + 5 |
| | | ç»ç«¯ä¸éèå´ä¸ºå
çµçµå ~ 300 |
| | | |
| | | åä½ä¸éæ°éèå´ 1 ~ å使° |
| | | åä½ä¸éæ°éèå´ 1 ~ å使° |
| | | ``` |