@wyltils/ems-editor 1.0.53 → 1.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +65 -24
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +46 -46
package/dist/index.es.js
CHANGED
|
@@ -69011,47 +69011,88 @@ const MLt = {
|
|
|
69011
69011
|
}, WLt = /* @__PURE__ */ Vn(BLt, [["__scopeId", "data-v-fece4d9d"]]), HLt = { class: "formNode" }, zLt = {
|
|
69012
69012
|
__name: "planTimeNode",
|
|
69013
69013
|
setup(n) {
|
|
69014
|
-
const e = Li("x6NodeData")
|
|
69015
|
-
|
|
69016
|
-
|
|
69014
|
+
const e = Li("x6NodeData"), i = Li("getNode")(), s = (a = {}) => {
|
|
69015
|
+
const l = Number(a.activePower ?? 0), c = a.direction || (l < 0 ? "discharge" : "charge");
|
|
69016
|
+
return {
|
|
69017
|
+
...a,
|
|
69018
|
+
direction: c,
|
|
69019
|
+
activePower: Math.abs(l)
|
|
69020
|
+
};
|
|
69021
|
+
}, r = (a = {}) => {
|
|
69022
|
+
const l = Math.abs(Number(a.activePower ?? 0));
|
|
69023
|
+
return {
|
|
69024
|
+
...a,
|
|
69025
|
+
activePower: a.direction === "discharge" ? -l : l
|
|
69026
|
+
};
|
|
69027
|
+
}, o = Ge((e.value.model.modelValue || []).map(s));
|
|
69017
69028
|
return Fn(
|
|
69018
|
-
() =>
|
|
69019
|
-
(
|
|
69020
|
-
const
|
|
69021
|
-
JSON.stringify(
|
|
69022
|
-
}
|
|
69029
|
+
() => o.value,
|
|
69030
|
+
(a) => {
|
|
69031
|
+
const l = i.getData(), c = a.map(r);
|
|
69032
|
+
JSON.stringify(l.model.modelValue) !== JSON.stringify(c) && (l.model.modelValue = c, i.setData(l, { deep: !1 }));
|
|
69033
|
+
},
|
|
69034
|
+
{ deep: !0 }
|
|
69023
69035
|
), Fn(
|
|
69024
69036
|
() => e.value.model.modelValue,
|
|
69025
|
-
(
|
|
69026
|
-
|
|
69027
|
-
}
|
|
69028
|
-
|
|
69029
|
-
|
|
69037
|
+
(a) => {
|
|
69038
|
+
o.value = (a || []).map(s);
|
|
69039
|
+
},
|
|
69040
|
+
{ deep: !0 }
|
|
69041
|
+
), (a, l) => {
|
|
69042
|
+
const c = we("el-table-column"), h = we("el-option"), u = we("el-select"), d = we("el-input-number"), f = we("el-table");
|
|
69030
69043
|
return ee(), ke("div", HLt, [
|
|
69031
|
-
F(
|
|
69032
|
-
data:
|
|
69044
|
+
F(f, {
|
|
69045
|
+
data: o.value,
|
|
69033
69046
|
border: "",
|
|
69034
69047
|
style: { width: "100%", height: "100%" },
|
|
69035
69048
|
size: "small"
|
|
69036
69049
|
}, {
|
|
69037
69050
|
default: X(() => [
|
|
69038
|
-
F(
|
|
69051
|
+
F(c, {
|
|
69039
69052
|
prop: "startTime",
|
|
69040
69053
|
label: "开始时间"
|
|
69041
69054
|
}),
|
|
69042
|
-
F(
|
|
69055
|
+
F(c, {
|
|
69043
69056
|
prop: "endTime",
|
|
69044
69057
|
label: "结束时间"
|
|
69045
69058
|
}),
|
|
69046
|
-
F(
|
|
69059
|
+
F(c, {
|
|
69060
|
+
prop: "direction",
|
|
69061
|
+
label: "充/放电",
|
|
69062
|
+
width: "120"
|
|
69063
|
+
}, {
|
|
69064
|
+
default: X((g) => [
|
|
69065
|
+
F(u, {
|
|
69066
|
+
modelValue: o.value[g.$index].direction,
|
|
69067
|
+
"onUpdate:modelValue": (p) => o.value[g.$index].direction = p,
|
|
69068
|
+
size: "small",
|
|
69069
|
+
style: { width: "100%" }
|
|
69070
|
+
}, {
|
|
69071
|
+
default: X(() => [
|
|
69072
|
+
F(h, {
|
|
69073
|
+
label: "充电",
|
|
69074
|
+
value: "charge"
|
|
69075
|
+
}),
|
|
69076
|
+
F(h, {
|
|
69077
|
+
label: "放电",
|
|
69078
|
+
value: "discharge"
|
|
69079
|
+
})
|
|
69080
|
+
]),
|
|
69081
|
+
_: 1
|
|
69082
|
+
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
69083
|
+
]),
|
|
69084
|
+
_: 1
|
|
69085
|
+
}),
|
|
69086
|
+
F(c, {
|
|
69047
69087
|
prop: "activePower",
|
|
69048
69088
|
label: "计划功率(kW)",
|
|
69049
69089
|
width: "180"
|
|
69050
69090
|
}, {
|
|
69051
|
-
default: X((
|
|
69052
|
-
F(
|
|
69053
|
-
modelValue:
|
|
69054
|
-
"onUpdate:modelValue": (
|
|
69091
|
+
default: X((g) => [
|
|
69092
|
+
F(d, {
|
|
69093
|
+
modelValue: o.value[g.$index].activePower,
|
|
69094
|
+
"onUpdate:modelValue": (p) => o.value[g.$index].activePower = p,
|
|
69095
|
+
min: 0,
|
|
69055
69096
|
controls: !1,
|
|
69056
69097
|
size: "small",
|
|
69057
69098
|
style: { width: "160px" }
|
|
@@ -69065,7 +69106,7 @@ const MLt = {
|
|
|
69065
69106
|
]);
|
|
69066
69107
|
};
|
|
69067
69108
|
}
|
|
69068
|
-
}, $Lt = /* @__PURE__ */ Vn(zLt, [["__scopeId", "data-v-
|
|
69109
|
+
}, $Lt = /* @__PURE__ */ Vn(zLt, [["__scopeId", "data-v-2747bdd7"]]), ULt = {
|
|
69069
69110
|
文本: "text",
|
|
69070
69111
|
字体颜色: "color",
|
|
69071
69112
|
背景颜色: "backgroundColor",
|
|
@@ -69673,7 +69714,7 @@ const MLt = {
|
|
|
69673
69714
|
F(mt(s))
|
|
69674
69715
|
]));
|
|
69675
69716
|
}
|
|
69676
|
-
}, YLt = /* @__PURE__ */ Vn(KLt, [["__scopeId", "data-v-
|
|
69717
|
+
}, YLt = /* @__PURE__ */ Vn(KLt, [["__scopeId", "data-v-d30f32f0"]]), XLt = { class: "toolBox" }, ZLt = { class: "left" }, JLt = { class: "right" }, QLt = {
|
|
69677
69718
|
key: 0,
|
|
69678
69719
|
class: "iconfont icon-suoding1",
|
|
69679
69720
|
style: { color: "#4583ff" }
|