|
@@ -948,7 +948,7 @@ const sysName = (value) => {
|
|
|
return SYS_ZH[key] ? t("sys." + key) : String(value ?? "");
|
|
return SYS_ZH[key] ? t("sys." + key) : String(value ?? "");
|
|
|
};
|
|
};
|
|
|
const partName = (p) => sysName(p);
|
|
const partName = (p) => sysName(p);
|
|
|
-const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
|
|
|
|
+const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
__name: "Component",
|
|
__name: "Component",
|
|
|
__ssrInlineRender: true,
|
|
__ssrInlineRender: true,
|
|
|
props: {
|
|
props: {
|
|
@@ -1083,13 +1083,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
-const _sfc_setup$6 = _sfc_main$6.setup;
|
|
|
|
|
-_sfc_main$6.setup = (props, ctx) => {
|
|
|
|
|
|
|
+const _sfc_setup$7 = _sfc_main$7.setup;
|
|
|
|
|
+_sfc_main$7.setup = (props, ctx) => {
|
|
|
const ssrContext = useSSRContext();
|
|
const ssrContext = useSSRContext();
|
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/Component.vue");
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/Component.vue");
|
|
|
- return _sfc_setup$6 ? _sfc_setup$6(props, ctx) : void 0;
|
|
|
|
|
|
|
+ return _sfc_setup$7 ? _sfc_setup$7(props, ctx) : void 0;
|
|
|
};
|
|
};
|
|
|
-const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
|
|
|
|
+const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
__name: "EChart",
|
|
__name: "EChart",
|
|
|
__ssrInlineRender: true,
|
|
__ssrInlineRender: true,
|
|
|
props: {
|
|
props: {
|
|
@@ -1132,14 +1132,14 @@ const _export_sfc = (sfc, props) => {
|
|
|
}
|
|
}
|
|
|
return target;
|
|
return target;
|
|
|
};
|
|
};
|
|
|
-const _sfc_setup$5 = _sfc_main$5.setup;
|
|
|
|
|
-_sfc_main$5.setup = (props, ctx) => {
|
|
|
|
|
|
|
+const _sfc_setup$6 = _sfc_main$6.setup;
|
|
|
|
|
+_sfc_main$6.setup = (props, ctx) => {
|
|
|
const ssrContext = useSSRContext();
|
|
const ssrContext = useSSRContext();
|
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/EChart.vue");
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/EChart.vue");
|
|
|
- return _sfc_setup$5 ? _sfc_setup$5(props, ctx) : void 0;
|
|
|
|
|
|
|
+ return _sfc_setup$6 ? _sfc_setup$6(props, ctx) : void 0;
|
|
|
};
|
|
};
|
|
|
-const EChart = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-999bee15"]]);
|
|
|
|
|
-const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
|
|
|
|
+const EChart = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-999bee15"]]);
|
|
|
|
|
+const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
__name: "Energy",
|
|
__name: "Energy",
|
|
|
__ssrInlineRender: true,
|
|
__ssrInlineRender: true,
|
|
|
props: {
|
|
props: {
|
|
@@ -1249,13 +1249,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
-const _sfc_setup$4 = _sfc_main$4.setup;
|
|
|
|
|
-_sfc_main$4.setup = (props, ctx) => {
|
|
|
|
|
|
|
+const _sfc_setup$5 = _sfc_main$5.setup;
|
|
|
|
|
+_sfc_main$5.setup = (props, ctx) => {
|
|
|
const ssrContext = useSSRContext();
|
|
const ssrContext = useSSRContext();
|
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/Energy.vue");
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/Energy.vue");
|
|
|
- return _sfc_setup$4 ? _sfc_setup$4(props, ctx) : void 0;
|
|
|
|
|
|
|
+ return _sfc_setup$5 ? _sfc_setup$5(props, ctx) : void 0;
|
|
|
};
|
|
};
|
|
|
-const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
|
|
|
|
+const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
__name: "Fault",
|
|
__name: "Fault",
|
|
|
__ssrInlineRender: true,
|
|
__ssrInlineRender: true,
|
|
|
props: {
|
|
props: {
|
|
@@ -1503,11 +1503,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
-const _sfc_setup$3 = _sfc_main$3.setup;
|
|
|
|
|
-_sfc_main$3.setup = (props, ctx) => {
|
|
|
|
|
|
|
+const _sfc_setup$4 = _sfc_main$4.setup;
|
|
|
|
|
+_sfc_main$4.setup = (props, ctx) => {
|
|
|
const ssrContext = useSSRContext();
|
|
const ssrContext = useSSRContext();
|
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/Fault.vue");
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/Fault.vue");
|
|
|
- return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
|
|
|
|
|
|
|
+ return _sfc_setup$4 ? _sfc_setup$4(props, ctx) : void 0;
|
|
|
};
|
|
};
|
|
|
const VIBJARGON = [
|
|
const VIBJARGON = [
|
|
|
[/DE[/]NDE/g, "驱动端与非驱动端"],
|
|
[/DE[/]NDE/g, "驱动端与非驱动端"],
|
|
@@ -1803,7 +1803,7 @@ function cmsHtml(V, err) {
|
|
|
<p class="small muted" style="margin-top:10px">${t("fus.cms_link")} <a href="http://localhost:8030/index.html" target="_blank" rel="noopener">${t("fus.cms_open")}</a> <a href="/windcms/index.html" target="_blank" rel="noopener">${t("fus.cms_static")}</a></p></div>`;
|
|
<p class="small muted" style="margin-top:10px">${t("fus.cms_link")} <a href="http://localhost:8030/index.html" target="_blank" rel="noopener">${t("fus.cms_open")}</a> <a href="/windcms/index.html" target="_blank" rel="noopener">${t("fus.cms_static")}</a></p></div>`;
|
|
|
}
|
|
}
|
|
|
const FUS_SUBS = ["matrix", "loop", "units", "events", "cms"];
|
|
const FUS_SUBS = ["matrix", "loop", "units", "events", "cms"];
|
|
|
-const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
|
|
|
|
+const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
__name: "Vibration",
|
|
__name: "Vibration",
|
|
|
__ssrInlineRender: true,
|
|
__ssrInlineRender: true,
|
|
|
props: {
|
|
props: {
|
|
@@ -1835,10 +1835,174 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+const _sfc_setup$3 = _sfc_main$3.setup;
|
|
|
|
|
+_sfc_main$3.setup = (props, ctx) => {
|
|
|
|
|
+ const ssrContext = useSSRContext();
|
|
|
|
|
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/Vibration.vue");
|
|
|
|
|
+ return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
|
|
|
|
|
+};
|
|
|
|
|
+const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
|
|
+ __name: "Generation",
|
|
|
|
|
+ __ssrInlineRender: true,
|
|
|
|
|
+ props: {
|
|
|
|
|
+ d: {},
|
|
|
|
|
+ curves: {},
|
|
|
|
|
+ pending: { type: Boolean }
|
|
|
|
|
+ },
|
|
|
|
|
+ setup(__props) {
|
|
|
|
|
+ const props = __props;
|
|
|
|
|
+ const M9 = computed(() => props.d?.m9 && !props.d.m9.err ? props.d.m9 : null);
|
|
|
|
|
+ const F = computed(() => props.d?.control || null);
|
|
|
|
|
+ const GEN = computed(() => props.curves || null);
|
|
|
|
|
+ const sp = computed(() => (props.d?.sysmx_span || []).join(" ~ ") || "");
|
|
|
|
|
+ const stats = (spec) => {
|
|
|
|
|
+ const gs = Object.entries(spec?.分组 || {}).map(([k, v]) => ({ v: parseFloat(k), n: v, raw: k }));
|
|
|
|
|
+ if (!gs.length) return null;
|
|
|
|
|
+ const vals = gs.map((g) => g.v).sort((a, b) => a - b);
|
|
|
|
|
+ const med = vals.length % 2 ? vals[(vals.length - 1) / 2] : (vals[vals.length / 2 - 1] + vals[vals.length / 2]) / 2;
|
|
|
|
|
+ return { gs, med };
|
|
|
|
|
+ };
|
|
|
|
|
+ const capStats = computed(() => ({ p: stats(M9.value?.P封顶), w: stats(M9.value?.ω封顶) }));
|
|
|
|
|
+ const capOption = computed(() => {
|
|
|
|
|
+ const P = capStats.value.p, W9 = capStats.value.w;
|
|
|
|
|
+ const series = [];
|
|
|
|
|
+ if (P) series.push({ name: t("ch.cap.p"), type: "scatter", data: P.gs.map((g) => [g.v, 1]), symbolSize: 10, itemStyle: { color: "#0b5fa5", opacity: 0.6 } });
|
|
|
|
|
+ if (W9) series.push({ name: t("ch.cap.w"), type: "scatter", data: W9.gs.map((g) => [g.v, 0]), symbolSize: 10, itemStyle: { color: "#b45309", opacity: 0.6 } });
|
|
|
|
|
+ return {
|
|
|
|
|
+ grid: { left: 56, right: 36, top: 20, bottom: 24 },
|
|
|
|
|
+ xAxis: { type: "value" },
|
|
|
|
|
+ yAxis: { type: "value", min: -0.5, max: 1.5, show: false },
|
|
|
|
|
+ series,
|
|
|
|
|
+ __data__: [P?.med, W9?.med].filter((x) => x != null)
|
|
|
|
|
+ };
|
|
|
|
|
+ });
|
|
|
|
|
+ const betaOuts = computed(() => M9.value?.β_schedule?.离群 || []);
|
|
|
|
|
+ const betaMed = computed(() => M9.value?.β_schedule?.["全场同档差中位"] || 0);
|
|
|
|
|
+ const betaOption = computed(() => ({
|
|
|
|
|
+ grid: { left: 56, right: 60, top: 20, bottom: 24 },
|
|
|
|
|
+ xAxis: { type: "value" },
|
|
|
|
|
+ yAxis: { type: "category", data: betaOuts.value.map((o) => unitNo(o.t)) },
|
|
|
|
|
+ series: [{ type: "bar", data: betaOuts.value.map((o) => o.平均偏), itemStyle: { color: "#0b5fa5" } }],
|
|
|
|
|
+ __data__: [betaMed.value]
|
|
|
|
|
+ }));
|
|
|
|
|
+ const betaNoteHtml = computed(() => t("gen.beta_note", {
|
|
|
|
|
+ units: betaOuts.value.map((x) => `<a href="/turbine/${x.t}">${unitNo(x.t)}</a>`).join(" / "),
|
|
|
|
|
+ k: betaOuts.value.length ? Math.round(Math.max(...betaOuts.value.map((x) => x.平均偏)) / Math.max(betaMed.value || 0, 0.01)) : "—",
|
|
|
|
|
+ v: dv(M9.value?.β_schedule?.判)
|
|
|
|
|
+ }));
|
|
|
|
|
+ const rulerRows = computed(() => Object.entries(M9.value?.尺子 || {}).map(([k, v]) => ({ k, r: v.极差 / v.σ })));
|
|
|
|
|
+ const rulerOption = computed(() => ({
|
|
|
|
|
+ grid: { left: 100, right: 80, top: 20, bottom: 24 },
|
|
|
|
|
+ xAxis: { type: "value" },
|
|
|
|
|
+ yAxis: { type: "category", data: rulerRows.value.map((r) => r.k) },
|
|
|
|
|
+ series: [{ type: "bar", data: rulerRows.value.map((r) => r.r), itemStyle: { color: "#0b5fa5" } }],
|
|
|
|
|
+ __data__: [3.7]
|
|
|
|
|
+ // 旧图把规范线 3.7 写成文字(t('ch.ruler.norm', …))
|
|
|
|
|
+ }));
|
|
|
|
|
+ const figs = computed(() => GEN.value?.figs || []);
|
|
|
|
|
+ function figOption(f) {
|
|
|
|
|
+ const months = f.months || f.x || [];
|
|
|
|
|
+ return {
|
|
|
|
|
+ grid: { left: 56, right: 20, top: 28, bottom: 40 },
|
|
|
|
|
+ legend: { top: 0, textStyle: { fontSize: 10 } },
|
|
|
|
|
+ xAxis: { type: "category", data: months },
|
|
|
|
|
+ yAxis: { type: "value", scale: true },
|
|
|
|
|
+ series: (f.series || []).map((s) => ({ name: String(s.name), type: "line", data: s.vals, connectNulls: false })),
|
|
|
|
|
+ __data__: []
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+ return (_ctx, _push, _parent, _attrs) => {
|
|
|
|
|
+ _push(`<section${ssrRenderAttrs(_attrs)}><div class="eyebrow">${ssrInterpolate(unref(t)("gen.eyebrow"))}</div><div class="panel mb small" style="${ssrRenderStyle({ "border-left": "3px solid var(--accent)" })}"><b>${ssrInterpolate(unref(t)("gen.fixed_win"))}</b> ${ssrInterpolate(sp.value ? unref(t)("gen.win_range", { span: sp.value }) : "")} <div class="muted" style="${ssrRenderStyle({ "margin-top": "3px" })}">${ssrInterpolate(unref(t)("gen.win_why"))}</div></div>`);
|
|
|
|
|
+ if (__props.d.m9 && __props.d.m9.err) {
|
|
|
|
|
+ _push(`<div class="panel mb" style="${ssrRenderStyle({ "border-left": "3px solid var(--critical)" })}"><p class="small">${ssrInterpolate(unref(t)("flt.block_err", { k: "m9", e: unref(dv)(__props.d.m9.err) }))}</p></div>`);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ _push(`<!---->`);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (M9.value) {
|
|
|
|
|
+ _push(`<div class="panel mb" style="${ssrRenderStyle(__props.pending ? "border-left:3px solid var(--accent)" : "")}"><h3>${ssrInterpolate(unref(t)("gen.ctrl"))} <span class="small muted" style="${ssrRenderStyle({ "font-weight": "400" })}">${ssrInterpolate(unref(t)("gen.ctrl_win", { win: unref(dv)(M9.value.窗) }))}</span>`);
|
|
|
|
|
+ if (__props.pending) {
|
|
|
|
|
+ _push(`<span class="chip">${ssrInterpolate(unref(t)("gen.recomputing_short"))}</span>`);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ _push(`<!---->`);
|
|
|
|
|
+ }
|
|
|
|
|
+ _push(`</h3><div style="${ssrRenderStyle({ "display": "flex", "flex-wrap": "wrap", "gap": "18px" })}"><div style="${ssrRenderStyle({ "flex": "1 1 300px", "min-width": "280px" })}"><div class="small" style="${ssrRenderStyle({ "font-weight": "600", "margin-bottom": "4px" })}">${ssrInterpolate(unref(t)("gen.cap"))}</div>`);
|
|
|
|
|
+ _push(ssrRenderComponent(EChart, {
|
|
|
|
|
+ option: capOption.value,
|
|
|
|
|
+ height: "170px"
|
|
|
|
|
+ }, null, _parent));
|
|
|
|
|
+ _push(`<p class="small muted" style="${ssrRenderStyle({ "margin-top": "4px" })}">${ssrInterpolate(unref(t)("gen.cap_note"))}</p></div><div style="${ssrRenderStyle({ "flex": "1 1 300px", "min-width": "280px" })}"><div class="small" style="${ssrRenderStyle({ "font-weight": "600", "margin-bottom": "4px" })}">${ssrInterpolate(unref(t)("gen.beta"))}</div>`);
|
|
|
|
|
+ _push(ssrRenderComponent(EChart, {
|
|
|
|
|
+ option: betaOption.value,
|
|
|
|
|
+ height: "170px"
|
|
|
|
|
+ }, null, _parent));
|
|
|
|
|
+ _push(`<p class="small muted" style="${ssrRenderStyle({ "margin-top": "4px" })}">${betaNoteHtml.value ?? ""}</p><div class="small" style="${ssrRenderStyle({ "font-weight": "600", "margin": "12px 0 4px" })}">${ssrInterpolate(unref(t)("gen.ruler"))}</div>`);
|
|
|
|
|
+ _push(ssrRenderComponent(EChart, {
|
|
|
|
|
+ option: rulerOption.value,
|
|
|
|
|
+ height: "170px"
|
|
|
|
|
+ }, null, _parent));
|
|
|
|
|
+ _push(`<p class="small muted" style="${ssrRenderStyle({ "margin-top": "4px" })}">${ssrInterpolate(unref(t)("gen.ruler_note"))}</p></div></div></div>`);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ _push(`<!---->`);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (F.value && F.value.curve) {
|
|
|
|
|
+ _push(`<div class="panel mb"><h3>${ssrInterpolate(unref(t)("gen.cands"))} <span class="small muted" style="${ssrRenderStyle({ "font-weight": "400" })}">${ssrInterpolate(unref(t)("gen.cands_meta", { note: unref(dv)(F.value.curve.note || ""), s: __props.d.sigma || F.value.curve.sigma }))}</span></h3><p class="small"><!--[-->`);
|
|
|
|
|
+ ssrRenderList(F.value.curve.cands || [], (c, i) => {
|
|
|
|
|
+ _push(`<!--[-->`);
|
|
|
|
|
+ if (i) {
|
|
|
|
|
+ _push(`<span> | </span>`);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ _push(`<!---->`);
|
|
|
|
|
+ }
|
|
|
|
|
+ _push(`<a${ssrRenderAttr("href", `/turbine/${c.t}`)}>${ssrInterpolate(unref(unitNo)(c.t))}</a> ${ssrInterpolate(c.dev)}% ${ssrInterpolate(unref(dv)(c.判))}<!--]-->`);
|
|
|
|
|
+ });
|
|
|
|
|
+ _push(`<!--]-->`);
|
|
|
|
|
+ if (!(F.value.curve.cands || []).length) {
|
|
|
|
|
+ _push(`<!--[-->${ssrInterpolate(unref(t)("gen.no_cands"))}<!--]-->`);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ _push(`<!---->`);
|
|
|
|
|
+ }
|
|
|
|
|
+ _push(`</p></div>`);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ _push(`<!---->`);
|
|
|
|
|
+ }
|
|
|
|
|
+ _push(`<div class="eyebrow">${ssrInterpolate(unref(t)("gen.figs"))}</div>`);
|
|
|
|
|
+ if (GEN.value && GEN.value.err) {
|
|
|
|
|
+ _push(`<div class="panel" style="${ssrRenderStyle({ "border-left": "3px solid var(--critical)" })}"><p class="small">${ssrInterpolate(unref(esc)(GEN.value.err))}</p></div>`);
|
|
|
|
|
+ } else if (GEN.value && GEN.value.building) {
|
|
|
|
|
+ _push(`<div class="panel" style="${ssrRenderStyle({ "border-left": "3px solid var(--accent)" })}"><p class="small"><b>${ssrInterpolate(unref(t)("gen.recomputing"))}</b> ${ssrInterpolate(unref(dv)(GEN.value.curves?.note || ""))}</p><div class="skel" style="${ssrRenderStyle({ "width": "60%", "margin-top": "10px" })}"></div><div class="skel" style="${ssrRenderStyle({ "width": "80%", "margin-top": "8px" })}"></div></div>`);
|
|
|
|
|
+ } else if (!GEN.value) {
|
|
|
|
|
+ _push(`<div class="panel"><p class="small muted">${ssrInterpolate(unref(t)("gen.loading"))}</p><div class="skel" style="${ssrRenderStyle({ "width": "60%", "margin-top": "10px" })}"></div><div class="skel" style="${ssrRenderStyle({ "width": "80%", "margin-top": "8px" })}"></div></div>`);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ _push(`<div class="grid2"><!--[-->`);
|
|
|
|
|
+ ssrRenderList(figs.value, (f, i) => {
|
|
|
|
|
+ _push(`<div class="panel"><h3>${ssrInterpolate(unref(dv)(f.title || ""))}`);
|
|
|
|
|
+ if (f.unit) {
|
|
|
|
|
+ _push(`<span><span class="small muted" style="${ssrRenderStyle({ "font-weight": "400" })}">(${ssrInterpolate(unref(dv)(f.unit))})</span></span>`);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ _push(`<!---->`);
|
|
|
|
|
+ }
|
|
|
|
|
+ _push(`</h3>`);
|
|
|
|
|
+ _push(ssrRenderComponent(EChart, {
|
|
|
|
|
+ option: figOption(f),
|
|
|
|
|
+ height: "260px"
|
|
|
|
|
+ }, null, _parent));
|
|
|
|
|
+ if (f.note) {
|
|
|
|
|
+ _push(`<p class="small muted" style="${ssrRenderStyle({ "margin-top": "6px" })}">${ssrInterpolate(unref(dv)(f.note))}</p>`);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ _push(`<!---->`);
|
|
|
|
|
+ }
|
|
|
|
|
+ _push(`</div>`);
|
|
|
|
|
+ });
|
|
|
|
|
+ _push(`<!--]--></div>`);
|
|
|
|
|
+ }
|
|
|
|
|
+ _push(`</section>`);
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+});
|
|
|
const _sfc_setup$2 = _sfc_main$2.setup;
|
|
const _sfc_setup$2 = _sfc_main$2.setup;
|
|
|
_sfc_main$2.setup = (props, ctx) => {
|
|
_sfc_main$2.setup = (props, ctx) => {
|
|
|
const ssrContext = useSSRContext();
|
|
const ssrContext = useSSRContext();
|
|
|
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/Vibration.vue");
|
|
|
|
|
|
|
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/Generation.vue");
|
|
|
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
|
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
|
|
};
|
|
};
|
|
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
@@ -2005,7 +2169,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
tab: {},
|
|
tab: {},
|
|
|
sys: {},
|
|
sys: {},
|
|
|
sub: {},
|
|
sub: {},
|
|
|
- cms: {}
|
|
|
|
|
|
|
+ cms: {},
|
|
|
|
|
+ curves: {}
|
|
|
},
|
|
},
|
|
|
emits: ["tab", "sub"],
|
|
emits: ["tab", "sub"],
|
|
|
setup(__props, { emit: __emit }) {
|
|
setup(__props, { emit: __emit }) {
|
|
@@ -2013,37 +2178,43 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
const emit = __emit;
|
|
const emit = __emit;
|
|
|
const pending = computed(() => !DONE.includes(props.tab));
|
|
const pending = computed(() => !DONE.includes(props.tab));
|
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
|
- _push(`<!--[--><nav class="wb-tabs" data-v-418164eb><!--[-->`);
|
|
|
|
|
|
|
+ _push(`<!--[--><nav class="wb-tabs" data-v-4088a77e><!--[-->`);
|
|
|
ssrRenderList(unref(TABS), (id) => {
|
|
ssrRenderList(unref(TABS), (id) => {
|
|
|
- _push(`<button class="${ssrRenderClass({ on: id === __props.tab })}" data-v-418164eb>${ssrInterpolate(unref(t)("tab." + id))}`);
|
|
|
|
|
|
|
+ _push(`<button class="${ssrRenderClass({ on: id === __props.tab })}" data-v-4088a77e>${ssrInterpolate(unref(t)("tab." + id))}`);
|
|
|
if (!unref(DONE).includes(id)) {
|
|
if (!unref(DONE).includes(id)) {
|
|
|
- _push(`<sup class="todo" data-v-418164eb>迁移中</sup>`);
|
|
|
|
|
|
|
+ _push(`<sup class="todo" data-v-4088a77e>迁移中</sup>`);
|
|
|
} else {
|
|
} else {
|
|
|
_push(`<!---->`);
|
|
_push(`<!---->`);
|
|
|
}
|
|
}
|
|
|
_push(`</button>`);
|
|
_push(`</button>`);
|
|
|
});
|
|
});
|
|
|
- _push(`<!--]--></nav><div class="page-head" data-v-418164eb><h1 data-v-418164eb>${ssrInterpolate(unref(t)("tab." + __props.tab))}</h1><span class="window-badge" data-v-418164eb>${ssrInterpolate(unref(t)("win.label"))} · ${ssrInterpolate(unref(winName)(__props.d?.win))}</span></div>`);
|
|
|
|
|
|
|
+ _push(`<!--]--></nav><div class="page-head" data-v-4088a77e><h1 data-v-4088a77e>${ssrInterpolate(unref(t)("tab." + __props.tab))}</h1><span class="window-badge" data-v-4088a77e>${ssrInterpolate(unref(t)("win.label"))} · ${ssrInterpolate(unref(winName)(__props.d?.win))}</span></div>`);
|
|
|
if (__props.tab === "overview") {
|
|
if (__props.tab === "overview") {
|
|
|
_push(ssrRenderComponent(_sfc_main$1, { d: __props.d }, null, _parent));
|
|
_push(ssrRenderComponent(_sfc_main$1, { d: __props.d }, null, _parent));
|
|
|
} else if (__props.tab === "energy") {
|
|
} else if (__props.tab === "energy") {
|
|
|
- _push(ssrRenderComponent(_sfc_main$4, { d: __props.d }, null, _parent));
|
|
|
|
|
|
|
+ _push(ssrRenderComponent(_sfc_main$5, { d: __props.d }, null, _parent));
|
|
|
} else if (__props.tab === "component") {
|
|
} else if (__props.tab === "component") {
|
|
|
- _push(ssrRenderComponent(_sfc_main$6, {
|
|
|
|
|
|
|
+ _push(ssrRenderComponent(_sfc_main$7, {
|
|
|
d: __props.d,
|
|
d: __props.d,
|
|
|
sys: __props.sys
|
|
sys: __props.sys
|
|
|
}, null, _parent));
|
|
}, null, _parent));
|
|
|
} else if (__props.tab === "fault") {
|
|
} else if (__props.tab === "fault") {
|
|
|
- _push(ssrRenderComponent(_sfc_main$3, { d: __props.d }, null, _parent));
|
|
|
|
|
|
|
+ _push(ssrRenderComponent(_sfc_main$4, { d: __props.d }, null, _parent));
|
|
|
} else if (__props.tab === "vibration") {
|
|
} else if (__props.tab === "vibration") {
|
|
|
- _push(ssrRenderComponent(_sfc_main$2, {
|
|
|
|
|
|
|
+ _push(ssrRenderComponent(_sfc_main$3, {
|
|
|
d: __props.d,
|
|
d: __props.d,
|
|
|
sub: __props.sub,
|
|
sub: __props.sub,
|
|
|
cms: __props.cms,
|
|
cms: __props.cms,
|
|
|
onSub: ($event) => emit("sub", $event)
|
|
onSub: ($event) => emit("sub", $event)
|
|
|
}, null, _parent));
|
|
}, null, _parent));
|
|
|
|
|
+ } else if (__props.tab === "generation") {
|
|
|
|
|
+ _push(ssrRenderComponent(_sfc_main$2, {
|
|
|
|
|
+ d: __props.d,
|
|
|
|
|
+ curves: __props.curves,
|
|
|
|
|
+ pending: !!__props.d.m9_pending
|
|
|
|
|
+ }, null, _parent));
|
|
|
} else if (pending.value) {
|
|
} else if (pending.value) {
|
|
|
- _push(`<section class="card" data-v-418164eb><h2 data-v-418164eb>${ssrInterpolate(unref(t)("tab." + __props.tab))} <small data-v-418164eb>(本页签尚未迁移到 Vue)</small></h2><p class="hint" data-v-418164eb> 迁移纪律:页签逐个搬,每搬一个就用 <code data-v-418164eb>tools/render_parity.mjs</code> 与重构前页面 (现网 <code data-v-418164eb>/detail/v2</code>)对拍文案/数值/类名序列,**通过后**才删对应的 Python 前端源码。 当前已迁移:${ssrInterpolate(unref(DONE).join("、"))}。 </p></section>`);
|
|
|
|
|
|
|
+ _push(`<section class="card" data-v-4088a77e><h2 data-v-4088a77e>${ssrInterpolate(unref(t)("tab." + __props.tab))} <small data-v-4088a77e>(本页签尚未迁移到 Vue)</small></h2><p class="hint" data-v-4088a77e> 迁移纪律:页签逐个搬,每搬一个就用 <code data-v-4088a77e>tools/render_parity.mjs</code> 与重构前页面 (现网 <code data-v-4088a77e>/detail/v2</code>)对拍文案/数值/类名序列,**通过后**才删对应的 Python 前端源码。 当前已迁移:${ssrInterpolate(unref(DONE).join("、"))}。 </p></section>`);
|
|
|
} else {
|
|
} else {
|
|
|
_push(`<!---->`);
|
|
_push(`<!---->`);
|
|
|
}
|
|
}
|
|
@@ -2057,9 +2228,9 @@ _sfc_main.setup = (props, ctx) => {
|
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/Workbench.vue");
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/views/Workbench.vue");
|
|
|
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
|
};
|
|
};
|
|
|
-const Workbench = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-418164eb"]]);
|
|
|
|
|
-async function renderTab(d, tab = "overview", sub, cms) {
|
|
|
|
|
- const app = createSSRApp(Workbench, { d, tab, sub: sub ?? null, cms: cms ?? null });
|
|
|
|
|
|
|
+const Workbench = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4088a77e"]]);
|
|
|
|
|
+async function renderTab(d, tab = "overview", sub, cms, curves) {
|
|
|
|
|
+ const app = createSSRApp(Workbench, { d, tab, sub: sub ?? null, cms: cms ?? null, curves: curves ?? null });
|
|
|
return await renderToString(app);
|
|
return await renderToString(app);
|
|
|
}
|
|
}
|
|
|
export {
|
|
export {
|