if (typeof Promise !== "undefined" && !Promise.prototype.finally) {
Promise.prototype.finally = function(callback) {
const promise = this.constructor;
return this.then(
(value) => promise.resolve(callback()).then(() => value),
(reason) => promise.resolve(callback()).then(() => {
throw reason;
})
);
};
}
;
if (typeof uni !== "undefined" && uni && uni.requireGlobal) {
const global2 = uni.requireGlobal();
ArrayBuffer = global2.ArrayBuffer;
Int8Array = global2.Int8Array;
Uint8Array = global2.Uint8Array;
Uint8ClampedArray = global2.Uint8ClampedArray;
Int16Array = global2.Int16Array;
Uint16Array = global2.Uint16Array;
Int32Array = global2.Int32Array;
Uint32Array = global2.Uint32Array;
Float32Array = global2.Float32Array;
Float64Array = global2.Float64Array;
BigInt64Array = global2.BigInt64Array;
BigUint64Array = global2.BigUint64Array;
}
;
if (uni.restoreGlobal) {
uni.restoreGlobal(Vue, weex, plus, setTimeout, clearTimeout, setInterval, clearInterval);
}
(function(vue) {
"use strict";
function formatAppLog(type, filename, ...args) {
if (uni.__log__) {
uni.__log__(type, filename, ...args);
} else {
console[type].apply(console, [...args, filename]);
}
}
function resolveEasycom(component, easycom) {
return typeof component === "string" ? easycom : component;
}
const popup = {
data() {
return {};
},
created() {
this.popup = this.getParent();
},
methods: {
/**
* 获取父元素实例
*/
getParent(name = "uniPopup") {
let parent = this.$parent;
let parentName = parent.$options.name;
while (parentName !== name) {
parent = parent.$parent;
if (!parent)
return false;
parentName = parent.$options.name;
}
return parent;
}
}
};
const _export_sfc = (sfc, props) => {
const target = sfc.__vccOpts || sfc;
for (const [key, val] of props) {
target[key] = val;
}
return target;
};
const _sfc_main$f = {
name: "uniPopupMessage",
mixins: [popup],
props: {
/**
* 主题 success/warning/info/error 默认 success
*/
type: {
type: String,
default: "success"
},
/**
* 消息文字
*/
message: {
type: String,
default: ""
},
/**
* 显示时间,设置为 0 则不会自动关闭
*/
duration: {
type: Number,
default: 3e3
},
maskShow: {
type: Boolean,
default: false
}
},
data() {
return {};
},
created() {
this.popup.maskShow = this.maskShow;
this.popup.messageChild = this;
},
methods: {
timerClose() {
if (this.duration === 0)
return;
clearTimeout(this.timer);
this.timer = setTimeout(() => {
this.popup.close();
}, this.duration);
}
}
};
function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createElementBlock("view", { class: "uni-popup-message" }, [
vue.createElementVNode(
"view",
{
class: vue.normalizeClass(["uni-popup-message__box fixforpc-width", "uni-popup__" + $props.type])
},
[
vue.renderSlot(_ctx.$slots, "default", {}, () => [
vue.createElementVNode(
"text",
{
class: vue.normalizeClass(["uni-popup-message-text", "uni-popup__" + $props.type + "-text"])
},
vue.toDisplayString($props.message),
3
/* TEXT, CLASS */
)
], true)
],
2
/* CLASS */
)
]);
}
const __easycom_2 = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e], ["__scopeId", "data-v-a4566996"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue"]]);
class MPAnimation {
constructor(options, _this) {
this.options = options;
this.animation = uni.createAnimation({
...options
});
this.currentStepAnimates = {};
this.next = 0;
this.$ = _this;
}
_nvuePushAnimates(type, args) {
let aniObj = this.currentStepAnimates[this.next];
let styles = {};
if (!aniObj) {
styles = {
styles: {},
config: {}
};
} else {
styles = aniObj;
}
if (animateTypes1.includes(type)) {
if (!styles.styles.transform) {
styles.styles.transform = "";
}
let unit = "";
if (type === "rotate") {
unit = "deg";
}
styles.styles.transform += `${type}(${args + unit}) `;
} else {
styles.styles[type] = `${args}`;
}
this.currentStepAnimates[this.next] = styles;
}
_animateRun(styles = {}, config = {}) {
let ref = this.$.$refs["ani"].ref;
if (!ref)
return;
return new Promise((resolve, reject) => {
nvueAnimation.transition(ref, {
styles,
...config
}, (res) => {
resolve();
});
});
}
_nvueNextAnimate(animates, step = 0, fn) {
let obj = animates[step];
if (obj) {
let {
styles,
config
} = obj;
this._animateRun(styles, config).then(() => {
step += 1;
this._nvueNextAnimate(animates, step, fn);
});
} else {
this.currentStepAnimates = {};
typeof fn === "function" && fn();
this.isEnd = true;
}
}
step(config = {}) {
this.animation.step(config);
return this;
}
run(fn) {
this.$.animationData = this.animation.export();
this.$.timer = setTimeout(() => {
typeof fn === "function" && fn();
}, this.$.durationTime);
}
}
const animateTypes1 = [
"matrix",
"matrix3d",
"rotate",
"rotate3d",
"rotateX",
"rotateY",
"rotateZ",
"scale",
"scale3d",
"scaleX",
"scaleY",
"scaleZ",
"skew",
"skewX",
"skewY",
"translate",
"translate3d",
"translateX",
"translateY",
"translateZ"
];
const animateTypes2 = ["opacity", "backgroundColor"];
const animateTypes3 = ["width", "height", "left", "right", "top", "bottom"];
animateTypes1.concat(animateTypes2, animateTypes3).forEach((type) => {
MPAnimation.prototype[type] = function(...args) {
this.animation[type](...args);
return this;
};
});
function createAnimation(option, _this) {
if (!_this)
return;
clearTimeout(_this.timer);
return new MPAnimation(option, _this);
}
const _sfc_main$e = {
name: "uniTransition",
emits: ["click", "change"],
props: {
show: {
type: Boolean,
default: false
},
modeClass: {
type: [Array, String],
default() {
return "fade";
}
},
duration: {
type: Number,
default: 300
},
styles: {
type: Object,
default() {
return {};
}
},
customClass: {
type: String,
default: ""
},
onceRender: {
type: Boolean,
default: false
}
},
data() {
return {
isShow: false,
transform: "",
opacity: 1,
animationData: {},
durationTime: 300,
config: {}
};
},
watch: {
show: {
handler(newVal) {
if (newVal) {
this.open();
} else {
if (this.isShow) {
this.close();
}
}
},
immediate: true
}
},
computed: {
// 生成样式数据
stylesObject() {
let styles = {
...this.styles,
"transition-duration": this.duration / 1e3 + "s"
};
let transform = "";
for (let i in styles) {
let line = this.toLine(i);
transform += line + ":" + styles[i] + ";";
}
return transform;
},
// 初始化动画条件
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: {
/**
* ref 触发 初始化动画
*/
init(obj = {}) {
if (obj.duration) {
this.durationTime = obj.duration;
}
this.animation = createAnimation(Object.assign(this.config, obj), this);
},
/**
* 点击组件触发回调
*/
onClick() {
this.$emit("click", {
detail: this.isShow
});
},
/**
* ref 触发 动画分组
* @param {Object} obj
*/
step(obj, config = {}) {
if (!this.animation)
return;
for (let i in obj) {
try {
if (typeof obj[i] === "object") {
this.animation[i](...obj[i]);
} else {
this.animation[i](obj[i]);
}
} catch (e) {
formatAppLog("error", "at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:148", `方法 ${i} 不存在`);
}
}
this.animation.step(config);
return this;
},
/**
* ref 触发 执行动画
*/
run(fn) {
if (!this.animation)
return;
this.animation.run(fn);
},
// 开始过度动画
open() {
clearTimeout(this.timer);
this.transform = "";
this.isShow = true;
let { opacity, transform } = this.styleInit(false);
if (typeof opacity !== "undefined") {
this.opacity = opacity;
}
this.transform = transform;
this.$nextTick(() => {
this.timer = setTimeout(() => {
this.animation = createAnimation(this.config, this);
this.tranfromInit(false).step();
this.animation.run();
this.$emit("change", {
detail: this.isShow
});
}, 20);
});
},
// 关闭过度动画
close(type) {
if (!this.animation)
return;
this.tranfromInit(true).step().run(() => {
this.isShow = false;
this.animationData = null;
this.animation = null;
let { opacity, transform } = this.styleInit(false);
this.opacity = opacity || 1;
this.transform = transform;
this.$emit("change", {
detail: this.isShow
});
});
},
// 处理动画开始前的默认样式
styleInit(type) {
let styles = {
transform: ""
};
let buildStyle = (type2, mode) => {
if (mode === "fade") {
styles.opacity = this.animationType(type2)[mode];
} else {
styles.transform += this.animationType(type2)[mode] + " ";
}
};
if (typeof this.modeClass === "string") {
buildStyle(type, this.modeClass);
} else {
this.modeClass.forEach((mode) => {
buildStyle(type, mode);
});
}
return styles;
},
// 处理内置组合动画
tranfromInit(type) {
let buildTranfrom = (type2, mode) => {
let aniNum = null;
if (mode === "fade") {
aniNum = type2 ? 0 : 1;
} else {
aniNum = type2 ? "-100%" : "0";
if (mode === "zoom-in") {
aniNum = type2 ? 0.8 : 1;
}
if (mode === "zoom-out") {
aniNum = type2 ? 1.2 : 1;
}
if (mode === "slide-right") {
aniNum = type2 ? "100%" : "0";
}
if (mode === "slide-bottom") {
aniNum = type2 ? "100%" : "0";
}
}
this.animation[this.animationMode()[mode]](aniNum);
};
if (typeof this.modeClass === "string") {
buildTranfrom(type, this.modeClass);
} else {
this.modeClass.forEach((mode) => {
buildTranfrom(type, mode);
});
}
return this.animation;
},
animationType(type) {
return {
fade: type ? 0 : 1,
"slide-top": `translateY(${type ? "0" : "-100%"})`,
"slide-right": `translateX(${type ? "0" : "100%"})`,
"slide-bottom": `translateY(${type ? "0" : "100%"})`,
"slide-left": `translateX(${type ? "0" : "-100%"})`,
"zoom-in": `scaleX(${type ? 1 : 0.8}) scaleY(${type ? 1 : 0.8})`,
"zoom-out": `scaleX(${type ? 1 : 1.2}) scaleY(${type ? 1 : 1.2})`
};
},
// 内置动画类型与实际动画对应字典
animationMode() {
return {
fade: "opacity",
"slide-top": "translateY",
"slide-right": "translateX",
"slide-bottom": "translateY",
"slide-left": "translateX",
"zoom-in": "scale",
"zoom-out": "scale"
};
},
// 驼峰转中横线
toLine(name) {
return name.replace(/([A-Z])/g, "-$1").toLowerCase();
}
}
};
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", {
ref: "ani",
animation: $data.animationData,
class: vue.normalizeClass($props.customClass),
style: vue.normalizeStyle($options.transformStyles),
onClick: _cache[0] || (_cache[0] = (...args) => $options.onClick && $options.onClick(...args))
}, [
vue.renderSlot(_ctx.$slots, "default")
], 14, ["animation"])), [
[vue.vShow, $data.isShow]
]);
}
const __easycom_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$d], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-transition/components/uni-transition/uni-transition.vue"]]);
const _sfc_main$d = {
name: "uniPopup",
components: {},
emits: ["change", "maskClick"],
props: {
// 开启动画
animation: {
type: Boolean,
default: true
},
// 弹出层类型,可选值,top: 顶部弹出层;bottom:底部弹出层;center:全屏弹出层
// message: 消息提示 ; dialog : 对话框
type: {
type: String,
default: "center"
},
// maskClick
isMaskClick: {
type: Boolean,
default: null
},
// TODO 2 个版本后废弃属性 ,使用 isMaskClick
maskClick: {
type: Boolean,
default: null
},
backgroundColor: {
type: String,
default: "none"
},
safeArea: {
type: Boolean,
default: true
},
maskBackgroundColor: {
type: String,
default: "rgba(0, 0, 0, 0.4)"
},
borderRadius: {
type: String
}
},
watch: {
/**
* 监听type类型
*/
type: {
handler: function(type) {
if (!this.config[type])
return;
this[this.config[type]](true);
},
immediate: true
},
isDesktop: {
handler: function(newVal) {
if (!this.config[newVal])
return;
this[this.config[this.type]](true);
},
immediate: true
},
/**
* 监听遮罩是否可点击
* @param {Object} val
*/
maskClick: {
handler: function(val) {
this.mkclick = val;
},
immediate: true
},
isMaskClick: {
handler: function(val) {
this.mkclick = val;
},
immediate: true
},
// H5 下禁止底部滚动
showPopup(show) {
}
},
data() {
return {
duration: 300,
ani: [],
showPopup: false,
showTrans: false,
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: true,
mkclick: true,
popupstyle: "top"
};
},
computed: {
getStyles() {
let res = { backgroundColor: this.bg };
if (this.borderRadius || "0") {
res = Object.assign(res, { borderRadius: this.borderRadius });
}
return res;
},
isDesktop() {
return this.popupWidth >= 500 && this.popupHeight >= 500;
},
bg() {
if (this.backgroundColor === "" || this.backgroundColor === "none") {
return "transparent";
}
return this.backgroundColor;
}
},
mounted() {
const fixSize = () => {
const {
windowWidth,
windowHeight,
windowTop,
safeArea,
screenHeight,
safeAreaInsets
} = uni.getSystemInfoSync();
this.popupWidth = windowWidth;
this.popupHeight = windowHeight + (windowTop || 0);
if (safeArea && this.safeArea) {
this.safeAreaInsets = safeAreaInsets.bottom;
} else {
this.safeAreaInsets = 0;
}
};
fixSize();
},
// TODO vue3
unmounted() {
this.setH5Visible();
},
activated() {
this.setH5Visible(!this.showPopup);
},
deactivated() {
this.setH5Visible(true);
},
created() {
if (this.isMaskClick === null && this.maskClick === null) {
this.mkclick = true;
} else {
this.mkclick = this.isMaskClick !== null ? this.isMaskClick : this.maskClick;
}
if (this.animation) {
this.duration = 300;
} else {
this.duration = 0;
}
this.messageChild = null;
this.clearPropagation = false;
this.maskClass.backgroundColor = this.maskBackgroundColor;
},
methods: {
setH5Visible(visible = true) {
},
/**
* 公用方法,不显示遮罩层
*/
closeMask() {
this.maskShow = false;
},
/**
* 公用方法,遮罩层禁止点击
*/
disableMask() {
this.mkclick = false;
},
// TODO nvue 取消冒泡
clear(e) {
e.stopPropagation();
this.clearPropagation = true;
},
open(direction) {
if (this.showPopup) {
return;
}
let innerType = ["top", "center", "bottom", "left", "right", "message", "dialog", "share"];
if (!(direction && innerType.indexOf(direction) !== -1)) {
direction = this.type;
}
if (!this.config[direction]) {
formatAppLog("error", "at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:298", "缺少类型:", direction);
return;
}
this[this.config[direction]]();
this.$emit("change", {
show: true,
type: direction
});
},
close(type) {
this.showTrans = false;
this.$emit("change", {
show: false,
type: this.type
});
clearTimeout(this.timer);
this.timer = setTimeout(() => {
this.showPopup = false;
}, 300);
},
// TODO 处理冒泡事件,头条的冒泡事件有问题 ,先这样兼容
touchstart() {
this.clearPropagation = false;
},
onTap() {
if (this.clearPropagation) {
this.clearPropagation = false;
return;
}
this.$emit("maskClick");
if (!this.mkclick)
return;
this.close();
},
/**
* 顶部弹出样式处理
*/
top(type) {
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"
};
if (type)
return;
this.showPopup = true;
this.showTrans = true;
this.$nextTick(() => {
if (this.messageChild && this.type === "message") {
this.messageChild.timerClose();
}
});
},
/**
* 底部弹出样式处理
*/
bottom(type) {
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"
};
if (type)
return;
this.showPopup = true;
this.showTrans = true;
},
/**
* 中间弹出样式处理
*/
center(type) {
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"
};
if (type)
return;
this.showPopup = true;
this.showTrans = true;
},
left(type) {
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"
};
if (type)
return;
this.showPopup = true;
this.showTrans = true;
},
right(type) {
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"
};
if (type)
return;
this.showPopup = true;
this.showTrans = true;
}
}
};
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
const _component_uni_transition = resolveEasycom(vue.resolveDynamicComponent("uni-transition"), __easycom_0$3);
return $data.showPopup ? (vue.openBlock(), vue.createElementBlock(
"view",
{
key: 0,
class: vue.normalizeClass(["uni-popup", [$data.popupstyle, $options.isDesktop ? "fixforpc-z-index" : ""]])
},
[
vue.createElementVNode(
"view",
{
onTouchstart: _cache[1] || (_cache[1] = (...args) => $options.touchstart && $options.touchstart(...args))
},
[
$data.maskShow ? (vue.openBlock(), vue.createBlock(_component_uni_transition, {
key: "1",
name: "mask",
"mode-class": "fade",
styles: $data.maskClass,
duration: $data.duration,
show: $data.showTrans,
onClick: $options.onTap
}, null, 8, ["styles", "duration", "show", "onClick"])) : vue.createCommentVNode("v-if", true),
vue.createVNode(_component_uni_transition, {
key: "2",
"mode-class": $data.ani,
name: "content",
styles: $data.transClass,
duration: $data.duration,
show: $data.showTrans,
onClick: $options.onTap
}, {
default: vue.withCtx(() => [
vue.createElementVNode(
"view",
{
class: vue.normalizeClass(["uni-popup__wrapper", [$data.popupstyle]]),
style: vue.normalizeStyle($options.getStyles),
onClick: _cache[0] || (_cache[0] = (...args) => $options.clear && $options.clear(...args))
},
[
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
],
6
/* CLASS, STYLE */
)
]),
_: 3
/* FORWARDED */
}, 8, ["mode-class", "styles", "duration", "show", "onClick"])
],
32
/* NEED_HYDRATION */
)
],
2
/* CLASS */
)) : vue.createCommentVNode("v-if", true);
}
const __easycom_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c], ["__scopeId", "data-v-4dd3c44b"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-popup/components/uni-popup/uni-popup.vue"]]);
const control = async (data) => {
try {
const response2 = await uni.$http.post(`/api/v1/items/rt/${data.id}`, data, { "Content-Type": "application/json;charset=utf-8", "Authorization": `JWT ${uni.getStorageSync("token")}` });
formatAppLog("log", "at api/api.js:5", response2);
if (response2.statusCode != 200 || response2.data.error == "token过期且未提供刷新令牌") {
uni.removeStorageSync("token");
login();
return response2.data;
}
return response2.data;
} catch (error) {
formatAppLog("log", "at api/api.js:18", error);
login();
return response.data;
}
};
const getuidatas = async (data) => {
try {
const response2 = await uni.$http.get("/api/v1/uidatas/rt/uis/3224a3eb-2375-4dfc-99ce-b182edd30996", data, { "Content-Type": "application/json;charset=utf-8", "Authorization": `JWT ${uni.getStorageSync("token")}` });
formatAppLog("log", "at api/api.js:32", response2);
if (response2.statusCode != 200 || response2.data.error == "token过期且未提供刷新令牌") {
uni.removeStorageSync("token");
login();
return response2.data;
}
return response2.data;
} catch (error) {
formatAppLog("log", "at api/api.js:48", error);
login();
return response.data;
}
};
const getfaultsList = async (data) => {
try {
const response2 = await uni.$http.get("/api/v1/faults", data, { "Content-Type": "application/json;charset=utf-8", "Authorization": `JWT ${uni.getStorageSync("token")}` });
formatAppLog("log", "at api/api.js:63", response2.data);
if (response2.statusCode != 200 || response2.data.error == "token过期且未提供刷新令牌") {
uni.removeStorageSync("token");
login();
return response2.data;
}
return response2.data;
} catch (error) {
formatAppLog("error", "at api/api.js:76", "Network request failed:", error);
formatAppLog("log", "at api/api.js:77", error);
uni.removeStorageSync("token");
login();
return response.data;
}
};
const login = async (start, count) => {
try {
formatAppLog("log", "at api/api.js:91", "login request");
const response2 = await uni.$http.post(
"/api/v1/login",
{ name: "dexnui", pwd: "dexn1001" },
{ "Content-Type": "application/json;charset=utf-8" }
);
formatAppLog("log", "at api/api.js:94", response2);
if (response2.statusCode != 200 || response2.data.error == "token过期且未提供刷新令牌") {
return response2.data;
}
formatAppLog("log", "at api/api.js:103", response2.data);
uni.setStorageSync("token", response2.data.data.token);
return response2.data;
} catch (error) {
return response.data;
}
};
const getTime = (format = "yyyy/MM/dd hh:mm:ss") => {
const date = /* @__PURE__ */ new Date();
const year = date.getFullYear();
const month = ("0" + (date.getMonth() + 1)).slice(-2);
const day = ("0" + date.getDate()).slice(-2);
const hours = ("0" + date.getHours()).slice(-2);
const minutes = ("0" + date.getMinutes()).slice(-2);
const seconds = ("0" + date.getSeconds()).slice(-2);
return format.replace("yyyy", year).replace("MM", month).replace("dd", day).replace("hh", hours).replace("mm", minutes).replace("ss", seconds);
};
function getDevtoolsGlobalHook() {
return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
}
function getTarget() {
return typeof navigator !== "undefined" && typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {};
}
const isProxyAvailable = typeof Proxy === "function";
const HOOK_SETUP = "devtools-plugin:setup";
const HOOK_PLUGIN_SETTINGS_SET = "plugin:settings:set";
class ApiProxy {
constructor(plugin, hook) {
this.target = null;
this.targetQueue = [];
this.onQueue = [];
this.plugin = plugin;
this.hook = hook;
const defaultSettings = {};
if (plugin.settings) {
for (const id in plugin.settings) {
const item = plugin.settings[id];
defaultSettings[id] = item.defaultValue;
}
}
const localSettingsSaveId = `__vue-devtools-plugin-settings__${plugin.id}`;
let currentSettings = { ...defaultSettings };
try {
const raw = localStorage.getItem(localSettingsSaveId);
const data = JSON.parse(raw);
Object.assign(currentSettings, data);
} catch (e) {
}
this.fallbacks = {
getSettings() {
return currentSettings;
},
setSettings(value) {
try {
localStorage.setItem(localSettingsSaveId, JSON.stringify(value));
} catch (e) {
}
currentSettings = value;
}
};
hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId, value) => {
if (pluginId === this.plugin.id) {
this.fallbacks.setSettings(value);
}
});
this.proxiedOn = new Proxy({}, {
get: (_target, prop) => {
if (this.target) {
return this.target.on[prop];
} else {
return (...args) => {
this.onQueue.push({
method: prop,
args
});
};
}
}
});
this.proxiedTarget = new Proxy({}, {
get: (_target, prop) => {
if (this.target) {
return this.target[prop];
} else if (prop === "on") {
return this.proxiedOn;
} else if (Object.keys(this.fallbacks).includes(prop)) {
return (...args) => {
this.targetQueue.push({
method: prop,
args,
resolve: () => {
}
});
return this.fallbacks[prop](...args);
};
} else {
return (...args) => {
return new Promise((resolve) => {
this.targetQueue.push({
method: prop,
args,
resolve
});
});
};
}
}
});
}
async setRealTarget(target) {
this.target = target;
for (const item of this.onQueue) {
this.target.on[item.method](...item.args);
}
for (const item of this.targetQueue) {
item.resolve(await this.target[item.method](...item.args));
}
}
}
function setupDevtoolsPlugin(pluginDescriptor, setupFn) {
const target = getTarget();
const hook = getDevtoolsGlobalHook();
const enableProxy = isProxyAvailable && pluginDescriptor.enableEarlyProxy;
if (hook && (target.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !enableProxy)) {
hook.emit(HOOK_SETUP, pluginDescriptor, setupFn);
} else {
const proxy = enableProxy ? new ApiProxy(pluginDescriptor, hook) : null;
const list = target.__VUE_DEVTOOLS_PLUGINS__ = target.__VUE_DEVTOOLS_PLUGINS__ || [];
list.push({
pluginDescriptor,
setupFn,
proxy
});
if (proxy)
setupFn(proxy.proxiedTarget);
}
}
/*!
* vuex v4.1.0
* (c) 2022 Evan You
* @license MIT
*/
var storeKey = "store";
function forEachValue(obj, fn) {
Object.keys(obj).forEach(function(key) {
return fn(obj[key], key);
});
}
function isObject$1(obj) {
return obj !== null && typeof obj === "object";
}
function isPromise(val) {
return val && typeof val.then === "function";
}
function assert(condition, msg) {
if (!condition) {
throw new Error("[vuex] " + msg);
}
}
function partial(fn, arg) {
return function() {
return fn(arg);
};
}
function genericSubscribe(fn, subs, options) {
if (subs.indexOf(fn) < 0) {
options && options.prepend ? subs.unshift(fn) : subs.push(fn);
}
return function() {
var i = subs.indexOf(fn);
if (i > -1) {
subs.splice(i, 1);
}
};
}
function resetStore(store, hot) {
store._actions = /* @__PURE__ */ Object.create(null);
store._mutations = /* @__PURE__ */ Object.create(null);
store._wrappedGetters = /* @__PURE__ */ Object.create(null);
store._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
var state = store.state;
installModule(store, state, [], store._modules.root, true);
resetStoreState(store, state, hot);
}
function resetStoreState(store, state, hot) {
var oldState = store._state;
var oldScope = store._scope;
store.getters = {};
store._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
var wrappedGetters = store._wrappedGetters;
var computedObj = {};
var computedCache = {};
var scope = vue.effectScope(true);
scope.run(function() {
forEachValue(wrappedGetters, function(fn, key) {
computedObj[key] = partial(fn, store);
computedCache[key] = vue.computed(function() {
return computedObj[key]();
});
Object.defineProperty(store.getters, key, {
get: function() {
return computedCache[key].value;
},
enumerable: true
// for local getters
});
});
});
store._state = vue.reactive({
data: state
});
store._scope = scope;
if (store.strict) {
enableStrictMode(store);
}
if (oldState) {
if (hot) {
store._withCommit(function() {
oldState.data = null;
});
}
}
if (oldScope) {
oldScope.stop();
}
}
function installModule(store, rootState, path, module, hot) {
var isRoot = !path.length;
var namespace = store._modules.getNamespace(path);
if (module.namespaced) {
if (store._modulesNamespaceMap[namespace] && true) {
console.error("[vuex] duplicate namespace " + namespace + " for the namespaced module " + path.join("/"));
}
store._modulesNamespaceMap[namespace] = module;
}
if (!isRoot && !hot) {
var parentState = getNestedState(rootState, path.slice(0, -1));
var moduleName = path[path.length - 1];
store._withCommit(function() {
{
if (moduleName in parentState) {
console.warn(
'[vuex] state field "' + moduleName + '" was overridden by a module with the same name at "' + path.join(".") + '"'
);
}
}
parentState[moduleName] = module.state;
});
}
var local = module.context = makeLocalContext(store, namespace, path);
module.forEachMutation(function(mutation, key) {
var namespacedType = namespace + key;
registerMutation(store, namespacedType, mutation, local);
});
module.forEachAction(function(action, key) {
var type = action.root ? key : namespace + key;
var handler = action.handler || action;
registerAction(store, type, handler, local);
});
module.forEachGetter(function(getter, key) {
var namespacedType = namespace + key;
registerGetter(store, namespacedType, getter, local);
});
module.forEachChild(function(child, key) {
installModule(store, rootState, path.concat(key), child, hot);
});
}
function makeLocalContext(store, namespace, path) {
var noNamespace = namespace === "";
var local = {
dispatch: noNamespace ? store.dispatch : function(_type, _payload, _options) {
var args = unifyObjectStyle(_type, _payload, _options);
var payload = args.payload;
var options = args.options;
var type = args.type;
if (!options || !options.root) {
type = namespace + type;
if (!store._actions[type]) {
console.error("[vuex] unknown local action type: " + args.type + ", global type: " + type);
return;
}
}
return store.dispatch(type, payload);
},
commit: noNamespace ? store.commit : function(_type, _payload, _options) {
var args = unifyObjectStyle(_type, _payload, _options);
var payload = args.payload;
var options = args.options;
var type = args.type;
if (!options || !options.root) {
type = namespace + type;
if (!store._mutations[type]) {
console.error("[vuex] unknown local mutation type: " + args.type + ", global type: " + type);
return;
}
}
store.commit(type, payload, options);
}
};
Object.defineProperties(local, {
getters: {
get: noNamespace ? function() {
return store.getters;
} : function() {
return makeLocalGetters(store, namespace);
}
},
state: {
get: function() {
return getNestedState(store.state, path);
}
}
});
return local;
}
function makeLocalGetters(store, namespace) {
if (!store._makeLocalGettersCache[namespace]) {
var gettersProxy = {};
var splitPos = namespace.length;
Object.keys(store.getters).forEach(function(type) {
if (type.slice(0, splitPos) !== namespace) {
return;
}
var localType = type.slice(splitPos);
Object.defineProperty(gettersProxy, localType, {
get: function() {
return store.getters[type];
},
enumerable: true
});
});
store._makeLocalGettersCache[namespace] = gettersProxy;
}
return store._makeLocalGettersCache[namespace];
}
function registerMutation(store, type, handler, local) {
var entry = store._mutations[type] || (store._mutations[type] = []);
entry.push(function wrappedMutationHandler(payload) {
handler.call(store, local.state, payload);
});
}
function registerAction(store, type, handler, local) {
var entry = store._actions[type] || (store._actions[type] = []);
entry.push(function wrappedActionHandler(payload) {
var res = handler.call(store, {
dispatch: local.dispatch,
commit: local.commit,
getters: local.getters,
state: local.state,
rootGetters: store.getters,
rootState: store.state
}, payload);
if (!isPromise(res)) {
res = Promise.resolve(res);
}
if (store._devtoolHook) {
return res.catch(function(err) {
store._devtoolHook.emit("vuex:error", err);
throw err;
});
} else {
return res;
}
});
}
function registerGetter(store, type, rawGetter, local) {
if (store._wrappedGetters[type]) {
{
console.error("[vuex] duplicate getter key: " + type);
}
return;
}
store._wrappedGetters[type] = function wrappedGetter(store2) {
return rawGetter(
local.state,
// local state
local.getters,
// local getters
store2.state,
// root state
store2.getters
// root getters
);
};
}
function enableStrictMode(store) {
vue.watch(function() {
return store._state.data;
}, function() {
{
assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
}
}, { deep: true, flush: "sync" });
}
function getNestedState(state, path) {
return path.reduce(function(state2, key) {
return state2[key];
}, state);
}
function unifyObjectStyle(type, payload, options) {
if (isObject$1(type) && type.type) {
options = payload;
payload = type;
type = type.type;
}
{
assert(typeof type === "string", "expects string as the type, but found " + typeof type + ".");
}
return { type, payload, options };
}
var LABEL_VUEX_BINDINGS = "vuex bindings";
var MUTATIONS_LAYER_ID = "vuex:mutations";
var ACTIONS_LAYER_ID = "vuex:actions";
var INSPECTOR_ID = "vuex";
var actionId = 0;
function addDevtools(app, store) {
setupDevtoolsPlugin(
{
id: "org.vuejs.vuex",
app,
label: "Vuex",
homepage: "https://next.vuex.vuejs.org/",
logo: "https://vuejs.org/images/icons/favicon-96x96.png",
packageName: "vuex",
componentStateTypes: [LABEL_VUEX_BINDINGS]
},
function(api) {
api.addTimelineLayer({
id: MUTATIONS_LAYER_ID,
label: "Vuex Mutations",
color: COLOR_LIME_500
});
api.addTimelineLayer({
id: ACTIONS_LAYER_ID,
label: "Vuex Actions",
color: COLOR_LIME_500
});
api.addInspector({
id: INSPECTOR_ID,
label: "Vuex",
icon: "storage",
treeFilterPlaceholder: "Filter stores..."
});
api.on.getInspectorTree(function(payload) {
if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
if (payload.filter) {
var nodes = [];
flattenStoreForInspectorTree(nodes, store._modules.root, payload.filter, "");
payload.rootNodes = nodes;
} else {
payload.rootNodes = [
formatStoreForInspectorTree(store._modules.root, "")
];
}
}
});
api.on.getInspectorState(function(payload) {
if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
var modulePath = payload.nodeId;
makeLocalGetters(store, modulePath);
payload.state = formatStoreForInspectorState(
getStoreModule(store._modules, modulePath),
modulePath === "root" ? store.getters : store._makeLocalGettersCache,
modulePath
);
}
});
api.on.editInspectorState(function(payload) {
if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
var modulePath = payload.nodeId;
var path = payload.path;
if (modulePath !== "root") {
path = modulePath.split("/").filter(Boolean).concat(path);
}
store._withCommit(function() {
payload.set(store._state.data, path, payload.state.value);
});
}
});
store.subscribe(function(mutation, state) {
var data = {};
if (mutation.payload) {
data.payload = mutation.payload;
}
data.state = state;
api.notifyComponentUpdate();
api.sendInspectorTree(INSPECTOR_ID);
api.sendInspectorState(INSPECTOR_ID);
api.addTimelineEvent({
layerId: MUTATIONS_LAYER_ID,
event: {
time: Date.now(),
title: mutation.type,
data
}
});
});
store.subscribeAction({
before: function(action, state) {
var data = {};
if (action.payload) {
data.payload = action.payload;
}
action._id = actionId++;
action._time = Date.now();
data.state = state;
api.addTimelineEvent({
layerId: ACTIONS_LAYER_ID,
event: {
time: action._time,
title: action.type,
groupId: action._id,
subtitle: "start",
data
}
});
},
after: function(action, state) {
var data = {};
var duration = Date.now() - action._time;
data.duration = {
_custom: {
type: "duration",
display: duration + "ms",
tooltip: "Action duration",
value: duration
}
};
if (action.payload) {
data.payload = action.payload;
}
data.state = state;
api.addTimelineEvent({
layerId: ACTIONS_LAYER_ID,
event: {
time: Date.now(),
title: action.type,
groupId: action._id,
subtitle: "end",
data
}
});
}
});
}
);
}
var COLOR_LIME_500 = 8702998;
var COLOR_DARK = 6710886;
var COLOR_WHITE = 16777215;
var TAG_NAMESPACED = {
label: "namespaced",
textColor: COLOR_WHITE,
backgroundColor: COLOR_DARK
};
function extractNameFromPath(path) {
return path && path !== "root" ? path.split("/").slice(-2, -1)[0] : "Root";
}
function formatStoreForInspectorTree(module, path) {
return {
id: path || "root",
// all modules end with a `/`, we want the last segment only
// cart/ -> cart
// nested/cart/ -> cart
label: extractNameFromPath(path),
tags: module.namespaced ? [TAG_NAMESPACED] : [],
children: Object.keys(module._children).map(
function(moduleName) {
return formatStoreForInspectorTree(
module._children[moduleName],
path + moduleName + "/"
);
}
)
};
}
function flattenStoreForInspectorTree(result, module, filter, path) {
if (path.includes(filter)) {
result.push({
id: path || "root",
label: path.endsWith("/") ? path.slice(0, path.length - 1) : path || "Root",
tags: module.namespaced ? [TAG_NAMESPACED] : []
});
}
Object.keys(module._children).forEach(function(moduleName) {
flattenStoreForInspectorTree(result, module._children[moduleName], filter, path + moduleName + "/");
});
}
function formatStoreForInspectorState(module, getters, path) {
getters = path === "root" ? getters : getters[path];
var gettersKeys = Object.keys(getters);
var storeState = {
state: Object.keys(module.state).map(function(key) {
return {
key,
editable: true,
value: module.state[key]
};
})
};
if (gettersKeys.length) {
var tree = transformPathsToObjectTree(getters);
storeState.getters = Object.keys(tree).map(function(key) {
return {
key: key.endsWith("/") ? extractNameFromPath(key) : key,
editable: false,
value: canThrow(function() {
return tree[key];
})
};
});
}
return storeState;
}
function transformPathsToObjectTree(getters) {
var result = {};
Object.keys(getters).forEach(function(key) {
var path = key.split("/");
if (path.length > 1) {
var target = result;
var leafKey = path.pop();
path.forEach(function(p) {
if (!target[p]) {
target[p] = {
_custom: {
value: {},
display: p,
tooltip: "Module",
abstract: true
}
};
}
target = target[p]._custom.value;
});
target[leafKey] = canThrow(function() {
return getters[key];
});
} else {
result[key] = canThrow(function() {
return getters[key];
});
}
});
return result;
}
function getStoreModule(moduleMap, path) {
var names = path.split("/").filter(function(n) {
return n;
});
return names.reduce(
function(module, moduleName, i) {
var child = module[moduleName];
if (!child) {
throw new Error('Missing module "' + moduleName + '" for path "' + path + '".');
}
return i === names.length - 1 ? child : child._children;
},
path === "root" ? moduleMap : moduleMap.root._children
);
}
function canThrow(cb) {
try {
return cb();
} catch (e) {
return e;
}
}
var Module = function Module2(rawModule, runtime) {
this.runtime = runtime;
this._children = /* @__PURE__ */ Object.create(null);
this._rawModule = rawModule;
var rawState = rawModule.state;
this.state = (typeof rawState === "function" ? rawState() : rawState) || {};
};
var prototypeAccessors$1 = { namespaced: { configurable: true } };
prototypeAccessors$1.namespaced.get = function() {
return !!this._rawModule.namespaced;
};
Module.prototype.addChild = function addChild(key, module) {
this._children[key] = module;
};
Module.prototype.removeChild = function removeChild(key) {
delete this._children[key];
};
Module.prototype.getChild = function getChild(key) {
return this._children[key];
};
Module.prototype.hasChild = function hasChild(key) {
return key in this._children;
};
Module.prototype.update = function update(rawModule) {
this._rawModule.namespaced = rawModule.namespaced;
if (rawModule.actions) {
this._rawModule.actions = rawModule.actions;
}
if (rawModule.mutations) {
this._rawModule.mutations = rawModule.mutations;
}
if (rawModule.getters) {
this._rawModule.getters = rawModule.getters;
}
};
Module.prototype.forEachChild = function forEachChild(fn) {
forEachValue(this._children, fn);
};
Module.prototype.forEachGetter = function forEachGetter(fn) {
if (this._rawModule.getters) {
forEachValue(this._rawModule.getters, fn);
}
};
Module.prototype.forEachAction = function forEachAction(fn) {
if (this._rawModule.actions) {
forEachValue(this._rawModule.actions, fn);
}
};
Module.prototype.forEachMutation = function forEachMutation(fn) {
if (this._rawModule.mutations) {
forEachValue(this._rawModule.mutations, fn);
}
};
Object.defineProperties(Module.prototype, prototypeAccessors$1);
var ModuleCollection = function ModuleCollection2(rawRootModule) {
this.register([], rawRootModule, false);
};
ModuleCollection.prototype.get = function get(path) {
return path.reduce(function(module, key) {
return module.getChild(key);
}, this.root);
};
ModuleCollection.prototype.getNamespace = function getNamespace(path) {
var module = this.root;
return path.reduce(function(namespace, key) {
module = module.getChild(key);
return namespace + (module.namespaced ? key + "/" : "");
}, "");
};
ModuleCollection.prototype.update = function update$1(rawRootModule) {
update2([], this.root, rawRootModule);
};
ModuleCollection.prototype.register = function register(path, rawModule, runtime) {
var this$1$1 = this;
if (runtime === void 0)
runtime = true;
{
assertRawModule(path, rawModule);
}
var newModule = new Module(rawModule, runtime);
if (path.length === 0) {
this.root = newModule;
} else {
var parent = this.get(path.slice(0, -1));
parent.addChild(path[path.length - 1], newModule);
}
if (rawModule.modules) {
forEachValue(rawModule.modules, function(rawChildModule, key) {
this$1$1.register(path.concat(key), rawChildModule, runtime);
});
}
};
ModuleCollection.prototype.unregister = function unregister(path) {
var parent = this.get(path.slice(0, -1));
var key = path[path.length - 1];
var child = parent.getChild(key);
if (!child) {
{
console.warn(
"[vuex] trying to unregister module '" + key + "', which is not registered"
);
}
return;
}
if (!child.runtime) {
return;
}
parent.removeChild(key);
};
ModuleCollection.prototype.isRegistered = function isRegistered(path) {
var parent = this.get(path.slice(0, -1));
var key = path[path.length - 1];
if (parent) {
return parent.hasChild(key);
}
return false;
};
function update2(path, targetModule, newModule) {
{
assertRawModule(path, newModule);
}
targetModule.update(newModule);
if (newModule.modules) {
for (var key in newModule.modules) {
if (!targetModule.getChild(key)) {
{
console.warn(
"[vuex] trying to add a new module '" + key + "' on hot reloading, manual reload is needed"
);
}
return;
}
update2(
path.concat(key),
targetModule.getChild(key),
newModule.modules[key]
);
}
}
}
var functionAssert = {
assert: function(value) {
return typeof value === "function";
},
expected: "function"
};
var objectAssert = {
assert: function(value) {
return typeof value === "function" || typeof value === "object" && typeof value.handler === "function";
},
expected: 'function or object with "handler" function'
};
var assertTypes = {
getters: functionAssert,
mutations: functionAssert,
actions: objectAssert
};
function assertRawModule(path, rawModule) {
Object.keys(assertTypes).forEach(function(key) {
if (!rawModule[key]) {
return;
}
var assertOptions = assertTypes[key];
forEachValue(rawModule[key], function(value, type) {
assert(
assertOptions.assert(value),
makeAssertionMessage(path, key, type, value, assertOptions.expected)
);
});
});
}
function makeAssertionMessage(path, key, type, value, expected) {
var buf = key + " should be " + expected + ' but "' + key + "." + type + '"';
if (path.length > 0) {
buf += ' in module "' + path.join(".") + '"';
}
buf += " is " + JSON.stringify(value) + ".";
return buf;
}
function createStore(options) {
return new Store$1(options);
}
var Store$1 = function Store2(options) {
var this$1$1 = this;
if (options === void 0)
options = {};
{
assert(typeof Promise !== "undefined", "vuex requires a Promise polyfill in this browser.");
assert(this instanceof Store2, "store must be called with the new operator.");
}
var plugins = options.plugins;
if (plugins === void 0)
plugins = [];
var strict = options.strict;
if (strict === void 0)
strict = false;
var devtools = options.devtools;
this._committing = false;
this._actions = /* @__PURE__ */ Object.create(null);
this._actionSubscribers = [];
this._mutations = /* @__PURE__ */ Object.create(null);
this._wrappedGetters = /* @__PURE__ */ Object.create(null);
this._modules = new ModuleCollection(options);
this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
this._subscribers = [];
this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
this._scope = null;
this._devtools = devtools;
var store = this;
var ref = this;
var dispatch2 = ref.dispatch;
var commit2 = ref.commit;
this.dispatch = function boundDispatch(type, payload) {
return dispatch2.call(store, type, payload);
};
this.commit = function boundCommit(type, payload, options2) {
return commit2.call(store, type, payload, options2);
};
this.strict = strict;
var state = this._modules.root.state;
installModule(this, state, [], this._modules.root);
resetStoreState(this, state);
plugins.forEach(function(plugin) {
return plugin(this$1$1);
});
};
var prototypeAccessors = { state: { configurable: true } };
Store$1.prototype.install = function install(app, injectKey) {
app.provide(injectKey || storeKey, this);
app.config.globalProperties.$store = this;
var useDevtools = this._devtools !== void 0 ? this._devtools : true;
if (useDevtools) {
addDevtools(app, this);
}
};
prototypeAccessors.state.get = function() {
return this._state.data;
};
prototypeAccessors.state.set = function(v) {
{
assert(false, "use store.replaceState() to explicit replace store state.");
}
};
Store$1.prototype.commit = function commit(_type, _payload, _options) {
var this$1$1 = this;
var ref = unifyObjectStyle(_type, _payload, _options);
var type = ref.type;
var payload = ref.payload;
var options = ref.options;
var mutation = { type, payload };
var entry = this._mutations[type];
if (!entry) {
{
console.error("[vuex] unknown mutation type: " + type);
}
return;
}
this._withCommit(function() {
entry.forEach(function commitIterator(handler) {
handler(payload);
});
});
this._subscribers.slice().forEach(function(sub) {
return sub(mutation, this$1$1.state);
});
if (options && options.silent) {
console.warn(
"[vuex] mutation type: " + type + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
);
}
};
Store$1.prototype.dispatch = function dispatch(_type, _payload) {
var this$1$1 = this;
var ref = unifyObjectStyle(_type, _payload);
var type = ref.type;
var payload = ref.payload;
var action = { type, payload };
var entry = this._actions[type];
if (!entry) {
{
console.error("[vuex] unknown action type: " + type);
}
return;
}
try {
this._actionSubscribers.slice().filter(function(sub) {
return sub.before;
}).forEach(function(sub) {
return sub.before(action, this$1$1.state);
});
} catch (e) {
{
console.warn("[vuex] error in before action subscribers: ");
console.error(e);
}
}
var result = entry.length > 1 ? Promise.all(entry.map(function(handler) {
return handler(payload);
})) : entry[0](payload);
return new Promise(function(resolve, reject) {
result.then(function(res) {
try {
this$1$1._actionSubscribers.filter(function(sub) {
return sub.after;
}).forEach(function(sub) {
return sub.after(action, this$1$1.state);
});
} catch (e) {
{
console.warn("[vuex] error in after action subscribers: ");
console.error(e);
}
}
resolve(res);
}, function(error) {
try {
this$1$1._actionSubscribers.filter(function(sub) {
return sub.error;
}).forEach(function(sub) {
return sub.error(action, this$1$1.state, error);
});
} catch (e) {
{
console.warn("[vuex] error in error action subscribers: ");
console.error(e);
}
}
reject(error);
});
});
};
Store$1.prototype.subscribe = function subscribe(fn, options) {
return genericSubscribe(fn, this._subscribers, options);
};
Store$1.prototype.subscribeAction = function subscribeAction(fn, options) {
var subs = typeof fn === "function" ? { before: fn } : fn;
return genericSubscribe(subs, this._actionSubscribers, options);
};
Store$1.prototype.watch = function watch$1(getter, cb, options) {
var this$1$1 = this;
{
assert(typeof getter === "function", "store.watch only accepts a function.");
}
return vue.watch(function() {
return getter(this$1$1.state, this$1$1.getters);
}, cb, Object.assign({}, options));
};
Store$1.prototype.replaceState = function replaceState(state) {
var this$1$1 = this;
this._withCommit(function() {
this$1$1._state.data = state;
});
};
Store$1.prototype.registerModule = function registerModule(path, rawModule, options) {
if (options === void 0)
options = {};
if (typeof path === "string") {
path = [path];
}
{
assert(Array.isArray(path), "module path must be a string or an Array.");
assert(path.length > 0, "cannot register the root module by using registerModule.");
}
this._modules.register(path, rawModule);
installModule(this, this.state, path, this._modules.get(path), options.preserveState);
resetStoreState(this, this.state);
};
Store$1.prototype.unregisterModule = function unregisterModule(path) {
var this$1$1 = this;
if (typeof path === "string") {
path = [path];
}
{
assert(Array.isArray(path), "module path must be a string or an Array.");
}
this._modules.unregister(path);
this._withCommit(function() {
var parentState = getNestedState(this$1$1.state, path.slice(0, -1));
delete parentState[path[path.length - 1]];
});
resetStore(this);
};
Store$1.prototype.hasModule = function hasModule(path) {
if (typeof path === "string") {
path = [path];
}
{
assert(Array.isArray(path), "module path must be a string or an Array.");
}
return this._modules.isRegistered(path);
};
Store$1.prototype.hotUpdate = function hotUpdate(newOptions) {
this._modules.update(newOptions);
resetStore(this, true);
};
Store$1.prototype._withCommit = function _withCommit(fn) {
var committing = this._committing;
this._committing = true;
fn();
this._committing = committing;
};
Object.defineProperties(Store$1.prototype, prototypeAccessors);
var mapState = normalizeNamespace(function(namespace, states) {
var res = {};
if (!isValidMap(states)) {
console.error("[vuex] mapState: mapper parameter must be either an Array or an Object");
}
normalizeMap(states).forEach(function(ref) {
var key = ref.key;
var val = ref.val;
res[key] = function mappedState() {
var state = this.$store.state;
var getters = this.$store.getters;
if (namespace) {
var module = getModuleByNamespace(this.$store, "mapState", namespace);
if (!module) {
return;
}
state = module.context.state;
getters = module.context.getters;
}
return typeof val === "function" ? val.call(this, state, getters) : state[val];
};
res[key].vuex = true;
});
return res;
});
function normalizeMap(map) {
if (!isValidMap(map)) {
return [];
}
return Array.isArray(map) ? map.map(function(key) {
return { key, val: key };
}) : Object.keys(map).map(function(key) {
return { key, val: map[key] };
});
}
function isValidMap(map) {
return Array.isArray(map) || isObject$1(map);
}
function normalizeNamespace(fn) {
return function(namespace, map) {
if (typeof namespace !== "string") {
map = namespace;
namespace = "";
} else if (namespace.charAt(namespace.length - 1) !== "/") {
namespace += "/";
}
return fn(namespace, map);
};
}
function getModuleByNamespace(store, helper, namespace) {
var module = store._modulesNamespaceMap[namespace];
if (!module) {
console.error("[vuex] module namespace not found in " + helper + "(): " + namespace);
}
return module;
}
const _imports_0 = "/static/logo.png";
const _imports_1 = "/static/tite.png";
const _imports_2$2 = "/static/choice1.png";
const _imports_3$1 = "/static/electricity.png";
const _imports_4$3 = "/static/choice2.png";
const _imports_5$2 = "/static/power1.png";
const _imports_6$1 = "/static/choice3.png";
const _imports_7$1 = "/static/direct1.png";
const _imports_8$1 = "/static/choice4.png";
const _imports_9$1 = "/static/DCpower1.png";
const _imports_10$1 = "/static/system.png";
const _imports_11$1 = "/static/!.png";
const _sfc_main$c = {
data() {
return {
title: "",
uidatas: "",
formatTimeid: "",
messageText: ""
};
},
created() {
},
mounted() {
},
computed: {
// 使用 mapState 映射多个状态到组件的计算属性
...mapState(["formattedTime", "status", "selectorid", "selectorindex"]),
...mapState({
uidatasdata: (state) => state.uidatasdata
})
},
onLoad() {
},
beforeUnmount() {
clearInterval(this.uidatas);
},
methods: {
onclick(e) {
this.pattern(e);
},
pattern(unm) {
let data = {
id: "c32e6a80-9159-4f6e-9acc-8525cf177808",
issaveinitvalue: true,
value: unm + ""
// 直流供电=1,直流补电=4,交流供电=2,交流补电=3
};
control(data).then((data2) => {
formatAppLog("log", "at pages/index/index.vue:115", data2);
if (data2.status == "ok") {
if (unm == 3) {
uni.redirectTo({
url: "/pages/home/index"
});
} else if (unm == 2) {
uni.redirectTo({
url: "/pages/electricity/index"
});
} else if (unm == 4) {
uni.redirectTo({
url: "/pages/supply/supply"
});
} else if (unm == 1) {
uni.redirectTo({
url: "/pages/supplyss/supplyss"
});
}
} else {
this.messageText = "选择模式失败请重新选择";
this.$refs.message.open();
return;
}
});
},
system() {
uni.redirectTo({
url: "/pages/faultlist/index"
});
}
}
};
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
const _component_uni_popup_message = resolveEasycom(vue.resolveDynamicComponent("uni-popup-message"), __easycom_2);
const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
vue.createElementVNode("view", { class: "top" }, [
vue.createElementVNode("image", {
class: "top_logo",
src: _imports_0,
mode: ""
}),
vue.createElementVNode("image", {
class: "tite",
src: _imports_1,
mode: ""
}),
vue.createElementVNode("view", { class: "time" }, [
vue.createElementVNode(
"view",
{ class: "time_top" },
vue.toDisplayString(_ctx.formattedTime),
1
/* TEXT */
),
vue.createElementVNode("view", { class: "time_bottom" }, [
vue.createElementVNode("view"),
vue.createElementVNode("view", { class: "time_bottom1" }, [
vue.createTextVNode(" 连接状态: "),
_ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "time_state"
}, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "time_state1"
}, " 离线 "))
])
])
])
]),
vue.createElementVNode("view", { class: "tap" }, [
vue.createElementVNode("view", { class: "tap_1" }, " AC "),
vue.createElementVNode("view", { class: "tap_2" }, " DC "),
vue.createElementVNode("view", { class: "tap_3" }, " System ")
]),
vue.createElementVNode("view", { class: "power" }, [
vue.createElementVNode("view", { class: "power_1" }, [
_ctx.selectorid != 3 && _ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
key: 0,
src: _imports_2$2,
mode: ""
})) : (vue.openBlock(), vue.createElementBlock("image", {
key: 1,
src: _imports_3$1,
mode: "",
onClick: _cache[0] || (_cache[0] = ($event) => $options.onclick(3))
}))
]),
vue.createElementVNode("view", { class: "power_1" }, [
_ctx.selectorid != 2 && _ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
key: 0,
src: _imports_4$3,
mode: ""
})) : (vue.openBlock(), vue.createElementBlock("image", {
key: 1,
src: _imports_5$2,
mode: "",
onClick: _cache[1] || (_cache[1] = ($event) => $options.onclick(2))
}))
]),
vue.createElementVNode("view", { class: "power_1" }, [
_ctx.selectorid != 4 && _ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
key: 0,
src: _imports_6$1,
mode: ""
})) : (vue.openBlock(), vue.createElementBlock("image", {
key: 1,
src: _imports_7$1,
mode: "",
onClick: _cache[2] || (_cache[2] = ($event) => $options.onclick(4))
}))
]),
vue.createElementVNode("view", { class: "power_1" }, [
_ctx.selectorid != 1 && _ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
key: 0,
src: _imports_8$1,
mode: ""
})) : (vue.openBlock(), vue.createElementBlock("image", {
key: 1,
src: _imports_9$1,
mode: "",
onClick: _cache[3] || (_cache[3] = ($event) => $options.onclick(1))
}))
]),
vue.createElementVNode("view", {
class: "power_5",
onClick: _cache[4] || (_cache[4] = (...args) => $options.system && $options.system(...args))
}, [
vue.createElementVNode("image", {
src: _imports_10$1,
mode: ""
})
])
]),
_ctx.selectorindex == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "power_6"
}, [
vue.createElementVNode("image", {
src: _imports_11$1,
mode: ""
}),
vue.createTextVNode("若想重新选择模式,请返回之前模式停止以后再重新选择! ")
])) : vue.createCommentVNode("v-if", true),
vue.createVNode(
_component_uni_popup,
{
ref: "message",
type: "message"
},
{
default: vue.withCtx(() => [
vue.createVNode(_component_uni_popup_message, {
type: "error",
message: $data.messageText,
duration: 2500
}, null, 8, ["message"])
]),
_: 1
/* STABLE */
},
512
/* NEED_PATCH */
)
]);
}
const PagesIndexIndex = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b], ["__scopeId", "data-v-1cf27b2a"], ["__file", "D:/project/esswisdom_ipad/pages/index/index.vue"]]);
const isObject = (val) => val !== null && typeof val === "object";
const defaultDelimiters = ["{", "}"];
class BaseFormatter {
constructor() {
this._caches = /* @__PURE__ */ Object.create(null);
}
interpolate(message, values, delimiters = defaultDelimiters) {
if (!values) {
return [message];
}
let tokens = this._caches[message];
if (!tokens) {
tokens = parse(message, delimiters);
this._caches[message] = tokens;
}
return compile(tokens, values);
}
}
const RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
const RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
function parse(format, [startDelimiter, endDelimiter]) {
const tokens = [];
let position = 0;
let text = "";
while (position < format.length) {
let char = format[position++];
if (char === startDelimiter) {
if (text) {
tokens.push({ type: "text", value: text });
}
text = "";
let sub = "";
char = format[position++];
while (char !== void 0 && char !== endDelimiter) {
sub += char;
char = format[position++];
}
const isClosed = char === endDelimiter;
const type = RE_TOKEN_LIST_VALUE.test(sub) ? "list" : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? "named" : "unknown";
tokens.push({ value: sub, type });
} else {
text += char;
}
}
text && tokens.push({ type: "text", value: text });
return tokens;
}
function compile(tokens, values) {
const compiled = [];
let index = 0;
const mode = Array.isArray(values) ? "list" : isObject(values) ? "named" : "unknown";
if (mode === "unknown") {
return compiled;
}
while (index < tokens.length) {
const token = tokens[index];
switch (token.type) {
case "text":
compiled.push(token.value);
break;
case "list":
compiled.push(values[parseInt(token.value, 10)]);
break;
case "named":
if (mode === "named") {
compiled.push(values[token.value]);
} else {
{
console.warn(`Type of token '${token.type}' and format of value '${mode}' don't match!`);
}
}
break;
case "unknown":
{
console.warn(`Detect 'unknown' type of token!`);
}
break;
}
index++;
}
return compiled;
}
const LOCALE_ZH_HANS = "zh-Hans";
const LOCALE_ZH_HANT = "zh-Hant";
const LOCALE_EN = "en";
const LOCALE_FR = "fr";
const LOCALE_ES = "es";
const hasOwnProperty = Object.prototype.hasOwnProperty;
const hasOwn = (val, key) => hasOwnProperty.call(val, key);
const defaultFormatter = new BaseFormatter();
function include(str, parts) {
return !!parts.find((part) => str.indexOf(part) !== -1);
}
function startsWith(str, parts) {
return parts.find((part) => str.indexOf(part) === 0);
}
function normalizeLocale(locale, messages2) {
if (!locale) {
return;
}
locale = locale.trim().replace(/_/g, "-");
if (messages2 && messages2[locale]) {
return locale;
}
locale = locale.toLowerCase();
if (locale === "chinese") {
return LOCALE_ZH_HANS;
}
if (locale.indexOf("zh") === 0) {
if (locale.indexOf("-hans") > -1) {
return LOCALE_ZH_HANS;
}
if (locale.indexOf("-hant") > -1) {
return LOCALE_ZH_HANT;
}
if (include(locale, ["-tw", "-hk", "-mo", "-cht"])) {
return LOCALE_ZH_HANT;
}
return LOCALE_ZH_HANS;
}
let locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
if (messages2 && Object.keys(messages2).length > 0) {
locales = Object.keys(messages2);
}
const lang = startsWith(locale, locales);
if (lang) {
return lang;
}
}
class I18n {
constructor({ locale, fallbackLocale, messages: messages2, watcher, formater: formater2 }) {
this.locale = LOCALE_EN;
this.fallbackLocale = LOCALE_EN;
this.message = {};
this.messages = {};
this.watchers = [];
if (fallbackLocale) {
this.fallbackLocale = fallbackLocale;
}
this.formater = formater2 || defaultFormatter;
this.messages = messages2 || {};
this.setLocale(locale || LOCALE_EN);
if (watcher) {
this.watchLocale(watcher);
}
}
setLocale(locale) {
const oldLocale = this.locale;
this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
if (!this.messages[this.locale]) {
this.messages[this.locale] = {};
}
this.message = this.messages[this.locale];
if (oldLocale !== this.locale) {
this.watchers.forEach((watcher) => {
watcher(this.locale, oldLocale);
});
}
}
getLocale() {
return this.locale;
}
watchLocale(fn) {
const index = this.watchers.push(fn) - 1;
return () => {
this.watchers.splice(index, 1);
};
}
add(locale, message, override = true) {
const curMessages = this.messages[locale];
if (curMessages) {
if (override) {
Object.assign(curMessages, message);
} else {
Object.keys(message).forEach((key) => {
if (!hasOwn(curMessages, key)) {
curMessages[key] = message[key];
}
});
}
} else {
this.messages[locale] = message;
}
}
f(message, values, delimiters) {
return this.formater.interpolate(message, values, delimiters).join("");
}
t(key, locale, values) {
let message = this.message;
if (typeof locale === "string") {
locale = normalizeLocale(locale, this.messages);
locale && (message = this.messages[locale]);
} else {
values = locale;
}
if (!hasOwn(message, key)) {
console.warn(`Cannot translate the value of keypath ${key}. Use the value of keypath as default.`);
return key;
}
return this.formater.interpolate(message[key], values).join("");
}
}
function watchAppLocale(appVm, i18n) {
if (appVm.$watchLocale) {
appVm.$watchLocale((newLocale) => {
i18n.setLocale(newLocale);
});
} else {
appVm.$watch(() => appVm.$locale, (newLocale) => {
i18n.setLocale(newLocale);
});
}
}
function getDefaultLocale() {
if (typeof uni !== "undefined" && uni.getLocale) {
return uni.getLocale();
}
if (typeof global !== "undefined" && global.getLocale) {
return global.getLocale();
}
return LOCALE_EN;
}
function initVueI18n(locale, messages2 = {}, fallbackLocale, watcher) {
if (typeof locale !== "string") {
const options = [
messages2,
locale
];
locale = options[0];
messages2 = options[1];
}
if (typeof locale !== "string") {
locale = getDefaultLocale();
}
if (typeof fallbackLocale !== "string") {
fallbackLocale = typeof __uniConfig !== "undefined" && __uniConfig.fallbackLocale || LOCALE_EN;
}
const i18n = new I18n({
locale,
fallbackLocale,
messages: messages2,
watcher
});
let t2 = (key, values) => {
if (typeof getApp !== "function") {
t2 = function(key2, values2) {
return i18n.t(key2, values2);
};
} else {
let isWatchedAppLocale = false;
t2 = function(key2, values2) {
const appVm = getApp().$vm;
if (appVm) {
appVm.$locale;
if (!isWatchedAppLocale) {
isWatchedAppLocale = true;
watchAppLocale(appVm, i18n);
}
}
return i18n.t(key2, values2);
};
}
return t2(key, values);
};
return {
i18n,
f(message, values, delimiters) {
return i18n.f(message, values, delimiters);
},
t(key, values) {
return t2(key, values);
},
add(locale2, message, override = true) {
return i18n.add(locale2, message, override);
},
watch(fn) {
return i18n.watchLocale(fn);
},
getLocale() {
return i18n.getLocale();
},
setLocale(newLocale) {
return i18n.setLocale(newLocale);
}
};
}
const en$1 = {
"uni-popup.cancel": "cancel",
"uni-popup.ok": "ok",
"uni-popup.placeholder": "pleace enter",
"uni-popup.title": "Hint",
"uni-popup.shareTitle": "Share to"
};
const zhHans$1 = {
"uni-popup.cancel": "取消",
"uni-popup.ok": "确定",
"uni-popup.placeholder": "请输入",
"uni-popup.title": "提示",
"uni-popup.shareTitle": "分享到"
};
const zhHant$1 = {
"uni-popup.cancel": "取消",
"uni-popup.ok": "確定",
"uni-popup.placeholder": "請輸入",
"uni-popup.title": "提示",
"uni-popup.shareTitle": "分享到"
};
const messages$1 = {
en: en$1,
"zh-Hans": zhHans$1,
"zh-Hant": zhHant$1
};
const {
t: t$1
} = initVueI18n(messages$1);
const _sfc_main$b = {
name: "uniPopupDialog",
mixins: [popup],
emits: ["confirm", "close", "update:modelValue", "input"],
props: {
inputType: {
type: String,
default: "text"
},
showClose: {
type: Boolean,
default: true
},
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: false
},
cancelText: {
type: String,
default: ""
},
confirmText: {
type: String,
default: ""
},
maxlength: {
type: Number,
default: -1
},
focus: {
type: Boolean,
default: true
}
},
data() {
return {
dialogType: "error",
val: ""
};
},
computed: {
okText() {
return this.confirmText || t$1("uni-popup.ok");
},
closeText() {
return this.cancelText || t$1("uni-popup.cancel");
},
placeholderText() {
return this.placeholder || t$1("uni-popup.placeholder");
},
titleText() {
return this.title || t$1("uni-popup.title");
}
},
watch: {
type(val) {
this.dialogType = val;
},
mode(val) {
if (val === "input") {
this.dialogType = "info";
}
},
value(val) {
if (this.maxlength != -1 && this.mode === "input") {
this.val = val.slice(0, this.maxlength);
} else {
this.val = val;
}
},
val(val) {
this.$emit("update:modelValue", val);
}
},
created() {
this.popup.disableMask();
if (this.mode === "input") {
this.dialogType = "info";
this.val = this.value;
this.val = this.modelValue;
} else {
this.dialogType = this.type;
}
},
methods: {
/**
* 点击确认按钮
*/
onOk() {
if (this.mode === "input") {
this.$emit("confirm", this.val);
} else {
this.$emit("confirm");
}
if (this.beforeClose)
return;
this.popup.close();
},
/**
* 点击取消按钮
*/
closeDialog() {
this.$emit("close");
if (this.beforeClose)
return;
this.popup.close();
},
close() {
this.popup.close();
}
}
};
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createElementBlock("view", { class: "uni-popup-dialog" }, [
vue.createElementVNode("view", { class: "uni-dialog-title" }, [
vue.createElementVNode(
"text",
{
class: vue.normalizeClass(["uni-dialog-title-text", ["uni-popup__" + $data.dialogType]])
},
vue.toDisplayString($options.titleText),
3
/* TEXT, CLASS */
)
]),
$props.mode === "base" ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "uni-dialog-content"
}, [
vue.renderSlot(_ctx.$slots, "default", {}, () => [
vue.createElementVNode(
"text",
{ class: "uni-dialog-content-text" },
vue.toDisplayString($props.content),
1
/* TEXT */
)
], true)
])) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "uni-dialog-content"
}, [
vue.renderSlot(_ctx.$slots, "default", {}, () => [
vue.withDirectives(vue.createElementVNode("input", {
class: "uni-dialog-input",
maxlength: $props.maxlength,
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.val = $event),
type: $props.inputType,
placeholder: $options.placeholderText,
focus: $props.focus
}, null, 8, ["maxlength", "type", "placeholder", "focus"]), [
[vue.vModelDynamic, $data.val]
])
], true)
])),
vue.createElementVNode("view", { class: "uni-dialog-button-group" }, [
$props.showClose ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "uni-dialog-button",
onClick: _cache[1] || (_cache[1] = (...args) => $options.closeDialog && $options.closeDialog(...args))
}, [
vue.createElementVNode(
"text",
{ class: "uni-dialog-button-text" },
vue.toDisplayString($options.closeText),
1
/* TEXT */
)
])) : vue.createCommentVNode("v-if", true),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass(["uni-dialog-button", $props.showClose ? "uni-border-left" : ""]),
onClick: _cache[2] || (_cache[2] = (...args) => $options.onOk && $options.onOk(...args))
},
[
vue.createElementVNode(
"text",
{ class: "uni-dialog-button-text uni-button-color" },
vue.toDisplayString($options.okText),
1
/* TEXT */
)
],
2
/* CLASS */
)
])
]);
}
const __easycom_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$a], ["__scopeId", "data-v-d78c88b7"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue"]]);
class Gauge {
constructor({
canvasId,
startAngle = 2.8 / 3 * Math.PI,
// 135
endAngle = 0.13 / 2 * Math.PI,
// 45
width = 180,
min = 0,
max = 100,
value = 0,
unit = "%",
showTick = false,
valueColor = "#555",
progressColor = "#f58220",
trackColor = "#F1F1F1",
lineWidth = 10
}) {
this.ctx = uni.createCanvasContext(canvasId);
this.startAngle = startAngle;
this.endAngle = endAngle;
this.width = width;
this.min = min;
this.max = max;
this.value = value;
this.unit = unit;
this.showTick = showTick;
this.valueColor = valueColor;
this.progressColor = progressColor;
this.trackColor = trackColor;
this.lineWidth = lineWidth;
this.radius = this.width / 2;
this.process = min || -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();
if (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 valueRad = this.getValueRad();
this.ctx.beginPath();
this.ctx.lineWidth = this.lineWidth;
this.ctx.strokeStyle = typeof this.progressColor === "string" ? this.progressColor : this.getGradient(this.progressColor);
this.ctx.lineJoin = "round";
this.ctx.arc(0, 0, this.trackRadius, this.startAngle, valueRad);
this.ctx.stroke();
this.ctx.restore();
}
// 刻度线
drawTick() {
let deg = this.startAngle;
for (let i = this.min; i <= this.max; i++) {
this.ctx.save();
this.ctx.lineWidth = 1;
this.ctx.strokeStyle = "#999";
this.ctx.beginPath();
let x0 = (this.radius - this.lineWidth - 2) * Math.cos(deg);
let y0 = (this.radius - this.lineWidth - 2) * Math.sin(deg);
var x1 = (this.radius - this.lineWidth - 8) * Math.cos(deg);
var y1 = (this.radius - this.lineWidth - 8) * Math.sin(deg);
this.ctx.moveTo(x0, y0);
this.ctx.lineTo(x1, y1);
deg += this.tickRad;
this.ctx.stroke();
this.ctx.restore();
}
}
// 刻度值
drawTickText() {
let deg = this.startAngle;
for (let i = this.min; i <= this.max; i++) {
let x = (this.radius - this.lineWidth - 20) * Math.cos(deg);
let y = (this.radius - this.lineWidth - 20) * Math.sin(deg);
deg += 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(i, x, y);
this.ctx.restore();
}
}
// 当前值的弧度
getValueRad() {
if (this.value > this.max) {
return (this.max - this.min) * this.tickRad + this.startAngle;
}
return (this.process - this.min) * this.tickRad + this.startAngle;
}
start() {
let update = () => {
this.process = this.process + (this.max - this.min) / 100;
if (this.process > this.value) {
uni.cancelAnimationFrame(update);
} else {
this.draw();
uni.requestAnimationFrame(update);
}
};
uni.requestAnimationFrame(update);
}
// 渐变
getGradient(colorList) {
let grd = this.ctx.createLinearGradient(0, 0, this.trackRadius, 0);
colorList.forEach((color, index) => {
grd.addColorStop(index / (colorList.length - 1), color);
});
return grd;
}
}
uni.requestAnimationFrame = function(callback) {
var lastTime = 0;
var currTime = (/* @__PURE__ */ new Date()).getTime();
var timeToCall = Math.max(0, 16 - (currTime - lastTime));
var id = setTimeout(function() {
callback(currTime + timeToCall);
}, timeToCall);
lastTime = currTime + timeToCall;
return id;
};
uni.cancelAnimationFrame = function(id) {
clearTimeout(id);
};
(function() {
var vendors = ["webkit", "moz", "ms", "o"];
for (var x = 0; x < vendors.length && !uni.requestAnimationFrame; ++x) {
uni.requestAnimationFrame = uni[vendors[x] + "RequestAnimationFrame"];
uni.cancelAnimationFrame = uni[vendors[x] + "CancelAnimationFrame"] || uni[vendors[x] + "CancelRequestAnimationFrame"];
}
if (!uni.requestAnimationFrame)
uni.requestAnimationFrame = function(callback) {
return setTimeout(callback, 16);
};
if (!uni.cancelAnimationFrame)
uni.cancelAnimationFrame = function(id) {
clearTimeout(id);
};
})();
const _sfc_main$a = {
name: "gauge",
data() {
return {};
},
computed: {
...mapState({
uidatasdata: (state) => state.uidatasdata
})
},
mounted() {
let SOC = "";
if ((this.$store.state.uidatasdata.SOC * 1).toFixed(0)) {
SOC = (this.$store.state.uidatasdata.SOC * 1).toFixed(0);
} else {
SOC = 10;
}
new Gauge({
canvasId: "canvas2",
value: SOC,
lineWidth: 20,
progressColor: ["#B0D0FF", "#5B8FF9"],
valueColor: "blue"
});
}
};
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createElementBlock("view", { class: "gauge-container" }, [
vue.createElementVNode("canvas", {
class: "canvas",
"canvas-id": "canvas2"
})
]);
}
const JerryGauge = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9], ["__scopeId", "data-v-fca24c1c"], ["__file", "D:/project/esswisdom_ipad/uni_modules/jerry-gauge/index.vue"]]);
const _imports_2$1 = "/static/dian1.png";
const _imports_3 = "/static/dian2.png";
const _imports_4$2 = "/static/che.png";
const _imports_5$1 = "/static/y8.png";
const _imports_6 = "/static/y6.png";
const _imports_7 = "/static/SOC.png";
const _imports_8 = "/static/Battery.png";
const _imports_9 = "/static/setup.png";
const _imports_10 = "/static/home.png";
const _imports_11 = "/static/home1.png";
const _sfc_main$9 = {
components: {
JerryGauge
},
data() {
return {
successtype: "success",
confirmText: "确认启动",
title: "你确定要开启该设备吗?",
content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
value: "",
modeinput: "",
segmented: 1,
uidatas: "",
formatTimeid: "",
faultsdata: []
};
},
onLoad() {
},
computed: {
// 使用 mapState 映射多个状态到组件的计算属性
...mapState(["formattedTime", "status"]),
...mapState({
uidatasdata: (state) => state.uidatasdata
})
},
mounted() {
this.onfaultsdata();
},
beforeUnmount() {
if (this.scrollInterval) {
clearInterval(this.scrollInterval);
}
},
watch: {
uidatasdata: {
handler(newVal, oldVal) {
this.handleDataChange(newVal);
},
deep: true
// 监听深层次的变化
}
},
methods: {
handleDataChange(newData) {
},
onfaultsdata() {
let data = {
page: 1,
rows: 1e3,
device: "",
starttime: "",
endtime: "",
rt: 1,
type: ""
};
getfaultsList(data).then((res) => {
formatAppLog("log", "at pages/home/index.vue:616", res);
if (res.status == "ok") {
this.faultsdata = res.data.list;
}
});
},
// 返回首页
onreturn() {
uni.redirectTo({
url: "/pages/index/index"
});
},
// 启动设备弹窗
dialogToggle() {
this.modeinput = "base";
this.successtype = "success";
this.confirmText = "确认启动";
this.title = "你确定要开启该设备吗?";
this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
this.$refs.alertDialog.open();
},
onstopit() {
this.modeinput = "base";
this.successtype = "error";
this.confirmText = "确认停止";
this.title = "你确定要停止该设备吗?";
this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
this.$refs.alertDialog.open();
},
onpower() {
this.modeinput = "input";
this.title = "功率给定";
this.confirmText = "确认";
this.$refs.alertDialog.open();
},
// this.uidatasdata.AC_In_380V_63A1_Status==0
// this.messageText = '需将AC输出端63A1的开关手动断开'
// this.$refs.message.open()
// this.uidatasdata.AC_In_380V_63A2_Status==0
// this.messageText = '需将AC输出端63A2的开关手动断开'
// this.$refs.message.open()
// 确定
dialogConfirm() {
let uidatasdata = this.$store.state.uidatasdata;
let data = {};
if (this.title == "功率给定") {
data = {
id: "e612195b-cf9e-418b-9e2d-0fbae9b03ffa",
issaveinitvalue: false,
value: this.value
};
} else {
data = {
id: "c35c4db0-113f-442a-9e26-728489265fdb",
issaveinitvalue: false,
value: this.confirmText == "确认启动" ? "1" : "0"
};
}
if (this.confirmText == "确认启动") {
if (uidatasdata.AC_Out_380V_125A_Status == 0 || uidatasdata.AC_Out_380V_63A_Status == 0 || uidatasdata.AC_Out_220V_16A_Status == 0) {
this.messageText = "AC补电时AC输出端应全部断开";
this.$refs.message.open();
return;
}
}
control(data).then((data2) => {
formatAppLog("log", "at pages/home/index.vue:687", data2);
if (data2.status == "ok") {
if (this.title == "功率给定") {
plus.navigator.hideSystemNavigation();
}
this.$refs.alertDialog.close();
uni.showToast({
title: "操作成功",
icon: "none",
duration: 2e3
// 显示时长,单位为毫秒
});
} else {
this.$refs.alertDialog.close();
uni.showToast({
title: "操作失败",
icon: "none",
// 使用 'none' 图标来表示失败
duration: 2e3
// 显示时长,单位为毫秒
});
}
});
},
dialogClose() {
if (this.title == "功率给定") {
plus.navigator.hideSystemNavigation();
}
this.$refs.alertDialog.close();
},
ontap(e) {
formatAppLog("log", "at pages/home/index.vue:717", e);
this.segmented = e;
}
}
};
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
const _component_jerry_gauge = vue.resolveComponent("jerry-gauge");
const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
const _component_uni_popup_message = resolveEasycom(vue.resolveDynamicComponent("uni-popup-message"), __easycom_2);
return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
vue.createElementVNode("view", { class: "top" }, [
vue.createElementVNode("image", {
class: "top_logo",
src: _imports_0,
mode: ""
}),
vue.createElementVNode("image", {
class: "tite",
src: _imports_1,
mode: ""
}),
vue.createElementVNode("view", { class: "time" }, [
vue.createElementVNode(
"view",
{ class: "time_top" },
vue.toDisplayString(_ctx.formattedTime),
1
/* TEXT */
),
vue.createElementVNode("view", { class: "time_bottom" }, [
vue.createElementVNode("view"),
vue.createElementVNode("view", { class: "time_bottom1" }, [
vue.createTextVNode(" 连接状态: "),
_ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "time_state"
}, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "time_state1"
}, " 离线 "))
])
])
])
]),
vue.createElementVNode("view", { class: "parameter" }, [
vue.createElementVNode("view", { class: "parameter_left" }, [
vue.createElementVNode("view", { class: "parameter_left1" }, [
vue.createVNode(_component_jerry_gauge),
vue.createElementVNode("view", { class: "parameter_canvas" }, [
vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
])
]),
vue.createElementVNode("image", {
class: "parameter_leftdian1",
src: _imports_2$1,
alt: ""
}),
vue.createElementVNode("view", { class: "parameter_lef2" }, [
vue.createElementVNode("image", {
src: _imports_3,
mode: ""
})
]),
vue.createElementVNode("image", {
class: "parameter_leftche",
src: _imports_4$2,
mode: ""
}),
vue.createCommentVNode(' '),
vue.createCommentVNode(' '),
vue.createCommentVNode(' '),
vue.createElementVNode("view", { class: "parameter_leftview" }, "交流补电"),
vue.createCommentVNode(' 交流供电 '),
vue.createCommentVNode(' 直流补电 '),
vue.createCommentVNode(' 直流供电 ')
]),
vue.createElementVNode("view", { class: "parameter_right" }, [
vue.createElementVNode("view", { class: "parameter_righttop" }, [
vue.createElementVNode("view", { class: "parameter_1" }, [
vue.createElementVNode("view", { class: "parameter_2" }, [
vue.createElementVNode("view", { class: "parameter_3" }, [
vue.createElementVNode("view", { class: "parameter_4" }, [
_ctx.uidatasdata.AC_In_380V_63A1_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
key: 0,
src: _imports_5$1,
mode: ""
})) : (vue.openBlock(), vue.createElementBlock("image", {
key: 1,
src: _imports_6,
mode: ""
})),
vue.createTextVNode(" 63A1状态 ")
]),
_ctx.uidatasdata.AC_In_380V_63A1_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_51"
}, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_5"
}, " 断开 "))
]),
vue.createElementVNode("view", { class: "parameter_3" }, [
vue.createElementVNode("view", { class: "parameter_4" }, [
_ctx.uidatasdata.AC_In_380V_63A2_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
key: 0,
src: _imports_5$1,
mode: ""
})) : (vue.openBlock(), vue.createElementBlock("image", {
key: 1,
src: _imports_6,
mode: ""
})),
vue.createTextVNode(" 63A2状态 ")
]),
_ctx.uidatasdata.AC_In_380V_63A2_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_51"
}, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_5"
}, " 断开 "))
])
]),
vue.createElementVNode("view", { class: "parameter_SOC" }, [
vue.createElementVNode("image", {
src: _imports_7,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_SOCright" }, [
vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
vue.createElementVNode("view", null, [
vue.createElementVNode(
"text",
{ class: "parameter_SOCright2" },
vue.toDisplayString(_ctx.uidatasdata.SOC),
1
/* TEXT */
),
vue.createTextVNode(),
vue.createElementVNode("text", null, "%")
])
])
]),
vue.createElementVNode("view", { class: "parameter_Battery" }, [
vue.createElementVNode("image", {
src: _imports_8,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_SOCright" }, [
vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
_ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
])
])
]),
vue.createElementVNode("view", { class: "parameter_state" }, [
vue.createElementVNode("image", {
src: _imports_9,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_SOCright" }, [
vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
])
])
])
])
]),
vue.createElementVNode("view", { class: "parameter_tap" }, [
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
},
" 交流信息 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
},
" 电池信息 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
},
" 统计信息 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
},
" 液冷信息 ",
2
/* CLASS */
)
]),
vue.createElementVNode("view", {
class: "parameter_zheng",
key: "index"
}, [
$data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng1" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.PCSPortAPhaseVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.PCSPortBPhaseVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.PCSPortCPhaseVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 补电电量 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.PCSACChargeEnergy) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
])
])
]),
vue.createElementVNode("view", { class: "parameter_zheng2" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata["PCSOutputA-phaseCurrent"]) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata["PCSOutputB-phaseCurrent"]) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata["PCSOutputC-phaseCurrent"]) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 补电功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.PCSTotalOutputPower) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
])
])
])) : vue.createCommentVNode("v-if", true),
$data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng1" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.DchChgCurPowLimit_MaxChargePowerLimit) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
])
]),
vue.createElementVNode("view", { class: "parameter_zheng2" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatCur) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVOut) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingInformation_Chg_Max_Cur) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMinCellVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
])
])
])) : vue.createCommentVNode("v-if", true),
$data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 2,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng10" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng101" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
])
])
])) : vue.createCommentVNode("v-if", true),
$data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 3,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng1" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} kW '),
vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
])
]),
vue.createElementVNode("view", { class: "parameter_zheng2" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
])
])
])
])) : vue.createCommentVNode("v-if", true),
vue.createElementVNode("view", { class: "parameter_zheng3" }, [
_ctx.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_zheng31111"
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
])
])) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_zheng31111",
onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
])
])),
_ctx.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 2,
class: "parameter_zheng31111"
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
])
])) : (vue.openBlock(), vue.createElementBlock("view", {
key: 3,
class: "parameter_zheng31111",
onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
])
])),
vue.createElementVNode("view", {
class: "parameter_zheng31111",
onClick: _cache[6] || (_cache[6] = (...args) => $options.onpower && $options.onpower(...args))
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng34" }, [
vue.createElementVNode("view", null, " 功率 "),
vue.createElementVNode("view", null, " 给定 ")
])
])
])
])
]),
vue.createElementVNode("view", { class: "parameter_home" }, [
vue.createElementVNode("view", {
class: "parameter_home1",
onClick: _cache[7] || (_cache[7] = (...args) => $options.onreturn && $options.onreturn(...args))
}, [
vue.createElementVNode("image", {
src: _imports_10,
mode: ""
}),
vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
]),
vue.createElementVNode("view", { class: "parameter_home2" }, [
vue.createElementVNode("image", {
src: _imports_11,
mode: ""
}),
vue.createElementVNode("swiper", {
class: "swiper",
circular: "",
autoplay: true,
interval: 2e3,
duration: 500,
vertical: true
}, [
(vue.openBlock(true), vue.createElementBlock(
vue.Fragment,
null,
vue.renderList($data.faultsdata, (item, index) => {
return vue.openBlock(), vue.createElementBlock("swiper-item", { key: index }, [
vue.createElementVNode(
"view",
{ class: "parameter_home3" },
vue.toDisplayString(item["CONTENT"]),
1
/* TEXT */
)
]);
}),
128
/* KEYED_FRAGMENT */
))
])
])
])
])
]),
vue.createVNode(
_component_uni_popup,
{ ref: "alertDialog" },
{
default: vue.withCtx(() => [
vue.createVNode(_component_uni_popup_dialog, {
mode: $data.modeinput,
placeholder: "功率给定(0~80kW)",
modelValue: $data.value,
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.value = $event),
focus: false,
type: $data.successtype,
cancelText: "取消返回",
confirmText: $data.confirmText,
beforeClose: true,
title: $data.title,
content: $data.content,
onConfirm: $options.dialogConfirm,
onClose: $options.dialogClose
}, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
]),
_: 1
/* STABLE */
},
512
/* NEED_PATCH */
),
vue.createVNode(
_component_uni_popup,
{
ref: "message",
type: "message"
},
{
default: vue.withCtx(() => [
vue.createVNode(_component_uni_popup_message, {
type: "error",
message: _ctx.messageText,
duration: 3e3
}, null, 8, ["message"])
]),
_: 1
/* STABLE */
},
512
/* NEED_PATCH */
)
]);
}
const PagesHomeIndex = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8], ["__scopeId", "data-v-4978fed5"], ["__file", "D:/project/esswisdom_ipad/pages/home/index.vue"]]);
const _sfc_main$8 = {
props: {
visible: Boolean,
color: {
type: String,
default: "#303133"
},
placement: {
type: String,
default: "top"
},
content: {
type: String,
default: ""
},
show: {
type: Boolean,
default: false
}
},
data() {
return {
isShow: this.visible,
title: "Hello",
arrowLeft: 0,
query: null,
style: {},
arrowStyle: {}
};
},
onLoad() {
},
watch: {
isShow: {
handler(val) {
this.$emit("update:visible", val);
},
immediate: true
},
visible: {
handler(val) {
if (val) {
this.$nextTick(() => {
this.getPosition();
});
}
this.isShow = val;
},
immediate: true
}
},
mounted() {
this.getPosition();
},
methods: {
close() {
this.isShow = false;
},
fixedWrap() {
this.isShow = false;
},
async handleClick() {
if (this.isShow) {
return this.isShow = false;
}
await this.getPosition();
this.isShow = true;
},
getPosition() {
return new Promise((resolve) => {
uni.createSelectorQuery().in(this).selectAll(".zb_tooltip_content,.zb_tooltip__popper").boundingClientRect(async (data) => {
let { left, bottom, right, top, width, height } = data[0];
let obj1 = data[1];
let objStyle = {};
let objStyle1 = {};
switch (this.placement) {
case "top":
if (obj1.width > width) {
objStyle.left = `-${(obj1.width - width) / 2}px`;
} else {
objStyle.left = `${Math.abs(obj1.width - width) / 2}px`;
}
objStyle.bottom = `${height + 8}px`;
objStyle1.left = obj1.width / 2 - 6 + "px";
break;
case "top-start":
objStyle.left = `0px`;
objStyle.bottom = `${height + 8}px`;
break;
case "top-end":
objStyle.right = `0px`;
objStyle.bottom = `${height + 8}px`;
objStyle1.right = `8px`;
break;
case "bottom":
if (obj1.width > width) {
objStyle.left = `-${(obj1.width - width) / 2}px`;
} else {
objStyle.left = `${Math.abs(obj1.width - width) / 2}px`;
}
objStyle.top = `${height + 8}px`;
objStyle1.left = obj1.width / 2 - 6 + "px";
break;
case "bottom-start":
objStyle.left = `0px`;
objStyle.top = `${height + 8}px`;
objStyle1.left = `8px`;
break;
case "bottom-end":
objStyle.right = `0px`;
objStyle.top = `${height + 8}px`;
objStyle1.right = `8px`;
break;
case "right":
objStyle.left = `${width + 8}px`;
if (obj1.height > height) {
objStyle.top = `-${(obj1.height - height) / 2}px`;
} else {
objStyle.top = `${Math.abs((obj1.height - height) / 2)}px`;
}
objStyle1.top = `${obj1.height / 2 - 6}px`;
break;
case "right-start":
objStyle.left = `${width + 8}px`;
objStyle.top = `0px`;
objStyle1.top = `8px`;
break;
case "right-end":
objStyle.left = `${width + 8}px`;
objStyle.bottom = `0px`;
objStyle1.bottom = `8px`;
break;
case "left":
objStyle.right = `${width + 8}px`;
if (obj1.height > height) {
objStyle.top = `-${(obj1.height - height) / 2}px`;
} else {
objStyle.top = `${Math.abs((obj1.height - height) / 2)}px`;
}
objStyle1.top = `${obj1.height / 2 - 6}px`;
break;
case "left-start":
objStyle.right = `${width + 8}px`;
objStyle.top = `0px`;
objStyle1.top = `8px`;
break;
case "left-end":
objStyle.right = `${width + 8}px`;
objStyle.bottom = `0px`;
objStyle1.bottom = `8px`;
break;
}
this.style = objStyle;
this.arrowStyle = objStyle1;
resolve();
}).exec();
});
}
}
};
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createElementBlock(
"view",
{
class: "zb-tooltip",
style: vue.normalizeStyle({
"--theme-bg-color": $props.color
})
},
[
vue.createElementVNode("view", {
class: "zb_tooltip_content",
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => $options.handleClick && $options.handleClick(...args), ["stop"]))
}, [
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true),
vue.createElementVNode(
"view",
{
class: "zb_tooltip__popper",
onClick: vue.withModifiers(() => {
}, ["stop"]),
style: vue.normalizeStyle([$data.style, {
visibility: $data.isShow ? "visible" : "hidden",
color: $props.color === "white" ? "" : "#fff",
boxShadow: $props.color === "white" ? "0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d" : ""
}])
},
[
vue.renderSlot(_ctx.$slots, "content", {}, () => [
vue.createTextVNode(
vue.toDisplayString($props.content),
1
/* TEXT */
)
], true),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass(["zb_popper__icon", [{
"zb_popper__up": $props.placement.indexOf("bottom") === 0,
"zb_popper__arrow": $props.placement.indexOf("top") === 0,
"zb_popper__right": $props.placement.indexOf("right") === 0,
"zb_popper__left": $props.placement.indexOf("left") === 0
}]]),
style: vue.normalizeStyle([$data.arrowStyle])
},
null,
6
/* CLASS, STYLE */
)
],
4
/* STYLE */
)
])
],
4
/* STYLE */
);
}
const __easycom_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7], ["__scopeId", "data-v-13dad3a2"], ["__file", "D:/project/esswisdom_ipad/uni_modules/zb-tooltip/components/zb-tooltip/zb-tooltip.vue"]]);
const fontData = [
{
"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 getVal = (val) => {
const reg = /^[0-9]*$/g;
return typeof val === "number" || reg.test(val) ? val + "px" : val;
};
const _sfc_main$7 = {
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() {
return {
icons: fontData
};
},
computed: {
unicode() {
let code = this.icons.find((v) => v.font_class === this.type);
if (code) {
return code.unicode;
}
return "";
},
iconSize() {
return getVal(this.size);
},
styleObj() {
if (this.fontFamily !== "") {
return `color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`;
}
return `color: ${this.color}; font-size: ${this.iconSize};`;
}
},
methods: {
_onClick() {
this.$emit("click");
}
}
};
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createElementBlock(
"text",
{
style: vue.normalizeStyle($options.styleObj),
class: vue.normalizeClass(["uni-icons", ["uniui-" + $props.type, $props.customPrefix, $props.customPrefix ? $props.type : ""]]),
onClick: _cache[0] || (_cache[0] = (...args) => $options._onClick && $options._onClick(...args))
},
[
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
],
6
/* CLASS, STYLE */
);
}
const __easycom_0 = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6], ["__scopeId", "data-v-d31e1c47"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-icons/components/uni-icons/uni-icons.vue"]]);
const en = {
"uni-pagination.prevText": "prev",
"uni-pagination.nextText": "next",
"uni-pagination.piecePerPage": "piece/page"
};
const es = {
"uni-pagination.prevText": "anterior",
"uni-pagination.nextText": "prxima",
"uni-pagination.piecePerPage": "Art��culo/P��gina"
};
const fr = {
"uni-pagination.prevText": "précédente",
"uni-pagination.nextText": "suivante",
"uni-pagination.piecePerPage": "Articles/Pages"
};
const zhHans = {
"uni-pagination.prevText": "上一页",
"uni-pagination.nextText": "下一页",
"uni-pagination.piecePerPage": "条/页"
};
const zhHant = {
"uni-pagination.prevText": "上一頁",
"uni-pagination.nextText": "下一頁",
"uni-pagination.piecePerPage": "條/頁"
};
const messages = {
en,
es,
fr,
"zh-Hans": zhHans,
"zh-Hant": zhHant
};
const {
t
} = initVueI18n(messages);
const _sfc_main$6 = {
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: {
// 是否以 icon 形式展示按钮
type: [Boolean, String],
default: false
},
showPageSize: {
// 是否以 icon 形式展示按钮
type: [Boolean, String],
default: false
},
pagerCount: {
type: Number,
default: 5
},
pageSizeRange: {
type: Array,
default: () => [20, 50, 100, 500]
}
},
data() {
return {
pageSizeIndex: 0,
currentIndex: 1,
paperData: [],
pickerShow: false
};
},
computed: {
piecePerPage() {
return this.piecePerPageText || t("uni-pagination.piecePerPage");
},
prevPageText() {
return this.prevText || t("uni-pagination.prevText");
},
nextPageText() {
return this.nextText || t("uni-pagination.nextText");
},
maxPage() {
let maxPage = 1;
let total = Number(this.total);
let pageSize = Number(this.pageSize);
if (total && pageSize) {
maxPage = Math.ceil(total / pageSize);
}
return maxPage;
},
paper() {
const num = this.currentIndex;
const pagerCount = this.pagerCount;
const total = this.total;
const pageSize = this.pageSize;
let totalArr = [];
let showPagerArr = [];
let pagerNum = Math.ceil(total / pageSize);
for (let i = 0; i < pagerNum; i++) {
totalArr.push(i + 1);
}
showPagerArr.push(1);
const totalNum = totalArr[totalArr.length - (pagerCount + 1) / 2];
totalArr.forEach((item, index) => {
if ((pagerCount + 1) / 2 >= num) {
if (item < pagerCount + 1 && item > 1) {
showPagerArr.push(item);
}
} else if (num + 2 <= totalNum) {
if (item > num - (pagerCount + 1) / 2 && item < num + (pagerCount + 1) / 2) {
showPagerArr.push(item);
}
} else {
if ((item > num - (pagerCount + 1) / 2 || pagerNum - pagerCount < item) && item < totalArr[totalArr.length - 1]) {
showPagerArr.push(item);
}
}
});
if (pagerNum > pagerCount) {
if ((pagerCount + 1) / 2 >= num) {
showPagerArr[showPagerArr.length - 1] = "...";
} else if (num + 2 <= totalNum) {
showPagerArr[1] = "...";
showPagerArr[showPagerArr.length - 1] = "...";
} else {
showPagerArr[1] = "...";
}
showPagerArr.push(totalArr[totalArr.length - 1]);
} else {
if ((pagerCount + 1) / 2 >= num)
;
else if (num + 2 <= totalNum)
;
else {
showPagerArr.shift();
showPagerArr.push(totalArr[totalArr.length - 1]);
}
}
return showPagerArr;
}
},
watch: {
current: {
immediate: true,
handler(val, old) {
if (val < 1) {
this.currentIndex = 1;
} else {
this.currentIndex = val;
}
}
},
value: {
immediate: true,
handler(val) {
if (Number(this.current) !== 1)
return;
if (val < 1) {
this.currentIndex = 1;
} else {
this.currentIndex = val;
}
}
},
pageSizeIndex(val) {
this.$emit("pageSizeChange", this.pageSizeRange[val]);
}
},
methods: {
pickerChange(e) {
this.pageSizeIndex = e.detail.value;
this.pickerClick();
},
pickerClick() {
},
// 选择标签
selectPage(e, index) {
if (parseInt(e)) {
this.currentIndex = e;
this.change("current");
} else {
let pagerNum = Math.ceil(this.total / this.pageSize);
if (index <= 1) {
if (this.currentIndex - 5 > 1) {
this.currentIndex -= 5;
} else {
this.currentIndex = 1;
}
return;
}
if (index >= 6) {
if (this.currentIndex + 5 > pagerNum) {
this.currentIndex = pagerNum;
} else {
this.currentIndex += 5;
}
return;
}
}
},
clickLeft() {
if (Number(this.currentIndex) === 1) {
return;
}
this.currentIndex -= 1;
this.change("prev");
},
clickRight() {
if (Number(this.currentIndex) >= this.maxPage) {
return;
}
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
});
}
}
};
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_0);
return vue.openBlock(), vue.createElementBlock("view", { class: "uni-pagination" }, [
$props.showPageSize === true || $props.showPageSize === "true" ? (vue.openBlock(), vue.createElementBlock("picker", {
key: 0,
class: "select-picker",
mode: "selector",
value: $data.pageSizeIndex,
range: $props.pageSizeRange,
onChange: _cache[0] || (_cache[0] = (...args) => $options.pickerChange && $options.pickerChange(...args)),
onCancel: _cache[1] || (_cache[1] = (...args) => $options.pickerClick && $options.pickerClick(...args)),
onClick: _cache[2] || (_cache[2] = (...args) => $options.pickerClick && $options.pickerClick(...args))
}, [
vue.createElementVNode("button", {
type: "default",
size: "mini",
plain: true
}, [
vue.createElementVNode(
"text",
null,
vue.toDisplayString($props.pageSizeRange[$data.pageSizeIndex]) + " " + vue.toDisplayString($options.piecePerPage),
1
/* TEXT */
),
vue.createVNode(_component_uni_icons, {
class: "select-picker-icon",
type: "arrowdown",
size: "12",
color: "#999"
})
])
], 40, ["value", "range"])) : vue.createCommentVNode("v-if", true),
vue.createElementVNode(
"view",
{ class: "uni-pagination__total is-phone-hide" },
"共 " + vue.toDisplayString($props.total) + " 条",
1
/* TEXT */
),
vue.createElementVNode("view", {
class: vue.normalizeClass(["uni-pagination__btn", $data.currentIndex === 1 ? "uni-pagination--disabled" : "uni-pagination--enabled"]),
"hover-class": $data.currentIndex === 1 ? "" : "uni-pagination--hover",
"hover-start-time": 20,
"hover-stay-time": 70,
onClick: _cache[3] || (_cache[3] = (...args) => $options.clickLeft && $options.clickLeft(...args))
}, [
$props.showIcon === true || $props.showIcon === "true" ? (vue.openBlock(), vue.createBlock(_component_uni_icons, {
key: 0,
color: "#666",
size: "24",
type: "left"
})) : (vue.openBlock(), vue.createElementBlock(
"text",
{
key: 1,
class: "uni-pagination__child-btn"
},
vue.toDisplayString($options.prevPageText),
1
/* TEXT */
))
], 10, ["hover-class"]),
vue.createElementVNode("view", { class: "uni-pagination__num uni-pagination__num-flex-none" }, [
vue.createElementVNode("view", { class: "uni-pagination__num-current" }, [
vue.createElementVNode(
"text",
{ class: "uni-pagination__num-current-text is-pc-hide current-index-text" },
vue.toDisplayString($data.currentIndex),
1
/* TEXT */
),
vue.createElementVNode(
"text",
{ class: "uni-pagination__num-current-text is-pc-hide" },
"/" + vue.toDisplayString($options.maxPage || 0),
1
/* TEXT */
),
(vue.openBlock(true), vue.createElementBlock(
vue.Fragment,
null,
vue.renderList($options.paper, (item, index) => {
return vue.openBlock(), vue.createElementBlock("view", {
key: index,
class: vue.normalizeClass([{ "page--active": item === $data.currentIndex }, "uni-pagination__num-tag tag--active is-phone-hide"]),
onClick: ($event) => $options.selectPage(item, index)
}, [
vue.createElementVNode(
"view",
{ class: "uni-pagination__num-tagwight" },
vue.toDisplayString(item),
1
/* TEXT */
)
], 10, ["onClick"]);
}),
128
/* KEYED_FRAGMENT */
))
])
]),
vue.createElementVNode("view", {
class: vue.normalizeClass(["uni-pagination__btn", $data.currentIndex >= $options.maxPage ? "uni-pagination--disabled" : "uni-pagination--enabled"]),
"hover-class": $data.currentIndex === $options.maxPage ? "" : "uni-pagination--hover",
"hover-start-time": 20,
"hover-stay-time": 70,
onClick: _cache[4] || (_cache[4] = (...args) => $options.clickRight && $options.clickRight(...args))
}, [
$props.showIcon === true || $props.showIcon === "true" ? (vue.openBlock(), vue.createBlock(_component_uni_icons, {
key: 0,
color: "#666",
size: "24",
type: "right"
})) : (vue.openBlock(), vue.createElementBlock(
"text",
{
key: 1,
class: "uni-pagination__child-btn"
},
vue.toDisplayString($options.nextPageText),
1
/* TEXT */
))
], 10, ["hover-class"])
]);
}
const __easycom_1 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5], ["__scopeId", "data-v-88b7506d"], ["__file", "D:/project/esswisdom_ipad/uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue"]]);
const _sfc_main$5 = {
data() {
return {
current: 1,
total: 0,
pageSize: 10,
faulttaps: "实时",
faultsList: []
};
},
onLoad() {
this.onfaultsList();
},
computed: {
// 使用 mapState 映射多个状态到组件的计算属性
...mapState(["formattedTime", "status"])
},
beforeUnmount() {
},
methods: {
onfaultsList() {
let data = {
page: this.current,
rows: this.pageSize,
device: "",
starttime: "",
endtime: "",
rt: this.faulttaps == "实时" ? 1 : 0,
type: this.faulttaps == "实时" ? "" : this.faulttaps
};
getfaultsList(data).then((res) => {
formatAppLog("log", "at pages/details/index.vue:154", res);
if (res.status == "ok") {
this.faultsList = res.data.list;
this.total = res.data.pagination.total;
}
});
},
onclick() {
uni.redirectTo({
url: "/pages/index/index"
});
},
change(e) {
formatAppLog("log", "at pages/details/index.vue:172", e);
this.current = e.current;
this.onfaultsList();
},
taps(e) {
this.faulttaps = e;
formatAppLog("log", "at pages/details/index.vue:178", e);
this.onfaultsList();
},
// 文字提示
closedevice() {
for (let i = 1; i < this.total; i++) {
this.$refs["device" + i].close();
}
},
close() {
for (let i = 1; i < this.total; i++) {
this.$refs["tooltip" + i].close();
}
}
}
};
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
const _component_zb_tooltip = resolveEasycom(vue.resolveDynamicComponent("zb-tooltip"), __easycom_0$1);
const _component_uni_pagination = resolveEasycom(vue.resolveDynamicComponent("uni-pagination"), __easycom_1);
return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
vue.createElementVNode("view", { class: "top" }, [
vue.createElementVNode("image", {
class: "top_logo",
src: _imports_0,
mode: ""
}),
vue.createElementVNode("image", {
class: "tite",
src: _imports_1,
mode: ""
}),
vue.createElementVNode("view", { class: "time" }, [
vue.createElementVNode(
"view",
{ class: "time_top" },
vue.toDisplayString(_ctx.formattedTime),
1
/* TEXT */
),
vue.createElementVNode("view", { class: "time_bottom" }, [
vue.createElementVNode("view"),
vue.createElementVNode("view", { class: "time_bottom1" }, [
vue.createTextVNode(" 连接状态: "),
_ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "time_state"
}, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "time_state1"
}, " 离线 "))
])
])
])
]),
vue.createElementVNode("view", { class: "parameter" }, [
vue.createElementVNode("view", { class: "parameter_xian" }, [
vue.createElementVNode("view", { class: "parameter_xian1" }, " 序号 "),
vue.createElementVNode("view", { class: "parameter_xian2" }, " 类型 "),
vue.createElementVNode("view", { class: "parameter_xian3" }, " 设备 "),
vue.createElementVNode("view", { class: "parameter_xian4" }, " 内容 "),
vue.createElementVNode("view", { class: "parameter_xian5" }, " 发生时间 "),
vue.createElementVNode("view", { class: "parameter_xian6" }, " 恢复时间 ")
]),
vue.createElementVNode("view", { class: "parameter_box" }, [
(vue.openBlock(true), vue.createElementBlock(
vue.Fragment,
null,
vue.renderList($data.faultsList, (item, index) => {
return vue.openBlock(), vue.createElementBlock(
"view",
{
class: vue.normalizeClass(item.RESETTIME == "" ? "parameter_divred" : "parameter_div"),
key: index
},
[
vue.createElementVNode(
"view",
{ class: "parameter_xian1" },
vue.toDisplayString(item.ID),
1
/* TEXT */
),
vue.createElementVNode(
"view",
{ class: "parameter_xian2" },
vue.toDisplayString(item.TYPE),
1
/* TEXT */
),
vue.createVNode(_component_zb_tooltip, {
onClick: $options.closedevice,
content: item.DEVICE,
placement: "top",
ref_for: true,
ref: "device" + index
}, {
default: vue.withCtx(() => [
vue.createElementVNode(
"view",
{ class: "parameter_xian3" },
vue.toDisplayString(item.DEVICE),
1
/* TEXT */
)
]),
_: 2
/* DYNAMIC */
}, 1032, ["onClick", "content"]),
vue.createVNode(_component_zb_tooltip, {
onClick: $options.close,
content: item.CONTENT,
placement: "top",
ref_for: true,
ref: "tooltip" + index
}, {
default: vue.withCtx(() => [
vue.createElementVNode(
"view",
{ class: "parameter_xian4" },
vue.toDisplayString(item.CONTENT),
1
/* TEXT */
)
]),
_: 2
/* DYNAMIC */
}, 1032, ["onClick", "content"]),
vue.createElementVNode(
"view",
{ class: "parameter_xian5" },
vue.toDisplayString(item.FAULTTIME.substring(0, 19)),
1
/* TEXT */
),
vue.createElementVNode(
"view",
{ class: "parameter_xian6" },
vue.toDisplayString(item.RESETTIME.substring(0, 19)),
1
/* TEXT */
)
],
2
/* CLASS */
);
}),
128
/* KEYED_FRAGMENT */
))
]),
vue.createElementVNode("view", { class: "parameter_bottom" }, [
vue.createElementVNode("view", {
class: "parameter_bottom1",
onClick: _cache[0] || (_cache[0] = (...args) => $options.onclick && $options.onclick(...args))
}, [
vue.createElementVNode("image", {
src: _imports_10,
mode: ""
}),
vue.createElementVNode("text", { class: "parameter_bottom2" }, "返回模式选择")
]),
vue.createElementVNode("view", { class: "parameter_bottom3" }, [
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.faulttaps == "实时" ? "parameter_bottom31" : "parameter_bottom32"),
onClick: _cache[1] || (_cache[1] = ($event) => $options.taps("实时"))
},
" 实时 ",
2
/* CLASS */
),
vue.createCommentVNode(` \r
全部\r
`),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.faulttaps == "故障" ? "parameter_bottom31" : "parameter_bottom32"),
onClick: _cache[2] || (_cache[2] = ($event) => $options.taps("故障"))
},
" 故障 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.faulttaps == "告警" ? "parameter_bottom31" : "parameter_bottom32"),
onClick: _cache[3] || (_cache[3] = ($event) => $options.taps("告警"))
},
" 告警 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.faulttaps == "事件" ? "parameter_bottom31" : "parameter_bottom32"),
onClick: _cache[4] || (_cache[4] = ($event) => $options.taps("事件"))
},
" 事件 ",
2
/* CLASS */
)
]),
vue.createElementVNode("view", { class: "parameter_bottom4" }, [
vue.createElementVNode("view", { class: "eliminate" }, " 故障清除 "),
vue.createVNode(_component_uni_pagination, {
total: $data.total,
title: "标题文字",
"show-icon": true,
onChange: $options.change
}, null, 8, ["total", "onChange"])
])
])
])
]);
}
const PagesDetailsIndex = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$4], ["__scopeId", "data-v-a45dfdea"], ["__file", "D:/project/esswisdom_ipad/pages/details/index.vue"]]);
const _imports_4$1 = "/static/fang.png";
const _sfc_main$4 = {
components: {
JerryGauge
},
data() {
return {
successtype: "success",
confirmText: "确认启动",
title: "你确定要开启该设备吗?",
content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
value: "",
modeinput: "",
segmented: 1,
uidatas: "",
formatTimeid: "",
faultsdata: [],
messageText: ""
};
},
onLoad() {
},
computed: {
// 使用 mapState 映射多个状态到组件的计算属性
...mapState(["formattedTime", "status"]),
...mapState({
uidatasdata: (state) => state.uidatasdata
})
},
mounted() {
this.onfaultsdata();
},
beforeUnmount() {
},
methods: {
onfaultsdata() {
let data = {
page: 1,
rows: 1e3,
device: "",
starttime: "",
endtime: "",
rt: 1,
type: ""
};
getfaultsList(data).then((res) => {
formatAppLog("log", "at pages/electricity/index.vue:574", res);
if (res.status == "ok") {
this.faultsdata = res.data.list;
}
});
},
// 返回首页
onreturn() {
uni.redirectTo({
url: "/pages/index/index"
});
},
// 启动设备弹窗
dialogToggle() {
this.modeinput = "base";
this.successtype = "success";
this.confirmText = "确认启动";
this.title = "你确定要开启该设备吗?";
this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
this.$refs.alertDialog.open();
},
onstopit() {
this.modeinput = "base";
this.successtype = "error";
this.confirmText = "确认停止";
this.title = "你确定要停止该设备吗?";
this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
this.$refs.alertDialog.open();
},
// 确认弹窗
dialogConfirm() {
let uidatasdata = this.$store.state.uidatasdata;
let data = {
id: "c35c4db0-113f-442a-9e26-728489265fdb",
issaveinitvalue: false,
value: this.confirmText == "确认启动" ? "1" : "0"
};
if (this.confirmText == "确认启动") {
if (uidatasdata.AC_In_380V_63A1_Status == 0 || uidatasdata.AC_In_380V_63A2_Status == 0) {
this.messageText = "AC供电时AC输入端应全部断开";
this.$refs.message.open();
return;
}
}
control(data).then((data2) => {
if (data2.status == "ok") {
this.$refs.alertDialog.close();
uni.showToast({
title: "操作成功",
icon: "none",
duration: 2e3
// 显示时长,单位为毫秒
});
} else {
this.$refs.alertDialog.close();
uni.showToast({
title: "操作失败",
icon: "none",
// 使用 'none' 图标来表示失败
duration: 2e3
// 显示时长,单位为毫秒
});
}
});
},
dialogClose() {
formatAppLog("log", "at pages/electricity/index.vue:644", this.value);
this.$refs.alertDialog.close();
},
ontap(e) {
formatAppLog("log", "at pages/electricity/index.vue:648", e);
this.segmented = e;
}
}
};
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
const _component_jerry_gauge = vue.resolveComponent("jerry-gauge");
const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
const _component_uni_popup_message = resolveEasycom(vue.resolveDynamicComponent("uni-popup-message"), __easycom_2);
return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
vue.createElementVNode("view", { class: "top" }, [
vue.createElementVNode("image", {
class: "top_logo",
src: _imports_0,
mode: ""
}),
vue.createElementVNode("image", {
class: "tite",
src: _imports_1,
mode: ""
}),
vue.createElementVNode("view", { class: "time" }, [
vue.createElementVNode(
"view",
{ class: "time_top" },
vue.toDisplayString(_ctx.formattedTime),
1
/* TEXT */
),
vue.createElementVNode("view", { class: "time_bottom" }, [
vue.createElementVNode("view"),
vue.createElementVNode("view", { class: "time_bottom1" }, [
vue.createTextVNode(" 连接状态: "),
_ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "time_state"
}, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "time_state1"
}, " 离线 "))
])
])
])
]),
vue.createElementVNode("view", { class: "parameter" }, [
vue.createElementVNode("view", { class: "parameter_left" }, [
vue.createElementVNode("view", { class: "parameter_left1" }, [
vue.createVNode(_component_jerry_gauge),
vue.createElementVNode("view", { class: "parameter_canvas" }, [
vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
])
]),
vue.createElementVNode("image", {
class: "parameter_leftdian1",
src: _imports_2$1,
alt: ""
}),
vue.createElementVNode("view", { class: "parameter_lef2" }, [
vue.createElementVNode("image", {
src: _imports_3,
mode: ""
})
]),
vue.createElementVNode("image", {
class: "parameter_leftche1",
src: _imports_4$1,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_leftview" }, "交流供电")
]),
vue.createElementVNode("view", { class: "parameter_right" }, [
vue.createElementVNode("view", { class: "parameter_righttop" }, [
vue.createElementVNode("view", { class: "parameter_1" }, [
vue.createElementVNode("view", { class: "parameter_2" }, [
vue.createElementVNode("view", { class: "parameter_31" }, [
vue.createElementVNode("view", { class: "parameter_4" }, [
_ctx.uidatasdata.AC_Out_380V_125A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
key: 0,
src: _imports_5$1,
mode: ""
})) : (vue.openBlock(), vue.createElementBlock("image", {
key: 1,
src: _imports_6,
mode: ""
})),
vue.createTextVNode(" 125A状态 ")
]),
_ctx.uidatasdata.AC_Out_380V_125A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_51"
}, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_5"
}, " 断开 "))
]),
vue.createElementVNode("view", { class: "parameter_31" }, [
vue.createElementVNode("view", { class: "parameter_4" }, [
_ctx.uidatasdata.AC_Out_380V_63A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
key: 0,
src: _imports_5$1,
mode: ""
})) : (vue.openBlock(), vue.createElementBlock("image", {
key: 1,
src: _imports_6,
mode: ""
})),
vue.createTextVNode(" 63A状态 ")
]),
_ctx.uidatasdata.AC_Out_380V_63A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_51"
}, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_5"
}, " 断开 "))
]),
vue.createElementVNode("view", { class: "parameter_31" }, [
vue.createElementVNode("view", { class: "parameter_4" }, [
_ctx.uidatasdata.AC_Out_220V_16A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("image", {
key: 0,
src: _imports_5$1,
mode: ""
})) : (vue.openBlock(), vue.createElementBlock("image", {
key: 1,
src: _imports_6,
mode: ""
})),
vue.createTextVNode(" 16A状态 ")
]),
_ctx.uidatasdata.AC_Out_220V_16A_Status == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_51"
}, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_5"
}, " 断开 "))
])
]),
vue.createElementVNode("view", { class: "parameter_SOC" }, [
vue.createElementVNode("image", {
src: _imports_7,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_SOCright" }, [
vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
vue.createElementVNode("view", null, [
vue.createElementVNode(
"text",
{ class: "parameter_SOCright2" },
vue.toDisplayString(_ctx.uidatasdata.SOC),
1
/* TEXT */
),
vue.createElementVNode("text", null, " %")
])
])
]),
vue.createElementVNode("view", { class: "parameter_Battery" }, [
vue.createElementVNode("image", {
src: _imports_8,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_SOCright" }, [
vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
_ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
])
])
]),
vue.createElementVNode("view", { class: "parameter_state" }, [
vue.createElementVNode("image", {
src: _imports_9,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_SOCright" }, [
vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
])
])
])
])
]),
vue.createElementVNode("view", { class: "parameter_tap" }, [
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
},
" 交流信息 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
},
" 电池信息 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
},
" 统计信息 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
},
" 液冷信息 ",
2
/* CLASS */
)
]),
vue.createElementVNode("view", { class: "parameter_zheng" }, [
$data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng1" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.PCSPortAPhaseVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.PCSPortBPhaseVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.PCSPortCPhaseVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 放电电量 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.PCSACDisChargeEnergy) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
])
])
]),
vue.createElementVNode("view", { class: "parameter_zheng2" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " A相电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata["PCSOutputA-phaseCurrent"]) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " B相电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata["PCSOutputB-phaseCurrent"]) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " C相电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata["PCSOutputC-phaseCurrent"]),
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 放电功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.PCSTotalOutputReactivePower) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
])
])
])) : vue.createCommentVNode("v-if", true),
$data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng1" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
])
]),
vue.createElementVNode("view", { class: "parameter_zheng2" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatCur) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVOut) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingInformation_Chg_Max_Cur) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMinCellVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
])
])
])) : vue.createCommentVNode("v-if", true),
$data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 2,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng10" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng101" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
])
])
])) : vue.createCommentVNode("v-if", true),
$data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 3,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng1" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} kW '),
vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
])
]),
vue.createElementVNode("view", { class: "parameter_zheng2" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
])
])
])
])) : vue.createCommentVNode("v-if", true),
vue.createElementVNode("view", { class: "parameter_zheng3" }, [
_ctx.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_zheng31111"
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
])
])) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_zheng31111",
onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
])
])),
_ctx.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 2,
class: "parameter_zheng31111"
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
])
])) : (vue.openBlock(), vue.createElementBlock("view", {
key: 3,
class: "parameter_zheng31111",
onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
])
]))
])
]),
vue.createElementVNode("view", { class: "parameter_home" }, [
vue.createElementVNode("view", {
class: "parameter_home1",
onClick: _cache[6] || (_cache[6] = (...args) => $options.onreturn && $options.onreturn(...args))
}, [
vue.createElementVNode("image", {
src: _imports_10,
mode: ""
}),
vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
]),
vue.createElementVNode("view", { class: "parameter_home2" }, [
vue.createElementVNode("image", {
src: _imports_11,
mode: ""
}),
vue.createElementVNode("swiper", {
class: "swiper",
circular: "",
autoplay: true,
interval: 2e3,
duration: 500,
vertical: true
}, [
(vue.openBlock(true), vue.createElementBlock(
vue.Fragment,
null,
vue.renderList($data.faultsdata, (item, index) => {
return vue.openBlock(), vue.createElementBlock("swiper-item", { key: index }, [
vue.createElementVNode(
"view",
{ class: "parameter_home3" },
vue.toDisplayString(item["CONTENT"]),
1
/* TEXT */
)
]);
}),
128
/* KEYED_FRAGMENT */
))
])
])
])
])
]),
vue.createVNode(
_component_uni_popup,
{ ref: "alertDialog" },
{
default: vue.withCtx(() => [
vue.createVNode(_component_uni_popup_dialog, {
mode: $data.modeinput,
placeholder: "请输入内容",
modelValue: $data.value,
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.value = $event),
type: $data.successtype,
cancelText: "取消返回",
confirmText: $data.confirmText,
title: $data.title,
content: $data.content,
beforeClose: true,
onConfirm: $options.dialogConfirm,
onClose: $options.dialogClose
}, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
]),
_: 1
/* STABLE */
},
512
/* NEED_PATCH */
),
vue.createVNode(
_component_uni_popup,
{
ref: "message",
type: "message"
},
{
default: vue.withCtx(() => [
vue.createVNode(_component_uni_popup_message, {
type: "error",
message: $data.messageText,
duration: 3e3
}, null, 8, ["message"])
]),
_: 1
/* STABLE */
},
512
/* NEED_PATCH */
)
]);
}
const PagesElectricityIndex = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$3], ["__scopeId", "data-v-a9482145"], ["__file", "D:/project/esswisdom_ipad/pages/electricity/index.vue"]]);
const _imports_5 = "/static/shan.png";
const _sfc_main$3 = {
components: {
JerryGauge
},
data() {
return {
successtype: "success",
confirmText: "确认启动",
title: "你确定要开启该设备吗?",
content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
value: "",
modeinput: "",
segmented: 1,
uidatas: "",
formatTimeid: "",
faultsdata: []
};
},
onLoad() {
},
computed: {
// 使用 mapState 映射多个状态到组件的计算属性
...mapState(["formattedTime", "status"]),
...mapState({
uidatasdata: (state) => state.uidatasdata
})
},
mounted() {
this.onfaultsdata();
},
beforeUnmount() {
},
methods: {
onfaultsdata() {
let data = {
page: 1,
rows: 1e3,
device: "",
starttime: "",
endtime: "",
rt: 1,
type: ""
};
getfaultsList(data).then((res) => {
formatAppLog("log", "at pages/supply/supply.vue:583", res);
if (res.status == "ok") {
this.faultsdata = res.data.list;
}
});
},
// 返回首页
onreturn() {
uni.redirectTo({
url: "/pages/index/index"
});
},
// 启动设备弹窗
dialogToggle() {
this.modeinput = "base";
this.successtype = "success";
this.confirmText = "确认启动";
this.title = "你确定要开启该设备吗?";
this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
this.$refs.alertDialog.open();
},
onstopit() {
this.modeinput = "base";
this.successtype = "error";
this.confirmText = "确认停止";
this.title = "你确定要停止该设备吗?";
this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
this.$refs.alertDialog.open();
},
// 确认弹窗
dialogConfirm() {
let data = {
id: "c35c4db0-113f-442a-9e26-728489265fdb",
issaveinitvalue: false,
value: this.confirmText == "确认启动" ? "1" : "0"
};
control(data).then((data2) => {
if (data2.status == "ok") {
uni.showToast({
title: "操作成功",
icon: "none",
duration: 2e3
// 显示时长,单位为毫秒
});
} else {
uni.showToast({
title: "操作失败",
icon: "none",
// 使用 'none' 图标来表示失败
duration: 2e3
// 显示时长,单位为毫秒
});
}
});
},
dialogClose() {
formatAppLog("log", "at pages/supply/supply.vue:643", this.value);
this.$refs.alertDialog.close();
},
ontap(e) {
formatAppLog("log", "at pages/supply/supply.vue:647", e);
this.segmented = e;
}
}
};
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
const _component_jerry_gauge = vue.resolveComponent("jerry-gauge");
const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
vue.createElementVNode("view", { class: "top" }, [
vue.createElementVNode("image", {
class: "top_logo",
src: _imports_0,
mode: ""
}),
vue.createElementVNode("image", {
class: "tite",
src: _imports_1,
mode: ""
}),
vue.createElementVNode("view", { class: "time" }, [
vue.createElementVNode(
"view",
{ class: "time_top" },
vue.toDisplayString(_ctx.formattedTime),
1
/* TEXT */
),
vue.createElementVNode("view", { class: "time_bottom" }, [
vue.createElementVNode("view"),
vue.createElementVNode("view", { class: "time_bottom1" }, [
vue.createTextVNode(" 连接状态: "),
_ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "time_state"
}, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "time_state1"
}, " 离线 "))
])
])
])
]),
vue.createElementVNode("view", { class: "parameter" }, [
vue.createElementVNode("view", { class: "parameter_left" }, [
vue.createElementVNode("view", { class: "parameter_left1" }, [
vue.createVNode(_component_jerry_gauge),
vue.createElementVNode("view", { class: "parameter_canvas" }, [
vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
])
]),
vue.createElementVNode("image", {
class: "parameter_leftdian1",
src: _imports_2$1,
alt: ""
}),
vue.createElementVNode("view", { class: "parameter_lef2" }, [
vue.createElementVNode("image", {
src: _imports_3,
mode: ""
})
]),
vue.createElementVNode("image", {
class: "parameter_leftche",
src: _imports_4$2,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_leftview" }, "直流补电")
]),
vue.createElementVNode("view", { class: "parameter_right" }, [
vue.createElementVNode("view", { class: "parameter_righttop" }, [
vue.createElementVNode("view", { class: "parameter_1" }, [
vue.createElementVNode("view", { class: "parameter_shan" }, [
vue.createElementVNode("image", {
src: _imports_5,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_SOCright" }, [
vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 充电功率 "),
vue.createElementVNode("view", null, [
vue.createElementVNode(
"text",
{ class: "parameter_SOCright2" },
vue.toDisplayString((_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage * _ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent / 1e3).toFixed(2)),
1
/* TEXT */
),
vue.createElementVNode("text", null, " kW")
])
])
]),
vue.createElementVNode("view", { class: "parameter_SOC" }, [
vue.createElementVNode("image", {
src: _imports_7,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_SOCright" }, [
vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
vue.createElementVNode("view", null, [
vue.createElementVNode(
"text",
{ class: "parameter_SOCright2" },
vue.toDisplayString(_ctx.uidatasdata.SOC),
1
/* TEXT */
),
vue.createElementVNode("text", null, " %")
])
])
]),
vue.createElementVNode("view", { class: "parameter_Battery" }, [
vue.createElementVNode("image", {
src: _imports_8,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_SOCright" }, [
vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
_ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
])
])
]),
vue.createElementVNode("view", { class: "parameter_state" }, [
vue.createElementVNode("image", {
src: _imports_9,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_SOCright" }, [
vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
vue.createCommentVNode(' \r\n 无连接\r\n \r\n \r\n 快充连接\r\n '),
_ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
])
])
])
])
]),
vue.createElementVNode("view", { class: "parameter_tap" }, [
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
},
" 电池信息 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
},
" 连接信息 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
},
" 统计信息 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
},
" 液冷信息 ",
2
/* CLASS */
)
]),
vue.createElementVNode("view", { class: "parameter_zheng" }, [
$data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng1" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "KW")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.DchChgCurPowLimit_MaxChargePowerLimit) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "KW")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "v")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
])
]),
vue.createElementVNode("view", { class: "parameter_zheng2" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatCur) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVOut) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许充电电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingInformation_Chg_Max_Cur),
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, " A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMinCellVoltage),
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, " v")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, " ℃")
])
])
])
])) : vue.createCommentVNode("v-if", true),
$data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng1" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统工作模式 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.bms_BatSysWorkMode_==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.bms_BatSysWorkMode_ == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无效 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysWorkMode_ == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 放电模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysWorkMode_ == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " pcs充电模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysWorkMode_ == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 欧标充电模式 ")) : vue.createCommentVNode("v-if", true)
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 初始化 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 故障 ")) : vue.createCommentVNode("v-if", true)
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.bms_ChargeStatus==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
])
])
]),
vue.createElementVNode("view", { class: "parameter_zheng2" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电连接状态 "),
_ctx.uidatasdata.bms_ChgLinkSt == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_Batterystate1"
}, " 快充连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_Batterystate1"
}, " 无连接 "))
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池故障等级 "),
vue.createElementVNode("view", { class: "parameter_Batterystate1" }, [
vue.createCommentVNode(" {{uidatasdata.bms_BatteryFaultLevl==0.00?'无故障':'有效'}} "),
_ctx.uidatasdata.bms_BatteryFaultLevl == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatteryFaultLevl == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级告警 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatteryFaultLevl == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级告警 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatteryFaultLevl == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级告警 ")) : vue.createCommentVNode("v-if", true)
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng102" })
])
])) : vue.createCommentVNode("v-if", true),
$data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 2,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng10" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 交流累计充电电量 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.PCSACChargeEnergy) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng101" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 直流累计充电电量 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.PCSDCDisChargeEnergy) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
])
])
])
])) : vue.createCommentVNode("v-if", true),
$data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 3,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng1" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} kW '),
vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
])
]),
vue.createElementVNode("view", { class: "parameter_zheng2" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
])
])
])
])) : vue.createCommentVNode("v-if", true),
vue.createElementVNode("view", { class: "parameter_zheng3" }, [
_ctx.uidatasdata.SysControl_RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_zheng31111"
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
])
])) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_zheng31111",
onClick: _cache[4] || (_cache[4] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
])
])),
_ctx.uidatasdata.SysControl_RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 2,
class: "parameter_zheng31111"
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
])
])) : (vue.openBlock(), vue.createElementBlock("view", {
key: 3,
class: "parameter_zheng31111",
onClick: _cache[5] || (_cache[5] = (...args) => $options.onstopit && $options.onstopit(...args))
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
])
]))
])
]),
vue.createElementVNode("view", { class: "parameter_home" }, [
vue.createElementVNode("view", {
class: "parameter_home1",
onClick: _cache[6] || (_cache[6] = (...args) => $options.onreturn && $options.onreturn(...args))
}, [
vue.createElementVNode("image", {
src: _imports_10,
mode: ""
}),
vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
]),
vue.createElementVNode("view", { class: "parameter_home2" }, [
vue.createElementVNode("image", {
src: _imports_11,
mode: ""
}),
vue.createElementVNode("swiper", {
class: "swiper",
circular: "",
autoplay: true,
interval: 2e3,
duration: 500,
vertical: true
}, [
(vue.openBlock(true), vue.createElementBlock(
vue.Fragment,
null,
vue.renderList($data.faultsdata, (item, index) => {
return vue.openBlock(), vue.createElementBlock("swiper-item", { key: index }, [
vue.createElementVNode(
"view",
{ class: "parameter_home3" },
vue.toDisplayString(item["CONTENT"]),
1
/* TEXT */
)
]);
}),
128
/* KEYED_FRAGMENT */
))
])
])
])
])
]),
vue.createVNode(
_component_uni_popup,
{ ref: "alertDialog" },
{
default: vue.withCtx(() => [
vue.createVNode(_component_uni_popup_dialog, {
mode: $data.modeinput,
placeholder: "请输入内容",
modelValue: $data.value,
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.value = $event),
type: $data.successtype,
cancelText: "取消返回",
confirmText: $data.confirmText,
title: $data.title,
content: $data.content,
onConfirm: $options.dialogConfirm,
onClose: $options.dialogClose
}, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
]),
_: 1
/* STABLE */
},
512
/* NEED_PATCH */
)
]);
}
const PagesSupplySupply = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$2], ["__scopeId", "data-v-80112fae"], ["__file", "D:/project/esswisdom_ipad/pages/supply/supply.vue"]]);
const _imports_4 = "/static/che1.png";
const _sfc_main$2 = {
components: {
JerryGauge
},
data() {
return {
successtype: "success",
confirmText: "确认启动",
title: "你确定要开启该设备吗?",
content: "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",
value: "",
modeinput: "",
segmented: 1,
ChargingStation: 1,
faultsdata: []
};
},
onLoad() {
},
computed: {
// 使用 mapState 映射多个状态到组件的计算属性
...mapState(["formattedTime", "status"]),
...mapState({
uidatasdata: (state) => state.uidatasdata
})
},
mounted() {
this.onfaultsdata();
},
beforeUnmount() {
},
methods: {
onfaultsdata() {
let data = {
page: 1,
rows: 1e3,
device: "",
starttime: "",
endtime: "",
rt: 1,
type: ""
};
getfaultsList(data).then((res) => {
formatAppLog("log", "at pages/supplyss/supplyss.vue:788", res);
if (res.status == "ok") {
this.faultsdata = res.data.list;
}
});
},
// 返回首页
onreturn() {
uni.redirectTo({
url: "/pages/index/index"
});
},
// 启动设备弹窗
dialogToggle() {
this.modeinput = "base";
this.successtype = "success";
this.confirmText = "确认启动";
this.title = "你确定要开启该设备吗?";
this.content = "启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!";
this.$refs.alertDialog.open();
},
// 关闭设备弹窗
onstopit() {
this.modeinput = "base";
this.successtype = "error";
this.confirmText = "确认停止";
this.title = "你确定要停止该设备吗?";
this.content = "设备完全停止后,方能进行后续操作,否则可能危及生命安全!";
this.$refs.alertDialog.open();
},
// 确定
dialogConfirm() {
let data = {};
if (this.segmented == 1) {
data = {
id: "3b26469f-ad5b-43bf-b715-4213921321d0",
issaveinitvalue: false,
value: this.confirmText == "确认启动" ? "1" : "0"
};
} else if (this.segmented == 2) {
data = {
id: "78f59493-65f3-4860-8296-7f07bb0ca55b",
issaveinitvalue: false,
value: this.confirmText == "确认启动" ? "1" : "0"
};
} else {
data = {
id: "c35c4db0-113f-442a-9e26-728489265fdb",
issaveinitvalue: false,
value: this.confirmText == "确认启动" ? "1" : "0"
};
}
control(data).then((data2) => {
formatAppLog("log", "at pages/supplyss/supplyss.vue:845", data2);
if (data2.status == "ok") {
uni.showToast({
title: "操作成功",
icon: "none",
duration: 2e3
// 显示时长,单位为毫秒
});
} else {
uni.showToast({
title: "操作失败",
icon: "none",
// 使用 'none' 图标来表示失败
duration: 2e3
// 显示时长,单位为毫秒
});
}
});
},
// 取消
dialogClose() {
formatAppLog("log", "at pages/supplyss/supplyss.vue:864", this.value);
this.$refs.alertDialog.close();
},
// 切换标签
ontap(e) {
formatAppLog("log", "at pages/supplyss/supplyss.vue:869", e);
this.segmented = e;
if (this.segmented == 1) {
this.ChargingStation = 1;
} else if (this.segmented == 2) {
this.ChargingStation = 2;
}
}
}
};
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
const _component_jerry_gauge = vue.resolveComponent("jerry-gauge");
const _component_uni_popup_dialog = resolveEasycom(vue.resolveDynamicComponent("uni-popup-dialog"), __easycom_0$2);
const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_1$1);
return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
vue.createElementVNode("view", { class: "top" }, [
vue.createElementVNode("image", {
class: "top_logo",
src: _imports_0,
mode: ""
}),
vue.createElementVNode("image", {
class: "tite",
src: _imports_1,
mode: ""
}),
vue.createElementVNode("view", { class: "time" }, [
vue.createElementVNode(
"view",
{ class: "time_top" },
vue.toDisplayString(_ctx.formattedTime),
1
/* TEXT */
),
vue.createElementVNode("view", { class: "time_bottom" }, [
vue.createElementVNode("view"),
vue.createElementVNode("view", { class: "time_bottom1" }, [
vue.createTextVNode(" 连接状态: "),
_ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "time_state"
}, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "time_state1"
}, " 离线 "))
])
])
])
]),
vue.createElementVNode("view", { class: "parameter" }, [
vue.createElementVNode("view", { class: "parameter_left" }, [
vue.createElementVNode("view", { class: "parameter_left1" }, [
vue.createVNode(_component_jerry_gauge),
vue.createElementVNode("view", { class: "parameter_canvas" }, [
vue.createElementVNode("view", { class: "parameter_canvas1" }, " 0 "),
vue.createElementVNode("view", { class: "parameter_canvas2" }, " 100% ")
])
]),
vue.createElementVNode("image", {
class: "parameter_leftdian1",
src: _imports_2$1,
alt: ""
}),
vue.createElementVNode("view", { class: "parameter_lef2" }, [
vue.createElementVNode("image", {
src: _imports_3,
mode: ""
})
]),
vue.createElementVNode("image", {
class: "parameter_leftche2",
src: _imports_4,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_leftview" }, "直流供电")
]),
vue.createElementVNode("view", { class: "parameter_right" }, [
vue.createElementVNode("view", { class: "parameter_righttop" }, [
vue.createElementVNode("view", { class: "parameter_1" }, [
vue.createElementVNode("view", { class: "parameter_2" }, [
$data.ChargingStation == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_3"
}, [
vue.createElementVNode("view", { class: "parameter_4" }, [
_ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
key: 0,
src: _imports_5$1,
mode: ""
})) : (vue.openBlock(), vue.createElementBlock("image", {
key: 1,
src: _imports_6,
mode: ""
})),
vue.createTextVNode(" 连接状态 ")
]),
_ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_51"
}, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_5"
}, " 断开 "))
])) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_3"
}, [
vue.createElementVNode("view", { class: "parameter_4" }, [
_ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
key: 0,
src: _imports_5$1,
mode: ""
})) : (vue.openBlock(), vue.createElementBlock("image", {
key: 1,
src: _imports_6,
mode: ""
})),
vue.createTextVNode(" 连接状态 ")
]),
_ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarConnectStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_51"
}, " 连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_5"
}, " 断开 "))
])),
$data.ChargingStation == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 2,
class: "parameter_3"
}, [
vue.createElementVNode("view", { class: "parameter_4" }, [
_ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
key: 0,
src: _imports_5$1,
mode: ""
})) : (vue.openBlock(), vue.createElementBlock("image", {
key: 1,
src: _imports_6,
mode: ""
})),
vue.createTextVNode(" 工作状态 ")
]),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
_ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 待机 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 工作 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电完成 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充电暂停 ")) : vue.createCommentVNode("v-if", true)
])
])) : vue.createCommentVNode("v-if", true),
$data.ChargingStation == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 3,
class: "parameter_3"
}, [
vue.createElementVNode("view", { class: "parameter_4" }, [
_ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("image", {
key: 0,
src: _imports_5$1,
mode: ""
})) : (vue.openBlock(), vue.createElementBlock("image", {
key: 1,
src: _imports_6,
mode: ""
})),
vue.createTextVNode(" 工作状态 ")
]),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
_ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 待机 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 工作 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电完成 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充电暂停 ")) : vue.createCommentVNode("v-if", true)
]),
vue.createCommentVNode(' \r\n 断开\r\n ')
])) : vue.createCommentVNode("v-if", true)
]),
vue.createElementVNode("view", { class: "parameter_SOC" }, [
vue.createElementVNode("image", {
src: _imports_7,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_SOCright" }, [
vue.createElementVNode("view", { class: "parameter_SOCright1" }, " SOC "),
vue.createElementVNode("view", null, [
vue.createElementVNode(
"text",
{ class: "parameter_SOCright2" },
vue.toDisplayString(_ctx.uidatasdata.SOC),
1
/* TEXT */
),
vue.createElementVNode("text", null, "%")
])
])
]),
vue.createElementVNode("view", { class: "parameter_Battery" }, [
vue.createElementVNode("image", {
src: _imports_8,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_SOCright" }, [
vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 电池状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
_ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 出始化 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} ")
])
])
]),
vue.createElementVNode("view", { class: "parameter_state" }, [
vue.createElementVNode("image", {
src: _imports_9,
mode: ""
}),
vue.createElementVNode("view", { class: "parameter_SOCright" }, [
vue.createElementVNode("view", { class: "parameter_SOCright1" }, " 系统状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
])
])
])
])
]),
vue.createElementVNode("view", { class: "parameter_tap" }, [
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 1 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[0] || (_cache[0] = ($event) => $options.ontap(1))
},
" 枪A信息 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 2 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[1] || (_cache[1] = ($event) => $options.ontap(2))
},
" 枪B信息 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 3 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[2] || (_cache[2] = ($event) => $options.ontap(3))
},
" 电池信息 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 4 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[3] || (_cache[3] = ($event) => $options.ontap(4))
},
" 连接信息 ",
2
/* CLASS */
),
vue.createElementVNode(
"view",
{
class: vue.normalizeClass($data.segmented == 5 ? "parameter_tap1" : "parameter_tap2"),
onClick: _cache[4] || (_cache[4] = ($event) => $options.ontap(5))
},
" 液冷信息 ",
2
/* CLASS */
)
]),
vue.createElementVNode("view", { class: "parameter_zheng" }, [
$data.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng1" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 车辆SOC "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_soc) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "%")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString((_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage * _ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent / 1e3).toFixed(2)) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
])
]),
vue.createElementVNode("view", { class: "parameter_zheng2" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电量 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_ThisChargePower) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电费用 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_AccumulatedChargingElectricityCost) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "元")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电时间 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingStation_1_telemetryFrameccu_EstimateTheRemainingChargingTime) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "min")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng102" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }),
vue.createElementVNode("view", { class: "parameter_zheng13" })
])
])
])) : vue.createCommentVNode("v-if", true),
$data.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng1" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_outputVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_chargeOutputCurrent) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 车辆SOC "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_soc),
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, " %")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString((_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_outputVoltage * _ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_chargeOutputCurrent / 1e3).toFixed(2)) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
])
]),
vue.createElementVNode("view", { class: "parameter_zheng2" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电电量 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_ThisChargePower) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kWh")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电费用 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_AccumulatedChargingElectricityCost) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "元")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电时间 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingStation_2_telemetryFrameccu_EstimateTheRemainingChargingTime) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "min")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng102" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }),
vue.createElementVNode("view", { class: "parameter_zheng13" })
])
])
])) : vue.createCommentVNode("v-if", true),
$data.segmented == 3 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 2,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng1" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatPower) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池内总压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVInt) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMaxCellVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最大单体温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
])
]),
vue.createElementVNode("view", { class: "parameter_zheng2" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatCur) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池外总压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatSysSt2_BatSumVOut) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 允许放电电流 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.ChargingInformation_Chg_Max_Cur),
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "A")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体电压 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.BatCellVPeak_ValMinCellVoltage) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "V")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 最小单体温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.CellTemperatureLimitsStatus_MinTemp) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
])
])
])) : vue.createCommentVNode("v-if", true),
$data.segmented == 4 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 3,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng1" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统工作模式 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.bms_BatSysWorkMode_==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.bms_BatSysWorkMode_ == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无效 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysWorkMode_ == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 放电模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysWorkMode_ == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " pcs充电模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysWorkMode_ == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 欧标充电模式 ")) : vue.createCommentVNode("v-if", true)
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池系统状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.bms_BatSysState == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 初始化 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 未上高压 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 上高压中 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 已上高压 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 下高压中 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatSysState == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 故障 ")) : vue.createCommentVNode("v-if", true)
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
_ctx.uidatasdata.bms_ChargeStatus == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 未充电 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 充电中 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 充电故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 充满 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 4 ? (vue.openBlock(), vue.createElementBlock("view", { key: 4 }, " 充电停止 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_ChargeStatus == 5 ? (vue.openBlock(), vue.createElementBlock("view", { key: 5 }, " 保留 ")) : vue.createCommentVNode("v-if", true)
])
])
]),
vue.createElementVNode("view", { class: "parameter_zheng22" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 充电连接状态 "),
_ctx.uidatasdata.bms_ChgLinkSt == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_Batterystate1"
}, " 快充连接 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_Batterystate1"
}, " 无连接 "))
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 电池故障等级 "),
vue.createElementVNode("view", { class: "parameter_Batterystate1" }, [
vue.createCommentVNode(" {{uidatasdata.bms_BatteryFaultLevl==0.00?'无故障':'有效'}} "),
_ctx.uidatasdata.bms_BatteryFaultLevl == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatteryFaultLevl == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级告警 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatteryFaultLevl == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级告警 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.bms_BatteryFaultLevl == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级告警 ")) : vue.createCommentVNode("v-if", true)
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11 parameter_zheng102" })
])
])) : vue.createCommentVNode("v-if", true),
$data.segmented == 5 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 4,
class: "parameter_box"
}, [
vue.createElementVNode("view", { class: "parameter_zheng1" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 工作模式 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(' {{uidatasdata.TMS_Status_TMS_WORK_MODE}} kW '),
vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} "),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 关机模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 制冷模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 自热模式 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_WORK_MODE == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 自循环模式 ")) : vue.createCommentVNode("v-if", true)
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 出水温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 需求功率 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_POWER_REQ) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "kW")
])
])
]),
vue.createElementVNode("view", { class: "parameter_zheng2" }, [
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 高压继电器状态 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 断开状态 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 闭合状态 ")) : vue.createCommentVNode("v-if", true)
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 入水温度 "),
vue.createElementVNode("view", { class: "parameter_zheng13" }, [
vue.createTextVNode(
vue.toDisplayString(_ctx.uidatasdata.TMS_Status_TMS_WATERIN_TEMP) + " ",
1
/* TEXT */
),
vue.createElementVNode("text", { class: "parameter_zheng14" }, "℃")
])
]),
vue.createElementVNode("view", { class: "parameter_zheng11" }, [
vue.createElementVNode("view", { class: "parameter_zheng12" }, " 故障等级 "),
vue.createElementVNode("view", { class: "parameter_Batterystate" }, [
vue.createCommentVNode(" {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} "),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 0 ? (vue.openBlock(), vue.createElementBlock("view", { key: 0 }, " 无故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 1 ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, " 1级故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 2 ? (vue.openBlock(), vue.createElementBlock("view", { key: 2 }, " 2级故障 ")) : vue.createCommentVNode("v-if", true),
_ctx.uidatasdata.TMS_Status_TMS_ERR_LEVEL == 3 ? (vue.openBlock(), vue.createElementBlock("view", { key: 3 }, " 3级故障 ")) : vue.createCommentVNode("v-if", true)
])
])
])
])) : vue.createCommentVNode("v-if", true),
this.segmented == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 5,
class: "parameter_zheng3"
}, [
_ctx.uidatasdata.SysControl_Gun1RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_zheng31111"
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
])
])) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_zheng31111",
onClick: _cache[5] || (_cache[5] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
])
])),
_ctx.uidatasdata.SysControl_Gun1RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 2,
class: "parameter_zheng31111"
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
])
])) : (vue.openBlock(), vue.createElementBlock("view", {
key: 3,
class: "parameter_zheng31111",
onClick: _cache[6] || (_cache[6] = (...args) => $options.onstopit && $options.onstopit(...args))
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
])
]))
])) : vue.createCommentVNode("v-if", true),
this.segmented == 2 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 6,
class: "parameter_zheng3"
}, [
_ctx.uidatasdata.SysControl_Gun2RunCmd == 1 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "parameter_zheng31111"
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 开启 ")
])
])) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "parameter_zheng31111",
onClick: _cache[7] || (_cache[7] = (...args) => $options.dialogToggle && $options.dialogToggle(...args))
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32" }, " 开启 ")
])
])),
_ctx.uidatasdata.SysControl_Gun2RunCmd == 0 ? (vue.openBlock(), vue.createElementBlock("view", {
key: 2,
class: "parameter_zheng31111"
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng32ccc" }, " 停止 ")
])
])) : (vue.openBlock(), vue.createElementBlock("view", {
key: 3,
class: "parameter_zheng31111",
onClick: _cache[8] || (_cache[8] = (...args) => $options.onstopit && $options.onstopit(...args))
}, [
vue.createElementVNode("view", { class: "parameter_zheng31" }, [
vue.createElementVNode("view", { class: "parameter_zheng33" }, " 停止 ")
])
]))
])) : vue.createCommentVNode("v-if", true)
]),
vue.createElementVNode("view", { class: "parameter_home" }, [
vue.createElementVNode("view", {
class: "parameter_home1",
onClick: _cache[9] || (_cache[9] = (...args) => $options.onreturn && $options.onreturn(...args))
}, [
vue.createElementVNode("image", {
src: _imports_10,
mode: ""
}),
vue.createElementVNode("text", { class: "parameter_hometext" }, "返回模式选择")
]),
vue.createElementVNode("view", { class: "parameter_home2" }, [
vue.createElementVNode("image", {
src: _imports_11,
mode: ""
}),
vue.createElementVNode("swiper", {
class: "swiper",
circular: "",
autoplay: true,
interval: 2e3,
duration: 500,
vertical: true
}, [
(vue.openBlock(true), vue.createElementBlock(
vue.Fragment,
null,
vue.renderList($data.faultsdata, (item, index) => {
return vue.openBlock(), vue.createElementBlock("swiper-item", { key: index }, [
vue.createElementVNode(
"view",
{ class: "parameter_home3" },
vue.toDisplayString(item["CONTENT"]),
1
/* TEXT */
)
]);
}),
128
/* KEYED_FRAGMENT */
))
])
])
])
])
]),
vue.createVNode(
_component_uni_popup,
{ ref: "alertDialog" },
{
default: vue.withCtx(() => [
vue.createVNode(_component_uni_popup_dialog, {
mode: $data.modeinput,
placeholder: "请输入内容",
modelValue: $data.value,
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.value = $event),
type: $data.successtype,
cancelText: "取消返回",
confirmText: $data.confirmText,
title: $data.title,
content: $data.content,
onConfirm: $options.dialogConfirm,
onClose: $options.dialogClose
}, null, 8, ["mode", "modelValue", "type", "confirmText", "title", "content", "onConfirm", "onClose"])
]),
_: 1
/* STABLE */
},
512
/* NEED_PATCH */
)
]);
}
const PagesSupplyssSupplyss = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__scopeId", "data-v-0d60935b"], ["__file", "D:/project/esswisdom_ipad/pages/supplyss/supplyss.vue"]]);
const _imports_2 = "/static/faultlist.png";
const _sfc_main$1 = {
data() {
return {};
},
onLoad() {
},
computed: {
// 使用 mapState 映射多个状态到组件的计算属性
...mapState(["formattedTime", "status"])
},
beforeUnmount() {
},
methods: {
// 返回首页
onreturn() {
uni.redirectTo({
url: "/pages/details/index"
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [
vue.createElementVNode("view", { class: "top" }, [
vue.createElementVNode("image", {
class: "top_logo",
src: _imports_0,
mode: ""
}),
vue.createElementVNode("image", {
class: "tite",
src: _imports_1,
mode: ""
}),
vue.createElementVNode("view", { class: "time" }, [
vue.createElementVNode(
"view",
{ class: "time_top" },
vue.toDisplayString(_ctx.formattedTime),
1
/* TEXT */
),
vue.createElementVNode("view", { class: "time_bottom" }, [
vue.createElementVNode("view"),
vue.createElementVNode("view", { class: "time_bottom1" }, [
vue.createTextVNode(" 连接状态: "),
_ctx.status == "ok" ? (vue.openBlock(), vue.createElementBlock("view", {
key: 0,
class: "time_state"
}, " 在线 ")) : (vue.openBlock(), vue.createElementBlock("view", {
key: 1,
class: "time_state1"
}, " 离线 "))
])
])
])
]),
vue.createElementVNode("view", { class: "parameter" }, [
vue.createElementVNode("view", { class: "parameter_list" }, [
vue.createElementVNode("view", {
class: "parameter_box",
onClick: _cache[0] || (_cache[0] = (...args) => $options.onreturn && $options.onreturn(...args))
}, [
vue.createElementVNode("view", { class: "parameter_list1" }, [
vue.createElementVNode("image", {
src: _imports_2,
mode: ""
})
]),
vue.createElementVNode("view", { class: "fault_txt" }, " 故障页面 ")
]),
vue.createElementVNode("view", { class: "parameter_box" }, [
vue.createElementVNode("view", { class: "parameter_list1" }, [
vue.createCommentVNode(' ')
]),
vue.createElementVNode("view", { class: "fault_txt" }, [
vue.createCommentVNode(" 故障页面 ")
])
]),
vue.createElementVNode("view", { class: "parameter_box" }, [
vue.createElementVNode("view", { class: "parameter_list1" }, [
vue.createCommentVNode(' ')
]),
vue.createElementVNode("view", { class: "fault_txt" }, [
vue.createCommentVNode(" 故障页面 ")
])
]),
vue.createElementVNode("view", { class: "parameter_box" }, [
vue.createElementVNode("view", { class: "parameter_list1" }, [
vue.createCommentVNode(' ')
]),
vue.createElementVNode("view", { class: "fault_txt" }, [
vue.createCommentVNode(" 故障页面 ")
])
])
])
])
]);
}
const PagesFaultlistIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-108f6e37"], ["__file", "D:/project/esswisdom_ipad/pages/faultlist/index.vue"]]);
__definePage("pages/index/index", PagesIndexIndex);
__definePage("pages/home/index", PagesHomeIndex);
__definePage("pages/details/index", PagesDetailsIndex);
__definePage("pages/electricity/index", PagesElectricityIndex);
__definePage("pages/supply/supply", PagesSupplySupply);
__definePage("pages/supplyss/supplyss", PagesSupplyssSupplyss);
__definePage("pages/faultlist/index", PagesFaultlistIndex);
const _sfc_main = {
data() {
return {
// uidatas:''
};
},
computed: {},
onLaunch: function() {
plus.navigator.setFullscreen(true);
plus.navigator.hideSystemNavigation();
},
mounted() {
this.$store.dispatch("startClock");
this.$store.dispatch("fetchFaultsList");
},
beforeUnmount() {
},
methods: {},
onShow: function() {
formatAppLog("log", "at App.vue:33", "App Show");
},
onHide: function() {
formatAppLog("log", "at App.vue:36", "App Hide");
}
};
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:/project/esswisdom_ipad/App.vue"]]);
const Store = createStore({
state: {
formattedTime: getTime("yyyy年MM月dd日 hh:mm:ss"),
uidatasdata: {},
selectorid: null,
selectorindex: null,
status: null
},
mutations: {
increment(state) {
state.count++;
},
setFormattedTime(state, time) {
state.formattedTime = time;
},
setUidatasData(state, data) {
state.uidatasdata = data;
},
setstatus(state, status) {
state.status = status;
},
setSelectorId(state, id) {
state.selectorid = id;
},
setSelectorIndex(state, index) {
state.selectorindex = index;
}
},
actions: {
startClock({ commit }) {
setInterval(() => {
const customFormat = "yyyy年MM月dd日 hh:mm:ss";
const formattedTime = getTime(customFormat);
commit("setFormattedTime", formattedTime);
}, 1e3);
},
async fetchFaultsList({ commit }) {
try {
let data = {
id: "3224a3eb-2375-4dfc-99ce-b182edd30996",
page: 1,
rows: 1e4
};
const response2 = await getuidatas(data);
commit("setstatus", response2.status);
if (response2.status == "ok") {
const uidatasdata = response2.data.reduce((obj, item) => {
let a = item.module;
let b = item[a];
let numericValue = parseFloat(b);
let roundedValue = "";
if (item.id == "BatCellVPeak_ValMaxCellVoltage" || item.id == "BatSysLimitVal_MaxCellTemperatureLimit" || item.id == "BatCellVPeak_ValMinCellVoltage" || item.id == "CellTemperatureLimitsStatus_MinTemp") {
roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(3);
} else {
roundedValue = isNaN(numericValue) ? b : numericValue.toFixed(2);
}
return {
...obj,
[item.id]: roundedValue
};
}, {});
commit("setUidatasData", uidatasdata);
if (uidatasdata.SysControl_RunCmd == 1 || uidatasdata.SysControl_Gun1RunCmd == 1 || uidatasdata.SysControl_Gun2RunCmd == 1) {
commit("setSelectorId", uidatasdata.SysInstall_EssRunModeManual);
commit("setSelectorIndex", 1);
} else {
commit("setSelectorId", null);
commit("setSelectorIndex", null);
}
} else {
}
} catch (error) {
commit("setstatus", "NO");
} finally {
setTimeout(() => {
this.dispatch("fetchFaultsList");
}, 2e3);
}
}
}
});
class Request {
constructor(options = {}) {
this.baseUrl = options.baseUrl || "http://10.168.1.100";
this.url = options.url || "";
this.method = "GET";
this.data = null;
this.header = options.header || {};
this.beforeRequest = null;
this.afterRequest = null;
}
// 添加对header的支持
_mergeHeaders(customHeader = {}) {
return Object.assign({}, this.header, customHeader);
}
get(url, data = {}, header = {}) {
this.method = "GET";
this.url = this.baseUrl + url;
this.data = data;
this.header = this._mergeHeaders(header);
return this._();
}
post(url, data = {}, header = {}) {
this.method = "POST";
this.url = this.baseUrl + url;
this.data = data;
this.header = this._mergeHeaders(header);
return this._();
}
put(url, data = {}) {
this.method = "PUT";
this.url = this.baseUrl + url;
this.data = data;
return this._();
}
delete(url, data = {}) {
this.method = "DELETE";
this.url = this.baseUrl + url;
this.data = data;
return this._();
}
_() {
if (this.baseUrl == "") {
this.url = "http://10.168.1.100" + this.url;
}
this.beforeRequest && typeof this.beforeRequest === "function" && this.beforeRequest(this);
return new Promise((resolve, reject) => {
let weixin = wx;
if ("undefined" !== typeof uni) {
weixin = uni;
}
weixin.request({
url: this.url,
method: this.method,
data: this.data,
header: this.header,
success: (res) => {
resolve(res);
},
fail: (err) => {
reject(err);
},
complete: (res) => {
this.afterRequest && typeof this.afterRequest === "function" && this.afterRequest(res);
}
});
});
}
}
const $http = new Request();
function createApp() {
const app = vue.createVueApp(App);
app.use(Store);
return {
app
};
}
uni.$http = $http;
$http.baseUrl = "";
$http.beforeRequest = function(options) {
};
$http.afterRequest = function() {
};
const { app: __app__, Vuex: __Vuex__, Pinia: __Pinia__ } = createApp();
uni.Vuex = __Vuex__;
uni.Pinia = __Pinia__;
__app__.provide("__globalStyles", __uniConfig.styles);
__app__._component.mpType = "app";
__app__._component.render = () => {
};
__app__.mount("#app");
})(Vue);