| 1 |
- if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e,t,...a){uni.__log__?uni.__log__(e,t,...a):console[e].apply(console,[...a,t])}function a(e,t){return"string"==typeof e?t:e}const s={data:()=>({}),created(){this.popup=this.getParent()},methods:{getParent(e="uniPopup"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t}}},o=(e,t)=>{const a=e.__vccOpts||e;for(const[s,o]of t)a[s]=o;return a};const r=o({name:"uniPopupMessage",mixins:[s],props:{type:{type:String,default:"success"},message:{type:String,default:""},duration:{type:Number,default:3e3},maskShow:{type:Boolean,default:!1}},data:()=>({}),created(){this.popup.maskShow=this.maskShow,this.popup.messageChild=this},methods:{timerClose(){0!==this.duration&&(clearTimeout(this.timer),this.timer=setTimeout((()=>{this.popup.close()}),this.duration))}}},[["render",function(t,a,s,o,r,n){return e.openBlock(),e.createElementBlock("view",{class:"uni-popup-message"},[e.createElementVNode("view",{class:e.normalizeClass(["uni-popup-message__box fixforpc-width","uni-popup__"+s.type])},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("text",{class:e.normalizeClass(["uni-popup-message-text","uni-popup__"+s.type+"-text"])},e.toDisplayString(s.message),3)]),!0)],2)])}],["__scopeId","data-v-d81cfb56"]]);class n{constructor(e,t){this.options=e,this.animation=uni.createAnimation({...e}),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let a=this.currentStepAnimates[this.next],s={};if(s=a||{styles:{},config:{}},i.includes(e)){s.styles.transform||(s.styles.transform="");let a="";"rotate"===e&&(a="deg"),s.styles.transform+=`${e}(${t+a}) `}else s.styles[e]=`${t}`;this.currentStepAnimates[this.next]=s}_animateRun(e={},t={}){let a=this.$.$refs.ani.ref;if(a)return new Promise(((s,o)=>{nvueAnimation.transition(a,{styles:e,...t},(e=>{s()}))}))}_nvueNextAnimate(e,t=0,a){let s=e[t];if(s){let{styles:o,config:r}=s;this._animateRun(o,r).then((()=>{t+=1,this._nvueNextAnimate(e,t,a)}))}else this.currentStepAnimates={},"function"==typeof a&&a(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const i=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function l(e,t){if(t)return clearTimeout(t.timer),new n(e,t)}i.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{n.prototype[e]=function(...t){return this.animation[e](...t),this}}));const c=o({name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},t="";for(let a in e){t+=this.toLine(a)+":"+e[a]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=l(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,a={}){if(this.animation){for(let a in e)try{"object"==typeof e[a]?this.animation[a](...e[a]):this.animation[a](e[a])}catch(s){t("error","at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:148",`方法 ${a} 不存在`)}return this.animation.step(a),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=l(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},a=(e,a)=>{"fade"===a?t.opacity=this.animationType(e)[a]:t.transform+=this.animationType(e)[a]+" "};return"string"==typeof this.modeClass?a(e,this.modeClass):this.modeClass.forEach((t=>{a(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let a=null;"fade"===t?a=e?0:1:(a=e?"-100%":"0","zoom-in"===t&&(a=e?.8:1),"zoom-out"===t&&(a=e?1.2:1),"slide-right"===t&&(a=e?"100%":"0"),"slide-bottom"===t&&(a=e?"100%":"0")),this.animation[this.animationMode()[t]](a)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((a=>{t(e,a)})),this.animation},animationType:e=>({fade:e?0:1,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}},[["render",function(t,a,s,o,r,n){return e.withDirectives((e.openBlock(),e.createElementBlock("view",{ref:"ani",animation:r.animationData,class:e.normalizeClass(s.customClass),style:e.normalizeStyle(n.transformStyles),onClick:a[0]||(a[0]=(...e)=>n.onClick&&n.onClick(...e))},[e.renderSlot(t.$slots,"default")],14,["animation"])),[[e.vShow,r.isShow]])}]]);const m=o({name:"uniPopup",components:{},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},borderRadius:{type:String}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles(){let e={backgroundColor:this.bg};return this.borderRadius,e=Object.assign(e,{borderRadius:this.borderRadius}),e},isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:a,safeArea:s,screenHeight:o,safeAreaInsets:r}=uni.getSystemInfoSync();this.popupWidth=e,this.popupHeight=t+(a||0),s&&this.safeArea?this.safeAreaInsets=r.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},activated(){this.setH5Visible(!this.showPopup)},deactivated(){this.setH5Visible(!0)},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(e=!0){},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){if(this.showPopup)return;e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):t("error","at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:298","缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},center(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center",borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}},[["render",function(t,s,o,r,n,i){const l=a(e.resolveDynamicComponent("uni-transition"),c);return n.showPopup?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-popup",[n.popupstyle,i.isDesktop?"fixforpc-z-index":""]])},[e.createElementVNode("view",{onTouchstart:s[1]||(s[1]=(...e)=>i.touchstart&&i.touchstart(...e))},[n.maskShow?(e.openBlock(),e.createBlock(l,{key:"1",name:"mask","mode-class":"fade",styles:n.maskClass,duration:n.duration,show:n.showTrans,onClick:i.onTap},null,8,["styles","duration","show","onClick"])):e.createCommentVNode("",!0),e.createVNode(l,{key:"2","mode-class":n.ani,name:"content",styles:n.transClass,duration:n.duration,show:n.showTrans,onClick:i.onTap},{default:e.withCtx((()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-popup__wrapper",[n.popupstyle]]),style:e.normalizeStyle(i.getStyles),onClick:s[0]||(s[0]=(...e)=>i.clear&&i.clear(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)])),_:3},8,["mode-class","styles","duration","show","onClick"])],32)],2)):e.createCommentVNode("",!0)}],["__scopeId","data-v-ee521468"]]),d=async e=>{try{const a=await uni.$http.post(`/api/v1/items/rt/${e.id}`,e,{"Content-Type":"application/json;charset=utf-8",Authorization:`JWT ${uni.getStorageSync("token")}`});return t("log","at api/api.js:5",a),200!==a.statusCode||"token过期且未提供刷新令牌"==a.data.error?(uni.removeStorageSync("token"),h(),a.data):a.data}catch(a){return t("log","at api/api.js:18",a),h(),response.data}},p=async e=>{try{const a=await uni.$http.get("/api/v1/uidatas/rt/uis/3224a3eb-2375-4dfc-99ce-b182edd30996",e,{"Content-Type":"application/json;charset=utf-8",Authorization:`JWT ${uni.getStorageSync("token")}`});return t("log","at api/api.js:32",a),200!==a.statusCode||"token过期且未提供刷新令牌"==a.data.error?(uni.removeStorageSync("token"),h(),a.data):a.data}catch(a){return t("log","at api/api.js:48",a),h(),response.data}},u=async e=>{try{const a=await uni.$http.get("/api/v1/faults",e,{"Content-Type":"application/json;charset=utf-8",Authorization:`JWT ${uni.getStorageSync("token")}`});return t("log","at api/api.js:63",a.data),200!==a.statusCode||"token过期且未提供刷新令牌"==a.data.error?(uni.removeStorageSync("token"),h(),a.data):a.data}catch(a){return t("error","at api/api.js:76","Network request failed:",a),t("log","at api/api.js:77",a),uni.removeStorageSync("token"),h(),response.data}},h=async(e,a)=>{try{t("log","at api/api.js:91","login request");const e=await uni.$http.post("/api/v1/login",{name:"dexnui",pwd:"dexn1001"},{"Content-Type":"application/json;charset=utf-8"});return t("log","at api/api.js:94",e),200!==e.statusCode||"token过期且未提供刷新令牌"==e.data.error?e.data:(t("log","at api/api.js:103",e.data),uni.setStorageSync("token",e.data.data.token),e.data)}catch(s){return response.data}},_=(e="yyyy/MM/dd hh:mm:ss")=>{const t=new Date,a=t.getFullYear(),s=("0"+(t.getMonth()+1)).slice(-2),o=("0"+t.getDate()).slice(-2),r=("0"+t.getHours()).slice(-2),n=("0"+t.getMinutes()).slice(-2),i=("0"+t.getSeconds()).slice(-2);return e.replace("yyyy",a).replace("MM",s).replace("dd",o).replace("hh",r).replace("mm",n).replace("ss",i)},g="/static/logo.png",V="/static/tite.png";const E=o({data:()=>({title:"",uidatasdata:{},uidatas:"",formattedTime:_("yyyy年MM月dd日 hh:mm:ss"),formatTimeid:"",selectorid:0,messageText:""}),created(){this.formatTimeid=setInterval((()=>{this.formattedTime=_("yyyy年MM月dd日 hh:mm:ss")}),1e3)},mounted(){},onLoad(){this.onfaultsList()},beforeUnmount(){clearInterval(this.uidatas),clearInterval(this.formatTimeid)},methods:{onfaultsList(){p({id:"3224a3eb-2375-4dfc-99ce-b182edd30996",page:1,rows:1e4}).then((e=>{"ok"==e.status?(this.uidatasdata=e.data.reduce(((e,t)=>{let a=t[t.module],s=parseFloat(a),o=isNaN(s)?a:s.toFixed(2);return{...e,[t.id]:o}}),{}),this.selectorid=this.uidatasdata.SysInstall_EssRunModeManual,this.uidatas=setTimeout((()=>{this.onfaultsList()}),2e3)):this.uidatas=setTimeout((()=>{this.onfaultsList()}),2e3)})).catch((e=>{t("log","at pages/index/index.vue:134",e),this.uidatasdata={},this.uidatas=setTimeout((()=>{this.onfaultsList()}),2e3)}))},onclick(e){if(t("log","at pages/index/index.vue:143",e),this.uidatasdata.SysInstall_EssRunModeManual==e)3==this.uidatasdata.SysInstall_EssRunModeManual?uni.redirectTo({url:"/pages/home/index"}):2==this.uidatasdata.SysInstall_EssRunModeManual?uni.redirectTo({url:"/pages/electricity/index"}):4==this.uidatasdata.SysInstall_EssRunModeManual?uni.redirectTo({url:"/pages/supply/supply"}):1==this.uidatasdata.SysInstall_EssRunModeManual&&uni.redirectTo({url:"/pages/supplyss/supplyss"});else{if(1==this.uidatasdata.SysControl_RunCmd||1==this.uidatasdata.SysControl_Gun1RunCmd||1==this.uidatasdata.SysControl_Gun2RunCmd)return this.messageText="请停止之前模式,在选择",void this.$refs.message.open();if(3==e){if(1==this.uidatasdata.AC_Out_380V_125A_Status)return this.messageText="需将AC输出端125A的开关手动断开",void this.$refs.message.open();if(1==this.uidatasdata.AC_Out_380V_63A_Status)return this.messageText="需将AC输出端63A的开关手动断开",void this.$refs.message.open();if(1==this.uidatasdata.AC_Out_220V_16A_Status)return this.messageText="需将AC输出端16A的开关手动断开",void this.$refs.message.open();uni.setStorageSync("selector",e),this.pattern(e)}else if(2==e){if(1==this.uidatasdata.AC_In_380V_63A1_Status)return this.messageText="需将AC输出端63A1的开关手动断开",void this.$refs.message.open();if(1==this.uidatasdata.AC_In_380V_63A2_Status)return this.messageText="需将AC输出端63A2的开关手动断开",void this.$refs.message.open();uni.setStorageSync("selector",e),this.pattern(e)}else uni.setStorageSync("selector",e),this.pattern(e)}},pattern(e){d({id:"c32e6a80-9159-4f6e-9acc-8525cf177808",issaveinitvalue:!1,value:e+""}).then((a=>{if(t("log","at pages/index/index.vue:244",a),"ok"!=a.status)return this.messageText="选择模式失败请重新选择",void this.$refs.message.open();3==e?uni.redirectTo({url:"/pages/home/index"}):2==e?uni.redirectTo({url:"/pages/electricity/index"}):4==e?uni.redirectTo({url:"/pages/supply/supply"}):1==e&&uni.redirectTo({url:"/pages/supplyss/supplyss"})}))},system(){uni.redirectTo({url:"/pages/details/index"})}}},[["render",function(t,s,o,n,i,l){const c=a(e.resolveDynamicComponent("uni-popup-message"),r),d=a(e.resolveDynamicComponent("uni-popup"),m);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:g,mode:""}),e.createElementVNode("image",{class:"tite",src:V,mode:""}),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"},e.toDisplayString(i.formattedTime),1),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(" 连接状态: "),i.uidatasdata.bms_ChgLinkSt?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state"}," 在线 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state1"}," 离线 "))])])])]),e.createElementVNode("view",{class:"tap"},[e.createElementVNode("view",{class:"tap_1"}," AC "),e.createElementVNode("view",{class:"tap_2"}," DC "),e.createElementVNode("view",{class:"tap_3"}," System ")]),e.createElementVNode("view",{class:"power"},[e.createElementVNode("view",{class:"power_1",onClick:s[0]||(s[0]=e=>l.onclick(3))},[3==i.selectorid?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/electricity.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/choice1.png",mode:""}))]),e.createElementVNode("view",{class:"power_1",onClick:s[1]||(s[1]=e=>l.onclick(2))},[2==i.selectorid?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/power1.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/choice2.png",mode:""}))]),e.createElementVNode("view",{class:"power_1",onClick:s[2]||(s[2]=e=>l.onclick(4))},[4==i.selectorid?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/direct1.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/choice3.png",mode:""}))]),e.createElementVNode("view",{class:"power_1",onClick:s[3]||(s[3]=e=>l.onclick(1))},[1==i.selectorid?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/DCpower1.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/choice4.png",mode:""}))]),e.createElementVNode("view",{class:"power_5",onClick:s[4]||(s[4]=(...e)=>l.system&&l.system(...e))},[e.createElementVNode("image",{src:"/static/system.png",mode:""})])]),1==this.uidatasdata.SysControl_RunCmd?(e.openBlock(),e.createElementBlock("view",{key:0,class:"power_6"},[e.createElementVNode("image",{src:"/static/!.png",mode:""}),e.createTextVNode("若想重新选择模式,请返回之前模式停止以后再重新选择! ")])):e.createCommentVNode("",!0),e.createVNode(d,{ref:"message",type:"message"},{default:e.withCtx((()=>[e.createVNode(c,{type:"error",message:i.messageText,duration:2500},null,8,["message"])])),_:1},512)])}],["__scopeId","data-v-a2de65fd"]]),v=["{","}"];const k=/^(?:\d)+/,N=/^(?:\w)+/;const w="zh-Hans",y="zh-Hant",f="en",C=Object.prototype.hasOwnProperty,S=(e,t)=>C.call(e,t),B=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,a=v){if(!t)return[e];let s=this._caches[e];return s||(s=function(e,[t,a]){const s=[];let o=0,r="";for(;o<e.length;){let n=e[o++];if(n===t){r&&s.push({type:"text",value:r}),r="";let t="";for(n=e[o++];void 0!==n&&n!==a;)t+=n,n=e[o++];const i=n===a,l=k.test(t)?"list":i&&N.test(t)?"named":"unknown";s.push({value:t,type:l})}else r+=n}return r&&s.push({type:"text",value:r}),s}(e,a),this._caches[e]=s),function(e,t){const a=[];let s=0;const o=Array.isArray(t)?"list":(r=t,null!==r&&"object"==typeof r?"named":"unknown");var r;if("unknown"===o)return a;for(;s<e.length;){const r=e[s];switch(r.type){case"text":a.push(r.value);break;case"list":a.push(t[parseInt(r.value,10)]);break;case"named":"named"===o&&a.push(t[r.value])}s++}return a}(s,t)}};function x(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return w;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?w:e.indexOf("-hant")>-1?y:(a=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==a.indexOf(e)))?y:w);var a;let s=[f,"fr","es"];t&&Object.keys(t).length>0&&(s=Object.keys(t));const o=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,s);return o||void 0}class z{constructor({locale:e,fallbackLocale:t,messages:a,watcher:s,formater:o}){this.locale=f,this.fallbackLocale=f,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=o||B,this.messages=a||{},this.setLocale(e||f),s&&this.watchLocale(s)}setLocale(e){const t=this.locale;this.locale=x(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,a=!0){const s=this.messages[e];s?a?Object.assign(s,t):Object.keys(t).forEach((e=>{S(s,e)||(s[e]=t[e])})):this.messages[e]=t}f(e,t,a){return this.formater.interpolate(e,t,a).join("")}t(e,t,a){let s=this.message;return"string"==typeof t?(t=x(t,this.messages))&&(s=this.messages[t]):a=t,S(s,e)?this.formater.interpolate(s[e],a).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function T(e,t={},a,s){if("string"!=typeof e){const a=[t,e];e=a[0],t=a[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&uni.getLocale?uni.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():f),"string"!=typeof a&&(a="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||f);const o=new z({locale:e,fallbackLocale:a,messages:t,watcher:s});let r=(e,t)=>{if("function"!=typeof getApp)r=function(e,t){return o.t(e,t)};else{let e=!1;r=function(t,a){const s=getApp().$vm;return s&&(s.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(s,o))),o.t(t,a)}}return r(e,t)};return{i18n:o,f:(e,t,a)=>o.f(e,t,a),t:(e,t)=>r(e,t),add:(e,t,a=!0)=>o.add(e,t,a),watch:e=>o.watchLocale(e),getLocale:()=>o.getLocale(),setLocale:e=>o.setLocale(e)}}const b={en:{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"},"zh-Hans":{"uni-popup.cancel":"取消","uni-popup.ok":"确定","uni-popup.placeholder":"请输入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"},"zh-Hant":{"uni-popup.cancel":"取消","uni-popup.ok":"確定","uni-popup.placeholder":"請輸入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}},{t:M}=T(b);const D=o({name:"uniPopupDialog",mixins:[s],emits:["confirm","close","update:modelValue","input"],props:{inputType:{type:String,default:"text"},showClose:{type:Boolean,default:!0},modelValue:{type:[Number,String],default:""},placeholder:{type:[String,Number],default:""},type:{type:String,default:"error"},mode:{type:String,default:"base"},title:{type:String,default:""},content:{type:String,default:""},beforeClose:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""},maxlength:{type:Number,default:-1},focus:{type:Boolean,default:!0}},data:()=>({dialogType:"error",val:""}),computed:{okText(){return this.confirmText||M("uni-popup.ok")},closeText(){return this.cancelText||M("uni-popup.cancel")},placeholderText(){return this.placeholder||M("uni-popup.placeholder")},titleText(){return this.title||M("uni-popup.title")}},watch:{type(e){this.dialogType=e},mode(e){"input"===e&&(this.dialogType="info")},value(e){-1!=this.maxlength&&"input"===this.mode?this.val=e.slice(0,this.maxlength):this.val=e},val(e){this.$emit("update:modelValue",e)}},created(){this.popup.disableMask(),"input"===this.mode?(this.dialogType="info",this.val=this.value,this.val=this.modelValue):this.dialogType=this.type},methods:{onOk(){"input"===this.mode?this.$emit("confirm",this.val):this.$emit("confirm"),this.beforeClose||this.popup.close()},closeDialog(){this.$emit("close"),this.beforeClose||this.popup.close()},close(){this.popup.close()}}},[["render",function(t,a,s,o,r,n){return e.openBlock(),e.createElementBlock("view",{class:"uni-popup-dialog"},[e.createElementVNode("view",{class:"uni-dialog-title"},[e.createElementVNode("text",{class:e.normalizeClass(["uni-dialog-title-text",["uni-popup__"+r.dialogType]])},e.toDisplayString(n.titleText),3)]),"base"===s.mode?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-dialog-content"},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("text",{class:"uni-dialog-content-text"},e.toDisplayString(s.content),1)]),!0)])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-dialog-content"},[e.renderSlot(t.$slots,"default",{},(()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-dialog-input",maxlength:s.maxlength,"onUpdate:modelValue":a[0]||(a[0]=e=>r.val=e),type:s.inputType,placeholder:n.placeholderText,focus:s.focus},null,8,["maxlength","type","placeholder","focus"]),[[e.vModelDynamic,r.val]])]),!0)])),e.createElementVNode("view",{class:"uni-dialog-button-group"},[s.showClose?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-dialog-button",onClick:a[1]||(a[1]=(...e)=>n.closeDialog&&n.closeDialog(...e))},[e.createElementVNode("text",{class:"uni-dialog-button-text"},e.toDisplayString(n.closeText),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["uni-dialog-button",s.showClose?"uni-border-left":""]),onClick:a[2]||(a[2]=(...e)=>n.onOk&&n.onOk(...e))},[e.createElementVNode("text",{class:"uni-dialog-button-text uni-button-color"},e.toDisplayString(n.okText),1)],2)])])}],["__scopeId","data-v-fd2d7dd2"]]);class A{constructor({canvasId:e,startAngle:t=.875*Math.PI,endAngle:a=.125*Math.PI,width:s=180,min:o=0,max:r=100,value:n=0,unit:i="%",showTick:l=!1,valueColor:c="#555",progressColor:m="#f58220",trackColor:d="#F1F1F1",lineWidth:p=10}){this.ctx=uni.createCanvasContext(e),this.startAngle=t,this.endAngle=a,this.width=s,this.min=o,this.max=r,this.value=n,this.unit=i,this.showTick=l,this.valueColor=c,this.progressColor=m,this.trackColor=d,this.lineWidth=p,this.radius=this.width/2,this.process=o||-1,this.tickLength=this.max-this.min,this.trackRadius=this.radius-this.lineWidth/2,this.tickRad=(2*Math.PI-this.startAngle+this.endAngle)/this.tickLength,this.start()}draw(){this.ctx.translate(this.radius,this.radius),this.drawTrack(),this.drawValueText(),this.drawProgress(),this.showTick&&(this.drawTick(),this.drawTickText()),this.ctx.draw()}drawTrack(){this.ctx.save(),this.ctx.lineWidth=this.lineWidth,this.ctx.strokeStyle=this.trackColor,this.ctx.arc(0,0,this.trackRadius,this.startAngle,this.endAngle),this.ctx.stroke(),this.ctx.restore()}drawValueText(){this.ctx.save(),this.ctx.fillStyle=this.valueColor,this.ctx.font="34px serif",this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.fillText(`${this.value}${this.unit}`,0,0),this.ctx.restore()}drawProgress(){this.ctx.save();const e=this.getValueRad();this.ctx.beginPath(),this.ctx.lineWidth=this.lineWidth,this.ctx.strokeStyle="string"==typeof this.progressColor?this.progressColor:this.getGradient(this.progressColor),this.ctx.lineJoin="round",this.ctx.arc(0,0,this.trackRadius,this.startAngle,e),this.ctx.stroke(),this.ctx.restore()}drawTick(){let e=this.startAngle;for(let s=this.min;s<=this.max;s++){this.ctx.save(),this.ctx.lineWidth=1,this.ctx.strokeStyle="#999",this.ctx.beginPath();let s=(this.radius-this.lineWidth-2)*Math.cos(e),o=(this.radius-this.lineWidth-2)*Math.sin(e);var t=(this.radius-this.lineWidth-8)*Math.cos(e),a=(this.radius-this.lineWidth-8)*Math.sin(e);this.ctx.moveTo(s,o),this.ctx.lineTo(t,a),e+=this.tickRad,this.ctx.stroke(),this.ctx.restore()}}drawTickText(){let e=this.startAngle;for(let t=this.min;t<=this.max;t++){let a=(this.radius-this.lineWidth-20)*Math.cos(e),s=(this.radius-this.lineWidth-20)*Math.sin(e);e+=this.tickRad,this.ctx.save(),this.ctx.font="12px serif",this.ctx.fillStyle="#999",this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.fillText(t,a,s),this.ctx.restore()}}getValueRad(){return this.value>this.max?(this.max-this.min)*this.tickRad+this.startAngle:(this.process-this.min)*this.tickRad+this.startAngle}start(){let e=()=>{this.process=this.process+(this.max-this.min)/100,this.process>this.value?cancelAnimationFrame(e):(this.draw(),uni.requestAnimationFrame(e))};uni.requestAnimationFrame(e)}getGradient(e){let t=this.ctx.createLinearGradient(0,0,this.trackRadius,0);return e.forEach(((a,s)=>{t.addColorStop(s/(e.length-1),a)})),t}}uni.requestAnimationFrame=function(e){var t=0,a=(new Date).getTime(),s=Math.max(0,16-(a-t)),o=setTimeout((function(){e(a+s)}),s);return t=a+s,o},uni.cancelAnimationFrame=function(e){clearTimeout(e)},function(){for(var e=["webkit","moz","ms","o"],t=0;t<e.length&&!uni.requestAnimationFrame;++t)uni.requestAnimationFrame=uni[e[t]+"RequestAnimationFrame"],uni.cancelAnimationFrame=uni[e[t]+"CancelAnimationFrame"]||uni[e[t]+"CancelRequestAnimationFrame"];uni.requestAnimationFrame||(uni.requestAnimationFrame=function(e){return setTimeout(e,16)}),uni.cancelAnimationFrame||(uni.cancelAnimationFrame=function(e){clearTimeout(e)})}();const P="/static/dian1.png",L="/static/dian2.png",O="/static/che.png",R="/static/y8.png",I="/static/y6.png",$="/static/SOC.png",F="/static/Battery.png",W="/static/setup.png",U="/static/home.png",j="/static/home1.png";const H=o({data:()=>({successtype:"success",confirmText:"确认启动",title:"你确定要开启该设备吗?",content:"启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",value:"",modeinput:"",segmented:1,uidatasdata:{},uidatas:"",formattedTime:_("yyyy年MM月dd日 hh:mm:ss"),formatTimeid:"",faultsdata:[],messageText:""}),onLoad(){this.formatTimeid=setInterval((()=>{this.formattedTime=_("yyyy年MM月dd日 hh:mm:ss")}),1e3)},mounted(){this.onfaultsList(),this.onfaultsdata(),setTimeout((()=>{let e=(1*this.uidatasdata.SOC).toFixed(0);new A({canvasId:"canvas2",value:e,lineWidth:20,progressColor:["#B0D0FF","#5B8FF9"],valueColor:"blue"})}),100)},beforeUnmount(){clearInterval(this.uidatas),clearInterval(this.formatTimeid)},methods:{onfaultsList(){p({ID:"3224a3eb-2375-4dfc-99ce-b182edd30996",page:1,rows:1e4}).then((e=>{t("log","at pages/home/index.vue:559",e),"ok"==e.status?(e.data||(this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3)),this.uidatasdata=e.data.reduce(((e,t)=>{let a=t[t.module],s=parseFloat(a),o="";return o="BatCellVPeak_ValMaxCellVoltage"==t.id||"BatSysLimitVal_MaxCellTemperatureLimit"==t.id||"BatCellVPeak_ValMinCellVoltage"==t.id||"CellTemperatureLimitsStatus_MinTemp"==t.id?isNaN(s)?a:s.toFixed(3):isNaN(s)?a:s.toFixed(2),{...e,[t.id]:o}}),{}),t("log","at pages/home/index.vue:585",this.uidatasdata),1==this.uidatasdata.AC_Out_380V_125A_Status?(this.messageText="需将AC输出端125A的开关手动断开",this.$refs.message.open()):1==this.uidatasdata.AC_Out_380V_63A_Status?(this.messageText="需将AC输出端63A的开关手动断开",this.$refs.message.open()):1==this.uidatasdata.AC_Out_220V_16A_Status&&(this.messageText="需将AC输出端16A的开关手动断开",this.$refs.message.open()),this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3)):(this.uidatasdata={},this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3))})).catch((e=>{t("log","at pages/home/index.vue:609",e),this.uidatasdata={},this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3)}))},onfaultsdata(){u({page:1,rows:1,device:"",starttime:"",endtime:"",rt:1,type:""}).then((e=>{t("log","at pages/home/index.vue:629",e),"ok"==e.status&&(this.faultsdata=e.data.list)}))},onreturn(){uni.redirectTo({url:"/pages/index/index"})},dialogToggle(){this.modeinput="base",this.successtype="success",this.confirmText="确认启动",this.title="你确定要开启该设备吗?",this.content="启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",this.$refs.alertDialog.open()},onstopit(){this.modeinput="base",this.successtype="error",this.confirmText="确认停止",this.title="你确定要停止该设备吗?",this.content="设备完全停止后,方能进行后续操作,否则可能危及生命安全!",this.$refs.alertDialog.open()},onpower(){this.modeinput="input",this.title="功率给定",this.$refs.alertDialog.open()},dialogConfirm(){let e={};e="功率给定"==this.title?{id:"e612195b-cf9e-418b-9e2d-0fbae9b03ffa",issaveinitvalue:!1,value:this.value}:{id:"c35c4db0-113f-442a-9e26-728489265fdb",issaveinitvalue:!1,value:"确认启动"==this.confirmText?"1":"0"},d(e).then((e=>{t("log","at pages/home/index.vue:684",e),"ok"==e.status?uni.showToast({title:"操作成功",icon:"none",duration:2e3}):uni.showToast({title:"操作失败",icon:"none",duration:2e3})}))},dialogClose(){this.$refs.alertDialog.close()},ontap(e){t("log","at pages/home/index.vue:706",e),this.segmented=e}}},[["render",function(t,s,o,n,i,l){const c=a(e.resolveDynamicComponent("uni-popup-dialog"),D),d=a(e.resolveDynamicComponent("uni-popup"),m),p=a(e.resolveDynamicComponent("uni-popup-message"),r);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:g,mode:""}),e.createElementVNode("image",{class:"tite",src:V,mode:""}),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"},e.toDisplayString(i.formattedTime),1),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(" 连接状态: "),i.uidatasdata.AC_In_380V_63A1_Status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state"}," 在线 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state1"}," 离线 "))])])])]),e.createElementVNode("view",{class:"parameter"},[e.createElementVNode("view",{class:"parameter_left"},[e.createElementVNode("view",{class:"parameter_left1"},[e.createElementVNode("canvas",{class:"canvas","canvas-id":"canvas2"}),e.createElementVNode("view",{class:"parameter_canvas"},[e.createElementVNode("view",{class:"parameter_canvas1"}," 0 "),e.createElementVNode("view",{class:"parameter_canvas2"}," 100% ")])]),e.createElementVNode("image",{class:"parameter_leftdian1",src:P,alt:""}),e.createElementVNode("view",{class:"parameter_lef2"},[e.createElementVNode("image",{src:L,mode:""})]),e.createElementVNode("image",{class:"parameter_leftche",src:O,mode:""}),e.createElementVNode("view",{class:"parameter_leftview"},"交流补电")]),e.createElementVNode("view",{class:"parameter_right"},[e.createElementVNode("view",{class:"parameter_righttop"},[e.createElementVNode("view",{class:"parameter_1"},[e.createElementVNode("view",{class:"parameter_2"},[e.createElementVNode("view",{class:"parameter_3"},[e.createElementVNode("view",{class:"parameter_4"},[1==i.uidatasdata.AC_In_380V_63A1_Status?(e.openBlock(),e.createElementBlock("image",{key:0,src:R,mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:I,mode:""})),e.createTextVNode(" 63A1状态 ")]),1==i.uidatasdata.AC_In_380V_63A1_Status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_51"}," 连接 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_5"}," 断开 "))]),e.createElementVNode("view",{class:"parameter_3"},[e.createElementVNode("view",{class:"parameter_4"},[1==i.uidatasdata.AC_In_380V_63A2_Status?(e.openBlock(),e.createElementBlock("image",{key:0,src:R,mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:I,mode:""})),e.createTextVNode(" 63A2状态 ")]),1==i.uidatasdata.AC_In_380V_63A2_Status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_51"}," 连接 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_5"}," 断开 "))])]),e.createElementVNode("view",{class:"parameter_SOC"},[e.createElementVNode("image",{src:$,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," SOC "),e.createElementVNode("view",null,[e.createElementVNode("text",{class:"parameter_SOCright2"},e.toDisplayString(i.uidatasdata.SOC),1),e.createTextVNode(),e.createElementVNode("text",null,"%")])])]),e.createElementVNode("view",{class:"parameter_Battery"},[e.createElementVNode("image",{src:F,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 电池状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[5==i.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:0}," 故障 ")):e.createCommentVNode("",!0),0==i.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:1}," 出始化 ")):e.createCommentVNode("",!0),1==i.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:2}," 未上高压 ")):e.createCommentVNode("",!0),2==i.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:3}," 上高压中 ")):e.createCommentVNode("",!0),3==i.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:4}," 已上高压 ")):e.createCommentVNode("",!0),4==i.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:5}," 下高压中 ")):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"parameter_state"},[e.createElementVNode("image",{src:W,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 系统状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==i.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:0}," 未充电 ")):e.createCommentVNode("",!0),1==i.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:1}," 充电中 ")):e.createCommentVNode("",!0),2==i.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:2}," 充电故障 ")):e.createCommentVNode("",!0),3==i.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:3}," 充满 ")):e.createCommentVNode("",!0),4==i.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:4}," 充电停止 ")):e.createCommentVNode("",!0),5==i.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:5}," 保留 ")):e.createCommentVNode("",!0)])])])])]),e.createElementVNode("view",{class:"parameter_tap"},[e.createElementVNode("view",{class:e.normalizeClass(1==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[0]||(s[0]=e=>l.ontap(1))}," 交流信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(2==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[1]||(s[1]=e=>l.ontap(2))}," 电池信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(3==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[2]||(s[2]=e=>l.ontap(3))}," 统计信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(4==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[3]||(s[3]=e=>l.ontap(4))}," 液冷信息 ",2)]),e.createElementVNode("view",{class:"parameter_zheng",key:"index"},[1==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," A相电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.PCSPortAPhaseVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," B相电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.PCSPortBPhaseVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," C相电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.PCSPortCPhaseVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 补电电量 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.PCSACChargeEnergy)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," A相电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata["PCSOutputA-phaseCurrent"])+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," B相电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata["PCSOutputB-phaseCurrent"])+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," C相电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata["PCSOutputC-phaseCurrent"])+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 补电功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.PCSTotalOutputPower)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])])])])):e.createCommentVNode("",!0),2==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatSysSt2_BatPower)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池内总压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatSysSt2_BatSumVInt)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 允许充电功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.DchChgCurPowLimit_MaxChargePowerLimit)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最大单体电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatCellVPeak_ValMaxCellVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最大单体温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatSysSt2_BatCur)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池外总压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatSysSt2_BatSumVOut)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 允许充电电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.ChargingInformation_Chg_Max_Cur)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最小单体电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatCellVPeak_ValMinCellVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最小单体温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.CellTemperatureLimitsStatus_MinTemp)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])])])):e.createCommentVNode("",!0),3==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng10"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatSysSt2_BatPower)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池内总压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatSysSt2_BatSumVInt)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])])])])):e.createCommentVNode("",!0),4==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 工作模式 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==i.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:0}," 关机模式 ")):e.createCommentVNode("",!0),1==i.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:1}," 制冷模式 ")):e.createCommentVNode("",!0),2==i.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:2}," 自热模式 ")):e.createCommentVNode("",!0),3==i.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:3}," 自循环模式 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 出水温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 需求功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.TMS_Status_TMS_POWER_REQ)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 高压继电器状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==i.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:0}," 断开状态 ")):e.createCommentVNode("",!0),1==i.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:1}," 闭合状态 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 入水温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.TMS_Status_TMS_WATERIN_TEMP)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 故障等级 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==i.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:0}," 无故障 ")):e.createCommentVNode("",!0),1==i.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:1}," 1级故障 ")):e.createCommentVNode("",!0),2==i.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:2}," 2级故障 ")):e.createCommentVNode("",!0),3==i.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:3}," 3级故障 ")):e.createCommentVNode("",!0)])])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"parameter_zheng3"},[1==i.uidatasdata.SysControl_RunCmd?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"}," 开启 ")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_zheng31",onClick:s[4]||(s[4]=(...e)=>l.dialogToggle&&l.dialogToggle(...e))},[e.createElementVNode("view",{class:"parameter_zheng32"}," 开启 ")])),0==i.uidatasdata.SysControl_RunCmd?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"}," 停止 ")])):(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_zheng31",onClick:s[5]||(s[5]=(...e)=>l.onstopit&&l.onstopit(...e))},[e.createElementVNode("view",{class:"parameter_zheng33"}," 停止 ")]))])]),e.createElementVNode("view",{class:"parameter_home"},[e.createElementVNode("view",{class:"parameter_home1",onClick:s[6]||(s[6]=(...e)=>l.onreturn&&l.onreturn(...e))},[e.createElementVNode("image",{src:U,mode:""}),e.createElementVNode("text",{class:"parameter_hometext"},"返回模式选择")]),e.createElementVNode("view",{class:"parameter_home2"},[e.createElementVNode("image",{src:j,mode:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.faultsdata,((t,a)=>(e.openBlock(),e.createElementBlock("text",{class:"parameter_home3",key:a},e.toDisplayString(t.CONTENT),1)))),128))])])])]),e.createVNode(d,{ref:"alertDialog",onMaskClick:l.dialogClose},{default:e.withCtx((()=>[e.createVNode(c,{mode:i.modeinput,placeholder:"功率给定(0~80kW)",modelValue:i.value,"onUpdate:modelValue":s[7]||(s[7]=e=>i.value=e),type:i.successtype,cancelText:"取消返回",confirmText:i.confirmText,title:i.title,content:i.content,onConfirm:l.dialogConfirm,onClose:l.dialogClose},null,8,["mode","modelValue","type","confirmText","title","content","onConfirm","onClose"])])),_:1},8,["onMaskClick"]),e.createVNode(d,{ref:"message",type:"message"},{default:e.withCtx((()=>[e.createVNode(p,{type:"error",message:i.messageText,duration:2500},null,8,["message"])])),_:1},512)])}],["__scopeId","data-v-a9226160"]]);const q=o({props:{visible:Boolean,color:{type:String,default:"#303133"},placement:{type:String,default:"top"},content:{type:String,default:""},show:{type:Boolean,default:!1}},data(){return{isShow:this.visible,title:"Hello",arrowLeft:0,query:null,style:{},arrowStyle:{}}},onLoad(){},watch:{isShow:{handler(e){this.$emit("update:visible",e)},immediate:!0},visible:{handler(e){e&&this.$nextTick((()=>{this.getPosition()})),this.isShow=e},immediate:!0}},mounted(){this.getPosition()},methods:{close(){this.isShow=!1},fixedWrap(){this.isShow=!1},async handleClick(){if(this.isShow)return this.isShow=!1;await this.getPosition(),this.isShow=!0},getPosition(){return new Promise((e=>{uni.createSelectorQuery().in(this).selectAll(".zb_tooltip_content,.zb_tooltip__popper").boundingClientRect((async t=>{let{left:a,bottom:s,right:o,top:r,width:n,height:i}=t[0],l=t[1],c={},m={};switch(this.placement){case"top":l.width>n?c.left=`-${(l.width-n)/2}px`:c.left=Math.abs(l.width-n)/2+"px",c.bottom=`${i+8}px`,m.left=l.width/2-6+"px";break;case"top-start":c.left="0px",c.bottom=`${i+8}px`;break;case"top-end":c.right="0px",c.bottom=`${i+8}px`,m.right="8px";break;case"bottom":l.width>n?c.left=`-${(l.width-n)/2}px`:c.left=Math.abs(l.width-n)/2+"px",c.top=`${i+8}px`,m.left=l.width/2-6+"px";break;case"bottom-start":c.left="0px",c.top=`${i+8}px`,m.left="8px";break;case"bottom-end":c.right="0px",c.top=`${i+8}px`,m.right="8px";break;case"right":c.left=`${n+8}px`,l.height>i?c.top=`-${(l.height-i)/2}px`:c.top=`${Math.abs((l.height-i)/2)}px`,m.top=l.height/2-6+"px";break;case"right-start":c.left=`${n+8}px`,c.top="0px",m.top="8px";break;case"right-end":c.left=`${n+8}px`,c.bottom="0px",m.bottom="8px";break;case"left":c.right=`${n+8}px`,l.height>i?c.top=`-${(l.height-i)/2}px`:c.top=`${Math.abs((l.height-i)/2)}px`,m.top=l.height/2-6+"px";break;case"left-start":c.right=`${n+8}px`,c.top="0px",m.top="8px";break;case"left-end":c.right=`${n+8}px`,c.bottom="0px",m.bottom="8px"}this.style=c,this.arrowStyle=m,e()})).exec()}))}}},[["render",function(t,a,s,o,r,n){return e.openBlock(),e.createElementBlock("view",{class:"zb-tooltip",style:e.normalizeStyle({"--theme-bg-color":s.color})},[e.createElementVNode("view",{class:"zb_tooltip_content",onClick:a[0]||(a[0]=e.withModifiers(((...e)=>n.handleClick&&n.handleClick(...e)),["stop"]))},[e.renderSlot(t.$slots,"default",{},void 0,!0),e.createElementVNode("view",{class:"zb_tooltip__popper",onClick:e.withModifiers((()=>{}),["stop"]),style:e.normalizeStyle([r.style,{visibility:r.isShow?"visible":"hidden",color:"white"===s.color?"":"#fff",boxShadow:"white"===s.color?"0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d":""}])},[e.renderSlot(t.$slots,"content",{},(()=>[e.createTextVNode(e.toDisplayString(s.content),1)]),!0),e.createElementVNode("view",{class:e.normalizeClass(["zb_popper__icon",[{zb_popper__up:0===s.placement.indexOf("bottom"),zb_popper__arrow:0===s.placement.indexOf("top"),zb_popper__right:0===s.placement.indexOf("right"),zb_popper__left:0===s.placement.indexOf("left")}]]),style:e.normalizeStyle([r.arrowStyle])},null,6)],4)])],4)}],["__scopeId","data-v-12d5fccf"]]),K=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}];const G=o({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:()=>({icons:K}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?e.unicode:""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(){this.$emit("click")}}},[["render",function(t,a,s,o,r,n){return e.openBlock(),e.createElementBlock("text",{style:e.normalizeStyle(n.styleObj),class:e.normalizeClass(["uni-icons",["uniui-"+s.type,s.customPrefix,s.customPrefix?s.type:""]]),onClick:a[0]||(a[0]=(...e)=>n._onClick&&n._onClick(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-5610c8db"]]),J={en:{"uni-pagination.prevText":"prev","uni-pagination.nextText":"next","uni-pagination.piecePerPage":"piece/page"},es:{"uni-pagination.prevText":"anterior","uni-pagination.nextText":"prxima","uni-pagination.piecePerPage":"Art��culo/P��gina"},fr:{"uni-pagination.prevText":"précédente","uni-pagination.nextText":"suivante","uni-pagination.piecePerPage":"Articles/Pages"},"zh-Hans":{"uni-pagination.prevText":"上一页","uni-pagination.nextText":"下一页","uni-pagination.piecePerPage":"条/页"},"zh-Hant":{"uni-pagination.prevText":"上一頁","uni-pagination.nextText":"下一頁","uni-pagination.piecePerPage":"條/頁"}},{t:Y}=T(J);const X=o({name:"UniPagination",emits:["update:modelValue","input","change","pageSizeChange"],props:{value:{type:[Number,String],default:1},modelValue:{type:[Number,String],default:1},prevText:{type:String},nextText:{type:String},piecePerPageText:{type:String},current:{type:[Number,String],default:1},total:{type:[Number,String],default:0},pageSize:{type:[Number,String],default:10},showIcon:{type:[Boolean,String],default:!1},showPageSize:{type:[Boolean,String],default:!1},pagerCount:{type:Number,default:5},pageSizeRange:{type:Array,default:()=>[20,50,100,500]}},data:()=>({pageSizeIndex:0,currentIndex:1,paperData:[],pickerShow:!1}),computed:{piecePerPage(){return this.piecePerPageText||Y("uni-pagination.piecePerPage")},prevPageText(){return this.prevText||Y("uni-pagination.prevText")},nextPageText(){return this.nextText||Y("uni-pagination.nextText")},maxPage(){let e=1,t=Number(this.total),a=Number(this.pageSize);return t&&a&&(e=Math.ceil(t/a)),e},paper(){const e=this.currentIndex,t=this.pagerCount,a=this.total,s=this.pageSize;let o=[],r=[],n=Math.ceil(a/s);for(let l=0;l<n;l++)o.push(l+1);r.push(1);const i=o[o.length-(t+1)/2];return o.forEach(((a,s)=>{(t+1)/2>=e?a<t+1&&a>1&&r.push(a):e+2<=i?a>e-(t+1)/2&&a<e+(t+1)/2&&r.push(a):(a>e-(t+1)/2||n-t<a)&&a<o[o.length-1]&&r.push(a)})),n>t?((t+1)/2>=e?r[r.length-1]="...":e+2<=i?(r[1]="...",r[r.length-1]="..."):r[1]="...",r.push(o[o.length-1])):(t+1)/2>=e||e+2<=i||(r.shift(),r.push(o[o.length-1])),r}},watch:{current:{immediate:!0,handler(e,t){this.currentIndex=e<1?1:e}},value:{immediate:!0,handler(e){1===Number(this.current)&&(this.currentIndex=e<1?1:e)}},pageSizeIndex(e){this.$emit("pageSizeChange",this.pageSizeRange[e])}},methods:{pickerChange(e){this.pageSizeIndex=e.detail.value,this.pickerClick()},pickerClick(){},selectPage(e,t){if(parseInt(e))this.currentIndex=e,this.change("current");else{let e=Math.ceil(this.total/this.pageSize);if(t<=1)return void(this.currentIndex-5>1?this.currentIndex-=5:this.currentIndex=1);if(t>=6)return void(this.currentIndex+5>e?this.currentIndex=e:this.currentIndex+=5)}},clickLeft(){1!==Number(this.currentIndex)&&(this.currentIndex-=1,this.change("prev"))},clickRight(){Number(this.currentIndex)>=this.maxPage||(this.currentIndex+=1,this.change("next"))},change(e){this.$emit("input",this.currentIndex),this.$emit("update:modelValue",this.currentIndex),this.$emit("change",{type:e,current:this.currentIndex})}}},[["render",function(t,s,o,r,n,i){const l=a(e.resolveDynamicComponent("uni-icons"),G);return e.openBlock(),e.createElementBlock("view",{class:"uni-pagination"},[!0===o.showPageSize||"true"===o.showPageSize?(e.openBlock(),e.createElementBlock("picker",{key:0,class:"select-picker",mode:"selector",value:n.pageSizeIndex,range:o.pageSizeRange,onChange:s[0]||(s[0]=(...e)=>i.pickerChange&&i.pickerChange(...e)),onCancel:s[1]||(s[1]=(...e)=>i.pickerClick&&i.pickerClick(...e)),onClick:s[2]||(s[2]=(...e)=>i.pickerClick&&i.pickerClick(...e))},[e.createElementVNode("button",{type:"default",size:"mini",plain:!0},[e.createElementVNode("text",null,e.toDisplayString(o.pageSizeRange[n.pageSizeIndex])+" "+e.toDisplayString(i.piecePerPage),1),e.createVNode(l,{class:"select-picker-icon",type:"arrowdown",size:"12",color:"#999"})])],40,["value","range"])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-pagination__total is-phone-hide"},"共 "+e.toDisplayString(o.total)+" 条",1),e.createElementVNode("view",{class:e.normalizeClass(["uni-pagination__btn",1===n.currentIndex?"uni-pagination--disabled":"uni-pagination--enabled"]),"hover-class":1===n.currentIndex?"":"uni-pagination--hover","hover-start-time":20,"hover-stay-time":70,onClick:s[3]||(s[3]=(...e)=>i.clickLeft&&i.clickLeft(...e))},[!0===o.showIcon||"true"===o.showIcon?(e.openBlock(),e.createBlock(l,{key:0,color:"#666",size:"24",type:"left"})):(e.openBlock(),e.createElementBlock("text",{key:1,class:"uni-pagination__child-btn"},e.toDisplayString(i.prevPageText),1))],10,["hover-class"]),e.createElementVNode("view",{class:"uni-pagination__num uni-pagination__num-flex-none"},[e.createElementVNode("view",{class:"uni-pagination__num-current"},[e.createElementVNode("text",{class:"uni-pagination__num-current-text is-pc-hide current-index-text"},e.toDisplayString(n.currentIndex),1),e.createElementVNode("text",{class:"uni-pagination__num-current-text is-pc-hide"},"/"+e.toDisplayString(i.maxPage||0),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.paper,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:e.normalizeClass([{"page--active":t===n.currentIndex},"uni-pagination__num-tag tag--active is-phone-hide"]),onClick:e=>i.selectPage(t,a)},[e.createElementVNode("text",null,e.toDisplayString(t),1)],10,["onClick"])))),128))])]),e.createElementVNode("view",{class:e.normalizeClass(["uni-pagination__btn",n.currentIndex>=i.maxPage?"uni-pagination--disabled":"uni-pagination--enabled"]),"hover-class":n.currentIndex===i.maxPage?"":"uni-pagination--hover","hover-start-time":20,"hover-stay-time":70,onClick:s[4]||(s[4]=(...e)=>i.clickRight&&i.clickRight(...e))},[!0===o.showIcon||"true"===o.showIcon?(e.openBlock(),e.createBlock(l,{key:0,color:"#666",size:"24",type:"right"})):(e.openBlock(),e.createElementBlock("text",{key:1,class:"uni-pagination__child-btn"},e.toDisplayString(i.nextPageText),1))],10,["hover-class"])])}],["__scopeId","data-v-c06261f1"]]);const Q=o({data:()=>({current:1,total:0,pageSize:10,faulttaps:"实时",faultsList:[],formattedTime:_("yyyy年MM月dd日 hh:mm:ss"),formatTimeid:""}),onLoad(){this.formatTimeid=setInterval((()=>{this.formattedTime=_("yyyy年MM月dd日 hh:mm:ss")}),1e3),this.onfaultsList()},beforeUnmount(){clearInterval(this.formatTimeid)},methods:{onfaultsList(){let e={page:this.current,rows:this.pageSize,device:"",starttime:"",endtime:"",rt:"实时"==this.faulttaps?1:0,type:"实时"==this.faulttaps?"":this.faulttaps};u(e).then((e=>{t("log","at pages/details/index.vue:149",e),"ok"==e.status&&(this.faultsList=e.data.list,this.total=e.data.pagination.total)}))},onclick(){uni.redirectTo({url:"/pages/index/index"})},change(e){t("log","at pages/details/index.vue:167",e),this.current=e.current,this.onfaultsList()},taps(e){this.faulttaps=e,t("log","at pages/details/index.vue:173",e),this.onfaultsList()},closedevice(){for(let e=1;e<this.total;e++)this.$refs["device"+e].close()},close(){for(let e=1;e<this.total;e++)this.$refs["tooltip"+e].close()}}},[["render",function(t,s,o,r,n,i){const l=a(e.resolveDynamicComponent("zb-tooltip"),q),c=a(e.resolveDynamicComponent("uni-pagination"),X);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:g,mode:""}),e.createElementVNode("image",{class:"tite",src:V,mode:""}),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"},e.toDisplayString(n.formattedTime),1),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(" 连接状态: "),this.total?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state"}," 在线 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state1"}," 离线 "))])])])]),e.createElementVNode("view",{class:"parameter"},[e.createElementVNode("view",{class:"parameter_xian"},[e.createElementVNode("view",{class:"parameter_xian1"}," 序号 "),e.createElementVNode("view",{class:"parameter_xian2"}," 类型 "),e.createElementVNode("view",{class:"parameter_xian3"}," 设备 "),e.createElementVNode("view",{class:"parameter_xian4"}," 内容 "),e.createElementVNode("view",{class:"parameter_xian5"}," 发生时间 "),e.createElementVNode("view",{class:"parameter_xian6"}," 恢复时间 ")]),e.createElementVNode("view",{class:"parameter_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.faultsList,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(""==t.RESETTIME?"parameter_divred":"parameter_div"),key:a},[e.createElementVNode("view",{class:"parameter_xian1"},e.toDisplayString(t.ID),1),e.createElementVNode("view",{class:"parameter_xian2"},e.toDisplayString(t.TYPE),1),e.createVNode(l,{onClick:i.closedevice,content:t.DEVICE,placement:"top",ref_for:!0,ref:"device"+a},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"parameter_xian3"},e.toDisplayString(t.DEVICE),1)])),_:2},1032,["onClick","content"]),e.createVNode(l,{onClick:i.close,content:t.CONTENT,placement:"top",ref_for:!0,ref:"tooltip"+a},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"parameter_xian4"},e.toDisplayString(t.CONTENT),1)])),_:2},1032,["onClick","content"]),e.createElementVNode("view",{class:"parameter_xian5"},e.toDisplayString(t.FAULTTIME.substring(0,19)),1),e.createElementVNode("view",{class:"parameter_xian6"},e.toDisplayString(t.RESETTIME.substring(0,19)),1)],2)))),128))]),e.createElementVNode("view",{class:"parameter_bottom"},[e.createElementVNode("view",{class:"parameter_bottom1",onClick:s[0]||(s[0]=(...e)=>i.onclick&&i.onclick(...e))},[e.createElementVNode("image",{src:U,mode:""}),e.createElementVNode("text",{class:"parameter_bottom2"},"返回模式选择")]),e.createElementVNode("view",{class:"parameter_bottom3"},[e.createElementVNode("view",{class:e.normalizeClass("实时"==n.faulttaps?"parameter_bottom31":"parameter_bottom32"),onClick:s[1]||(s[1]=e=>i.taps("实时"))}," 实时 ",2),e.createElementVNode("view",{class:e.normalizeClass("故障"==n.faulttaps?"parameter_bottom31":"parameter_bottom32"),onClick:s[2]||(s[2]=e=>i.taps("故障"))}," 故障 ",2),e.createElementVNode("view",{class:e.normalizeClass("告警"==n.faulttaps?"parameter_bottom31":"parameter_bottom32"),onClick:s[3]||(s[3]=e=>i.taps("告警"))}," 告警 ",2),e.createElementVNode("view",{class:e.normalizeClass("事件"==n.faulttaps?"parameter_bottom31":"parameter_bottom32"),onClick:s[4]||(s[4]=e=>i.taps("事件"))}," 事件 ",2)]),e.createElementVNode("view",{class:"parameter_bottom4"},[e.createElementVNode("view",{class:"eliminate"}," 故障清除 "),e.createVNode(c,{total:n.total,title:"标题文字","show-icon":!0,onChange:i.change},null,8,["total","onChange"])])])])])}],["__scopeId","data-v-0ed8ce7f"]]);const Z=o({data:()=>({successtype:"success",confirmText:"确认启动",title:"你确定要开启该设备吗?",content:"启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",value:"",modeinput:"",segmented:1,uidatasdata:{},uidatas:"",formattedTime:_("yyyy年MM月dd日 hh:mm:ss"),formatTimeid:"",faultsdata:[],messageText:""}),onLoad(){},mounted(){this.formatTimeid=setInterval((()=>{this.formattedTime=_("yyyy年MM月dd日 hh:mm:ss")}),1e3),this.onfaultsList(),this.onfaultsdata(),setTimeout((()=>{let e=(1*this.uidatasdata.SOC).toFixed(0);new A({canvasId:"canvas2",value:e,lineWidth:20,progressColor:["#B0D0FF","#5B8FF9"],valueColor:"blue"})}),100)},beforeUnmount(){clearInterval(this.uidatas),clearInterval(this.formatTimeid)},methods:{onfaultsList(){p({ID:"3224a3eb-2375-4dfc-99ce-b182edd30996",page:1,rows:1e4}).then((e=>{"ok"==e.status?(e.data||(this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3)),this.uidatasdata=e.data.reduce(((e,t)=>{let a=t[t.module],s=parseFloat(a),o="";return o="BatCellVPeak_ValMaxCellVoltage"==t.id||"BatSysLimitVal_MaxCellTemperatureLimit"==t.id||"BatCellVPeak_ValMinCellVoltage"==t.id||"CellTemperatureLimitsStatus_MinTemp"==t.id?isNaN(s)?a:s.toFixed(3):isNaN(s)?a:s.toFixed(2),{...e,[t.id]:o}}),{}),1==this.uidatasdata.AC_In_380V_63A1_Status?(this.messageText="需将AC输出端63A1的开关手动断开",this.$refs.message.open()):1==this.uidatasdata.AC_In_380V_63A2_Status&&(this.messageText="需将AC输出端63A2的开关手动断开",this.$refs.message.open()),this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3)):(this.uidatasdata={},this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3))})).catch((e=>{this.uidatasdata={},this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3)}))},onfaultsdata(){u({page:1,rows:1,device:"",starttime:"",endtime:"",rt:1,type:""}).then((e=>{t("log","at pages/electricity/index.vue:626",e),"ok"==e.status&&(this.faultsdata=e.data.list)}))},onreturn(){uni.redirectTo({url:"/pages/index/index"})},dialogToggle(){this.modeinput="base",this.successtype="success",this.confirmText="确认启动",this.title="你确定要开启该设备吗?",this.content="启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",this.$refs.alertDialog.open()},onstopit(){this.modeinput="base",this.successtype="error",this.confirmText="确认停止",this.title="你确定要停止该设备吗?",this.content="设备完全停止后,方能进行后续操作,否则可能危及生命安全!",this.$refs.alertDialog.open()},dialogConfirm(){let e={id:"c35c4db0-113f-442a-9e26-728489265fdb",issaveinitvalue:!1,value:"确认启动"==this.confirmText?"1":"0"};d(e).then((e=>{"ok"==e.status?uni.showToast({title:"操作成功",icon:"none",duration:2e3}):uni.showToast({title:"操作失败",icon:"none",duration:2e3})}))},dialogClose(){t("log","at pages/electricity/index.vue:686",this.value),this.$refs.alertDialog.close()},ontap(e){t("log","at pages/electricity/index.vue:690",e),this.segmented=e}}},[["render",function(t,s,o,n,i,l){const c=a(e.resolveDynamicComponent("uni-popup-dialog"),D),d=a(e.resolveDynamicComponent("uni-popup"),m),p=a(e.resolveDynamicComponent("uni-popup-message"),r);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:g,mode:""}),e.createElementVNode("image",{class:"tite",src:V,mode:""}),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"},e.toDisplayString(i.formattedTime),1),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(" 连接状态: "),i.uidatasdata.bms_ChgLinkSt?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state"}," 在线 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state1"}," 离线 "))])])])]),e.createElementVNode("view",{class:"parameter"},[e.createElementVNode("view",{class:"parameter_left"},[e.createElementVNode("view",{class:"parameter_left1"},[e.createElementVNode("canvas",{class:"canvas","canvas-id":"canvas2"}),e.createElementVNode("view",{class:"parameter_canvas"},[e.createElementVNode("view",{class:"parameter_canvas1"}," 0 "),e.createElementVNode("view",{class:"parameter_canvas2"}," 100% ")])]),e.createElementVNode("image",{class:"parameter_leftdian1",src:P,alt:""}),e.createElementVNode("view",{class:"parameter_lef2"},[e.createElementVNode("image",{src:L,mode:""})]),e.createElementVNode("image",{class:"parameter_leftche1",src:"/static/fang.png",mode:""}),e.createElementVNode("view",{class:"parameter_leftview"},"交流供电")]),e.createElementVNode("view",{class:"parameter_right"},[e.createElementVNode("view",{class:"parameter_righttop"},[e.createElementVNode("view",{class:"parameter_1"},[e.createElementVNode("view",{class:"parameter_2"},[e.createElementVNode("view",{class:"parameter_31"},[e.createElementVNode("view",{class:"parameter_4"},[1==i.uidatasdata.AC_Out_380V_125A_Status?(e.openBlock(),e.createElementBlock("image",{key:0,src:R,mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:I,mode:""})),e.createTextVNode(" 125A状态 ")]),1==i.uidatasdata.AC_Out_380V_125A_Status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_51"}," 连接 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_5"}," 断开 "))]),e.createElementVNode("view",{class:"parameter_31"},[e.createElementVNode("view",{class:"parameter_4"},[1==i.uidatasdata.AC_Out_380V_63A_Status?(e.openBlock(),e.createElementBlock("image",{key:0,src:R,mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:I,mode:""})),e.createTextVNode(" 63A状态 ")]),1==i.uidatasdata.AC_Out_380V_63A_Status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_51"}," 连接 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_5"}," 断开 "))]),e.createElementVNode("view",{class:"parameter_31"},[e.createElementVNode("view",{class:"parameter_4"},[1==i.uidatasdata.AC_Out_220V_16A_Status?(e.openBlock(),e.createElementBlock("image",{key:0,src:R,mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:I,mode:""})),e.createTextVNode(" 16A状态 ")]),1==i.uidatasdata.AC_Out_220V_16A_Status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_51"}," 连接 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_5"}," 断开 "))])]),e.createElementVNode("view",{class:"parameter_SOC"},[e.createElementVNode("image",{src:$,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," SOC "),e.createElementVNode("view",null,[e.createElementVNode("text",{class:"parameter_SOCright2"},e.toDisplayString(i.uidatasdata.SOC),1),e.createElementVNode("text",null," %")])])]),e.createElementVNode("view",{class:"parameter_Battery"},[e.createElementVNode("image",{src:F,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 电池状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[5==i.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:0}," 故障 ")):e.createCommentVNode("",!0),0==i.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:1}," 出始化 ")):e.createCommentVNode("",!0),1==i.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:2}," 未上高压 ")):e.createCommentVNode("",!0),2==i.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:3}," 上高压中 ")):e.createCommentVNode("",!0),3==i.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:4}," 已上高压 ")):e.createCommentVNode("",!0),4==i.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:5}," 下高压中 ")):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"parameter_state"},[e.createElementVNode("image",{src:W,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 系统状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==i.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:0}," 未充电 ")):e.createCommentVNode("",!0),1==i.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:1}," 充电中 ")):e.createCommentVNode("",!0),2==i.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:2}," 充电故障 ")):e.createCommentVNode("",!0),3==i.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:3}," 充满 ")):e.createCommentVNode("",!0),4==i.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:4}," 充电停止 ")):e.createCommentVNode("",!0),5==i.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:5}," 保留 ")):e.createCommentVNode("",!0)])])])])]),e.createElementVNode("view",{class:"parameter_tap"},[e.createElementVNode("view",{class:e.normalizeClass(1==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[0]||(s[0]=e=>l.ontap(1))}," 交流信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(2==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[1]||(s[1]=e=>l.ontap(2))}," 电池信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(3==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[2]||(s[2]=e=>l.ontap(3))}," 统计信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(4==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[3]||(s[3]=e=>l.ontap(4))}," 液冷信息 ",2)]),e.createElementVNode("view",{class:"parameter_zheng"},[1==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," A相电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.PCSPortAPhaseVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," B相电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.PCSPortBPhaseVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," C相电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.PCSPortCPhaseVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 放电电量 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.PCSACDisChargeEnergy)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," A相电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata["PCSOutputA-phaseCurrent"])+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," B相电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata["PCSOutputB-phaseCurrent"])+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," C相电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata["PCSOutputC-phaseCurrent"]),1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 放电功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.PCSTotalOutputReactivePower)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])])])])):e.createCommentVNode("",!0),2==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatSysSt2_BatPower)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池内总压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatSysSt2_BatSumVInt)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 允许放电功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最大单体电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatCellVPeak_ValMaxCellVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最大单体温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatSysSt2_BatCur)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池外总压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatSysSt2_BatSumVOut)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 允许放电电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.ChargingInformation_Chg_Max_Cur)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最小单体电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatCellVPeak_ValMinCellVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最小单体温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.CellTemperatureLimitsStatus_MinTemp)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])])])):e.createCommentVNode("",!0),3==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng10"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatSysSt2_BatPower)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池内总压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.BatSysSt2_BatSumVInt)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])])])])):e.createCommentVNode("",!0),4==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 工作模式 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==i.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:0}," 关机模式 ")):e.createCommentVNode("",!0),1==i.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:1}," 制冷模式 ")):e.createCommentVNode("",!0),2==i.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:2}," 自热模式 ")):e.createCommentVNode("",!0),3==i.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:3}," 自循环模式 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 出水温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 需求功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.TMS_Status_TMS_POWER_REQ)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 高压继电器状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==i.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:0}," 断开状态 ")):e.createCommentVNode("",!0),1==i.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:1}," 闭合状态 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 入水温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(i.uidatasdata.TMS_Status_TMS_WATERIN_TEMP)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 故障等级 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==i.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:0}," 无故障 ")):e.createCommentVNode("",!0),1==i.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:1}," 1级故障 ")):e.createCommentVNode("",!0),2==i.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:2}," 2级故障 ")):e.createCommentVNode("",!0),3==i.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:3}," 3级故障 ")):e.createCommentVNode("",!0)])])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"parameter_zheng3"},[1==i.uidatasdata.SysControl_RunCmd?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"}," 开启 ")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_zheng31",onClick:s[4]||(s[4]=(...e)=>l.dialogToggle&&l.dialogToggle(...e))},[e.createElementVNode("view",{class:"parameter_zheng32"}," 开启 ")])),0==i.uidatasdata.SysControl_RunCmd?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"}," 停止 ")])):(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_zheng31",onClick:s[5]||(s[5]=(...e)=>l.onstopit&&l.onstopit(...e))},[e.createElementVNode("view",{class:"parameter_zheng33"}," 停止 ")]))])]),e.createElementVNode("view",{class:"parameter_home"},[e.createElementVNode("view",{class:"parameter_home1",onClick:s[6]||(s[6]=(...e)=>l.onreturn&&l.onreturn(...e))},[e.createElementVNode("image",{src:U,mode:""}),e.createElementVNode("text",{class:"parameter_hometext"},"返回模式选择")]),e.createElementVNode("view",{class:"parameter_home2"},[e.createElementVNode("image",{src:j,mode:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.faultsdata,((t,a)=>(e.openBlock(),e.createElementBlock("text",{class:"parameter_home3",key:a},e.toDisplayString(t.CONTENT),1)))),128))])])])]),e.createVNode(d,{ref:"alertDialog",onMaskClick:l.dialogClose},{default:e.withCtx((()=>[e.createVNode(c,{mode:i.modeinput,placeholder:"请输入内容",modelValue:i.value,"onUpdate:modelValue":s[7]||(s[7]=e=>i.value=e),type:i.successtype,cancelText:"取消返回",confirmText:i.confirmText,title:i.title,content:i.content,onConfirm:l.dialogConfirm,onClose:l.dialogClose},null,8,["mode","modelValue","type","confirmText","title","content","onConfirm","onClose"])])),_:1},8,["onMaskClick"]),e.createVNode(d,{ref:"message",type:"message"},{default:e.withCtx((()=>[e.createVNode(p,{type:"error",message:i.messageText,duration:2500},null,8,["message"])])),_:1},512)])}],["__scopeId","data-v-809adc50"]]);const ee=o({data:()=>({successtype:"success",confirmText:"确认启动",title:"你确定要开启该设备吗?",content:"启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",value:"",modeinput:"",segmented:1,uidatasdata:{},uidatas:"",formatTimeid:"",formattedTime:_("yyyy年MM月dd日 hh:mm:ss"),faultsdata:[]}),onLoad(){},mounted(){this.formatTimeid=setInterval((()=>{this.formattedTime=_("yyyy年MM月dd日 hh:mm:ss")}),1e3),this.onfaultsList(),this.onfaultsdata(),setTimeout((()=>{let e=(1*this.uidatasdata.SOC).toFixed(0);new A({canvasId:"canvas2",value:e,lineWidth:20,progressColor:["#B0D0FF","#5B8FF9"],valueColor:"blue"})}),500)},beforeUnmount(){clearInterval(this.uidatas),clearInterval(this.formatTimeid)},methods:{onfaultsList(){p({ID:"3224a3eb-2375-4dfc-99ce-b182edd30996",page:1,rows:1e4}).then((e=>{"ok"==e.status?(e.data||(this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3)),this.uidatasdata=e.data.reduce(((e,t)=>{let a=t[t.module],s=parseFloat(a),o="";return o="BatCellVPeak_ValMaxCellVoltage"==t.id||"BatSysLimitVal_MaxCellTemperatureLimit"==t.id||"BatCellVPeak_ValMinCellVoltage"==t.id||"CellTemperatureLimitsStatus_MinTemp"==t.id?isNaN(s)?a:s.toFixed(3):isNaN(s)?a:s.toFixed(2),{...e,[t.id]:o}}),{}),t("log","at pages/supply/supply.vue:591",this.uidatasdata),this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3)):(this.uidatasdata={},this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3))})).catch((e=>{this.uidatasdata={},this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3)}))},onfaultsdata(){u({page:1,rows:1,device:"",starttime:"",endtime:"",rt:1,type:""}).then((e=>{t("log","at pages/supply/supply.vue:621",e),"ok"==e.status&&(this.faultsdata=e.data.list)}))},onreturn(){uni.redirectTo({url:"/pages/index/index"})},dialogToggle(){this.modeinput="base",this.successtype="success",this.confirmText="确认启动",this.title="你确定要开启该设备吗?",this.content="启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",this.$refs.alertDialog.open()},onstopit(){this.modeinput="base",this.successtype="error",this.confirmText="确认停止",this.title="你确定要停止该设备吗?",this.content="设备完全停止后,方能进行后续操作,否则可能危及生命安全!",this.$refs.alertDialog.open()},dialogConfirm(){let e={id:"c35c4db0-113f-442a-9e26-728489265fdb",issaveinitvalue:!1,value:"确认启动"==this.confirmText?"1":"0"};d(e).then((e=>{"ok"==e.status?uni.showToast({title:"操作成功",icon:"none",duration:2e3}):uni.showToast({title:"操作失败",icon:"none",duration:2e3})}))},dialogClose(){t("log","at pages/supply/supply.vue:681",this.value),this.$refs.alertDialog.close()},ontap(e){t("log","at pages/supply/supply.vue:685",e),this.segmented=e}}},[["render",function(t,s,o,r,n,i){const l=a(e.resolveDynamicComponent("uni-popup-dialog"),D),c=a(e.resolveDynamicComponent("uni-popup"),m);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:g,mode:""}),e.createElementVNode("image",{class:"tite",src:V,mode:""}),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"},e.toDisplayString(n.formattedTime),1),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(" 连接状态: "),n.uidatasdata.bms_ChgLinkSt?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state"}," 在线 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state1"}," 离线 "))])])])]),e.createElementVNode("view",{class:"parameter"},[e.createElementVNode("view",{class:"parameter_left"},[e.createElementVNode("view",{class:"parameter_left1"},[e.createElementVNode("canvas",{class:"canvas","canvas-id":"canvas2"}),e.createElementVNode("view",{class:"parameter_canvas"},[e.createElementVNode("view",{class:"parameter_canvas1"}," 0 "),e.createElementVNode("view",{class:"parameter_canvas2"}," 100% ")])]),e.createElementVNode("image",{class:"parameter_leftdian1",src:P,alt:""}),e.createElementVNode("view",{class:"parameter_lef2"},[e.createElementVNode("image",{src:L,mode:""})]),e.createElementVNode("image",{class:"parameter_leftche",src:O,mode:""}),e.createElementVNode("view",{class:"parameter_leftview"},"直流补电")]),e.createElementVNode("view",{class:"parameter_right"},[e.createElementVNode("view",{class:"parameter_righttop"},[e.createElementVNode("view",{class:"parameter_1"},[e.createElementVNode("view",{class:"parameter_shan"},[e.createElementVNode("image",{src:"/static/shan.png",mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 充电功率 "),e.createElementVNode("view",null,[e.createElementVNode("text",{class:"parameter_SOCright2"},e.toDisplayString((n.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage*n.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent/1e3).toFixed(2)),1),e.createElementVNode("text",null," kW")])])]),e.createElementVNode("view",{class:"parameter_SOC"},[e.createElementVNode("image",{src:$,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," SOC "),e.createElementVNode("view",null,[e.createElementVNode("text",{class:"parameter_SOCright2"},e.toDisplayString(n.uidatasdata.SOC),1),e.createElementVNode("text",null," %")])])]),e.createElementVNode("view",{class:"parameter_Battery"},[e.createElementVNode("image",{src:F,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 电池状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[5==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:0}," 故障 ")):e.createCommentVNode("",!0),0==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:1}," 出始化 ")):e.createCommentVNode("",!0),1==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:2}," 未上高压 ")):e.createCommentVNode("",!0),2==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:3}," 上高压中 ")):e.createCommentVNode("",!0),3==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:4}," 已上高压 ")):e.createCommentVNode("",!0),4==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:5}," 下高压中 ")):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"parameter_state"},[e.createElementVNode("image",{src:W,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 系统状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:0}," 未充电 ")):e.createCommentVNode("",!0),1==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:1}," 充电中 ")):e.createCommentVNode("",!0),2==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:2}," 充电故障 ")):e.createCommentVNode("",!0),3==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:3}," 充满 ")):e.createCommentVNode("",!0),4==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:4}," 充电停止 ")):e.createCommentVNode("",!0),5==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:5}," 保留 ")):e.createCommentVNode("",!0)])])])])]),e.createElementVNode("view",{class:"parameter_tap"},[e.createElementVNode("view",{class:e.normalizeClass(1==n.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[0]||(s[0]=e=>i.ontap(1))}," 电池信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(2==n.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[1]||(s[1]=e=>i.ontap(2))}," 连接信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(3==n.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[2]||(s[2]=e=>i.ontap(3))}," 统计信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(4==n.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[3]||(s[3]=e=>i.ontap(4))}," 液冷信息 ",2)]),e.createElementVNode("view",{class:"parameter_zheng"},[1==n.segmented?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.BatSysSt2_BatPower)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"KW")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池内总压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.BatSysSt2_BatSumVInt)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 允许充电功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.DchChgCurPowLimit_MaxChargePowerLimit)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"KW")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最大单体电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.BatCellVPeak_ValMaxCellVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"v")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最大单体温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.BatSysSt2_BatCur)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池外总压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.BatSysSt2_BatSumVOut)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 允许充电电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.ChargingInformation_Chg_Max_Cur),1),e.createElementVNode("text",{class:"parameter_zheng14"}," A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最小单体电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.BatCellVPeak_ValMinCellVoltage),1),e.createElementVNode("text",{class:"parameter_zheng14"}," v")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最小单体温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.CellTemperatureLimitsStatus_MinTemp)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"}," ℃")])])])])):e.createCommentVNode("",!0),2==n.segmented?(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池系统工作模式 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:0}," 无效 ")):e.createCommentVNode("",!0),1==n.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:1}," 放电模式 ")):e.createCommentVNode("",!0),2==n.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:2}," pcs充电模式 ")):e.createCommentVNode("",!0),3==n.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:3}," 欧标充电模式 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池系统状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:0}," 初始化 ")):e.createCommentVNode("",!0),1==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:1}," 未上高压 ")):e.createCommentVNode("",!0),2==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:2}," 上高压中 ")):e.createCommentVNode("",!0),3==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:3}," 已上高压 ")):e.createCommentVNode("",!0),4==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:4}," 下高压中 ")):e.createCommentVNode("",!0),5==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:5}," 故障 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:0}," 未充电 ")):e.createCommentVNode("",!0),1==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:1}," 充电中 ")):e.createCommentVNode("",!0),2==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:2}," 充电故障 ")):e.createCommentVNode("",!0),3==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:3}," 充满 ")):e.createCommentVNode("",!0),4==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:4}," 充电停止 ")):e.createCommentVNode("",!0),5==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:5}," 保留 ")):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电连接状态 "),1==n.uidatasdata.bms_ChgLinkSt?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_Batterystate"}," 快充连接 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_Batterystate"}," 无连接 "))]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池故障等级 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:0}," 无故障 ")):e.createCommentVNode("",!0),1==n.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:1}," 1级告警 ")):e.createCommentVNode("",!0),2==n.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:2}," 2级告警 ")):e.createCommentVNode("",!0),3==n.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:3}," 3级告警 ")):e.createCommentVNode("",!0)])])])])):e.createCommentVNode("",!0),3==n.segmented?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng10"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 交流累计充电电量 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.PCSACChargeEnergy)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 直流累计充电电量 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.PCSDCDisChargeEnergy)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh")])])])])):e.createCommentVNode("",!0),4==n.segmented?(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 工作模式 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:0}," 关机模式 ")):e.createCommentVNode("",!0),1==n.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:1}," 制冷模式 ")):e.createCommentVNode("",!0),2==n.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:2}," 自热模式 ")):e.createCommentVNode("",!0),3==n.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:3}," 自循环模式 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 出水温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 需求功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.TMS_Status_TMS_POWER_REQ)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 高压继电器状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:0}," 断开状态 ")):e.createCommentVNode("",!0),1==n.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:1}," 闭合状态 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 入水温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.TMS_Status_TMS_WATERIN_TEMP)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 故障等级 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:0}," 无故障 ")):e.createCommentVNode("",!0),1==n.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:1}," 1级故障 ")):e.createCommentVNode("",!0),2==n.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:2}," 2级故障 ")):e.createCommentVNode("",!0),3==n.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:3}," 3级故障 ")):e.createCommentVNode("",!0)])])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"parameter_zheng3"},[1==n.uidatasdata.SysControl_RunCmd?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"}," 开启 ")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_zheng31",onClick:s[4]||(s[4]=(...e)=>i.dialogToggle&&i.dialogToggle(...e))},[e.createElementVNode("view",{class:"parameter_zheng32"}," 开启 ")])),0==n.uidatasdata.SysControl_RunCmd?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"}," 停止 ")])):(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_zheng31",onClick:s[5]||(s[5]=(...e)=>i.onstopit&&i.onstopit(...e))},[e.createElementVNode("view",{class:"parameter_zheng33"}," 停止 ")]))])]),e.createElementVNode("view",{class:"parameter_home"},[e.createElementVNode("view",{class:"parameter_home1",onClick:s[6]||(s[6]=(...e)=>i.onreturn&&i.onreturn(...e))},[e.createElementVNode("image",{src:U,mode:""}),e.createElementVNode("text",{class:"parameter_hometext"},"返回模式选择")]),e.createElementVNode("view",{class:"parameter_home2"},[e.createElementVNode("image",{src:j,mode:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.faultsdata,((t,a)=>(e.openBlock(),e.createElementBlock("text",{class:"parameter_home3",key:a},e.toDisplayString(t.CONTENT),1)))),128))])])])]),e.createVNode(c,{ref:"alertDialog",onMaskClick:i.dialogClose},{default:e.withCtx((()=>[e.createVNode(l,{mode:n.modeinput,placeholder:"请输入内容",modelValue:n.value,"onUpdate:modelValue":s[7]||(s[7]=e=>n.value=e),type:n.successtype,cancelText:"取消返回",confirmText:n.confirmText,title:n.title,content:n.content,onConfirm:i.dialogConfirm,onClose:i.dialogClose},null,8,["mode","modelValue","type","confirmText","title","content","onConfirm","onClose"])])),_:1},8,["onMaskClick"])])}],["__scopeId","data-v-fc53d559"]]);const te=o({data:()=>({successtype:"success",confirmText:"确认启动",title:"你确定要开启该设备吗?",content:"启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",value:"",modeinput:"",segmented:1,uidatasdata:{},uidatas:"",formattedTime:_("yyyy年MM月dd日 hh:mm:ss"),formatTimeid:"",ChargingStation:1,faultsdata:[]}),onLoad(){},mounted(){this.formatTimeid=setInterval((()=>{this.formattedTime=_("yyyy年MM月dd日 hh:mm:ss")}),1e3),this.onfaultsList(),this.onfaultsdata(),setTimeout((()=>{let e=(1*this.uidatasdata.SOC).toFixed(0);new A({canvasId:"canvas2",value:e,lineWidth:20,progressColor:["#B0D0FF","#5B8FF9"],valueColor:"blue"})}),100)},beforeUnmount(){clearInterval(this.uidatas),clearInterval(this.formatTimeid)},methods:{onfaultsList(){p({ID:"3224a3eb-2375-4dfc-99ce-b182edd30996",page:1,rows:1e4}).then((e=>{"ok"==e.status?(e.data||(this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3)),this.uidatasdata=e.data.reduce(((e,t)=>{let a=t[t.module],s=parseFloat(a),o="";return o="BatCellVPeak_ValMaxCellVoltage"==t.id||"BatSysLimitVal_MaxCellTemperatureLimit"==t.id||"BatCellVPeak_ValMinCellVoltage"==t.id||"CellTemperatureLimitsStatus_MinTemp"==t.id?isNaN(s)?a:s.toFixed(3):isNaN(s)?a:s.toFixed(2),{...e,[t.id]:o}}),{}),t("log","at pages/supplyss/supplyss.vue:801",this.uidatasdata),this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3)):(this.uidatasdata={},this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3))})).catch((e=>{this.uidatasdata={},this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e3)}))},onfaultsdata(){u({page:1,rows:1,device:"",starttime:"",endtime:"",rt:1,type:""}).then((e=>{t("log","at pages/supplyss/supplyss.vue:833",e),"ok"==e.status&&(this.faultsdata=e.data.list)}))},onreturn(){uni.redirectTo({url:"/pages/index/index"})},dialogToggle(){this.modeinput="base",this.successtype="success",this.confirmText="确认启动",this.title="你确定要开启该设备吗?",this.content="启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",this.$refs.alertDialog.open()},onstopit(){this.modeinput="base",this.successtype="error",this.confirmText="确认停止",this.title="你确定要停止该设备吗?",this.content="设备完全停止后,方能进行后续操作,否则可能危及生命安全!",this.$refs.alertDialog.open()},dialogConfirm(){let e={};e=1==this.segmented?{id:"3b26469f-ad5b-43bf-b715-4213921321d0",issaveinitvalue:!1,value:"确认启动"==this.confirmText?"1":"0"}:2==this.segmented?{id:"78f59493-65f3-4860-8296-7f07bb0ca55b",issaveinitvalue:!1,value:"确认启动"==this.confirmText?"1":"0"}:{id:"c35c4db0-113f-442a-9e26-728489265fdb",issaveinitvalue:!1,value:"确认启动"==this.confirmText?"1":"0"},d(e).then((e=>{t("log","at pages/supplyss/supplyss.vue:890",e),"ok"==e.status?uni.showToast({title:"操作成功",icon:"none",duration:2e3}):uni.showToast({title:"操作失败",icon:"none",duration:2e3})}))},dialogClose(){t("log","at pages/supplyss/supplyss.vue:909",this.value),this.$refs.alertDialog.close()},ontap(e){t("log","at pages/supplyss/supplyss.vue:914",e),this.segmented=e,1==this.segmented?this.ChargingStation=1:2==this.segmented&&(this.ChargingStation=2)}}},[["render",function(t,s,o,r,n,i){const l=a(e.resolveDynamicComponent("uni-popup-dialog"),D),c=a(e.resolveDynamicComponent("uni-popup"),m);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:g,mode:""}),e.createElementVNode("image",{class:"tite",src:V,mode:""}),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"},e.toDisplayString(n.formattedTime),1),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(" 连接状态: "),n.uidatasdata.bms_ChgLinkSt?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state"}," 在线 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state1"}," 离线 "))])])])]),e.createElementVNode("view",{class:"parameter"},[e.createElementVNode("view",{class:"parameter_left"},[e.createElementVNode("view",{class:"parameter_left1"},[e.createElementVNode("canvas",{class:"canvas","canvas-id":"canvas2"}),e.createElementVNode("view",{class:"parameter_canvas"},[e.createElementVNode("view",{class:"parameter_canvas1"}," 0 "),e.createElementVNode("view",{class:"parameter_canvas2"}," 100% ")])]),e.createElementVNode("image",{class:"parameter_leftdian1",src:P,alt:""}),e.createElementVNode("view",{class:"parameter_lef2"},[e.createElementVNode("image",{src:L,mode:""})]),e.createElementVNode("image",{class:"parameter_leftche2",src:"/static/che1.png",mode:""}),e.createElementVNode("view",{class:"parameter_leftview"},"直流供电")]),e.createElementVNode("view",{class:"parameter_right"},[e.createElementVNode("view",{class:"parameter_righttop"},[e.createElementVNode("view",{class:"parameter_1"},[e.createElementVNode("view",{class:"parameter_2"},[1==n.ChargingStation?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_3"},[e.createElementVNode("view",{class:"parameter_4"},[1==n.uidatasdata.ChargingStation_1_remoteSignaFrameCarConnectStatus_ccu?(e.openBlock(),e.createElementBlock("image",{key:0,src:R,mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:I,mode:""})),e.createTextVNode(" 连接状态 ")]),1==n.uidatasdata.ChargingStation_1_remoteSignaFrameCarConnectStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_51"}," 连接 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_5"}," 断开 "))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_3"},[e.createElementVNode("view",{class:"parameter_4"},[1==n.uidatasdata.ChargingStation_2_remoteSignaFrameCarConnectStatus_ccu?(e.openBlock(),e.createElementBlock("image",{key:0,src:R,mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:I,mode:""})),e.createTextVNode(" 连接状态 ")]),1==n.uidatasdata.ChargingStation_2_remoteSignaFrameCarConnectStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_51"}," 连接 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_5"}," 断开 "))])),1==n.ChargingStation?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_3"},[e.createElementVNode("view",{class:"parameter_4"},[1==n.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("image",{key:0,src:R,mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:I,mode:""})),e.createTextVNode(" 工作状态 ")]),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:0}," 待机 ")):e.createCommentVNode("",!0),1==n.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:1}," 工作 ")):e.createCommentVNode("",!0),2==n.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:2}," 充电完成 ")):e.createCommentVNode("",!0),3==n.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:3}," 充电暂停 ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),2==n.ChargingStation?(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_3"},[e.createElementVNode("view",{class:"parameter_4"},[1==n.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("image",{key:0,src:R,mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:I,mode:""})),e.createTextVNode(" 工作状态 ")]),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:0}," 待机 ")):e.createCommentVNode("",!0),1==n.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:1}," 工作 ")):e.createCommentVNode("",!0),2==n.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:2}," 充电完成 ")):e.createCommentVNode("",!0),3==n.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:3}," 充电暂停 ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"parameter_SOC"},[e.createElementVNode("image",{src:$,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," SOC "),e.createElementVNode("view",null,[e.createElementVNode("text",{class:"parameter_SOCright2"},e.toDisplayString(n.uidatasdata.SOC),1),e.createElementVNode("text",null,"%")])])]),e.createElementVNode("view",{class:"parameter_Battery"},[e.createElementVNode("image",{src:F,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 电池状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[5==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:0}," 故障 ")):e.createCommentVNode("",!0),0==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:1}," 出始化 ")):e.createCommentVNode("",!0),1==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:2}," 未上高压 ")):e.createCommentVNode("",!0),2==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:3}," 上高压中 ")):e.createCommentVNode("",!0),3==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:4}," 已上高压 ")):e.createCommentVNode("",!0),4==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:5}," 下高压中 ")):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"parameter_state"},[e.createElementVNode("image",{src:W,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 系统状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:0}," 未充电 ")):e.createCommentVNode("",!0),1==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:1}," 充电中 ")):e.createCommentVNode("",!0),2==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:2}," 充电故障 ")):e.createCommentVNode("",!0),3==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:3}," 充满 ")):e.createCommentVNode("",!0),4==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:4}," 充电停止 ")):e.createCommentVNode("",!0),5==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:5}," 保留 ")):e.createCommentVNode("",!0)])])])])]),e.createElementVNode("view",{class:"parameter_tap"},[e.createElementVNode("view",{class:e.normalizeClass(1==n.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[0]||(s[0]=e=>i.ontap(1))}," 枪1信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(2==n.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[1]||(s[1]=e=>i.ontap(2))}," 枪2信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(3==n.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[2]||(s[2]=e=>i.ontap(3))}," 电池信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(4==n.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[3]||(s[3]=e=>i.ontap(4))}," 连接信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(5==n.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[4]||(s[4]=e=>i.ontap(5))}," 液冷信息 ",2)]),e.createElementVNode("view",{class:"parameter_zheng"},[1==n.segmented?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 车辆SOC "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.ChargingStation_1_telemetryFrameccu_soc)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"%")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString((n.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage*n.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent/1e3).toFixed(2))+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电电量 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.ChargingStation_1_telemetryFrameccu_ThisChargePower)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电费用 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.ChargingStation_1_telemetryFrameccu_AccumulatedChargingElectricityCost)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"元")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电时间 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.ChargingStation_1_telemetryFrameccu_EstimateTheRemainingChargingTime)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"min")])])])])):e.createCommentVNode("",!0),2==n.segmented?(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.ChargingStation_2_telemetryFrameccu_outputVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.ChargingStation_2_telemetryFrameccu_chargeOutputCurrent)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 车辆SOC "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.ChargingStation_2_telemetryFrameccu_soc),1),e.createElementVNode("text",{class:"parameter_zheng14"}," %")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString((n.uidatasdata.ChargingStation_2_telemetryFrameccu_outputVoltage*n.uidatasdata.ChargingStation_2_telemetryFrameccu_chargeOutputCurrent/1e3).toFixed(2))+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电电量 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.ChargingStation_2_telemetryFrameccu_ThisChargePower)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电费用 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.ChargingStation_2_telemetryFrameccu_AccumulatedChargingElectricityCost)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"元")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电时间 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.ChargingStation_2_telemetryFrameccu_EstimateTheRemainingChargingTime)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"min")])])])])):e.createCommentVNode("",!0),3==n.segmented?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.BatSysSt2_BatPower)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池内总压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.BatSysSt2_BatSumVInt)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 允许放电功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最大单体电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.BatCellVPeak_ValMaxCellVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最大单体温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.BatSysSt2_BatCur)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池外总压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.BatSysSt2_BatSumVOut)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 允许放电电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.ChargingInformation_Chg_Max_Cur),1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最小单体电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.BatCellVPeak_ValMinCellVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最小单体温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.CellTemperatureLimitsStatus_MinTemp)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])])])):e.createCommentVNode("",!0),4==n.segmented?(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池系统工作模式 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:0}," 无效 ")):e.createCommentVNode("",!0),1==n.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:1}," 放电模式 ")):e.createCommentVNode("",!0),2==n.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:2}," pcs充电模式 ")):e.createCommentVNode("",!0),3==n.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:3}," 欧标充电模式 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池系统状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:0}," 初始化 ")):e.createCommentVNode("",!0),1==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:1}," 未上高压 ")):e.createCommentVNode("",!0),2==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:2}," 上高压中 ")):e.createCommentVNode("",!0),3==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:3}," 已上高压 ")):e.createCommentVNode("",!0),4==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:4}," 下高压中 ")):e.createCommentVNode("",!0),5==n.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:5}," 故障 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:0}," 未充电 ")):e.createCommentVNode("",!0),1==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:1}," 充电中 ")):e.createCommentVNode("",!0),2==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:2}," 充电故障 ")):e.createCommentVNode("",!0),3==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:3}," 充满 ")):e.createCommentVNode("",!0),4==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:4}," 充电停止 ")):e.createCommentVNode("",!0),5==n.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:5}," 保留 ")):e.createCommentVNode("",!0)])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 充电连接状态 "),1==n.uidatasdata.bms_ChgLinkSt?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_Batterystate"}," 快充连接 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_Batterystate"}," 无连接 "))]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 电池故障等级 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:0}," 无故障 ")):e.createCommentVNode("",!0),1==n.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:1}," 1级告警 ")):e.createCommentVNode("",!0),2==n.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:2}," 2级告警 ")):e.createCommentVNode("",!0),3==n.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:3}," 3级告警 ")):e.createCommentVNode("",!0)])])])])):e.createCommentVNode("",!0),5==n.segmented?(e.openBlock(),e.createElementBlock("view",{key:4,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 工作模式 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:0}," 关机模式 ")):e.createCommentVNode("",!0),1==n.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:1}," 制冷模式 ")):e.createCommentVNode("",!0),2==n.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:2}," 自热模式 ")):e.createCommentVNode("",!0),3==n.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:3}," 自循环模式 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 出水温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 需求功率 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.TMS_Status_TMS_POWER_REQ)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 高压继电器状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:0}," 断开状态 ")):e.createCommentVNode("",!0),1==n.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:1}," 闭合状态 ")):e.createCommentVNode("",!0)])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 入水温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(n.uidatasdata.TMS_Status_TMS_WATERIN_TEMP)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 故障等级 "),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==n.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:0}," 无故障 ")):e.createCommentVNode("",!0),1==n.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:1}," 1级故障 ")):e.createCommentVNode("",!0),2==n.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:2}," 2级故障 ")):e.createCommentVNode("",!0),3==n.uidatasdata.TMS_Status_TMS_ERR_LEVEL?(e.openBlock(),e.createElementBlock("view",{key:3}," 3级故障 ")):e.createCommentVNode("",!0)])])])])):e.createCommentVNode("",!0),1==this.segmented?(e.openBlock(),e.createElementBlock("view",{key:5,class:"parameter_zheng3"},[1==n.uidatasdata.SysControl_Gun1RunCmd?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"}," 开启 ")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_zheng31",onClick:s[5]||(s[5]=(...e)=>i.dialogToggle&&i.dialogToggle(...e))},[e.createElementVNode("view",{class:"parameter_zheng32"}," 开启 ")])),0==n.uidatasdata.SysControl_Gun1RunCmd?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"}," 停止 ")])):(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_zheng31",onClick:s[6]||(s[6]=(...e)=>i.onstopit&&i.onstopit(...e))},[e.createElementVNode("view",{class:"parameter_zheng33"}," 停止 ")]))])):e.createCommentVNode("",!0),2==this.segmented?(e.openBlock(),e.createElementBlock("view",{key:6,class:"parameter_zheng3"},[1==n.uidatasdata.SysControl_Gun2RunCmd?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"}," 开启 ")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_zheng31",onClick:s[7]||(s[7]=(...e)=>i.dialogToggle&&i.dialogToggle(...e))},[e.createElementVNode("view",{class:"parameter_zheng32"}," 开启 ")])),0==n.uidatasdata.SysControl_Gun2RunCmd?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"}," 停止 ")])):(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_zheng31",onClick:s[8]||(s[8]=(...e)=>i.onstopit&&i.onstopit(...e))},[e.createElementVNode("view",{class:"parameter_zheng33"}," 停止 ")]))])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"parameter_home"},[e.createElementVNode("view",{class:"parameter_home1",onClick:s[9]||(s[9]=(...e)=>i.onreturn&&i.onreturn(...e))},[e.createElementVNode("image",{src:U,mode:""}),e.createElementVNode("text",{class:"parameter_hometext"},"返回模式选择")]),e.createElementVNode("view",{class:"parameter_home2"},[e.createElementVNode("image",{src:j,mode:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.faultsdata,((t,a)=>(e.openBlock(),e.createElementBlock("text",{class:"parameter_home3",key:a},e.toDisplayString(t.CONTENT),1)))),128))])])])]),e.createVNode(c,{ref:"alertDialog",onMaskClick:i.dialogClose},{default:e.withCtx((()=>[e.createVNode(l,{mode:n.modeinput,placeholder:"请输入内容",modelValue:n.value,"onUpdate:modelValue":s[10]||(s[10]=e=>n.value=e),type:n.successtype,cancelText:"取消返回",confirmText:n.confirmText,title:n.title,content:n.content,onConfirm:i.dialogConfirm,onClose:i.dialogClose},null,8,["mode","modelValue","type","confirmText","title","content","onConfirm","onClose"])])),_:1},8,["onMaskClick"])])}],["__scopeId","data-v-3c282554"]]);__definePage("pages/index/index",E),__definePage("pages/home/index",H),__definePage("pages/details/index",Q),__definePage("pages/electricity/index",Z),__definePage("pages/supply/supply",ee),__definePage("pages/supplyss/supplyss",te);const ae={data:()=>({}),onLaunch:function(){plus.navigator.setFullscreen(!0),plus.navigator.hideSystemNavigation()},beforeUnmount(){},methods:{},onShow:function(){t("log","at App.vue:32","App Show")},onHide:function(){t("log","at App.vue:35","App Hide")}};const se=new class{constructor(e={}){this.baseUrl=e.baseUrl||"http://10.168.1.100",this.url=e.url||"",this.method="GET",this.data=null,this.header=e.header||{},this.beforeRequest=null,this.afterRequest=null}_mergeHeaders(e={}){return Object.assign({},this.header,e)}get(e,t={},a={}){return this.method="GET",this.url=this.baseUrl+e,this.data=t,this.header=this._mergeHeaders(a),this._()}post(e,t={},a={}){return this.method="POST",this.url=this.baseUrl+e,this.data=t,this.header=this._mergeHeaders(a),this._()}put(e,t={}){return this.method="PUT",this.url=this.baseUrl+e,this.data=t,this._()}delete(e,t={}){return this.method="DELETE",this.url=this.baseUrl+e,this.data=t,this._()}_(){return""==this.baseUrl&&(this.url="http://10.168.1.100"+this.url),this.beforeRequest&&"function"==typeof this.beforeRequest&&this.beforeRequest(this),new Promise(((e,t)=>{let a=wx;"undefined"!=typeof uni&&(a=uni),a.request({url:this.url,method:this.method,data:this.data,header:this.header,success:t=>{e(t)},fail:e=>{t(e)},complete:e=>{this.afterRequest&&"function"==typeof this.afterRequest&&this.afterRequest(e)}})}))}};uni.$http=se,se.baseUrl="",se.beforeRequest=function(e){},se.afterRequest=function(){};const{app:oe,Vuex:re,Pinia:ne}={app:e.createVueApp(ae)};uni.Vuex=re,uni.Pinia=ne,oe.provide("__globalStyles",__uniConfig.styles),oe._component.mpType="app",oe._component.render=()=>{},oe.mount("#app")}(Vue);
|