移动储能车V1版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app-service.js 118KB

1
  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=async e=>{try{const t=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 200!==t.statusCode?(uni.showToast({title:"数据请求失败! ",duration:1500,icon:"none"}),[]):t.data}catch(t){return uni.showToast({title:"网络请求失败! ",duration:1500,icon:"none"}),[]}},r="/static/logo.png",n="/static/tite.png",i=(e,t)=>{const a=e.__vccOpts||e;for(const[s,r]of t)a[s]=r;return a};const o=i({data:()=>({title:"",uidatasdata:{},uidatas:""}),onLoad(){this.onfaultsList()},beforeUnmount(){},methods:{onfaultsList(){s({ID:"3224a3eb-2375-4dfc-99ce-b182edd30996",page:1,rows:1e4}).then((e=>{"ok"==e.status&&(this.uidatasdata=e.data.list.reduce(((e,t)=>{let a=t[t.module],s=parseFloat(a),r=isNaN(s)?a:s.toFixed(2);return{...e,[t.id]:r}}),{}),t("log","at pages/index/index.vue:102",this.uidatasdata))}))},onclick(e){1==e?uni.redirectTo({url:"/pages/home/index"}):2==e?uni.redirectTo({url:"/pages/electricity/index"}):3==e?uni.redirectTo({url:"/pages/supply/supply"}):4==e&&uni.redirectTo({url:"/pages/supplyss/supplyss"})},system(){uni.redirectTo({url:"/pages/details/index"})}}},[["render",function(t,a,s,i,o,l){return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:r,mode:""}),e.createElementVNode("image",{class:"tite",src:n,mode:""}),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"}," 2024年12月21日00:00:00 "),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(" 连接状态: "),0==o.uidatasdata.bms_ChgLinkSt?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state1"}," 离线 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state"}," 在线 "))])])])]),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:a[0]||(a[0]=e=>l.onclick(1))},[e.createElementVNode("image",{src:"/static/electricity.png",mode:""})]),e.createElementVNode("view",{class:"power_1",onClick:a[1]||(a[1]=e=>l.onclick(2))},[e.createElementVNode("image",{src:"/static/power1.png",mode:""})]),e.createElementVNode("view",{class:"power_1",onClick:a[2]||(a[2]=e=>l.onclick(3))},[e.createElementVNode("image",{src:"/static/direct1.png",mode:""})]),e.createElementVNode("view",{class:"power_1",onClick:a[3]||(a[3]=e=>l.onclick(4))},[e.createElementVNode("image",{src:"/static/DCpower1.png",mode:""})]),e.createElementVNode("view",{class:"power_5",onClick:a[4]||(a[4]=(...e)=>l.system&&l.system(...e))},[e.createElementVNode("image",{src:"/static/system.png",mode:""})])]),e.createElementVNode("view",{class:"power_6"},[e.createElementVNode("image",{src:"/static/!.png",mode:""}),e.createTextVNode("若想重新选择模式,请返回之前模式停止以后再重新选择! ")])])}],["__scopeId","data-v-bc6eb865"]]),l={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}}},c=["{","}"];const m=/^(?:\d)+/,d=/^(?:\w)+/;const p="zh-Hans",h="zh-Hant",u="en",g=Object.prototype.hasOwnProperty,_=(e,t)=>g.call(e,t),V=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,a=c){if(!t)return[e];let s=this._caches[e];return s||(s=function(e,[t,a]){const s=[];let r=0,n="";for(;r<e.length;){let i=e[r++];if(i===t){n&&s.push({type:"text",value:n}),n="";let t="";for(i=e[r++];void 0!==i&&i!==a;)t+=i,i=e[r++];const o=i===a,l=m.test(t)?"list":o&&d.test(t)?"named":"unknown";s.push({value:t,type:l})}else n+=i}return n&&s.push({type:"text",value:n}),s}(e,a),this._caches[e]=s),function(e,t){const a=[];let s=0;const r=Array.isArray(t)?"list":(n=t,null!==n&&"object"==typeof n?"named":"unknown");var n;if("unknown"===r)return a;for(;s<e.length;){const n=e[s];switch(n.type){case"text":a.push(n.value);break;case"list":a.push(t[parseInt(n.value,10)]);break;case"named":"named"===r&&a.push(t[n.value])}s++}return a}(s,t)}};function N(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return p;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?p:e.indexOf("-hant")>-1?h:(a=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==a.indexOf(e)))?h:p);var a;let s=[u,"fr","es"];t&&Object.keys(t).length>0&&(s=Object.keys(t));const r=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,s);return r||void 0}class E{constructor({locale:e,fallbackLocale:t,messages:a,watcher:s,formater:r}){this.locale=u,this.fallbackLocale=u,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=r||V,this.messages=a||{},this.setLocale(e||u),s&&this.watchLocale(s)}setLocale(e){const t=this.locale;this.locale=N(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,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=N(t,this.messages))&&(s=this.messages[t]):a=t,_(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 w(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():u),"string"!=typeof a&&(a="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||u);const r=new E({locale:e,fallbackLocale:a,messages:t,watcher:s});let n=(e,t)=>{if("function"!=typeof getApp)n=function(e,t){return r.t(e,t)};else{let e=!1;n=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,r))),r.t(t,a)}}return n(e,t)};return{i18n:r,f:(e,t,a)=>r.f(e,t,a),t:(e,t)=>n(e,t),add:(e,t,a=!0)=>r.add(e,t,a),watch:e=>r.watchLocale(e),getLocale:()=>r.getLocale(),setLocale:e=>r.setLocale(e)}}const v={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:f}=w(v);const x=i({name:"uniPopupDialog",mixins:[l],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||f("uni-popup.ok")},closeText(){return this.cancelText||f("uni-popup.cancel")},placeholderText(){return this.placeholder||f("uni-popup.placeholder")},titleText(){return this.title||f("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,r,n,i){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__"+n.dialogType]])},e.toDisplayString(i.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=>n.val=e),type:s.inputType,placeholder:i.placeholderText,focus:s.focus},null,8,["maxlength","type","placeholder","focus"]),[[e.vModelDynamic,n.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)=>i.closeDialog&&i.closeDialog(...e))},[e.createElementVNode("text",{class:"uni-dialog-button-text"},e.toDisplayString(i.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)=>i.onOk&&i.onOk(...e))},[e.createElementVNode("text",{class:"uni-dialog-button-text uni-button-color"},e.toDisplayString(i.okText),1)],2)])])}],["__scopeId","data-v-fd2d7dd2"]]);class z{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:{}},y.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,r)=>{nvueAnimation.transition(a,{styles:e,...t},(e=>{s()}))}))}_nvueNextAnimate(e,t=0,a){let s=e[t];if(s){let{styles:r,config:n}=s;this._animateRun(r,n).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 y=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function S(e,t){if(t)return clearTimeout(t.timer),new z(e,t)}y.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{z.prototype[e]=function(...t){return this.animation[e](...t),this}}));const C=i({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=S(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=S(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,r,n,i){return e.withDirectives((e.openBlock(),e.createElementBlock("view",{ref:"ani",animation:n.animationData,class:e.normalizeClass(s.customClass),style:e.normalizeStyle(i.transformStyles),onClick:a[0]||(a[0]=(...e)=>i.onClick&&i.onClick(...e))},[e.renderSlot(t.$slots,"default")],14,["animation"])),[[e.vShow,n.isShow]])}]]);const k=i({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:r,safeAreaInsets:n}=uni.getSystemInfoSync();this.popupWidth=e,this.popupHeight=t+(a||0),s&&this.safeArea?this.safeAreaInsets=n.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,r,n,i,o){const l=a(e.resolveDynamicComponent("uni-transition"),C);return i.showPopup?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-popup",[i.popupstyle,o.isDesktop?"fixforpc-z-index":""]])},[e.createElementVNode("view",{onTouchstart:s[1]||(s[1]=(...e)=>o.touchstart&&o.touchstart(...e))},[i.maskShow?(e.openBlock(),e.createBlock(l,{key:"1",name:"mask","mode-class":"fade",styles:i.maskClass,duration:i.duration,show:i.showTrans,onClick:o.onTap},null,8,["styles","duration","show","onClick"])):e.createCommentVNode("",!0),e.createVNode(l,{key:"2","mode-class":i.ani,name:"content",styles:i.transClass,duration:i.duration,show:i.showTrans,onClick:o.onTap},{default:e.withCtx((()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-popup__wrapper",[i.popupstyle]]),style:e.normalizeStyle(o.getStyles),onClick:s[0]||(s[0]=(...e)=>o.clear&&o.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"]]);class T{constructor({canvasId:e,startAngle:t=.875*Math.PI,endAngle:a=.125*Math.PI,width:s=180,min:r=0,max:n=100,value:i=0,unit:o="%",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=r,this.max=n,this.value=i,this.unit=o,this.showTick=l,this.valueColor=c,this.progressColor=m,this.trackColor=d,this.lineWidth=p,this.radius=this.width/2,this.process=r||-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),r=(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,r),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(),requestAnimationFrame(e))};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}}!function(){for(var e=0,t=["webkit","moz"],a=0;a<t.length&&!window.requestAnimationFrame;++a)window.requestAnimationFrame=window[t[a]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[a]+"CancelAnimationFrame"]||window[t[a]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,a){var s=(new Date).getTime(),r=Math.max(0,16-(s-e)),n=window.setTimeout((function(){t(s+r)}),r);return e=s+r,n}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}();const b="/static/dian1.png",D="/static/dian2.png",B="/static/che.png",P="/static/y6.png",L="/static/y8.png",M="/static/SOC.png",A="/static/Battery.png",O="/static/setup.png",I="/static/home.png",$="/static/home1.png";const R=i({data:()=>({successtype:"success",confirmText:"确认启动",title:"你确定要开启该设备吗?",content:"启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",value:"",modeinput:"",segmented:1,uidatasdata:{},uidatas:""}),onLoad(){},mounted(){this.onfaultsList(),new T({canvasId:"canvas2",value:this.uidatasdata.SOC,lineWidth:20,progressColor:["#B0D0FF","#5B8FF9"],valueColor:"blue"})},beforeUnmount(){clearInterval(this.uidatas)},methods:{onfaultsList(){s({ID:"3224a3eb-2375-4dfc-99ce-b182edd30996",page:1,rows:1e4}).then((e=>{"ok"==e.status?(e.data.list||(this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e4)),this.uidatasdata=e.data.list.reduce(((e,t)=>{let a=t[t.module],s=parseFloat(a),r=isNaN(s)?a:s.toFixed(2);return{...e,[t.id]:r}}),{}),this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e4)):this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e4)}))},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(){},dialogClose(){t("log","at pages/home/index.vue:513",this.value),this.$refs.alertDialog.close()},ontap(e){t("log","at pages/home/index.vue:517",e),this.segmented=e}}},[["render",function(t,s,i,o,l,c){const m=a(e.resolveDynamicComponent("uni-popup-dialog"),x),d=a(e.resolveDynamicComponent("uni-popup"),k);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:r,mode:""}),e.createElementVNode("image",{class:"tite",src:n,mode:""}),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"}," 2024年12月21日00:00:00 "),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(" 连接状态: "),0==l.uidatasdata.bms_ChgLinkSt?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state1"}," 离线 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state"}," 在线 "))])])])]),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:b,alt:""}),e.createElementVNode("view",{class:"parameter_lef2"},[e.createElementVNode("image",{src:D,mode:""})]),e.createElementVNode("image",{class:"parameter_leftche",src:B,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"},[e.createElementVNode("image",{src:P,mode:""}),e.createTextVNode(" 63A1状态 ")]),e.createElementVNode("view",{class:"parameter_5"}," 断开 ")]),e.createElementVNode("view",{class:"parameter_3"},[e.createElementVNode("view",{class:"parameter_4"},[e.createElementVNode("image",{src:L,mode:""}),e.createTextVNode(" 63A1状态 ")]),e.createElementVNode("view",{class:"parameter_51"}," 连接 ")])]),e.createElementVNode("view",{class:"parameter_SOC"},[e.createElementVNode("image",{src:M,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(l.uidatasdata.SOC),1),e.createElementVNode("text",null,"%")])])]),e.createElementVNode("view",{class:"parameter_Battery"},[e.createElementVNode("image",{src:A,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 电池状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},e.toDisplayString(0==l.uidatasdata.bms_BatSysState?"无效":"有效"),1)])]),e.createElementVNode("view",{class:"parameter_state"},[e.createElementVNode("image",{src:O,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 系统状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},e.toDisplayString(0==l.uidatasdata.SysState_SysRunState?"无效":"有效"),1)])])])]),e.createElementVNode("view",{class:"parameter_tap"},[e.createElementVNode("view",{class:e.normalizeClass(1==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[0]||(s[0]=e=>c.ontap(1))}," 交流信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(2==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[1]||(s[1]=e=>c.ontap(2))}," 电池信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(3==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[2]||(s[2]=e=>c.ontap(3))}," 统计信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(4==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[3]||(s[3]=e=>c.ontap(4))}," 液冷信息 ",2)]),e.createElementVNode("view",{class:"parameter_zheng",key:"index"},[1==l.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(l.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(l.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(l.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(l.uidatasdata.PCSInputCurrent)+" ",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(l.uidatasdata["PCSOutputA-phaseCurrent"])+" ",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(l.uidatasdata["PCSOutputB-phaseCurrent"])+" ",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(l.uidatasdata["PCSOutputC-phaseCurrent"])+" ",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(l.uidatasdata.PCSInputPower)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh")])])])])):e.createCommentVNode("",!0),2==l.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(l.uidatasdata.PCSPortAPhaseVoltage)+" ",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(l.uidatasdata.PCSPortBPhaseVoltage)+" ",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(l.uidatasdata.PCSPortCPhaseVoltage)+" ",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(l.uidatasdata.PCSInputCurrent)+" ",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(l.uidatasdata.PCSInputCurrent)+" ",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(l.uidatasdata.BatSysSt2_BatCur)+" ",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(l.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(l.uidatasdata.DchChgCurPowLimit_MaxDischargeCurrentLimit)+" ",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(l.uidatasdata.BatSysLimitVal_MinCellVoltageLimit)+" ",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(l.uidatasdata.BatSysLimitVal_MinCellTemperatureLimit)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])])])):e.createCommentVNode("",!0),3==l.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(l.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(l.uidatasdata.BatSysSt2_BatSumVInt)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])])])])):e.createCommentVNode("",!0),4==l.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_zheng13"},[e.createTextVNode(e.toDisplayString(l.uidatasdata.TMS_Status_TMS_WORK_MODE)+" ",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(l.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP)+" ",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(l.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_zheng13"},[e.createTextVNode(e.toDisplayString(l.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST)+" ",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(l.uidatasdata.TMS_Status_TMS_WATERIN_TEMP)+" ",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(l.uidatasdata.TMS_Status_TMS_ERR_LEVEL)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"parameter_zheng3"},[e.createElementVNode("view",{class:"parameter_zheng31",onClick:s[4]||(s[4]=(...e)=>c.dialogToggle&&c.dialogToggle(...e))},[e.createElementVNode("view",{class:"parameter_zheng32"}," 开启 ")]),e.createElementVNode("view",{class:"parameter_zheng31",onClick:s[5]||(s[5]=(...e)=>c.onstopit&&c.onstopit(...e))},[e.createElementVNode("view",{class:"parameter_zheng33"}," 停止 ")]),e.createElementVNode("view",{class:"parameter_zheng31",onClick:s[6]||(s[6]=(...e)=>c.onpower&&c.onpower(...e))},[e.createElementVNode("view",{class:"parameter_zheng34"},[e.createElementVNode("view",null," 功率 "),e.createElementVNode("view",null," 给定 ")])])])]),e.createElementVNode("view",{class:"parameter_home"},[e.createElementVNode("view",{class:"parameter_home1",onClick:s[7]||(s[7]=(...e)=>c.onreturn&&c.onreturn(...e))},[e.createElementVNode("image",{src:I,mode:""}),e.createElementVNode("text",{class:"parameter_hometext"},"返回模式选择")]),e.createElementVNode("view",{class:"parameter_home2"},[e.createElementVNode("image",{src:$,mode:""}),e.createElementVNode("text",{class:"parameter_home3"},"【水冷机】二级故障,值:1")])])])]),e.createVNode(d,{ref:"alertDialog",onMaskClick:c.dialogClose},{default:e.withCtx((()=>[e.createVNode(m,{mode:l.modeinput,placeholder:"请输入内容",modelValue:l.value,"onUpdate:modelValue":s[8]||(s[8]=e=>l.value=e),type:l.successtype,cancelText:"取消返回",confirmText:l.confirmText,title:l.title,content:l.content,onConfirm:c.dialogConfirm,onClose:c.dialogClose},null,8,["mode","modelValue","type","confirmText","title","content","onConfirm","onClose"])])),_:1},8,["onMaskClick"])])}],["__scopeId","data-v-86f2ec2e"]]);const W=i({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:r,top:n,width:i,height:o}=t[0],l=t[1],c={},m={};switch(this.placement){case"top":l.width>i?c.left=`-${(l.width-i)/2}px`:c.left=Math.abs(l.width-i)/2+"px",c.bottom=`${o+8}px`,m.left=l.width/2-6+"px";break;case"top-start":c.left="0px",c.bottom=`${o+8}px`;break;case"top-end":c.right="0px",c.bottom=`${o+8}px`,m.right="8px";break;case"bottom":l.width>i?c.left=`-${(l.width-i)/2}px`:c.left=Math.abs(l.width-i)/2+"px",c.top=`${o+8}px`,m.left=l.width/2-6+"px";break;case"bottom-start":c.left="0px",c.top=`${o+8}px`,m.left="8px";break;case"bottom-end":c.right="0px",c.top=`${o+8}px`,m.right="8px";break;case"right":c.left=`${i+8}px`,l.height>o?c.top=`-${(l.height-o)/2}px`:c.top=`${Math.abs((l.height-o)/2)}px`,m.top=l.height/2-6+"px";break;case"right-start":c.left=`${i+8}px`,c.top="0px",m.top="8px";break;case"right-end":c.left=`${i+8}px`,c.bottom="0px",m.bottom="8px";break;case"left":c.right=`${i+8}px`,l.height>o?c.top=`-${(l.height-o)/2}px`:c.top=`${Math.abs((l.height-o)/2)}px`,m.top=l.height/2-6+"px";break;case"left-start":c.right=`${i+8}px`,c.top="0px",m.top="8px";break;case"left-end":c.right=`${i+8}px`,c.bottom="0px",m.bottom="8px"}this.style=c,this.arrowStyle=m,e()})).exec()}))}}},[["render",function(t,a,s,r,n,i){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)=>i.handleClick&&i.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([n.style,{visibility:n.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([n.arrowStyle])},null,6)],4)])],4)}],["__scopeId","data-v-12d5fccf"]]),F=[{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 U=i({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:F}),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,r,n,i){return e.openBlock(),e.createElementBlock("text",{style:e.normalizeStyle(i.styleObj),class:e.normalizeClass(["uni-icons",["uniui-"+s.type,s.customPrefix,s.customPrefix?s.type:""]]),onClick:a[0]||(a[0]=(...e)=>i._onClick&&i._onClick(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-5610c8db"]]),q={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:j}=w(q);const H=i({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:7},pageSizeRange:{type:Array,default:()=>[20,50,100,500]}},data:()=>({pageSizeIndex:0,currentIndex:1,paperData:[],pickerShow:!1}),computed:{piecePerPage(){return this.piecePerPageText||j("uni-pagination.piecePerPage")},prevPageText(){return this.prevText||j("uni-pagination.prevText")},nextPageText(){return this.nextText||j("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 r=[],n=[],i=Math.ceil(a/s);for(let l=0;l<i;l++)r.push(l+1);n.push(1);const o=r[r.length-(t+1)/2];return r.forEach(((a,s)=>{(t+1)/2>=e?a<t+1&&a>1&&n.push(a):e+2<=o?a>e-(t+1)/2&&a<e+(t+1)/2&&n.push(a):(a>e-(t+1)/2||i-t<a)&&a<r[r.length-1]&&n.push(a)})),i>t?((t+1)/2>=e?n[n.length-1]="...":e+2<=o?(n[1]="...",n[n.length-1]="..."):n[1]="...",n.push(r[r.length-1])):(t+1)/2>=e||e+2<=o||(n.shift(),n.push(r[r.length-1])),n}},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,r,n,i,o){const l=a(e.resolveDynamicComponent("uni-icons"),U);return e.openBlock(),e.createElementBlock("view",{class:"uni-pagination"},[!0===r.showPageSize||"true"===r.showPageSize?(e.openBlock(),e.createElementBlock("picker",{key:0,class:"select-picker",mode:"selector",value:i.pageSizeIndex,range:r.pageSizeRange,onChange:s[0]||(s[0]=(...e)=>o.pickerChange&&o.pickerChange(...e)),onCancel:s[1]||(s[1]=(...e)=>o.pickerClick&&o.pickerClick(...e)),onClick:s[2]||(s[2]=(...e)=>o.pickerClick&&o.pickerClick(...e))},[e.createElementVNode("button",{type:"default",size:"mini",plain:!0},[e.createElementVNode("text",null,e.toDisplayString(r.pageSizeRange[i.pageSizeIndex])+" "+e.toDisplayString(o.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(r.total)+" 条",1),e.createElementVNode("view",{class:e.normalizeClass(["uni-pagination__btn",1===i.currentIndex?"uni-pagination--disabled":"uni-pagination--enabled"]),"hover-class":1===i.currentIndex?"":"uni-pagination--hover","hover-start-time":20,"hover-stay-time":70,onClick:s[3]||(s[3]=(...e)=>o.clickLeft&&o.clickLeft(...e))},[!0===r.showIcon||"true"===r.showIcon?(e.openBlock(),e.createBlock(l,{key:0,color:"#666",size:"16",type:"left"})):(e.openBlock(),e.createElementBlock("text",{key:1,class:"uni-pagination__child-btn"},e.toDisplayString(o.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(i.currentIndex),1),e.createElementVNode("text",{class:"uni-pagination__num-current-text is-pc-hide"},"/"+e.toDisplayString(o.maxPage||0),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.paper,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:e.normalizeClass([{"page--active":t===i.currentIndex},"uni-pagination__num-tag tag--active is-phone-hide"]),onClick:e=>o.selectPage(t,a)},[e.createElementVNode("text",null,e.toDisplayString(t),1)],10,["onClick"])))),128))])]),e.createElementVNode("view",{class:e.normalizeClass(["uni-pagination__btn",i.currentIndex>=o.maxPage?"uni-pagination--disabled":"uni-pagination--enabled"]),"hover-class":i.currentIndex===o.maxPage?"":"uni-pagination--hover","hover-start-time":20,"hover-stay-time":70,onClick:s[4]||(s[4]=(...e)=>o.clickRight&&o.clickRight(...e))},[!0===r.showIcon||"true"===r.showIcon?(e.openBlock(),e.createBlock(l,{key:0,color:"#666",size:"16",type:"right"})):(e.openBlock(),e.createElementBlock("text",{key:1,class:"uni-pagination__child-btn"},e.toDisplayString(o.nextPageText),1))],10,["hover-class"])])}],["__scopeId","data-v-e95c131e"]]);const Y=i({data:()=>({current:1,total:0,pageSize:10,faulttaps:"实时",faultsList:[]}),onLoad(){this.onfaultsList()},methods:{onfaultsList(){(async e=>{try{const t=await uni.$http.get("/api/v1/faults",e,{"Content-Type":"application/json;charset=utf-8",Authorization:`JWT ${uni.getStorageSync("token")}`});return 200!==t.statusCode?(uni.showToast({title:"数据请求失败! ",duration:1500,icon:"none"}),[]):t.data}catch(a){return t("error","at api/api.js:50","Network request failed:",a),uni.showToast({title:"网络请求失败! ",duration:1500,icon:"none"}),[]}})({page:this.current,rows:this.pageSize,device:"",starttime:"",endtime:"",rt:"实时"==this.faulttaps?1:0,type:"实时"==this.faulttaps?"":this.faulttaps}).then((e=>{t("log","at pages/details/index.vue:134",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:151",e),this.current=e.current,this.onfaultsList()},taps(e){this.faulttaps=e,t("log","at pages/details/index.vue:157",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,i,o,l,c){const m=a(e.resolveDynamicComponent("zb-tooltip"),W),d=a(e.resolveDynamicComponent("uni-pagination"),H);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:r,mode:""}),e.createElementVNode("image",{class:"tite",src:n,mode:""}),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"}," 2024年12月21日00:00:00 "),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(" 连接状态:"),e.createElementVNode("view",{class:"time_state"}," 在线 ")])])])]),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(l.faultsList,(a=>(e.openBlock(),e.createElementBlock("view",{class:"parameter_div",key:"index"},[e.createElementVNode("view",{class:"parameter_xian1"},e.toDisplayString(a.ID),1),e.createElementVNode("view",{class:"parameter_xian2"},e.toDisplayString(a.TYPE),1),e.createVNode(m,{onClick:c.closedevice,content:a.DEVICE,placement:"top",ref_for:!0,ref:"device"+t.index},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"parameter_xian3"},e.toDisplayString(a.DEVICE),1)])),_:2},1032,["onClick","content"]),e.createVNode(m,{onClick:c.close,content:a.CONTENT,placement:"top",ref_for:!0,ref:"tooltip"+t.index},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"parameter_xian4"},e.toDisplayString(a.CONTENT),1)])),_:2},1032,["onClick","content"]),e.createElementVNode("view",{class:"parameter_xian5"},e.toDisplayString(a.FAULTTIME.substring(0,19)),1),e.createElementVNode("view",{class:"parameter_xian6"},e.toDisplayString(a.RESETTIME.substring(0,19)),1)])))),128))]),e.createElementVNode("view",{class:"parameter_bottom"},[e.createElementVNode("view",{class:"parameter_bottom1",onClick:s[0]||(s[0]=(...e)=>c.onclick&&c.onclick(...e))},[e.createElementVNode("image",{src:I,mode:""}),e.createElementVNode("text",{class:"parameter_bottom2"},"返回模式选择")]),e.createElementVNode("view",{class:"parameter_bottom3"},[e.createElementVNode("view",{class:e.normalizeClass("实时"==l.faulttaps?"parameter_bottom31":"parameter_bottom32"),onClick:s[1]||(s[1]=e=>c.taps("实时"))}," 实时 ",2),e.createElementVNode("view",{class:e.normalizeClass("故障"==l.faulttaps?"parameter_bottom31":"parameter_bottom32"),onClick:s[2]||(s[2]=e=>c.taps("故障"))}," 故障 ",2),e.createElementVNode("view",{class:e.normalizeClass("告警"==l.faulttaps?"parameter_bottom31":"parameter_bottom32"),onClick:s[3]||(s[3]=e=>c.taps("告警"))}," 告警 ",2),e.createElementVNode("view",{class:e.normalizeClass("事件"==l.faulttaps?"parameter_bottom31":"parameter_bottom32"),onClick:s[4]||(s[4]=e=>c.taps("事件"))}," 事件 ",2)]),e.createElementVNode("view",{class:"parameter_bottom4"},[e.createElementVNode("view",{class:"eliminate"}," 故障清除 "),e.createVNode(d,{total:l.total,title:"标题文字","show-icon":!0,onChange:c.change},null,8,["total","onChange"])])])])])}],["__scopeId","data-v-79f28f76"]]);const X=i({data:()=>({successtype:"success",confirmText:"确认启动",title:"你确定要开启该设备吗?",content:"启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",value:"",modeinput:"",segmented:1,uidatasdata:{},uidatas:""}),onLoad(){},mounted(){this.onfaultsList(),new T({canvasId:"canvas2",value:this.uidatasdata.SOC,lineWidth:20,progressColor:["#B0D0FF","#5B8FF9"],valueColor:"blue"})},beforeUnmount(){clearInterval(this.uidatas)},methods:{onfaultsList(){s({ID:"3224a3eb-2375-4dfc-99ce-b182edd30996",page:1,rows:1e4}).then((e=>{"ok"==e.status?(e.data.list||(this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e4)),this.uidatasdata=e.data.list.reduce(((e,t)=>{let a=t[t.module],s=parseFloat(a),r=isNaN(s)?a:s.toFixed(2);return{...e,[t.id]:r}}),{}),t("log","at pages/electricity/index.vue:469",this.uidatasdata),this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e4)):this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e4)}))},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(){},dialogClose(){t("log","at pages/electricity/index.vue:511",this.value),this.$refs.alertDialog.close()},ontap(e){t("log","at pages/electricity/index.vue:515",e),this.segmented=e}}},[["render",function(t,s,i,o,l,c){const m=a(e.resolveDynamicComponent("uni-popup-dialog"),x),d=a(e.resolveDynamicComponent("uni-popup"),k);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:r,mode:""}),e.createElementVNode("image",{class:"tite",src:n,mode:""}),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"}," 2024年12月21日00:00:00 "),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(" 连接状态: "),0==l.uidatasdata.bms_ChgLinkSt?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state1"}," 离线 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state"}," 在线 "))])])])]),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:b,alt:""}),e.createElementVNode("view",{class:"parameter_lef2"},[e.createElementVNode("image",{src:D,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"},[e.createElementVNode("image",{src:P,mode:""}),e.createTextVNode(" 63A1状态 ")]),e.createElementVNode("view",{class:"parameter_5"}," 断开 ")]),e.createElementVNode("view",{class:"parameter_31"},[e.createElementVNode("view",{class:"parameter_4"},[e.createElementVNode("image",{src:P,mode:""}),e.createTextVNode(" 63A1状态 ")]),e.createElementVNode("view",{class:"parameter_5"}," 断开 ")]),e.createElementVNode("view",{class:"parameter_31"},[e.createElementVNode("view",{class:"parameter_4"},[e.createElementVNode("image",{src:L,mode:""}),e.createTextVNode(" 63A1状态 ")]),e.createElementVNode("view",{class:"parameter_51"}," 连接 ")])]),e.createElementVNode("view",{class:"parameter_SOC"},[e.createElementVNode("image",{src:M,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(l.uidatasdata.SOC),1),e.createElementVNode("text",null,"%")])])]),e.createElementVNode("view",{class:"parameter_Battery"},[e.createElementVNode("image",{src:A,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 电池状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},e.toDisplayString(0==l.uidatasdata.bms_BatSysState?"无效":"有效"),1)])]),e.createElementVNode("view",{class:"parameter_state"},[e.createElementVNode("image",{src:O,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 系统状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},e.toDisplayString(0==l.uidatasdata.SysState_SysRunState?"无效":"有效"),1)])])])]),e.createElementVNode("view",{class:"parameter_tap"},[e.createElementVNode("view",{class:e.normalizeClass(1==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[0]||(s[0]=e=>c.ontap(1))}," 交流信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(2==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[1]||(s[1]=e=>c.ontap(2))}," 电池信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(3==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[2]||(s[2]=e=>c.ontap(3))}," 统计信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(4==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[3]||(s[3]=e=>c.ontap(4))}," 液冷信息 ",2)]),e.createElementVNode("view",{class:"parameter_zheng"},[1==l.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(l.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(l.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(l.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(l.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(l.uidatasdata["PCSOutputA-phaseCurrent"])+" ",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(l.uidatasdata["PCSOutputB-phaseCurrent"])+" ",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(l.uidatasdata["PCSOutputC-phaseCurrent"]),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(l.uidatasdata.PCSTotalOutputPower)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh")])])])])):e.createCommentVNode("",!0),2==l.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(l.uidatasdata.BatSysSt2_BatPower)+" ",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(l.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(l.uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit)+" ",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(l.uidatasdata.BatSysLimitVal_MaxCellVoltageLimit)+" ",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(l.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit)+" ",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"}," 电池电流 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(l.uidatasdata.BatSysSt2_BatCur)+" ",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(l.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(l.uidatasdata.DchChgCurPowLimit_MaxDischargeCurrentLimit)+" ",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(l.uidatasdata.BatSysLimitVal_MinCellVoltageLimit)+" ",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(l.uidatasdata.BatSysLimitVal_MinCellTemperatureLimit)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh")])])])])):e.createCommentVNode("",!0),3==l.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(l.uidatasdata.BatSysSt2_BatPower)+" ",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(l.uidatasdata.BatSysSt2_BatSumVInt)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])])])])):e.createCommentVNode("",!0),4==l.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_zheng13"},[e.createTextVNode(e.toDisplayString(l.uidatasdata.TMS_Status_TMS_WORK_MODE)+" ",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(l.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP)+" ",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(l.uidatasdata.TMS_Status_TMS_POWER_REQ)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])])]),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(l.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST)+" ",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(l.uidatasdata.TMS_Status_TMS_WATERIN_TEMP)+" ",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(l.uidatasdata.TMS_Status_TMS_ERR_LEVEL)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"parameter_zheng3"},[e.createElementVNode("view",{class:"parameter_zheng31",onClick:s[4]||(s[4]=(...e)=>c.dialogToggle&&c.dialogToggle(...e))},[e.createElementVNode("view",{class:"parameter_zheng32"}," 开启 ")]),e.createElementVNode("view",{class:"parameter_zheng31",onClick:s[5]||(s[5]=(...e)=>c.onstopit&&c.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)=>c.onreturn&&c.onreturn(...e))},[e.createElementVNode("image",{src:I,mode:""}),e.createElementVNode("text",{class:"parameter_hometext"},"返回模式选择")]),e.createElementVNode("view",{class:"parameter_home2"},[e.createElementVNode("image",{src:$,mode:""}),e.createElementVNode("text",{class:"parameter_home3"},"【水冷机】二级故障,值:1")])])])]),e.createVNode(d,{ref:"alertDialog",onMaskClick:c.dialogClose},{default:e.withCtx((()=>[e.createVNode(m,{mode:l.modeinput,placeholder:"请输入内容",modelValue:l.value,"onUpdate:modelValue":s[7]||(s[7]=e=>l.value=e),type:l.successtype,cancelText:"取消返回",confirmText:l.confirmText,title:l.title,content:l.content,onConfirm:c.dialogConfirm,onClose:c.dialogClose},null,8,["mode","modelValue","type","confirmText","title","content","onConfirm","onClose"])])),_:1},8,["onMaskClick"])])}],["__scopeId","data-v-a04b3c3e"]]);const G=i({data:()=>({successtype:"success",confirmText:"确认启动",title:"你确定要开启该设备吗?",content:"启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",value:"",modeinput:"",segmented:1,uidatasdata:{},uidatas:""}),onLoad(){},mounted(){this.onfaultsList(),new T({canvasId:"canvas2",value:this.uidatasdata.SOC,lineWidth:20,progressColor:["#B0D0FF","#5B8FF9"],valueColor:"blue"})},beforeUnmount(){clearInterval(this.uidatas)},methods:{onfaultsList(){s({ID:"3224a3eb-2375-4dfc-99ce-b182edd30996",page:1,rows:1e4}).then((e=>{"ok"==e.status?(e.data.list||(this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e4)),this.uidatasdata=e.data.list.reduce(((e,t)=>{let a=t[t.module],s=parseFloat(a),r=isNaN(s)?a:s.toFixed(2);return{...e,[t.id]:r}}),{}),t("log","at pages/supply/supply.vue:416",this.uidatasdata),this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e4)):this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e4)}))},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(){},dialogClose(){t("log","at pages/supply/supply.vue:457",this.value),this.$refs.alertDialog.close()},ontap(e){t("log","at pages/supply/supply.vue:461",e),this.segmented=e}}},[["render",function(t,s,i,o,l,c){const m=a(e.resolveDynamicComponent("uni-popup-dialog"),x),d=a(e.resolveDynamicComponent("uni-popup"),k);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:r,mode:""}),e.createElementVNode("image",{class:"tite",src:n,mode:""}),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"}," 2024年12月21日00:00:00 "),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(" 连接状态: "),0==l.uidatasdata.bms_ChgLinkSt?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state1"}," 离线 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state"}," 在线 "))])])])]),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:b,alt:""}),e.createElementVNode("view",{class:"parameter_lef2"},[e.createElementVNode("image",{src:D,mode:""})]),e.createElementVNode("image",{class:"parameter_leftche",src:B,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(t.DchChgCurPowLimit_MaxChargePowerLimit),1),e.createElementVNode("text",null,"%")])])]),e.createElementVNode("view",{class:"parameter_SOC"},[e.createElementVNode("image",{src:M,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(l.uidatasdata.SOC),1),e.createElementVNode("text",null,"%")])])]),e.createElementVNode("view",{class:"parameter_Battery"},[e.createElementVNode("image",{src:A,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 电池状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},e.toDisplayString(0==l.uidatasdata.bms_BatSysState?"无效":"有效"),1)])]),e.createElementVNode("view",{class:"parameter_state"},[e.createElementVNode("image",{src:O,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 系统状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},e.toDisplayString(0==l.uidatasdata.SysState_SysRunState?"无效":"有效"),1)])])])]),e.createElementVNode("view",{class:"parameter_tap"},[e.createElementVNode("view",{class:e.normalizeClass(1==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[0]||(s[0]=e=>c.ontap(1))}," 电池信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(2==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[1]||(s[1]=e=>c.ontap(2))}," 连接信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(3==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[2]||(s[2]=e=>c.ontap(3))}," 统计信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(4==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[3]||(s[3]=e=>c.ontap(4))}," 液冷信息 ",2)]),e.createElementVNode("view",{class:"parameter_zheng"},[1==l.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(l.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(l.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(l.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(l.uidatasdata.BatSysLimitVal_MaxCellVoltageLimit)+" ",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(l.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(l.uidatasdata.BatSysSt2_BatCur)+" ",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(l.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(l.uidatasdata.DchChgCurPowLimit_MaxDischargeCurrentLimit),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(l.uidatasdata.BatSysLimitVal_MinCellVoltageLimit),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(l.uidatasdata.BatSysLimitVal_MinCellTemperatureLimit)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])])])):e.createCommentVNode("",!0),2==l.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(l.uidatasdata.bms_BatSysWorkMode_)+" ",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(l.uidatasdata.bms_BatSysState)+" ",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(l.uidatasdata.bms_ChargeStatus)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])])]),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(l.uidatasdata.bms_ChgLinkSt)+" ",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(l.uidatasdata.bms_BatteryFaultLevl)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])])])])):e.createCommentVNode("",!0),3==l.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(l.uidatasdata.PCSACChargeEnergy)+" ",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(l.uidatasdata.PCSDCChargeEnergy)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])])])])):e.createCommentVNode("",!0),4==l.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_zheng13"},[e.createTextVNode(e.toDisplayString(l.uidatasdata.TMS_Status_TMS_WORK_MODE)+" ",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(l.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP)+" ",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(l.uidatasdata.TMS_Status_TMS_POWER_REQ)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])])]),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(l.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST)+" ",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(l.uidatasdata.TMS_Status_TMS_WATERIN_TEMP)+" ",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(l.uidatasdata.TMS_Status_TMS_ERR_LEVEL),1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"parameter_zheng3"},[e.createElementVNode("view",{class:"parameter_zheng31",onClick:s[4]||(s[4]=(...e)=>c.dialogToggle&&c.dialogToggle(...e))},[e.createElementVNode("view",{class:"parameter_zheng32"}," 开启 ")]),e.createElementVNode("view",{class:"parameter_zheng31",onClick:s[5]||(s[5]=(...e)=>c.onstopit&&c.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)=>c.onreturn&&c.onreturn(...e))},[e.createElementVNode("image",{src:I,mode:""}),e.createElementVNode("text",{class:"parameter_hometext"},"返回模式选择")]),e.createElementVNode("view",{class:"parameter_home2"},[e.createElementVNode("image",{src:$,mode:""}),e.createElementVNode("text",{class:"parameter_home3"},"【水冷机】二级故障,值:1")])])])]),e.createVNode(d,{ref:"alertDialog",onMaskClick:c.dialogClose},{default:e.withCtx((()=>[e.createVNode(m,{mode:l.modeinput,placeholder:"请输入内容",modelValue:l.value,"onUpdate:modelValue":s[7]||(s[7]=e=>l.value=e),type:l.successtype,cancelText:"取消返回",confirmText:l.confirmText,title:l.title,content:l.content,onConfirm:c.dialogConfirm,onClose:c.dialogClose},null,8,["mode","modelValue","type","confirmText","title","content","onConfirm","onClose"])])),_:1},8,["onMaskClick"])])}],["__scopeId","data-v-e856927c"]]);const K=i({data:()=>({successtype:"success",confirmText:"确认启动",title:"你确定要开启该设备吗?",content:"启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",value:"",modeinput:"",segmented:1,uidatasdata:{},uidatas:""}),onLoad(){},mounted(){this.onfaultsList(),new T({canvasId:"canvas2",value:this.uidatasdata.SOC,lineWidth:20,progressColor:["#B0D0FF","#5B8FF9"],valueColor:"blue"})},beforeUnmount(){clearInterval(this.uidatas)},methods:{onfaultsList(){s({ID:"3224a3eb-2375-4dfc-99ce-b182edd30996",page:1,rows:1e4}).then((e=>{"ok"==e.status?(e.data.list||(this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e4)),this.uidatasdata=e.data.list.reduce(((e,t)=>{let a=t[t.module],s=parseFloat(a),r=isNaN(s)?a:s.toFixed(2);return{...e,[t.id]:r}}),{}),t("log","at pages/supplyss/supplyss.vue:533",this.uidatasdata),this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e4)):this.uidatas=setTimeout((()=>{this.onfaultsList()}),1e4)}))},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(){},dialogClose(){t("log","at pages/supplyss/supplyss.vue:577",this.value),this.$refs.alertDialog.close()},ontap(e){t("log","at pages/supplyss/supplyss.vue:582",e),this.segmented=e}}},[["render",function(t,s,i,o,l,c){const m=a(e.resolveDynamicComponent("uni-popup-dialog"),x),d=a(e.resolveDynamicComponent("uni-popup"),k);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:r,mode:""}),e.createElementVNode("image",{class:"tite",src:n,mode:""}),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"}," 2024年12月21日00:00:00 "),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(" 连接状态: "),0==l.uidatasdata.bms_ChgLinkSt?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state1"}," 离线 ")):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state"}," 在线 "))])])])]),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:b,alt:""}),e.createElementVNode("view",{class:"parameter_lef2"},[e.createElementVNode("image",{src:D,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"},[e.createElementVNode("view",{class:"parameter_3"},[e.createElementVNode("view",{class:"parameter_4"},[e.createElementVNode("image",{src:P,mode:""}),e.createTextVNode(" 63A1状态 ")]),e.createElementVNode("view",{class:"parameter_5"}," 断开 ")]),e.createElementVNode("view",{class:"parameter_3"},[e.createElementVNode("view",{class:"parameter_4"},[e.createElementVNode("image",{src:L,mode:""}),e.createTextVNode(" 63A1状态 ")]),e.createElementVNode("view",{class:"parameter_51"}," 连接 ")])]),e.createElementVNode("view",{class:"parameter_SOC"},[e.createElementVNode("image",{src:M,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(l.uidatasdata.SOC),1),e.createElementVNode("text",null,"%")])])]),e.createElementVNode("view",{class:"parameter_Battery"},[e.createElementVNode("image",{src:A,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 电池状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},e.toDisplayString(0==l.uidatasdata.bms_BatSysState?"无效":"有效"),1)])]),e.createElementVNode("view",{class:"parameter_state"},[e.createElementVNode("image",{src:O,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," 系统状态 "),e.createElementVNode("view",{class:"parameter_Batterystate"},e.toDisplayString(0==l.uidatasdata.SysState_SysRunState?"无效":"有效"),1)])])])]),e.createElementVNode("view",{class:"parameter_tap"},[e.createElementVNode("view",{class:e.normalizeClass(1==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[0]||(s[0]=e=>c.ontap(1))}," 枪1信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(2==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[1]||(s[1]=e=>c.ontap(2))}," 枪2信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(3==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[2]||(s[2]=e=>c.ontap(3))}," 电池信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(4==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[3]||(s[3]=e=>c.ontap(4))}," 连接信息 ",2),e.createElementVNode("view",{class:e.normalizeClass(5==l.segmented?"parameter_tap1":"parameter_tap2"),onClick:s[4]||(s[4]=e=>c.ontap(5))}," 液冷信息 ",2)]),e.createElementVNode("view",{class:"parameter_zheng"},[1==l.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(l.uidatasdata.BatSysLimitVal_MaxCellVoltageLimit)+" ",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(l.uidatasdata.DchChgCurPowLimit_MaxChargeCurentLimit)+" ",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(l.uidatasdata.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(l.uidatasdata.DchChgCurPowLimit_MaxChargePowerLimit)+" ",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(l.uidatasdata.PCSDCChargeEnergy)+" ",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(" 0.00 "),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(l.uidatasdata.batteryCommunicationTimeOut)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"min")])])])])):e.createCommentVNode("",!0),2==l.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(l.uidatasdata.BatSysLimitVal_MaxCellVoltageLimit)+" ",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(l.uidatasdata.DchChgCurPowLimit_MaxChargeCurentLimit)+" ",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(l.uidatasdata.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(l.uidatasdata.DchChgCurPowLimit_MaxChargePowerLimit)+" ",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(l.uidatasdata.PCSDCChargeEnergy)+" ",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(" 0.00 "),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(l.uidatasdata.batteryCommunicationTimeOut)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"min")])])])])):e.createCommentVNode("",!0),3==l.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(l.uidatasdata.BatSysSt2_BatPower)+" ",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(l.uidatasdata.BatSysSt2_BatSumVInt)+" ",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(l.uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit)+" ",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(l.uidatasdata.BatSysLimitVal_MaxCellVoltageLimit)+" ",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(l.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit)+" ",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(l.uidatasdata.bmsPowerSupplyCapacity)+" ",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(l.uidatasdata.BatSysSt2_BatSumVOut)+" ",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(l.uidatasdata.DchChgCurPowLimit_MaxDischargeCurrentLimit),1),e.createElementVNode("text",{class:"parameter_zheng14"},"min")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最小单体电压 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(l.uidatasdata.BatCellVPeak_ValMinCellVoltage)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"min")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"}," 最小单体温度 "),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(l.uidatasdata.BatSysLimitVal_MinCellTemperatureLimit)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"min")])])])])):e.createCommentVNode("",!0),4==l.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_zheng13"},[e.createTextVNode(e.toDisplayString(l.uidatasdata.bms_BatSysWorkMode_)+" ",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(l.uidatasdata.bms_BatSysState)+" ",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(l.uidatasdata.bms_ChargeStatus)+" ",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(l.uidatasdata.bms_ChgLinkSt)+" ",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(l.uidatasdata.bms_BatteryFaultLevl)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"元")])])])])):e.createCommentVNode("",!0),5==l.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_zheng13"},[e.createTextVNode(e.toDisplayString(l.uidatasdata.TMS_Status_TMS_WORK_MODE)+" ",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(l.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP)+" ",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(" 0.00 "),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])])]),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(l.uidatasdata.TMS_Status_TMS_POWER_REQ)+" ",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(l.uidatasdata.TMS_Status_TMS_WATERIN_TEMP)+" ",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(l.uidatasdata.TMS_Status_TMS_ERR_LEVEL)+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"parameter_zheng3"},[e.createElementVNode("view",{class:"parameter_zheng31",onClick:s[5]||(s[5]=(...e)=>c.dialogToggle&&c.dialogToggle(...e))},[e.createElementVNode("view",{class:"parameter_zheng32"}," 开启 ")]),e.createElementVNode("view",{class:"parameter_zheng31",onClick:s[6]||(s[6]=(...e)=>c.onstopit&&c.onstopit(...e))},[e.createElementVNode("view",{class:"parameter_zheng33"}," 停止 ")])])]),e.createElementVNode("view",{class:"parameter_home"},[e.createElementVNode("view",{class:"parameter_home1",onClick:s[7]||(s[7]=(...e)=>c.onreturn&&c.onreturn(...e))},[e.createElementVNode("image",{src:I,mode:""}),e.createElementVNode("text",{class:"parameter_hometext"},"返回模式选择")]),e.createElementVNode("view",{class:"parameter_home2"},[e.createElementVNode("image",{src:$,mode:""}),e.createElementVNode("text",{class:"parameter_home3"},"【水冷机】二级故障,值:1")])])])]),e.createVNode(d,{ref:"alertDialog",onMaskClick:c.dialogClose},{default:e.withCtx((()=>[e.createVNode(m,{mode:l.modeinput,placeholder:"请输入内容",modelValue:l.value,"onUpdate:modelValue":s[8]||(s[8]=e=>l.value=e),type:l.successtype,cancelText:"取消返回",confirmText:l.confirmText,title:l.title,content:l.content,onConfirm:c.dialogConfirm,onClose:c.dialogClose},null,8,["mode","modelValue","type","confirmText","title","content","onConfirm","onClose"])])),_:1},8,["onMaskClick"])])}],["__scopeId","data-v-78873386"]]);__definePage("pages/index/index",o),__definePage("pages/home/index",R),__definePage("pages/details/index",Y),__definePage("pages/electricity/index",X),__definePage("pages/supply/supply",G),__definePage("pages/supplyss/supplyss",K);const Q={data:()=>({}),onLaunch:function(){},beforeUnmount(){},methods:{},onShow:function(){t("log","at App.vue:41","App Show")},onHide:function(){t("log","at App.vue:44","App Hide")}};const Z=new class{constructor(e={}){this.baseUrl=e.baseUrl||"http://192.168.137.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.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=Z,Z.baseUrl="",Z.beforeRequest=function(e){uni.showLoading({title:"数据加载中..."}),"/api/v1/login"!=e.url&&(uni.getStorageSync("token")||(async(e,a)=>{try{t("log","at api/api.js:61","login request");const e=await uni.$http.post("/api/v1/login",{name:"dexnui",pwd:"dexn1001"},{"Content-Type":"application/json;charset=utf-8"});return 200!==e.statusCode?(uni.showToast({title:"数据请求失败! ",duration:1500,icon:"none"}),[]):e.data}catch(s){return t("error","at api/api.js:75","Network request failed:",s),uni.showToast({title:"网络请求失败! ",duration:1500,icon:"none"}),[]}})().then((e=>{"ok"==e.status&&uni.setStorage({key:"token",data:e.data.token,success:function(e){t("log","at main.js:44",e)}})})))},Z.afterRequest=function(){uni.hideLoading()};const{app:J,Vuex:ee,Pinia:te}={app:e.createVueApp(Q)};uni.Vuex=ee,uni.Pinia=te,J.provide("__globalStyles",__uniConfig.styles),J._component.mpType="app",J._component.render=()=>{},J.mount("#app")}(Vue);