super-page-runtime 2.3.14 → 2.3.15-sit2
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/ai-chat-util.js +16 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
- package/dist/es/components/runtime/utils/events/event-util.js +29 -29
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +5 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +163 -114
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +117 -88
- package/dist/es/components/runtime/utils/page-permission-util.js +1 -1
- 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/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- 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/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +11 -18
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +26 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +23 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +35 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +18 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- 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 +18 -18
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +19 -18
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +53 -42
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +61 -62
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +81 -58
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +17 -17
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- 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.vue.d.ts +2 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +200 -185
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +76 -76
- package/package.json +3 -2
|
@@ -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 {
|
package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js
CHANGED
|
@@ -56,7 +56,7 @@ const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
|
|
|
56
56
|
_.value = true, k.value = N.configure.pushHomepage.searchConditions;
|
|
57
57
|
} }), (t2, i2) => {
|
|
58
58
|
const o2 = l("el-empty"), v2 = l("el-form"), h2 = l("el-button"), y2 = l("el-dialog");
|
|
59
|
-
return r(), a(y2, { modelValue: _.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(o2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: j.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() =>
|
|
59
|
+
return r(), a(y2, { modelValue: _.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(o2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: j.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() => i2[1] || (i2[1] = [p(" 确定 ")])), _: 1 }), s(h2, { type: "default", onClick: H }, { default: n(() => i2[2] || (i2[2] = [p("重置")])), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => i2[3] || (i2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
|
|
60
60
|
};
|
|
61
61
|
} });
|
|
62
62
|
export {
|
|
@@ -28,7 +28,7 @@ const k = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }
|
|
|
28
28
|
}
|
|
29
29
|
return x(A.pageContext, K, J), k2({ updateChartDatas: L, exportChart: function() {
|
|
30
30
|
return l(O.value);
|
|
31
|
-
} }), (
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: u(i(F)), class: s([i(P), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: H }, [c(p(v, { ref_key: "headerRef", ref: z, headerInfo: i(T), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, i(T).showHeader || e3.pageContext.showHomepageSearch]]), p(i(I), { ref_key: "chartRef", ref: O, class: "amb-chart-content", theme: i(E), option: i(q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
34
|
k as default
|
|
@@ -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(S.value);
|
|
42
|
-
} }), (
|
|
42
|
+
} }), (e3, r2) => (n(), a("div", { style: i(l(B)), class: u([l(G), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: O }, [c(s(k, { ref_key: "headerRef", ref: T, headerInfo: l(K), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Q, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, l(K).showHeader || e3.pageContext.showHomepageSearch]]), s(l(E), { ref_key: "chartRef", ref: S, class: "amb-chart-content", theme: l(N), option: l(L), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
45
|
A as default
|
|
@@ -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(z.value);
|
|
31
|
-
} }), (
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: u(i(P)), class: s([i(S), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: O }, [c(p(v, { ref_key: "headerRef", ref: D, headerInfo: i(q), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, i(q).showHeader || e3.pageContext.showHomepageSearch]]), p(i(k), { ref_key: "chartRef", ref: z, class: "amb-chart-content", theme: i(G), option: i(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
34
|
A as default
|
|
@@ -28,7 +28,7 @@ const H = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {}
|
|
|
28
28
|
}
|
|
29
29
|
return x(O.pageContext, M, L), H2({ updateChartDatas: N, exportChart: function() {
|
|
30
30
|
return l(D.value);
|
|
31
|
-
} }), (
|
|
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: z }, [i(p(v, { ref_key: "headerRef", ref: F, 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: D, 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
|
|
@@ -11,24 +11,24 @@ class ExpressionEvaluator {
|
|
|
11
11
|
return this.evaluateExpression(o);
|
|
12
12
|
}
|
|
13
13
|
static createExpression(e, t, r) {
|
|
14
|
-
const { propName: o, operator:
|
|
14
|
+
const { propName: o, operator: a, propValue: n, leftBracket: s, rightBracket: l, joinSign: i, dataType: c } = t;
|
|
15
15
|
if (!o || "" === o) return "";
|
|
16
16
|
const u = getValueFromVariable(e.entity, o, r);
|
|
17
|
-
let p = `${s} ${this.getComparisonExpression(u, t, getValueFromVariable(e.entity,
|
|
17
|
+
let p = `${s} ${this.getComparisonExpression(u, t, getValueFromVariable(e.entity, n, r))} ${l}`;
|
|
18
18
|
return i && ("and" === i || "AND" === i ? p += "&&" : "or" !== i && "OR" !== i || (p += "||")), p.trim();
|
|
19
19
|
}
|
|
20
20
|
static getComparisonExpression(e, t, r) {
|
|
21
|
-
const { dataType: o, variableIsNull:
|
|
22
|
-
let
|
|
23
|
-
|
|
21
|
+
const { dataType: o, variableIsNull: a } = t;
|
|
22
|
+
let n = t.operator;
|
|
23
|
+
n || (n = "EQ");
|
|
24
24
|
let s = this.parseValue(e, o);
|
|
25
25
|
const l = this.parseValue(r, o);
|
|
26
|
-
if (null == l &&
|
|
27
|
-
if (null == s && (s = "null"), "null" ===
|
|
28
|
-
if ("ignore" ===
|
|
29
|
-
if ("notequal" ===
|
|
26
|
+
if (null == l && a) {
|
|
27
|
+
if (null == s && (s = "null"), "null" === a) return `${s} === null`;
|
|
28
|
+
if ("ignore" === a) return "1=1";
|
|
29
|
+
if ("notequal" === a) return "1!=1";
|
|
30
30
|
}
|
|
31
|
-
switch (
|
|
31
|
+
switch (n) {
|
|
32
32
|
case "EQ":
|
|
33
33
|
return `${s} === ${l}`;
|
|
34
34
|
case "GT":
|
|
@@ -55,7 +55,7 @@ class ExpressionEvaluator {
|
|
|
55
55
|
}
|
|
56
56
|
return `[${l}].includes(${s})`;
|
|
57
57
|
default:
|
|
58
|
-
throw new Error(`比较符号不匹配: ${
|
|
58
|
+
throw new Error(`比较符号不匹配: ${n}`);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
static changeDataType(e) {
|
|
@@ -86,7 +86,7 @@ class ExpressionEvaluator {
|
|
|
86
86
|
try {
|
|
87
87
|
return eval(expression);
|
|
88
88
|
} catch (e) {
|
|
89
|
-
return
|
|
89
|
+
return false;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -114,40 +114,39 @@ function getSummaryDataColumn(e, t) {
|
|
|
114
114
|
const r = {};
|
|
115
115
|
return ((_a = e.props.summaries) == null ? void 0 : _a.dataColumn) && e.props.summaries.dataColumn.length > 0 && e.props.summaries.dataColumn.forEach((o) => {
|
|
116
116
|
var _a2;
|
|
117
|
-
const
|
|
118
|
-
|
|
117
|
+
const a = (_a2 = e.items) == null ? void 0 : _a2.find((e2) => o.prop === e2.props.base.prop);
|
|
118
|
+
a && ("table" === t && a.props.base.tableSummary || "group" === t && a.props.base.groupSummary) && (r[o.prop] = o);
|
|
119
119
|
}), r;
|
|
120
120
|
}
|
|
121
121
|
function summaryStatistics(e, t, r, o) {
|
|
122
|
-
let
|
|
123
|
-
const
|
|
124
|
-
if (s.length > 0) if ("custom" ===
|
|
125
|
-
const
|
|
126
|
-
if (
|
|
127
|
-
const e2 =
|
|
128
|
-
|
|
122
|
+
let a = "";
|
|
123
|
+
const n = e.summaryMode, s = t.map((e2) => Number(e2[r])).filter((e2) => !Number.isNaN(e2));
|
|
124
|
+
if (s.length > 0) if ("custom" === n) {
|
|
125
|
+
const n2 = getCustomFunc(o, e.customFunc);
|
|
126
|
+
if (n2) try {
|
|
127
|
+
const e2 = n2.apply(n2, [{ data: t, prop: r }]);
|
|
128
|
+
a = e2 ? ` ${e2}` : " N/A";
|
|
129
129
|
} catch (e2) {
|
|
130
|
-
console.error("自定义函数脚本错误:", t, e2);
|
|
131
130
|
}
|
|
132
|
-
else
|
|
133
|
-
} else switch (
|
|
131
|
+
else a = " N/A";
|
|
132
|
+
} else switch (n) {
|
|
134
133
|
case "sum":
|
|
135
|
-
|
|
134
|
+
a = ` ${s.reduce((e2, t2) => e2 + t2, 0)}`;
|
|
136
135
|
break;
|
|
137
136
|
case "avg":
|
|
138
|
-
|
|
137
|
+
a = " " + s.reduce((e2, t2) => e2 + t2, 0) / s.length;
|
|
139
138
|
break;
|
|
140
139
|
case "min":
|
|
141
|
-
|
|
140
|
+
a = ` ${Math.min(...s)}`;
|
|
142
141
|
break;
|
|
143
142
|
case "max":
|
|
144
|
-
|
|
143
|
+
a = ` ${Math.max(...s)}`;
|
|
145
144
|
break;
|
|
146
145
|
default:
|
|
147
|
-
|
|
146
|
+
a = " N/A";
|
|
148
147
|
}
|
|
149
|
-
else
|
|
150
|
-
return
|
|
148
|
+
else a = " N/A";
|
|
149
|
+
return a;
|
|
151
150
|
}
|
|
152
151
|
function replacePlaceholders(e, t) {
|
|
153
152
|
if (e) return e.replace(/\$\{row\.(\w+)\}/g, (e2, r) => Object.prototype.hasOwnProperty.call(t, r) ? t[r] : "");
|
|
@@ -157,33 +156,31 @@ function getHeaderCellStyleUtil(e, t, r) {
|
|
|
157
156
|
const o = {};
|
|
158
157
|
e.column.property && ((_a = t.titleStyle) == null ? void 0 : _a.forEach((t2) => {
|
|
159
158
|
if (t2.field && t2.field.includes(e.column.property)) if (t2.scopeFunc) {
|
|
160
|
-
const
|
|
161
|
-
if (
|
|
162
|
-
false !==
|
|
163
|
-
} catch (
|
|
164
|
-
console.error("自定义函数脚本错误:", t2, e, r2);
|
|
159
|
+
const a2 = getCustomFunc(r.pageContext, t2.scopeFunc);
|
|
160
|
+
if (a2) try {
|
|
161
|
+
false !== a2.apply(a2, [{ item: t2, data: e }]) && copyStyle(o, t2);
|
|
162
|
+
} catch (e2) {
|
|
165
163
|
}
|
|
166
164
|
} else copyStyle(o, t2);
|
|
167
165
|
}));
|
|
168
|
-
const
|
|
169
|
-
return
|
|
166
|
+
const a = getCellStyleUtil(e, t.cellTitleStyle, r);
|
|
167
|
+
return a && Object.assign(o, a), o;
|
|
170
168
|
}
|
|
171
169
|
function getRowStyleUtil(e, t, r) {
|
|
172
170
|
const o = {};
|
|
173
171
|
if (r.configure.style.rowStyle) for (let t2 = 0; t2 < r.configure.style.rowStyle.length; t2++) {
|
|
174
|
-
const
|
|
175
|
-
if (
|
|
176
|
-
const t3 = getCustomFunc(r.pageContext,
|
|
172
|
+
const a = r.configure.style.rowStyle[t2];
|
|
173
|
+
if (a.scopeFunc) {
|
|
174
|
+
const t3 = getCustomFunc(r.pageContext, a.scopeFunc);
|
|
177
175
|
if (t3) try {
|
|
178
176
|
const r2 = t3.apply(t3, [{ data: e }]);
|
|
179
|
-
null != r2 && false !== r2 && copyStyle(o,
|
|
180
|
-
} catch (
|
|
181
|
-
console.error("自定义函数脚本错误:", e, t4);
|
|
177
|
+
null != r2 && false !== r2 && copyStyle(o, a);
|
|
178
|
+
} catch (e2) {
|
|
182
179
|
}
|
|
183
|
-
} else if (
|
|
184
|
-
const t3 = ExpressionEvaluator.evaluate(r.pageContext,
|
|
185
|
-
(t3 || void 0 === t3) && copyStyle(o,
|
|
186
|
-
} else copyStyle(o,
|
|
180
|
+
} else if (a.matchingCondition) {
|
|
181
|
+
const t3 = ExpressionEvaluator.evaluate(r.pageContext, a.matchingCondition, e.row);
|
|
182
|
+
(t3 || void 0 === t3) && copyStyle(o, a);
|
|
183
|
+
} else copyStyle(o, a);
|
|
187
184
|
}
|
|
188
185
|
if (t && t.length > 0 && -1 !== t.indexOf(e.rowIndex)) {
|
|
189
186
|
const e2 = {};
|
|
@@ -196,19 +193,18 @@ function getRowStyleUtil(e, t, r) {
|
|
|
196
193
|
}
|
|
197
194
|
function getCellStyleUtil(e, t, r) {
|
|
198
195
|
const o = {};
|
|
199
|
-
if (t) for (let
|
|
200
|
-
const
|
|
201
|
-
if (isSetStyle(
|
|
202
|
-
const t2 = getCustomFunc(r.pageContext,
|
|
196
|
+
if (t) for (let a = 0; a < t.length; a++) {
|
|
197
|
+
const n = t[a];
|
|
198
|
+
if (isSetStyle(n)) if (n.scopeFunc) {
|
|
199
|
+
const t2 = getCustomFunc(r.pageContext, n.scopeFunc);
|
|
203
200
|
if (t2) try {
|
|
204
|
-
false !== t2.apply(t2, [{ data: e }]) && copyStyle(o,
|
|
205
|
-
} catch (
|
|
206
|
-
console.error("自定义函数脚本错误:", e, t3);
|
|
201
|
+
false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, n);
|
|
202
|
+
} catch (e2) {
|
|
207
203
|
}
|
|
208
|
-
} else if (
|
|
209
|
-
const t2 = ExpressionEvaluator.evaluate(r.pageContext,
|
|
210
|
-
(t2 || void 0 === t2) && copyStyle(o,
|
|
211
|
-
} else copyStyle(o,
|
|
204
|
+
} else if (n.matchingCondition) {
|
|
205
|
+
const t2 = ExpressionEvaluator.evaluate(r.pageContext, n.matchingCondition, e.row);
|
|
206
|
+
(t2 || void 0 === t2) && copyStyle(o, n);
|
|
207
|
+
} else copyStyle(o, n);
|
|
212
208
|
}
|
|
213
209
|
return o;
|
|
214
210
|
}
|
|
@@ -220,33 +216,33 @@ function copyStyle(e, t) {
|
|
|
220
216
|
Object.assign(e, t.style), t.customStyle && Object.assign(e, JSON.parse(t.customStyle));
|
|
221
217
|
}
|
|
222
218
|
function rowDataToColumn(e, t, r) {
|
|
223
|
-
const o = t.props.dataOrigin.groupField,
|
|
219
|
+
const o = t.props.dataOrigin.groupField, a = t.props.dataOrigin.rowToColumn.titleColumns, n = t.props.dataOrigin.rowToColumn.dataColumns, s = [], l = {};
|
|
224
220
|
if (o && o.length > 0) e.forEach((e2) => {
|
|
225
221
|
const t2 = o.map((t3) => e2[t3]).join("|");
|
|
226
222
|
if (!l[t2]) {
|
|
227
223
|
const r2 = {};
|
|
228
224
|
o.forEach((t3) => r2[t3] = e2[t3]), l[t2] = r2, s.push(r2);
|
|
229
225
|
}
|
|
230
|
-
|
|
231
|
-
const o2 = `${
|
|
226
|
+
n.forEach((r2) => {
|
|
227
|
+
const o2 = `${a.map((t3) => e2[t3]).join("")}${r2}`;
|
|
232
228
|
l[t2][o2] = e2[r2];
|
|
233
229
|
});
|
|
234
230
|
});
|
|
235
231
|
else {
|
|
236
232
|
const t2 = [];
|
|
237
233
|
e.forEach((e2) => {
|
|
238
|
-
|
|
234
|
+
a.forEach((r2) => {
|
|
239
235
|
e2[r2] && t2.push(e2[r2]);
|
|
240
236
|
});
|
|
241
|
-
}),
|
|
242
|
-
const o2 = {},
|
|
237
|
+
}), n.forEach((t3) => {
|
|
238
|
+
const o2 = {}, n2 = r.find((e2) => {
|
|
243
239
|
var _a, _b;
|
|
244
240
|
return ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop) === t3;
|
|
245
241
|
});
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
const
|
|
249
|
-
o2[
|
|
242
|
+
n2 && (o2.$GroupColumn = n2.props.base.name), e.forEach((e2) => {
|
|
243
|
+
a.forEach((r2) => {
|
|
244
|
+
const a2 = e2[r2], n3 = e2[t3];
|
|
245
|
+
o2[a2] = n3;
|
|
250
246
|
});
|
|
251
247
|
}), s.push(o2);
|
|
252
248
|
});
|
|
@@ -254,9 +250,9 @@ function rowDataToColumn(e, t, r) {
|
|
|
254
250
|
return s;
|
|
255
251
|
}
|
|
256
252
|
function colDataToRow(e, t) {
|
|
257
|
-
const r = t.props.dataOrigin.groupField, o = t.props.dataOrigin.columnToRow.titleColumns,
|
|
253
|
+
const r = t.props.dataOrigin.groupField, o = t.props.dataOrigin.columnToRow.titleColumns, a = t.props.dataOrigin.columnToRow.dataColumns, n = t.props.dataOrigin.columnToRow.transColumns, s = t.props.dataOrigin.columnToRow.dataColumnsMapping;
|
|
258
254
|
if (0 === e.length) return e;
|
|
259
|
-
const l = [], i = groupBy(e, r), c =
|
|
255
|
+
const l = [], i = groupBy(e, r), c = a.reduce((e2, t2) => t2.columns.length > e2.columns.length ? t2 : e2, a[0]), u = a.reduce((e2, t2) => (t2.columns.forEach((r2) => {
|
|
260
256
|
e2[r2] = t2.prop;
|
|
261
257
|
}), e2), {});
|
|
262
258
|
return i.forEach((e2) => {
|
|
@@ -264,14 +260,14 @@ function colDataToRow(e, t) {
|
|
|
264
260
|
const i2 = c.prop, p = {};
|
|
265
261
|
if (r.forEach((t3) => {
|
|
266
262
|
p[t3] = e2[t3];
|
|
267
|
-
}), p[i2] = e2[t2],
|
|
263
|
+
}), p[i2] = e2[t2], a.length > 1) {
|
|
268
264
|
const r2 = s.find((e3) => e3.props.includes(t2));
|
|
269
265
|
r2 && r2.props.length > 1 && r2.props.forEach((r3) => {
|
|
270
266
|
r3 !== t2 && u[r3] && (p[u[r3]] = e2[r3]);
|
|
271
267
|
});
|
|
272
268
|
}
|
|
273
269
|
o.forEach((e3) => {
|
|
274
|
-
const r2 =
|
|
270
|
+
const r2 = n.filter((t3) => t3.relatedTitle === e3.prop);
|
|
275
271
|
let o2 = false;
|
|
276
272
|
r2 && r2.length > 0 && r2.forEach((r3) => {
|
|
277
273
|
if (r3.columns.includes(t2)) return p[e3.prop] = r3.label, void (o2 = true);
|
|
@@ -281,25 +277,25 @@ function colDataToRow(e, t) {
|
|
|
281
277
|
}), l;
|
|
282
278
|
}
|
|
283
279
|
function getColumnToRowTableConfig(e) {
|
|
284
|
-
const t = e.items, r = e.props.dataOrigin.groupField, o = e.props.dataOrigin.columnToRow.titleColumns,
|
|
280
|
+
const t = e.items, r = e.props.dataOrigin.groupField, o = e.props.dataOrigin.columnToRow.titleColumns, a = e.props.dataOrigin.columnToRow.dataColumns, n = [];
|
|
285
281
|
r && r.length > 0 && r.forEach((e2) => {
|
|
286
282
|
if (t) {
|
|
287
283
|
const r2 = t.find((t2) => t2.props.base.prop === e2);
|
|
288
|
-
r2 &&
|
|
284
|
+
r2 && n.push(r2);
|
|
289
285
|
}
|
|
290
286
|
});
|
|
291
|
-
return [...o, ...
|
|
287
|
+
return [...o, ...a].forEach((e2) => {
|
|
292
288
|
if (t) {
|
|
293
289
|
const r2 = t.find((t2) => t2.props.base.prop === e2);
|
|
294
|
-
r2 ?
|
|
290
|
+
r2 ? n.push(r2) : n.push({ uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: e2.prop, name: e2.title, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: "string" }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } });
|
|
295
291
|
}
|
|
296
|
-
}),
|
|
292
|
+
}), n;
|
|
297
293
|
}
|
|
298
294
|
function groupBy(e, t) {
|
|
299
295
|
const r = {};
|
|
300
296
|
return e.forEach((e2) => {
|
|
301
297
|
const o = t.map((t2) => e2[t2]).join("|");
|
|
302
|
-
r[o] || (r[o] = { ...e2, records: [] }, t.forEach((t2,
|
|
298
|
+
r[o] || (r[o] = { ...e2, records: [] }, t.forEach((t2, a) => {
|
|
303
299
|
r[o][t2] = e2[t2];
|
|
304
300
|
})), r[o].records.push(e2);
|
|
305
301
|
}), Object.values(r).map((e2) => ({ ...e2, records: void 0 }));
|
|
@@ -327,7 +323,7 @@ function computeFormula(itemConfs, datas, entity) {
|
|
|
327
323
|
r += Number(e2[t]);
|
|
328
324
|
});
|
|
329
325
|
} catch (e2) {
|
|
330
|
-
|
|
326
|
+
r = 0;
|
|
331
327
|
}
|
|
332
328
|
totalValueMap[e] = r;
|
|
333
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));
|
|
@@ -339,7 +335,7 @@ function computeFormula(itemConfs, datas, entity) {
|
|
|
339
335
|
try {
|
|
340
336
|
data[key] = eval(expr);
|
|
341
337
|
} catch (e) {
|
|
342
|
-
|
|
338
|
+
data[key] = 0;
|
|
343
339
|
}
|
|
344
340
|
});
|
|
345
341
|
});
|
|
@@ -347,19 +343,19 @@ function computeFormula(itemConfs, datas, entity) {
|
|
|
347
343
|
function getFieldName(e) {
|
|
348
344
|
return e.substring(6, e.length - 1);
|
|
349
345
|
}
|
|
350
|
-
function formatColContent(e, t, r, o,
|
|
351
|
-
const
|
|
346
|
+
function formatColContent(e, t, r, o, a) {
|
|
347
|
+
const n = e[r.props.base.prop];
|
|
352
348
|
switch (t.type) {
|
|
353
349
|
case "number":
|
|
354
|
-
return formatNumber(
|
|
350
|
+
return formatNumber(n, t);
|
|
355
351
|
case "currency":
|
|
356
|
-
return formatCurrency(
|
|
352
|
+
return formatCurrency(n, t);
|
|
357
353
|
case "percent":
|
|
358
|
-
return formatPercent(
|
|
354
|
+
return formatPercent(n, t);
|
|
359
355
|
case "custom":
|
|
360
|
-
return formatCustomFunc(e, t, r, o,
|
|
356
|
+
return formatCustomFunc(e, t, r, o, a);
|
|
361
357
|
default:
|
|
362
|
-
return
|
|
358
|
+
return n;
|
|
363
359
|
}
|
|
364
360
|
}
|
|
365
361
|
function formatNumber(e, t) {
|
|
@@ -374,29 +370,28 @@ function formatPercent(e, t) {
|
|
|
374
370
|
let r = e;
|
|
375
371
|
return r || (r = 0), t.decimalDigit && (r = Number(e).toFixed(t.decimalDigit)), r + " %";
|
|
376
372
|
}
|
|
377
|
-
function formatCustomFunc(e, t, r, o,
|
|
378
|
-
const
|
|
379
|
-
if (
|
|
373
|
+
function formatCustomFunc(e, t, r, o, a) {
|
|
374
|
+
const n = getCustomFunc(o, t.customFunc);
|
|
375
|
+
if (n) {
|
|
380
376
|
try {
|
|
381
|
-
return
|
|
382
|
-
} catch (
|
|
383
|
-
console.error("自定义函数脚本错误:", e, t2);
|
|
377
|
+
return n.apply(n, [{ pageContext: o, configureObj: a, row: e, prop: r.props.base.prop }]);
|
|
378
|
+
} catch (e2) {
|
|
384
379
|
}
|
|
385
380
|
return "";
|
|
386
381
|
}
|
|
387
382
|
}
|
|
388
|
-
function mergeRowByProperty(e, t, r, o,
|
|
389
|
-
const
|
|
383
|
+
function mergeRowByProperty(e, t, r, o, a) {
|
|
384
|
+
const n = e[o];
|
|
390
385
|
let s = 1, l = true;
|
|
391
386
|
for (let e2 = r - 1; e2 >= 0; e2--) {
|
|
392
|
-
if (
|
|
387
|
+
if (a[e2][o] === n) {
|
|
393
388
|
l = false;
|
|
394
389
|
break;
|
|
395
390
|
}
|
|
396
391
|
break;
|
|
397
392
|
}
|
|
398
393
|
if (!l) return [0, 0];
|
|
399
|
-
for (let e2 = r + 1; e2 <
|
|
394
|
+
for (let e2 = r + 1; e2 < a.length && a[e2][o] === n; e2++) s++;
|
|
400
395
|
return [s, 1];
|
|
401
396
|
}
|
|
402
397
|
export {
|
|
@@ -178,9 +178,8 @@ const M = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
178
178
|
return o2.forEach((e4, o3) => {
|
|
179
179
|
if (pe.value[e4.property]) {
|
|
180
180
|
const t2 = pe.value[e4.property].label;
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
if (le.value[e4.property]) {
|
|
181
|
+
n2[o3] = C("div", {}, [P(t2, r2)]);
|
|
182
|
+
} else if (le.value[e4.property]) {
|
|
184
183
|
const t2 = r2.filter((e5, o4) => !ce.includes(o4));
|
|
185
184
|
n2[o3] = J(le.value[e4.property], t2, e4.property, Q.pageContext);
|
|
186
185
|
}
|
|
@@ -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 {
|
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t,
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
h.value = e3;
|
|
8
|
-
}
|
|
1
|
+
import { defineComponent as e, ref as t, resolveComponent as s, createElementBlock as l, openBlock as o, createVNode as a, withCtx as n, createElementVNode as r, createTextVNode as u, toDisplayString as i } from "vue";
|
|
2
|
+
import { ElMessage as m } from "element-plus";
|
|
3
|
+
import { useI18n as p } from "vue-i18n";
|
|
4
|
+
import d from "./remove-signer-table.vue.js";
|
|
5
|
+
const c = { class: "dialog-footer" }, v = e({ __name: "remove-signer-dialog", props: { taskId: { type: Number, default: null }, activeTasks: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(e2, { emit: v2 }) {
|
|
6
|
+
const { t: g } = p(), f = v2, k = t([]), y = t(null);
|
|
9
7
|
function R() {
|
|
10
|
-
0 !==
|
|
8
|
+
k.value = y.value.getSelections(), 0 !== k.value.length ? f("result", k.value) : m({ showClose: true, type: "warning", message: this.$t("superPageRuntimeMessage.pleaseSelectRemoverUsers") });
|
|
11
9
|
}
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return [];
|
|
16
|
-
}();
|
|
17
|
-
}), (e3, t2) => {
|
|
18
|
-
const l2 = a("el-table-column"), p2 = a("el-table"), m2 = a("el-button"), g3 = a("el-dialog");
|
|
19
|
-
return o(), s("div", null, [n(g3, { "model-value": "", title: e3.$t("superPageRuntimeMessage.selectRemoveUsers"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: t2[1] || (t2[1] = (e4) => b("open")), onOpend: t2[2] || (t2[2] = (e4) => b("opend")), onClose: t2[3] || (t2[3] = (e4) => b("close")), onClosed: t2[4] || (t2[4] = (e4) => b("closed")) }, { footer: r(() => [u("div", c, [n(m2, { type: "primary", onClick: R }, { default: r(() => [i(d(e3.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), n(m2, { type: "default", onClick: t2[0] || (t2[0] = (t3) => e3.$emit("close")) }, { default: r(() => [i(d(e3.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: r(() => [n(p2, { data: y.value, border: "", style: { width: "100%" }, onSelect: k }, { default: r(() => [n(l2, { type: "selection", width: "55" }), n(l2, { prop: "transactorName", label: e3.$t("superPageRuntimeMessage.transactorName"), width: "180" }, null, 8, ["label"]), n(l2, { prop: "transactor", label: e3.$t("superPageRuntimeMessage.transactor"), width: "180" }, null, 8, ["label"]), n(l2, { prop: "trustorName", label: e3.$t("superPageRuntimeMessage.trustorName"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
|
|
10
|
+
return (t2, m2) => {
|
|
11
|
+
const p2 = s("el-button"), v3 = s("el-dialog");
|
|
12
|
+
return o(), l("div", null, [a(v3, { "model-value": "", title: t2.$t("superPageRuntimeMessage.selectRemoveUsers"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: m2[1] || (m2[1] = (e3) => f("open")), onOpend: m2[2] || (m2[2] = (e3) => f("opend")), onClose: m2[3] || (m2[3] = (e3) => f("close")), onClosed: m2[4] || (m2[4] = (e3) => f("closed")) }, { footer: n(() => [r("div", c, [a(p2, { type: "primary", onClick: R }, { default: n(() => [u(i(t2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), a(p2, { type: "default", onClick: m2[0] || (m2[0] = (e3) => t2.$emit("close")) }, { default: n(() => [u(i(t2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: n(() => [a(d, { ref_key: "removeTableRef", ref: y, taskId: e2.taskId, activeTasks: e2.activeTasks }, null, 8, ["taskId", "activeTasks"])]), _: 1 }, 8, ["title"])]);
|
|
20
13
|
};
|
|
21
14
|
} });
|
|
22
15
|
export {
|
|
23
|
-
|
|
16
|
+
v as default
|
|
24
17
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare function getSelections(): any[];
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
taskId: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
default: any;
|
|
6
|
+
};
|
|
7
|
+
activeTasks: {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
default: any;
|
|
10
|
+
};
|
|
11
|
+
}>, {
|
|
12
|
+
getSelections: typeof getSelections;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
|
+
taskId: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: any;
|
|
17
|
+
};
|
|
18
|
+
activeTasks: {
|
|
19
|
+
type: ArrayConstructor;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{}>, {
|
|
23
|
+
taskId: number;
|
|
24
|
+
activeTasks: unknown[];
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export default _default;
|