super-page-runtime 2.3.7 → 2.3.9-sit1
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/es/components/runtime/utils/api/page-expose-util.js +50 -50
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +102 -102
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +26 -24
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +59 -58
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +38 -37
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +28 -27
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +29 -22
- package/dist/es/components/runtime/utils/common-util.d.ts +4 -0
- package/dist/es/components/runtime/utils/common-util.js +4 -0
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.js +18 -18
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/events/validator-util.js +122 -104
- package/dist/es/components/runtime/utils/page-init-util.js +24 -25
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +11 -12
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +19 -17
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +26 -20
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +10 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +31 -28
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +32 -25
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +52 -49
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +33 -30
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +38 -35
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +18 -15
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -55
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +46 -43
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +55 -53
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +63 -61
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +25 -22
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +16 -13
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +11 -12
- package/dist/es/style.css +30 -0
- package/package.json +2 -2
- package/dist/es.zip +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ref as e } from "vue";
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import
|
|
4
|
-
const t =
|
|
5
|
-
const
|
|
6
|
-
return { pageContext:
|
|
7
|
-
|
|
2
|
+
import { defineStore as o } from "pinia";
|
|
3
|
+
import a from "./eventBus.js";
|
|
4
|
+
const t = o("pageContextUtil", () => {
|
|
5
|
+
const o2 = e({ systemCode: "", systemVersion: -1 }), t2 = e(false), n = e(false), u = e(false), l = e(0), d = e(0);
|
|
6
|
+
return { pageContext: o2, setPageContext: function(e2) {
|
|
7
|
+
o2.value = e2;
|
|
8
8
|
}, countComponentsTotalNmber: function() {
|
|
9
9
|
l.value++, t2.value = false, u.value = false;
|
|
10
10
|
}, countComponentsLoadedNumber: function() {
|
|
11
|
-
|
|
12
|
-
}, componentsTotalNmber: l, componentsLoadedNumber:
|
|
13
|
-
t2.value = e2, t2.value && n.value && (
|
|
11
|
+
d.value++, u.value = false;
|
|
12
|
+
}, componentsTotalNmber: l, componentsLoadedNumber: d, setPageComponentsLoaded: function(e2) {
|
|
13
|
+
t2.value = e2, t2.value && n.value && (a.$emit("pageLoaded"), u.value = true);
|
|
14
14
|
}, setFormPageDataLoadState: function(e2) {
|
|
15
|
-
n.value = e2, t2.value && n.value && (
|
|
15
|
+
n.value = e2, t2.value && n.value && (u.value = true);
|
|
16
16
|
}, formPageDataLoaded: n, pageComponentsLoaded: t2, restorePageLoadState: function() {
|
|
17
17
|
t2.value = false, n.value = false, u.value = false;
|
|
18
18
|
}, pageLoaded: u, getPageLoaded: function() {
|
|
@@ -19,7 +19,7 @@ function u(t2, e2) {
|
|
|
19
19
|
}
|
|
20
20
|
function l(t2, e2, i2, s2) {
|
|
21
21
|
const r2 = !(!e2.props || !e2.props.base) && e2.props.base.showOperation, u2 = e2.btnList;
|
|
22
|
-
|
|
22
|
+
r2 && u2 && u2.forEach((e3) => {
|
|
23
23
|
const r3 = {}, u3 = Object.assign({}, e3.props.base);
|
|
24
24
|
if ("custom" === e3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === e3.isPermission || e3.isPermission + "" == "true") {
|
|
25
25
|
const i3 = o(e3, t2);
|
package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js
CHANGED
|
@@ -6,11 +6,11 @@ import { doClickJumpPageEvent as k } from "../../../../utils/events/event-util.j
|
|
|
6
6
|
import y from "../common/common-chart-header.vue.js";
|
|
7
7
|
import { use as R } from "echarts/core";
|
|
8
8
|
import { CanvasRenderer as j } from "echarts/renderers";
|
|
9
|
-
import { LineChart as
|
|
10
|
-
import { GridComponent as
|
|
9
|
+
import { LineChart as b, BarChart as D } from "echarts/charts";
|
|
10
|
+
import { GridComponent as V, LegendComponent as P, TitleComponent as _, TooltipComponent as w, ToolboxComponent as T, DataZoomComponent as E } from "echarts/components";
|
|
11
11
|
import O from "vue-echarts";
|
|
12
12
|
const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
13
|
-
R([j,
|
|
13
|
+
R([j, b, V, P, _, w, D, T, E]);
|
|
14
14
|
const H = e2, N = r(null), S = r(), U = r(null), z = H.configure.props ? H.configure.props.enableDrill : null, F = H.configure.props ? H.configure.props.drillEndTrigger : null, q = H.configure.props ? H.configure.props.linkPage : null, B = {};
|
|
15
15
|
if (H.configure.items) for (const e3 of H.configure.items) e3.props && e3.props.linkPage && e3.props.linkPage.jumpPageUrl ? B[e3.uuid] = e3 : q && q.jumpPageUrl && (B[e3.uuid] = H.configure);
|
|
16
16
|
const G = H.configure.runtime ? H.configure.runtime : {}, J = G.style, K = G.class, L = G.dataConfig, M = G.headerInfo ? G.headerInfo : {}, Q = G.chartOption, W = H.configure.props ? H.configure.props : {}, X = f(W.customTheme);
|
|
@@ -46,7 +46,7 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
46
46
|
ee(true);
|
|
47
47
|
}), A2({ updateChartDatas: oe, exportChart: function() {
|
|
48
48
|
return d(S.value);
|
|
49
|
-
}, chartOption: Q }), (e3, r2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: N }, [l(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.pageContext.showHomepageSearch]]), c(s(O), { ref_key: "chartRef", ref: S, theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
49
|
+
}, chartOption: Q }), (e3, r2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: N }, [l(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.pageContext.showHomepageSearch]]), c(s(O), { ref_key: "chartRef", ref: S, class: "amb-chart-content", theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
50
50
|
} });
|
|
51
51
|
export {
|
|
52
52
|
A as default
|
package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as
|
|
2
|
-
const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup(e2) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = o("el-radio-group");
|
|
8
|
-
return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[0] || (t3[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (r(true), u(d, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[1] || (t3[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (r(), a(b, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[2] || (t3[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
|
|
9
|
-
};
|
|
10
|
-
} });
|
|
1
|
+
import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as d, Fragment as n, renderList as p } from "vue";
|
|
2
|
+
const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup: (e2) => (l(e2.headerInfo, () => {
|
|
3
|
+
}), (l2, t2) => {
|
|
4
|
+
const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = o("el-radio-group");
|
|
5
|
+
return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[0] || (t2[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, null, p(e2.headerInfo.options, (e3) => (r(), a(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (r(true), u(n, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[1] || (t2[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (r(), a(b, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[2] || (t2[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, null, p(e2.headerInfo.options, (e3) => (r(), a(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
|
|
6
|
+
}) });
|
|
11
7
|
export {
|
|
12
8
|
t as default
|
|
13
9
|
};
|
|
@@ -3,13 +3,12 @@ import { Search as p } from "@element-plus/icons-vue";
|
|
|
3
3
|
import g from "./common-chart-header-group.vue.js";
|
|
4
4
|
import m from "./common-chart-header-breadcrumb.vue.js";
|
|
5
5
|
import b from "./common-homepage-search.vue.js";
|
|
6
|
-
import { setVariableValueWithProp as v, getValueFromSource as y, setValueForVariableName as
|
|
7
|
-
const
|
|
6
|
+
import { setVariableValueWithProp as v, getValueFromSource as y, setValueForVariableName as w } from "../../../../utils/page-helper-util.js";
|
|
7
|
+
const x = { class: "amb-widget-chart-header" }, O = { class: "amb-widget-chart-header-item" }, k = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" }, j = { class: "amb-widget-chart-header-item" }, C = { key: 0, class: "amb-widget-chart-header-item" }, P = e({ __name: "common-chart-header", props: { headerInfo: { type: Object, required: true }, configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["drill-end"], setup(e2, { expose: P2, emit: _ }) {
|
|
8
8
|
const N = e2, D = o(null), A = o(), R = _;
|
|
9
9
|
function S(e3) {
|
|
10
10
|
const o2 = N.headerInfo.drillOptions.length;
|
|
11
|
-
if (e3 >= o2)
|
|
12
|
-
else {
|
|
11
|
+
if (!(e3 >= o2)) {
|
|
13
12
|
for (let r2 = o2 - 1; r2 >= e3; r2--) N.headerInfo.drillOptions.splice(r2, 1);
|
|
14
13
|
q(e3);
|
|
15
14
|
}
|
|
@@ -35,7 +34,7 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
|
|
|
35
34
|
for (let e4 of o2.variables) {
|
|
36
35
|
if (!e4.fieldName || !e4.variable) continue;
|
|
37
36
|
const o3 = y(r2, e4.fieldName, void 0);
|
|
38
|
-
|
|
37
|
+
w(N.pageContext.entity, e4.variable, o3);
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
N.headerInfo.drillOptions || (N.headerInfo.drillOptions = []);
|
|
@@ -47,12 +46,11 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
|
|
|
47
46
|
if (r2 + 1 >= N.headerInfo.options.length) {
|
|
48
47
|
return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0), void R("drill-end", e3);
|
|
49
48
|
}
|
|
50
|
-
N.headerInfo.options;
|
|
51
49
|
const n2 = N.headerInfo.options[r2], t2 = o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : null, a2 = { fieldName: n2.target ? n2.target.replace(".", "_") : "", rawFieldName: n2.target ? n2.target : "", label: e3.name, value: e3.name, data: t2 };
|
|
52
50
|
N.headerInfo.drillOptions.push(a2), q(r2 + 1);
|
|
53
51
|
}, closeDrill: S }), (o2, v2) => {
|
|
54
|
-
const y2 = r("el-icon"),
|
|
55
|
-
return t(), n("div",
|
|
52
|
+
const y2 = r("el-icon"), w2 = r("el-tooltip");
|
|
53
|
+
return t(), n("div", x, [a("div", O, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && (!e2.headerInfo.textAlign || "left" == e2.headerInfo.textAlign)]]), !e2.headerInfo.showDrill || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(m, { key: 0, ref_key: "drillObjRef", ref: D, headerInfo: e2.headerInfo, onCloseDrill: S }, null, 8, ["headerInfo"])), !e2.headerInfo.showGroup || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"]))]), a("div", k, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && "center" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "center" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "center" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), a("div", j, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && "right" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "right" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "right" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), e2.pageContext.showHomepageSearch ? (t(), n("div", C, [c(w2, { content: "打开查询弹窗", effect: "light" }, { default: I(() => [c(y2, { onClick: G }, { default: I(() => [c(u(p))]), _: 1 })]), _: 1 }), c(b, { ref_key: "commonHomepageSearchRef", ref: A, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])])) : l("", true)]);
|
|
56
54
|
};
|
|
57
55
|
} });
|
|
58
56
|
export {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as
|
|
2
|
-
import { getCustomTheme as
|
|
3
|
-
import { getChartDatasFromPage as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as u, unref as c, withDirectives as i, createVNode as p, vShow as m } from "vue";
|
|
2
|
+
import { getCustomTheme as f, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as C } from "../../../../utils/charts/chart-gauge-util.js";
|
|
5
5
|
import y from "../common/common-chart-header.vue.js";
|
|
6
6
|
import { use as v } from "echarts/core";
|
|
7
7
|
import { CanvasRenderer as R } from "echarts/renderers";
|
|
8
|
-
import { GaugeChart as
|
|
9
|
-
import { GridComponent as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
v([R, V, _, j, w
|
|
13
|
-
const A = e2, H = r(null), z = r(null), D = r(null), F = A.configure.runtime ? A.configure.runtime : {}, O = F.style, P = F.class, S = F.dataConfig, T = F.headerInfo ? F.headerInfo : {}, q = F.chartOption, B = A.configure.props ? A.configure.props : {}, E =
|
|
14
|
-
|
|
15
|
-
const e3 =
|
|
8
|
+
import { GaugeChart as b } from "echarts/charts";
|
|
9
|
+
import { GridComponent as V, TitleComponent as _, TooltipComponent as j, ToolboxComponent as w } from "echarts/components";
|
|
10
|
+
import I from "vue-echarts";
|
|
11
|
+
const k = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: k2 }) {
|
|
12
|
+
v([R, b, V, _, j, w]);
|
|
13
|
+
const A = e2, H = r(null), z = r(null), D = r(null), F = A.configure.runtime ? A.configure.runtime : {}, O = F.style, P = F.class, S = F.dataConfig, T = F.headerInfo ? F.headerInfo : {}, q = F.chartOption, B = A.configure.props ? A.configure.props : {}, E = f(B.customTheme);
|
|
14
|
+
h(A.configure, q), t(() => {
|
|
15
|
+
const e3 = g(A.pageContext, A.configure);
|
|
16
16
|
e3 && L(e3);
|
|
17
17
|
});
|
|
18
18
|
let G = T.groupValue;
|
|
@@ -26,10 +26,10 @@ const b = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }
|
|
|
26
26
|
function L(e3) {
|
|
27
27
|
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(A.pageContext, A.configure, q, e3));
|
|
28
28
|
}
|
|
29
|
-
return x(A.pageContext, K, J),
|
|
30
|
-
return
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style:
|
|
29
|
+
return x(A.pageContext, K, J), k2({ updateChartDatas: L, exportChart: function() {
|
|
30
|
+
return l(z.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: u(c(O)), class: s([c(P), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: H }, [i(p(y, { ref_key: "headerRef", ref: D, headerInfo: c(T), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, c(T).showHeader || e3.pageContext.showHomepageSearch]]), p(c(I), { ref_key: "chartRef", ref: z, class: "amb-chart-content", theme: c(E), option: c(q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
k as default
|
|
35
35
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as l, unref as i, withDirectives as c, createVNode as s, vShow as p } from "vue";
|
|
2
2
|
import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as h, clearChartSelected as m, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { updateChartOption as v } from "../../../../utils/charts/chart-pie-util.js";
|
|
4
4
|
import { doClickJumpPageEvent as x } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import { getChartDatasFromPage as C, updateChartDatasources as R, monitorFieldChange as j } from "../../../../utils/page-helper-util.js";
|
|
6
6
|
import k from "../common/common-chart-header.vue.js";
|
|
7
|
-
import { use as
|
|
8
|
-
import { CanvasRenderer as
|
|
9
|
-
import { PieChart as
|
|
10
|
-
import { GridComponent as
|
|
7
|
+
import { use as b } from "echarts/core";
|
|
8
|
+
import { CanvasRenderer as y } from "echarts/renderers";
|
|
9
|
+
import { PieChart as D } from "echarts/charts";
|
|
10
|
+
import { GridComponent as V, LegendComponent as _, TitleComponent as w, TooltipComponent as I, ToolboxComponent as P } from "echarts/components";
|
|
11
11
|
import E from "vue-echarts";
|
|
12
12
|
const A = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
13
|
-
|
|
13
|
+
b([y, D, V, _, w, I, P]);
|
|
14
14
|
const H = e2, S = r(null), T = r(null), U = r(null), z = H.configure.props ? H.configure.props.enableDrill : null, F = H.configure.props ? H.configure.props.drillEndTrigger : null, O = H.configure.props ? H.configure.props.linkPage : null, q = H.configure.runtime ? H.configure.runtime : {}, B = q.style, G = q.class, J = q.dataConfig, K = q.headerInfo ? q.headerInfo : {}, L = q.chartOption, M = H.configure.props ? H.configure.props : {}, N = f(M.customTheme);
|
|
15
15
|
function Q(e3) {
|
|
16
16
|
"clearDrill" == F ? U.value && U.value.closeDrill && U.value.closeDrill(0) : "clickEvent" == F && W();
|
|
@@ -39,7 +39,7 @@ const A = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} },
|
|
|
39
39
|
Y(true);
|
|
40
40
|
}), A2({ updateChartDatas: $, exportChart: function() {
|
|
41
41
|
return d(T.value);
|
|
42
|
-
} }), (e3, r2) => (
|
|
42
|
+
} }), (e3, r2) => (n(), a("div", { style: l(i(B)), class: u([i(G), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: S }, [c(s(k, { ref_key: "headerRef", ref: U, headerInfo: i(K), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Q, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, i(K).showHeader || e3.pageContext.showHomepageSearch]]), s(i(E), { ref_key: "chartRef", ref: T, class: "amb-chart-content", theme: i(N), option: i(L), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
45
|
A as default
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as
|
|
2
|
-
import { getCustomTheme as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as u, unref as c, withDirectives as i, createVNode as p, vShow as m } from "vue";
|
|
2
|
+
import { getCustomTheme as f, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as C } from "../../../../utils/charts/chart-radar-util.js";
|
|
5
5
|
import y from "../common/common-chart-header.vue.js";
|
|
6
6
|
import { use as v } from "echarts/core";
|
|
7
7
|
import { CanvasRenderer as R } from "echarts/renderers";
|
|
8
|
-
import { RadarChart as
|
|
9
|
-
import { GridComponent as
|
|
10
|
-
import
|
|
8
|
+
import { RadarChart as b } from "echarts/charts";
|
|
9
|
+
import { GridComponent as V, TitleComponent as _, TooltipComponent as j, ToolboxComponent as w, LegendComponent as I } from "echarts/components";
|
|
10
|
+
import k from "vue-echarts";
|
|
11
11
|
const A = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
12
|
-
v([R, V, _, j, w, I
|
|
13
|
-
const H = e2, z = r(null), D = r(null), F = r(null), O = H.configure.runtime ? H.configure.runtime : {}, P = O.style, S = O.class, T = O.dataConfig, q = O.headerInfo ? O.headerInfo : {}, B = O.chartOption, E = H.configure.props ? H.configure.props : {}, G =
|
|
12
|
+
v([R, b, V, _, j, w, I]);
|
|
13
|
+
const H = e2, z = r(null), D = r(null), F = r(null), O = H.configure.runtime ? H.configure.runtime : {}, P = O.style, S = O.class, T = O.dataConfig, q = O.headerInfo ? O.headerInfo : {}, B = O.chartOption, E = H.configure.props ? H.configure.props : {}, G = f(E.customTheme);
|
|
14
14
|
h(H.configure, B), t(() => {
|
|
15
15
|
const e3 = g(H.pageContext, H.configure);
|
|
16
16
|
e3 && M(e3);
|
|
@@ -28,7 +28,7 @@ const A = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }
|
|
|
28
28
|
}
|
|
29
29
|
return x(H.pageContext, L, K), A2({ updateChartDatas: M, exportChart: function() {
|
|
30
30
|
return l(D.value);
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style:
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: u(c(P)), class: s([c(S), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: z }, [i(p(y, { ref_key: "headerRef", ref: F, headerInfo: c(q), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, c(q).showHeader || e3.pageContext.showHomepageSearch]]), p(c(k), { ref_key: "chartRef", ref: D, class: "amb-chart-content", theme: c(G), option: c(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
34
|
A as default
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as
|
|
2
|
-
import { getCustomTheme as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as c, unref as u, withDirectives as i, createVNode as p, vShow as m } from "vue";
|
|
2
|
+
import { getCustomTheme as f, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as C } from "../../../../utils/charts/chart-scatter-util.js";
|
|
5
5
|
import y from "../common/common-chart-header.vue.js";
|
|
6
6
|
import { use as v } from "echarts/core";
|
|
7
7
|
import { CanvasRenderer as R } from "echarts/renderers";
|
|
8
|
-
import { ScatterChart as
|
|
9
|
-
import { GridComponent as
|
|
8
|
+
import { ScatterChart as b } from "echarts/charts";
|
|
9
|
+
import { GridComponent as V, LegendComponent as _, TitleComponent as j, TooltipComponent as w, ToolboxComponent as I, DataZoomComponent as k } from "echarts/components";
|
|
10
10
|
import A from "vue-echarts";
|
|
11
11
|
const H = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
12
|
-
v([R, V, _, j, w, I, k
|
|
13
|
-
const z = e2, D = r(null), F = r(null), O = r(null), P = z.configure.runtime ? z.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, B = P.headerInfo ? P.headerInfo : {}, E = P.chartOption, G = z.configure.props ? z.configure.props : {}, J =
|
|
12
|
+
v([R, b, V, _, j, w, I, k]);
|
|
13
|
+
const z = e2, D = r(null), F = r(null), O = r(null), P = z.configure.runtime ? z.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, B = P.headerInfo ? P.headerInfo : {}, E = P.chartOption, G = z.configure.props ? z.configure.props : {}, J = f(G.customTheme);
|
|
14
14
|
h(z.configure, E), t(() => {
|
|
15
15
|
const e3 = g(z.pageContext, z.configure);
|
|
16
16
|
e3 && N(e3);
|
|
@@ -28,7 +28,7 @@ const H = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {}
|
|
|
28
28
|
}
|
|
29
29
|
return x(z.pageContext, M, L), H2({ updateChartDatas: N, exportChart: function() {
|
|
30
30
|
return l(F.value);
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style: u(
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: c(u(S)), class: s([u(T), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: D }, [i(p(y, { ref_key: "headerRef", ref: O, headerInfo: u(B), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, u(B).showHeader || e3.pageContext.showHomepageSearch]]), p(u(A), { ref_key: "chartRef", ref: F, class: "amb-chart-content", theme: u(J), option: u(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
34
|
H as default
|
|
@@ -3,6 +3,10 @@ import { getCustomFunc } from "../../../../utils/events/event-util.js";
|
|
|
3
3
|
import { getMinValue, getMaxValue, getSumValue, getAvgValue } from "../../../../utils/charts/chart-util.js";
|
|
4
4
|
class ExpressionEvaluator {
|
|
5
5
|
static evaluate(e, t, r) {
|
|
6
|
+
if (t && t.length > 0) {
|
|
7
|
+
const e2 = t[t.length - 1];
|
|
8
|
+
e2.joinSign && (e2.joinSign = "");
|
|
9
|
+
}
|
|
6
10
|
const o = t.map((t2) => this.createExpression(e, t2, r)).join(" ");
|
|
7
11
|
return this.evaluateExpression(o);
|
|
8
12
|
}
|
|
@@ -82,7 +86,7 @@ class ExpressionEvaluator {
|
|
|
82
86
|
try {
|
|
83
87
|
return eval(expression);
|
|
84
88
|
} catch (e) {
|
|
85
|
-
return
|
|
89
|
+
return false;
|
|
86
90
|
}
|
|
87
91
|
}
|
|
88
92
|
}
|
|
@@ -123,7 +127,6 @@ function summaryStatistics(e, t, r, o) {
|
|
|
123
127
|
const e2 = n2.apply(n2, [{ data: t, prop: r }]);
|
|
124
128
|
a = e2 ? ` ${e2}` : " N/A";
|
|
125
129
|
} catch (e2) {
|
|
126
|
-
console.error("自定义函数脚本错误:", t, e2);
|
|
127
130
|
}
|
|
128
131
|
else a = " N/A";
|
|
129
132
|
} else switch (n) {
|
|
@@ -156,8 +159,7 @@ function getHeaderCellStyleUtil(e, t, r) {
|
|
|
156
159
|
const a2 = getCustomFunc(r.pageContext, t2.scopeFunc);
|
|
157
160
|
if (a2) try {
|
|
158
161
|
false !== a2.apply(a2, [{ item: t2, data: e }]) && copyStyle(o, t2);
|
|
159
|
-
} catch (
|
|
160
|
-
console.error("自定义函数脚本错误:", t2, e, r2);
|
|
162
|
+
} catch (e2) {
|
|
161
163
|
}
|
|
162
164
|
} else copyStyle(o, t2);
|
|
163
165
|
}));
|
|
@@ -173,8 +175,7 @@ function getRowStyleUtil(e, t, r) {
|
|
|
173
175
|
if (t3) try {
|
|
174
176
|
const r2 = t3.apply(t3, [{ data: e }]);
|
|
175
177
|
null != r2 && false !== r2 && copyStyle(o, a);
|
|
176
|
-
} catch (
|
|
177
|
-
console.error("自定义函数脚本错误:", e, t4);
|
|
178
|
+
} catch (e2) {
|
|
178
179
|
}
|
|
179
180
|
} else if (a.matchingCondition) {
|
|
180
181
|
const t3 = ExpressionEvaluator.evaluate(r.pageContext, a.matchingCondition, e.row);
|
|
@@ -198,8 +199,7 @@ function getCellStyleUtil(e, t, r) {
|
|
|
198
199
|
const t2 = getCustomFunc(r.pageContext, n.scopeFunc);
|
|
199
200
|
if (t2) try {
|
|
200
201
|
false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, n);
|
|
201
|
-
} catch (
|
|
202
|
-
console.error("自定义函数脚本错误:", e, t3);
|
|
202
|
+
} catch (e2) {
|
|
203
203
|
}
|
|
204
204
|
} else if (n.matchingCondition) {
|
|
205
205
|
const t2 = ExpressionEvaluator.evaluate(r.pageContext, n.matchingCondition, e.row);
|
|
@@ -323,7 +323,7 @@ function computeFormula(itemConfs, datas, entity) {
|
|
|
323
323
|
r += Number(e2[t]);
|
|
324
324
|
});
|
|
325
325
|
} catch (e2) {
|
|
326
|
-
|
|
326
|
+
r = 0;
|
|
327
327
|
}
|
|
328
328
|
totalValueMap[e] = r;
|
|
329
329
|
} else (e.startsWith("${page.") || e.startsWith("${data.") || e.startsWith("${row.") || e.startsWith("${request.") || e.startsWith("${context.") || e.startsWith("${system.") || e.startsWith("${fixed.")) && (totalValueMap[e] = getValueFromVariable(entity, e, data));
|
|
@@ -335,7 +335,7 @@ function computeFormula(itemConfs, datas, entity) {
|
|
|
335
335
|
try {
|
|
336
336
|
data[key] = eval(expr);
|
|
337
337
|
} catch (e) {
|
|
338
|
-
|
|
338
|
+
data[key] = 0;
|
|
339
339
|
}
|
|
340
340
|
});
|
|
341
341
|
});
|
|
@@ -375,8 +375,7 @@ function formatCustomFunc(e, t, r, o, a) {
|
|
|
375
375
|
if (n) {
|
|
376
376
|
try {
|
|
377
377
|
return n.apply(n, [{ pageContext: o, configureObj: a, row: e, prop: r.props.base.prop }]);
|
|
378
|
-
} catch (
|
|
379
|
-
console.error("自定义函数脚本错误:", e, t2);
|
|
378
|
+
} catch (e2) {
|
|
380
379
|
}
|
|
381
380
|
return "";
|
|
382
381
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as l, resolveComponent as a, createBlock as o, openBlock as u, withCtx as p, createVNode as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, resolveComponent as a, createBlock as o, openBlock as u, withCtx as p, createVNode as s, createTextVNode as r, toDisplayString as n } from "vue";
|
|
2
2
|
import { packageTemplateFiles as i } from "../../../utils/common-util.js";
|
|
3
3
|
import { ElMessage as m } from "element-plus";
|
|
4
4
|
const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["export", "close"], setup(e2, { emit: g2 }) {
|
|
@@ -7,7 +7,7 @@ const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { c
|
|
|
7
7
|
function N(e3) {
|
|
8
8
|
let t2, l2, a2 = e3;
|
|
9
9
|
const o2 = a2.indexOf(c), u2 = a2.indexOf(d);
|
|
10
|
-
return -1 !== o2 && -1 !== u2 ? (o2 > u2 ? a2 = a2.substring(0, u2) + a2.substring(u2 + 1) : (t2 = a2.substring(o2 + 2, u2), l2 = a2.substring(o2, u2 + 1), x.value.push(t2),
|
|
10
|
+
return -1 !== o2 && -1 !== u2 ? (o2 > u2 ? a2 = a2.substring(0, u2) + a2.substring(u2 + 1) : (t2 = a2.substring(o2 + 2, u2), l2 = a2.substring(o2, u2 + 1), x.value.push(t2), a2 = a2.replace(l2, "")), N(a2)) : x.value;
|
|
11
11
|
}
|
|
12
12
|
function O(e3) {
|
|
13
13
|
v("export", f.configure, e3);
|
|
@@ -17,18 +17,16 @@ const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { c
|
|
|
17
17
|
}
|
|
18
18
|
return l(() => {
|
|
19
19
|
y.templateFiles && y.templateFiles.length > 0 ? h.value = i(y.templateFiles, f.pageContext, f.configure) : y.templateUuid && y.templateName && h.value.push({ templateUuid: y.templateUuid, templateName: y.templateName }), h.value.forEach((e3) => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}), e4;
|
|
27
|
-
}(e3.templateName));
|
|
20
|
+
var t2;
|
|
21
|
+
e3 && e3.templateName && (e3.templateName = (N(t2 = e3.templateName).forEach((e4) => {
|
|
22
|
+
const l2 = c + e4 + d;
|
|
23
|
+
let a2;
|
|
24
|
+
-1 !== t2.indexOf(l2) && Object.prototype.hasOwnProperty.call(w, e4) && (a2 = w[e4] ? w[e4] : "", t2 = t2.replace(l2, a2));
|
|
25
|
+
}), t2));
|
|
28
26
|
}), h.value && 0 !== h.value.length || (m({ message: "无符合条件可导出的模板!", type: "warning" }), v("close")), 1 === (h == null ? void 0 : h.value.length) ? (O(h.value[0]), v("close")) : b.value = true;
|
|
29
27
|
}), (e3, t2) => {
|
|
30
28
|
const l2 = a("el-table-column"), i2 = a("el-button"), m2 = a("el-table"), c2 = a("el-dialog");
|
|
31
|
-
return u(), o(c2, { modelValue: b.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => b.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: _ }, { default: p(() => [
|
|
29
|
+
return u(), o(c2, { modelValue: b.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => b.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: _ }, { default: p(() => [s(m2, { data: h.value, style: { width: "100%" } }, { default: p(() => [s(l2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: p((e4) => [r(n(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), s(l2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: p((t3) => [s(i2, { type: "text", size: "small", onClick: (e4) => O(t3.row) }, { default: p(() => [r(n(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"]);
|
|
32
30
|
};
|
|
33
31
|
} });
|
|
34
32
|
export {
|
|
@@ -19,7 +19,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
|
|
|
19
19
|
B.value = l2 ?? 0, R(n2 || i2 || false, e3);
|
|
20
20
|
}
|
|
21
21
|
} catch (e3) {
|
|
22
|
-
console.error(e3);
|
|
23
22
|
}
|
|
24
23
|
}, R = (e3, t2) => {
|
|
25
24
|
var _a;
|
|
@@ -56,7 +55,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
|
|
|
56
55
|
})();
|
|
57
56
|
b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
|
|
58
57
|
} catch (e3) {
|
|
59
|
-
console.error(e3);
|
|
60
58
|
}
|
|
61
59
|
});
|
|
62
60
|
}, 100);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as a, onMounted as r, watch as l, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as s, unref as p, withCtx as c, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
|
|
2
2
|
import d from "qrcode";
|
|
3
3
|
import v from "jsbarcode";
|
|
4
4
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
@@ -12,7 +12,7 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
12
12
|
let k = y(q.pageContext, q.configure);
|
|
13
13
|
const A = t({ get: () => x(N, k), set(e3) {
|
|
14
14
|
h(N, k, e3);
|
|
15
|
-
} }), E = q.configure.runtime ? q.configure.runtime : {}, _ =
|
|
15
|
+
} }), E = q.configure.runtime ? q.configure.runtime : {}, _ = a(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = a(""), I = a(null), Q = a(_.value.brCodeFormat ?? "CODE128"), V = a([]);
|
|
16
16
|
function F(e3) {
|
|
17
17
|
return h(N, k, e3);
|
|
18
18
|
}
|
|
@@ -22,32 +22,31 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
22
22
|
function L(e3) {
|
|
23
23
|
var t2;
|
|
24
24
|
"QR-code" === _.value.type ? (t2 = e3, d.toDataURL(t2, (e4, t3) => {
|
|
25
|
-
e4
|
|
25
|
+
e4 || ($.value = t3);
|
|
26
26
|
})) : function(e4) {
|
|
27
27
|
try {
|
|
28
28
|
v(I.value, e4, { format: Q.value });
|
|
29
29
|
} catch (e5) {
|
|
30
|
-
console.error("生成条形码时发生错误:", e5);
|
|
31
30
|
}
|
|
32
31
|
}(e3);
|
|
33
32
|
}
|
|
34
|
-
return
|
|
33
|
+
return r(() => {
|
|
35
34
|
_.value.generateRule && ("fixed" === _.value.generateRuleType ? (V.value = Array.from(_.value.generateRule.matchAll(/\$\{(\w+)\}/g), (e3) => e3[1]), V.value.forEach((e3) => {
|
|
36
|
-
|
|
35
|
+
l(() => q.pageContext.entity.data[e3], (e4, t2) => {
|
|
37
36
|
null != e4 && function() {
|
|
38
37
|
let e5 = true;
|
|
39
38
|
V.value.forEach((t3) => {
|
|
40
39
|
q.pageContext.entity.data[t3] || (e5 = false);
|
|
41
40
|
}), e5 && J(function(e6, t3) {
|
|
42
|
-
const
|
|
43
|
-
return e6.replace(
|
|
41
|
+
const a2 = /\$\{(\w+)\}/g;
|
|
42
|
+
return e6.replace(a2, (e7, a3) => t3.hasOwnProperty(a3) ? t3[a3] : e7);
|
|
44
43
|
}(_.value.generateRule, q.pageContext.entity.data));
|
|
45
44
|
}();
|
|
46
45
|
});
|
|
47
46
|
})) : w.get(window.$vueApp.config.globalProperties.baseAPI + "/dc/setting-barcode-models/by-code/" + _.value.generateRule).then((e3) => {
|
|
48
47
|
const t2 = JSON.parse(e3.barcodeModelItems);
|
|
49
48
|
t2.forEach((e4) => {
|
|
50
|
-
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName),
|
|
49
|
+
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), l(() => q.pageContext.entity.data[e4.propDbName], (e5, a2) => {
|
|
51
50
|
if (null != e5) {
|
|
52
51
|
const e6 = b(t2, q.pageContext.entity.data);
|
|
53
52
|
e6 && J(e6);
|
|
@@ -55,13 +54,12 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
55
54
|
}));
|
|
56
55
|
});
|
|
57
56
|
}).catch((e3) => {
|
|
58
|
-
console.error("获取条码规则失败:", e3);
|
|
59
57
|
})), A.value && L(A.value);
|
|
60
58
|
}), D2({ getValue: function() {
|
|
61
59
|
return x(N, k);
|
|
62
60
|
}, setValue: F }), (e3, t2) => {
|
|
63
|
-
const
|
|
64
|
-
return
|
|
61
|
+
const a2 = o("el-form-item");
|
|
62
|
+
return n(), u(a2, { required: !!_.value.required, class: s(p(P)), "label-width": _.value.labelWidth, style: i(p(O)) }, { label: c(() => [_.value.tittleShow ? (n(), m("div", { key: 0, style: i({ ...p(S) }) }, g(p(R)(_.value.title)), 5)) : f("", true)]), default: c(() => ["QR-code" === _.value.type ? (n(), m("img", { key: 0, src: $.value }, null, 8, j)) : (n(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
65
63
|
};
|
|
66
64
|
} });
|
|
67
65
|
export {
|