super-page-runtime 2.2.83 → 2.2.89
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 +56 -56
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +74 -74
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +7 -9
- package/dist/es/components/runtime/utils/events/event-util.js +113 -113
- package/dist/es/components/runtime/utils/events/print-label.js +37 -38
- package/dist/es/components/runtime/utils/events/standard-event.js +508 -524
- package/dist/es/components/runtime/utils/events/validator-util.js +72 -62
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +210 -210
- package/dist/es/components/runtime/utils/page-init-util.js +47 -50
- package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/utils/table-utils.js +23 -23
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +16 -13
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +15 -11
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +12 -16
- 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 +9 -11
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
- 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 +12 -13
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +13 -14
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +131 -122
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +90 -57
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -26
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +39 -36
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +11 -8
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- 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 +92 -94
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +123 -124
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +16 -14
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +80 -77
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +34 -29
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +39 -41
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +50 -51
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +9 -10
- package/dist/es/components/runtime/views/{super-page-dialog.vue2.js → super-page-dialog.vue3.js} +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +126 -126
- package/dist/es/index.js +1 -0
- package/dist/es/style.css +234 -99
- package/package.json +2 -2
|
@@ -1,131 +1,134 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as a, onMounted as n, nextTick as l, watch as o, resolveComponent as u, createElementBlock as d, openBlock as i, normalizeClass as s, unref as r, createBlock as c, createCommentVNode as p, withDirectives as v, normalizeStyle as f, withCtx as g, createVNode as m, createElementVNode as h, createTextVNode as y, Fragment as C, toDisplayString as x, renderList as k, vShow as N } from "vue";
|
|
2
2
|
import T from "../../../../../../assets/folder.png.js";
|
|
3
3
|
import I from "../../../../../../assets/file.png.js";
|
|
4
4
|
import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
|
|
5
|
-
import { setVariableValue as b, getVariableValue as
|
|
6
|
-
import { getMenuTreeData as
|
|
7
|
-
import { handleAfterInitEvent as
|
|
5
|
+
import { setVariableValue as b, getVariableValue as L } from "../../../../utils/page-helper-util.js";
|
|
6
|
+
import { getMenuTreeData as M, createTreeNode as w, updateTreeNode as E, deleteNode as K } from "../../../../utils/tree-utils.js";
|
|
7
|
+
import { handleAfterInitEvent as _, handleFormEvent as j } from "../../../../utils/events/event-util.js";
|
|
8
8
|
import { ElMessageBox as S, ElMessage as z } from "element-plus";
|
|
9
9
|
import { checkPermission as B } from "agilebuilder-ui/src/utils/permission";
|
|
10
|
-
const P = { key: 0, class: "custom-tree-node" },
|
|
10
|
+
const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, class: "item-row" }, D = { class: "item-side" }, H = { key: 1, class: "item-side", style: { display: "flex", "align-items": "center" } }, O = ["onClick"], U = e({ __name: "tree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: U2 }) {
|
|
11
11
|
var _a, _b, _c;
|
|
12
|
-
const
|
|
13
|
-
((_a =
|
|
14
|
-
if (e3.functionCodes && e3.functionCodes.length > 0) for (let
|
|
15
|
-
const
|
|
16
|
-
if (B(
|
|
12
|
+
const $ = t(), A = t(false), X = e2, Y = X.pageContext.entity ? X.pageContext.entity : {}, q = t([]);
|
|
13
|
+
((_a = X.configure.props) == null ? void 0 : _a.contextMenus) && (X.pageContext && X.configure && !X.pageContext.isTest ? X.configure.props.contextMenus.forEach((e3) => {
|
|
14
|
+
if (e3.functionCodes && e3.functionCodes.length > 0) for (let t2 = 0; t2 < e3.functionCodes.length; t2++) {
|
|
15
|
+
const a2 = e3.functionCodes[t2];
|
|
16
|
+
if (B(a2)) return void q.value.push(e3);
|
|
17
17
|
}
|
|
18
|
-
else
|
|
19
|
-
}) :
|
|
20
|
-
let
|
|
21
|
-
const
|
|
22
|
-
b(
|
|
23
|
-
} }),
|
|
24
|
-
|
|
18
|
+
else q.value.push(e3);
|
|
19
|
+
}) : q.value = X.configure.props.contextMenus);
|
|
20
|
+
let F = V(X.pageContext, X.configure);
|
|
21
|
+
const G = a({ get: () => L(Y, F), set(e3) {
|
|
22
|
+
b(Y, F, e3);
|
|
23
|
+
} }), J = t(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Q = X.configure.runtime ? X.configure.runtime : {}, Z = Q.style, ee = Q.class, te = t(), ae = t(Q.props ? Q.props : {}), ne = t({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), le = t(false), oe = t([]), ue = t(null), de = t(""), ie = t(false), se = t(""), re = t(""), ce = t("");
|
|
24
|
+
n(() => {
|
|
25
25
|
l(() => {
|
|
26
|
-
const e3 =
|
|
27
|
-
|
|
26
|
+
const e3 = G.value;
|
|
27
|
+
_(e3, X.pageContext, X.configure, { componentRef: te.value, value: e3, entity: X.pageContext.entity.data, pageData: X.pageContext.entity.page });
|
|
28
28
|
});
|
|
29
|
-
}),
|
|
29
|
+
}), J.value ? le.value = true : M(X.pageContext, X.configure).then((e3) => {
|
|
30
30
|
oe.value = e3, le.value = true;
|
|
31
31
|
}), o(de, (e3) => {
|
|
32
|
-
ie.value = true,
|
|
32
|
+
ie.value = true, te.value.filter(e3);
|
|
33
33
|
});
|
|
34
|
-
const pe = (e3,
|
|
35
|
-
function ve(e3,
|
|
36
|
-
ue.value =
|
|
34
|
+
const pe = (e3, t2) => !e3 || t2.name.includes(e3);
|
|
35
|
+
function ve(e3, t2, a2) {
|
|
36
|
+
ue.value = t2, j(null, X.pageContext, X.configure, "node-click", { data: e3, node: t2, nodeTree: a2 });
|
|
37
37
|
}
|
|
38
|
-
function fe(e3,
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
if (ie.value = false, n3
|
|
44
|
-
!function(e5,
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
ie.value = false,
|
|
38
|
+
function fe(e3, t2) {
|
|
39
|
+
let a2 = "0";
|
|
40
|
+
a2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, t3, a3) {
|
|
41
|
+
const n2 = { parentNodeId: e4, data: t3.data, searchValue: de, isSearch: ie.value };
|
|
42
|
+
M(X.pageContext, X.configure, e4, t3, n2).then((n3) => {
|
|
43
|
+
if (ie.value = false, a3(n3), "0" === e4) {
|
|
44
|
+
!function(e5, t4) {
|
|
45
|
+
const a4 = { parentNodeId: e5, data: t4.data, searchValue: de, isSearch: ie.value };
|
|
46
|
+
M(X.pageContext, X.configure, e5, t4, a4).then((t5) => {
|
|
47
|
+
ie.value = false, te.value.updateKeyChildren(e5, t5), te.value.store.nodesMap[e5] && (te.value.store.nodesMap[e5].expanded = true);
|
|
48
48
|
});
|
|
49
|
-
}(
|
|
49
|
+
}(n3[0].nodeId, t3);
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
|
-
}(
|
|
52
|
+
}(a2, e3, t2);
|
|
53
53
|
}
|
|
54
|
-
const ge =
|
|
54
|
+
const ge = t({}), me = (e3, t2, a2, n2) => {
|
|
55
55
|
if (se.value) return void z.warning("请先保存当前编辑节点!");
|
|
56
|
-
document.removeEventListener("click", he), ge.value =
|
|
57
|
-
const l2 =
|
|
58
|
-
|
|
56
|
+
document.removeEventListener("click", he), ge.value = a2, A.value = true;
|
|
57
|
+
const { clientX: l2, clientY: o2 } = e3, u2 = $.value;
|
|
58
|
+
if (u2) {
|
|
59
|
+
const { innerWidth: e4, innerHeight: t3 } = window, { offsetWidth: a3, offsetHeight: n3 } = u2, d2 = l2 + a3 > e4 ? l2 - a3 : l2, i2 = o2 + n3 > t3 ? o2 - n3 : o2;
|
|
60
|
+
u2.style.left = `${d2}px`, u2.style.top = `${i2}px`, u2.style.display = "block";
|
|
61
|
+
}
|
|
62
|
+
document.addEventListener("click", he);
|
|
59
63
|
}, he = () => {
|
|
60
|
-
|
|
61
|
-
}, ye = (e3,
|
|
64
|
+
A.value = false, document.removeEventListener("click", he);
|
|
65
|
+
}, ye = (e3, t2) => {
|
|
62
66
|
if (e3.parent && e3.parent.level > 0) {
|
|
63
|
-
const
|
|
64
|
-
e3.parent.data.children[
|
|
67
|
+
const a2 = e3.parent.data.children.findIndex((t3) => t3.nodeId === e3.data.nodeId);
|
|
68
|
+
e3.parent.data.children[a2] = t2, e3.data = t2;
|
|
65
69
|
} else {
|
|
66
|
-
const
|
|
67
|
-
e3.parent.data[
|
|
70
|
+
const a2 = e3.parent.data.findIndex((t3) => t3.nodeId === e3.data.nodeId);
|
|
71
|
+
e3.parent.data[a2] = t2, e3.data = t2;
|
|
68
72
|
}
|
|
69
73
|
}, Ce = () => {
|
|
70
|
-
se.value = "",
|
|
74
|
+
se.value = "", ce.value = "", re.value = "";
|
|
71
75
|
}, xe = () => ({ nodeId: "primary" + (/* @__PURE__ */ new Date()).getTime(), name: "新增节点", disabled: false, iconType: "custom", isLeaf: true });
|
|
72
76
|
function ke(e3) {
|
|
73
77
|
e3.tipMessage ? S.confirm(e3.tipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
|
|
74
|
-
|
|
78
|
+
K(ge.value, X.configure, X.pageContext).then(() => {
|
|
75
79
|
z.success("删除成功!"), Ne(), ge.value = null;
|
|
76
80
|
});
|
|
77
81
|
}).catch(() => {
|
|
78
|
-
ge.value = null
|
|
79
|
-
}) :
|
|
82
|
+
ge.value = null;
|
|
83
|
+
}) : K(ge.value, X.configure, X.pageContext).then(() => {
|
|
80
84
|
z.success("删除成功!"), Ne(), ge.value = null;
|
|
81
85
|
});
|
|
82
86
|
}
|
|
83
87
|
const Ne = () => {
|
|
84
88
|
const e3 = ge.value.parent;
|
|
85
|
-
|
|
89
|
+
te.value.remove(ge.value), e3.childNodes && 0 === e3.childNodes.length && (e3.data.isLeaf = true), e3.data.children && e3.data.children.length > 0 && (e3.data.children = e3.data.children.filter((e4) => e4.nodeId !== ge.value.data.nodeId));
|
|
86
90
|
};
|
|
87
|
-
return
|
|
91
|
+
return U2({ getSelectNode: function() {
|
|
88
92
|
return ue.value;
|
|
89
93
|
}, expandNode: function(e3) {
|
|
90
94
|
e3.loaded = false, e3.expand();
|
|
91
95
|
}, loadTreeNodes: function() {
|
|
92
|
-
|
|
96
|
+
M(X.pageContext, X.configure).then((e3) => {
|
|
93
97
|
ie.value = false, oe.value = e3;
|
|
94
98
|
});
|
|
95
99
|
}, getNode: function(e3) {
|
|
96
|
-
|
|
97
|
-
}, getCheckedNodes: (e3,
|
|
98
|
-
|
|
99
|
-
}, getCheckedKeys: (e3) =>
|
|
100
|
-
|
|
101
|
-
}, setChecked: (e3,
|
|
102
|
-
|
|
103
|
-
}, getCurrentKey: () =>
|
|
100
|
+
te.value.getNode(e3);
|
|
101
|
+
}, getCheckedNodes: (e3, t2) => te.value.getCheckedNodes(e3, t2), setCheckedNodes: (e3) => {
|
|
102
|
+
te.value.setCheckedNodes(e3);
|
|
103
|
+
}, getCheckedKeys: (e3) => te.value.getCheckedKeysleafOnly(), setCheckedKeys: (e3, t2) => {
|
|
104
|
+
te.value.setCheckedKeys(e3, t2);
|
|
105
|
+
}, setChecked: (e3, t2, a2) => {
|
|
106
|
+
te.value.setChecked(e3, t2, a2);
|
|
107
|
+
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, t2 = true) => te.value.setCurrentKey(e3, t2), setCurrentNode: (e3, t2 = true) => te.value.setCurrentNode(e3, t2) }), (e3, t2) => {
|
|
104
108
|
var _a2;
|
|
105
|
-
const
|
|
106
|
-
return i(), d("div", { class: s(
|
|
107
|
-
"" !==
|
|
108
|
-
ye(e5,
|
|
109
|
-
}) :
|
|
110
|
-
|
|
109
|
+
const a2 = u("el-input"), n2 = u("el-button"), l2 = u("SuperIcon"), o2 = u("el-tree");
|
|
110
|
+
return i(), d("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(a2, { key: 0, modelValue: de.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => de.value = e4), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(o2, { key: 1, ref_key: "menuTreeRef", ref: te, style: f(r(Z)), load: fe, data: oe.value, "node-key": "nodeId", props: ne.value, "default-expand-all": ae.value.defaultExpandAll, "expand-on-click-node": ae.value.expandOnClickNode, indent: ae.value.retractWidth ? ae.value.retractWidth : 18, accordion: ae.value.accordion, "show-checkbox": !!ae.value.showCheckbox, "highlight-current": "", lazy: J.value, "filter-node-method": pe, onNodeClick: ve, onNodeContextmenu: me }, { default: g(({ node: o3, data: u2 }) => [u2.nodeId === se.value ? (i(), d("div", P, [m(a2, { modelValue: ce.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ce.value = e4), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(n2, { type: "primary", link: "", onClick: (e4) => ((e5) => {
|
|
111
|
+
"" !== ce.value ? (e5.data.name = ce.value, re.value && e5.data.nodeId === re.value ? w(e5, X.configure, X.pageContext).then((t3) => {
|
|
112
|
+
ye(e5, t3.currentNode), Ce(), z.success("保存成功!");
|
|
113
|
+
}) : E(e5, X.configure, X.pageContext).then((t3) => {
|
|
114
|
+
ye(e5, t3.currentNode), Ce(), z.success("保存成功!");
|
|
111
115
|
})) : z.warning("请输入节点名称");
|
|
112
|
-
})(o3) }, { default: g(() =>
|
|
113
|
-
|
|
114
|
-
})(o3, e3.configure, e3.pageContext) }, { default: g(() =>
|
|
115
|
-
if (ge.value
|
|
116
|
+
})(o3) }, { default: g(() => t2[2] || (t2[2] = [y(" 保存 ")])), _: 2 }, 1032, ["onClick"]), m(n2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (t3) => ((e4) => {
|
|
117
|
+
re.value && e4.data.nodeId === re.value && te.value.remove(e4), Ce();
|
|
118
|
+
})(o3, e3.configure, e3.pageContext) }, { default: g(() => t2[3] || (t2[3] = [y(" 撤销 ")])), _: 2 }, 1032, ["onClick"])])])) : (i(), d("span", { key: 1, title: o3.label, class: "ellipsis" }, [u2.iconValue ? (i(), c(l2, { key: 0, iconType: u2.iconType, iconValue: u2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(l2, { key: 1, iconType: ae.value.iconType, iconValue: ae.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), d(C, { key: 2 }, [u2.isLeaf ? (i(), d("div", H, [t2[5] || (t2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(u2.name), 1)])) : (i(), d("div", R, [h("div", D, [t2[4] || (t2[4] = h("img", { src: T, class: "file" }, null, -1)), h("span", null, x(u2.name), 1)])]))], 64))], 8, W))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), v(h("div", null, [h("ul", { ref_key: "contxtMenuRef", ref: $, class: "context-menu" }, [(i(true), d(C, null, k(q.value, (e4, t3) => (i(), d("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e5) => {
|
|
119
|
+
if (ge.value && "standard" === e5.type && e5.standardEvent) if ("edit" === e5.standardEvent) se.value = ge.value.data.nodeId, ce.value = ge.value.data.name;
|
|
116
120
|
else if ("delete" === e5.standardEvent) ge.value.childNodes && ge.value.childNodes.length > 0 && e5.deleteParentNodeTip ? (e5.deleteParentNodeTipMessage || (e5.deleteParentNodeTipMessage = "当前节点下有子节点,确认删除?"), S.confirm(e5.deleteParentNodeTipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
|
|
117
121
|
ke(e5);
|
|
118
122
|
}).catch(() => {
|
|
119
|
-
ge.value = null
|
|
123
|
+
ge.value = null;
|
|
120
124
|
})) : ke(e5);
|
|
121
125
|
else {
|
|
122
|
-
const
|
|
123
|
-
se.value =
|
|
126
|
+
const t5 = xe();
|
|
127
|
+
se.value = t5.nodeId, re.value = t5.nodeId, ce.value = t5.name, "addSiblingNode" === e5.standardEvent ? (t5.isLeaf = ge.value.data.isLeaf, ge.value.parent && ge.value.parent.level > 0 ? te.value.append(t5, ge.value.parent) : oe.value.push(t5)) : "addChildNode" === e5.standardEvent && (t5.isLeaf = true, ge.value.data.isLeaf = false, te.value.append(t5, ge.value), te.value.setCurrentKey(t5.nodeId, true));
|
|
124
128
|
}
|
|
125
|
-
|
|
126
|
-
})(e4) }, [h("span", null, x(e4.name), 1)], 8, W))), 128))], 512)], 512), [[N, F.value && ((_a2 = J.value) == null ? void 0 : _a2.length) > 0]])], 2);
|
|
129
|
+
})(e4) }, [h("span", null, x(e4.name), 1)], 8, O))), 128))], 512)], 512), [[N, A.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
|
|
127
130
|
};
|
|
128
131
|
} });
|
|
129
132
|
export {
|
|
130
|
-
|
|
133
|
+
U as default
|
|
131
134
|
};
|
|
@@ -27,7 +27,6 @@ const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
|
|
|
27
27
|
const J = F.value.monitorFields;
|
|
28
28
|
C(q.pageContext, J, function() {
|
|
29
29
|
_(q.pageContext, H, void 0).then((e3) => {
|
|
30
|
-
console.log("动态查询结果", e3);
|
|
31
30
|
});
|
|
32
31
|
});
|
|
33
32
|
const K = l(null), L = l(null), N = l(null);
|
|
@@ -1,56 +1,61 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as g, normalizeClass as c, unref as m, withCtx as f, resolveDynamicComponent as d, toDisplayString as v } from "vue";
|
|
2
2
|
import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as x, getVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { handleAfterInitEvent as
|
|
5
|
-
import { updateFormItemEditState as
|
|
6
|
-
import { getListCode as
|
|
7
|
-
import { getComponentRef as
|
|
4
|
+
import { handleAfterInitEvent as R, handleEvent as k } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { updateFormItemEditState as V } from "../../../../utils/events/validator-util.js";
|
|
6
|
+
import { getListCode as _ } from "../../../../utils/common-util.js";
|
|
7
|
+
import { getComponentRef as D } from "../../../../utils/global-refs.js";
|
|
8
8
|
import { getAdditionalParamMap as E } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { $t as w } from "../../../../utils/i18n-util.js";
|
|
10
10
|
import S from "../../../../utils/eventBus.js";
|
|
11
|
-
const U = { key: 0, style: { width: "100%", height: "100%" } },
|
|
12
|
-
const
|
|
13
|
-
x(
|
|
14
|
-
} }),
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
const U = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, $ = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
|
|
12
|
+
const q = e2, z = q.pageContext.entity ? q.pageContext.entity : {}, F = C(q.pageContext, q.configure), G = t({ get: () => y(z, F), set(e3) {
|
|
13
|
+
x(z, F, e3);
|
|
14
|
+
} }), H = q.configure.runtime ? q.configure.runtime : {}, I = H.style, P = H.class, B = H.headerStyle, W = o(H.props ? H.props : {}), A = function(e3) {
|
|
15
|
+
let t2 = {};
|
|
16
|
+
if (e3) for (let o2 in e3) {
|
|
17
|
+
const a2 = e3[o2];
|
|
18
|
+
t2[o2] = b(q.pageContext, a2);
|
|
19
|
+
}
|
|
20
|
+
return t2;
|
|
21
|
+
}(H.customParams ? H.customParams : {}), J = E(q.pageContext), K = o(q.configure.props && q.configure.props.base ? q.configure.props.base.name : null);
|
|
22
|
+
function L(e3, t2) {
|
|
23
|
+
j(z, e3, t2);
|
|
19
24
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
25
|
+
function M(e3) {
|
|
26
|
+
V(q.pageContext, e3);
|
|
22
27
|
}
|
|
23
|
-
function
|
|
24
|
-
const e3 =
|
|
28
|
+
function N() {
|
|
29
|
+
const e3 = q.pageContext.tableUuids;
|
|
25
30
|
e3 && e3.forEach((e4) => {
|
|
26
|
-
const t2 =
|
|
31
|
+
const t2 = _(q.pageContext.code, q.pageContext.version, q.configure.uuid), o2 = D(q.pageContext, e4);
|
|
27
32
|
o2 && o2.restoreGridEdit(t2);
|
|
28
33
|
});
|
|
29
34
|
}
|
|
30
|
-
|
|
31
|
-
const Q =
|
|
35
|
+
q.configure.props.verification.custom && q.configure.props.verification.custom.enabled && (q.pageContext.customValidatorUuids || (q.pageContext.customValidatorUuids = []), q.pageContext.customValidatorUuids.push(q.configure.uuid));
|
|
36
|
+
const Q = q.pageContext.code, T = o(F && F.length > 0 ? Q + "__" + F.join("__") : null), X = o(null), Y = o(null), Z = o(null);
|
|
32
37
|
function ee(e3) {
|
|
33
|
-
|
|
38
|
+
k(G.value, q.pageContext, q.configure, e3);
|
|
34
39
|
}
|
|
35
40
|
return a(() => {
|
|
36
41
|
S.$on(T.value + "-scanDone", (e3) => {
|
|
37
42
|
const t2 = e3.result;
|
|
38
|
-
x(
|
|
43
|
+
x(z, F, t2);
|
|
39
44
|
}), S.$on(T.value + "-pickFileDone", (e3) => {
|
|
40
|
-
|
|
45
|
+
X.value.pickFileDone(e3);
|
|
41
46
|
}), n(() => {
|
|
42
|
-
const e3 =
|
|
43
|
-
|
|
47
|
+
const e3 = G.value;
|
|
48
|
+
R(e3, q.pageContext, q.configure, { formItemRef: Y.value, componentRef: X.value, titleRef: Z.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
|
|
44
49
|
});
|
|
45
50
|
}), i(() => {
|
|
46
51
|
S.$off(T.value + "-scanDone"), S.$off(T.value + "-pickFileDone");
|
|
47
|
-
}),
|
|
52
|
+
}), $2({ getCustomRef: function() {
|
|
48
53
|
return X.value;
|
|
49
54
|
} }), (e3, t2) => {
|
|
50
|
-
const o2 =
|
|
51
|
-
return
|
|
55
|
+
const o2 = u("el-form-item");
|
|
56
|
+
return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Y, required: W.value.required, class: c(m(P)), "label-width": W.value.labelWidth, style: g(m(I)) }, { label: f(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: Z, style: g({ ...m(B) }) }, v(m(w)(W.value.title)), 5)) : s("", true)]), default: f(() => [K.value ? (p(), r("div", U, [(p(), l(d(K.value), { ref_key: "customRef", ref: X, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(A), modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(J), "component-id": T.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: N, onHandleEvent: ee, onChange: t2[1] || (t2[1] = (t3) => m(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : K.value ? (p(), r("div", O, [(p(), l(d(K.value), { ref_key: "customRef", ref: X, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(A), modelValue: G.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => G.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(J), "component-id": T.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: N, onHandleEvent: ee, onChange: t2[3] || (t2[3] = (t3) => m(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
|
|
52
57
|
};
|
|
53
58
|
} });
|
|
54
59
|
export {
|
|
55
|
-
|
|
60
|
+
$ as default
|
|
56
61
|
};
|
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -1,67 +1,65 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as
|
|
1
|
+
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as r, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as p, unref as s, withCtx as c, createElementBlock as d, createCommentVNode as v, Fragment as f, createTextVNode as g, toDisplayString as m } from "vue";
|
|
2
2
|
import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getDateShortCuts as y } from "../../../../utils/form/date-shortcuts.js";
|
|
4
4
|
import { getValueFromVariable as C, setVariableValue as x, getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
5
|
-
import { handleAfterInitEvent as
|
|
5
|
+
import { handleAfterInitEvent as k, getCustomFunc as F, handleFormEvent as T } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import V from "../common/title-suffix-element.vue.js";
|
|
7
7
|
import j from "dayjs";
|
|
8
|
-
import { $t as
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
e3
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const e4 = C(_, $.value.defaultValue2);
|
|
21
|
-
x(_, I, e4);
|
|
8
|
+
import { $t as R } from "../../../../utils/i18n-util.js";
|
|
9
|
+
const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
10
|
+
const _2 = e2, z = _2.pageContext.entity ? _2.pageContext.entity : {}, P = _2.configure.runtime ? _2.configure.runtime : {}, w = P.style, A = P.class, D = P.headerStyle, S = P.titleExceedStyle, q = a(P.props ? P.props : {});
|
|
11
|
+
let I = h(_2.pageContext, _2.configure, q.value.prop), B = null, U = false;
|
|
12
|
+
if (q.value.dateType && q.value.dateType.includes("range")) {
|
|
13
|
+
U = true;
|
|
14
|
+
let e3 = q.value.prop2;
|
|
15
|
+
e3 && e3.startsWith("${") || (e3 = "${page." + _2.configure.uuid + "-2}");
|
|
16
|
+
const a2 = C(z, e3, null);
|
|
17
|
+
if (e3 = e3.substring(2, e3.length - 1), B = e3.split("."), !(a2 || z.data && (z.data.id || z.data.ID)) && q.value.defaultValue2) {
|
|
18
|
+
const e4 = C(z, q.value.defaultValue2);
|
|
19
|
+
x(z, B, e4);
|
|
22
20
|
}
|
|
23
21
|
}
|
|
24
|
-
const
|
|
22
|
+
const W = a(null), $ = a(null), E = a(null);
|
|
25
23
|
function O(e3, a2) {
|
|
26
24
|
if (!e3) return e3;
|
|
27
25
|
if (a2) try {
|
|
28
26
|
const l2 = j(e3);
|
|
29
27
|
let t2 = null;
|
|
30
|
-
return t2 = "x" === a2 ? l2.toDate().getTime() : j(e3).format(a2), t2;
|
|
28
|
+
return t2 = "x" === a2 ? l2.toDate().getTime() : j(e3 + "").format(a2), t2;
|
|
31
29
|
} catch (a3) {
|
|
32
|
-
return
|
|
30
|
+
return e3;
|
|
33
31
|
}
|
|
34
32
|
return e3;
|
|
35
33
|
}
|
|
36
34
|
if (l(() => {
|
|
37
35
|
t(() => {
|
|
38
36
|
const e3 = G.value;
|
|
39
|
-
|
|
37
|
+
k(e3, _2.pageContext, _2.configure, { formItemRef: W.value, componentRef: $.value, titleRef: E.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
40
38
|
});
|
|
41
|
-
}),
|
|
42
|
-
const e3 = b(
|
|
43
|
-
e3 !== a2 && x(
|
|
39
|
+
}), I) {
|
|
40
|
+
const e3 = b(z, I), a2 = O(e3, q.value.valueFormat);
|
|
41
|
+
e3 !== a2 && x(z, I, a2);
|
|
44
42
|
}
|
|
45
|
-
if (
|
|
46
|
-
const e3 = b(
|
|
47
|
-
e3 !== a2 && x(
|
|
43
|
+
if (B) {
|
|
44
|
+
const e3 = b(z, B), a2 = O(e3, q.value.valueFormat);
|
|
45
|
+
e3 !== a2 && x(z, B, a2);
|
|
48
46
|
}
|
|
49
|
-
const G =
|
|
50
|
-
if (
|
|
47
|
+
const G = r({ get() {
|
|
48
|
+
if (U) {
|
|
51
49
|
const e3 = [];
|
|
52
|
-
let a2 = b(
|
|
53
|
-
e3.push(O(a2,
|
|
54
|
-
let l2 = b(
|
|
55
|
-
return e3.push(O(l2,
|
|
50
|
+
let a2 = b(z, I);
|
|
51
|
+
e3.push(O(a2, q.value.valueFormat));
|
|
52
|
+
let l2 = b(z, B);
|
|
53
|
+
return e3.push(O(l2, q.value.valueFormat)), e3;
|
|
56
54
|
}
|
|
57
|
-
return O(b(
|
|
55
|
+
return O(b(z, I), q.value.valueFormat);
|
|
58
56
|
}, set(e3) {
|
|
59
|
-
|
|
60
|
-
} }), H = a(y(
|
|
61
|
-
if (
|
|
62
|
-
const e3 =
|
|
57
|
+
U ? Array.isArray(e3) ? (x(z, I, e3[0]), x(z, B, e3[1])) : null === e3 && (x(z, I, null), x(z, B, null)) : x(z, I, e3);
|
|
58
|
+
} }), H = a(y(q.value.dateScopeDetails, q.value.sourceType, q.value.dateType));
|
|
59
|
+
if (q.value.shortcutsFunc) {
|
|
60
|
+
const e3 = F(_2.pageContext, q.value.shortcutsFunc);
|
|
63
61
|
if (e3) {
|
|
64
|
-
let a2 = e3.apply(e3, [{ pageContext:
|
|
62
|
+
let a2 = e3.apply(e3, [{ pageContext: _2.pageContext, configureObj: _2.configure }]);
|
|
65
63
|
if (a2) {
|
|
66
64
|
Array.isArray(a2) || (a2 = [a2]), H.value || (H.value = []);
|
|
67
65
|
for (let e4 of a2) e4.text && e4.value && H.value.push(e4);
|
|
@@ -69,10 +67,10 @@ const R = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
69
67
|
}
|
|
70
68
|
}
|
|
71
69
|
return (e3, a2) => {
|
|
72
|
-
const l2 =
|
|
73
|
-
return n(), u(
|
|
70
|
+
const l2 = o("el-time-picker"), t2 = o("el-date-picker"), r2 = o("el-form-item");
|
|
71
|
+
return n(), u(r2, { ref_key: "formItemRef", ref: W, required: q.value.required, class: p(s(A)), "label-width": q.value.labelWidth, style: i(s(w)) }, { label: c(() => [q.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: E, style: i({ ...s(D), ...s(S) }) }, [q.value.prefixType ? (n(), u(V, { key: 0, pageContext: e3.pageContext, property: q.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(R)(q.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == q.value.dateType || "timerange" == q.value.dateType ? (n(), u(l2, { key: 0, ref_key: "componentRef", ref: $, "is-range": "timerange" == q.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: q.value.clearable, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: G.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => G.value = e4), shortcuts: H.value, type: q.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (n(), u(t2, { key: 1, ref_key: "componentRef", ref: $, clearable: q.value.clearable, style: { width: "100%" }, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: G.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => G.value = e4), shortcuts: H.value, type: q.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
74
72
|
};
|
|
75
73
|
} });
|
|
76
74
|
export {
|
|
77
|
-
|
|
75
|
+
_ as default
|
|
78
76
|
};
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, onMounted as t, nextTick as
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as t, nextTick as i, onUnmounted as o, resolveComponent as a, createBlock as s, createCommentVNode as u, openBlock as n, normalizeStyle as p, normalizeClass as r, unref as m, withCtx as f, createElementBlock as v, toDisplayString as c } from "vue";
|
|
2
2
|
import { getVariableValue as d, setVariableValue as h } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { handleAfterInitEvent as y, fileUploadBeforeUpload as g } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import C from "agilebuilder-ui/src/utils/request";
|
|
5
5
|
import { FsUploadNew as x } from "agilebuilder-ui";
|
|
6
6
|
import b from "../../../../utils/eventBus.js";
|
|
7
7
|
import { $t as k } from "../../../../utils/i18n-util.js";
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
11
|
-
const e3 =
|
|
8
|
+
const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
9
|
+
const _2 = e2, w = _2.configure.runtime ? _2.configure.runtime : {}, P = l(w.props ? w.props : {}), j = w.style, R = w.class, T = w.headerStyle, z = w.titleExceedStyle, I = _2.pageContext.entity ? _2.pageContext.entity : {}, O = _2.configure.props.base ? _2.configure.props.base : {}, S = E(O.prop), F = E(O.propName), N = _2.pageContext.code, q = l(S ? N + "__" + S.join("__") : null), D = d(I, S), U = l(null), $ = l(false), W = l([]), B = l({});
|
|
10
|
+
if (D) {
|
|
11
|
+
const e3 = D.split(",");
|
|
12
12
|
if (e3.length > 0) {
|
|
13
|
-
const l2 =
|
|
13
|
+
const l2 = _2.pageContext.backendUrl;
|
|
14
14
|
C.post(l2 + "/common/fs-upload/search-file-names", e3).then((l3) => {
|
|
15
15
|
const t2 = [];
|
|
16
|
-
for (let
|
|
17
|
-
const
|
|
18
|
-
t2.push(l3[
|
|
16
|
+
for (let i2 = 0; i2 < e3.length; i2++) {
|
|
17
|
+
const o2 = e3[i2];
|
|
18
|
+
t2.push(l3[o2]), W.value.push({ showName: l3[o2], serverPath: o2 });
|
|
19
19
|
}
|
|
20
|
-
"input" ===
|
|
20
|
+
"input" === P.value.displayType && (B.value.showName = t2.join(","), B.value.serverPath = e3.join(","));
|
|
21
21
|
}).finally(() => {
|
|
22
22
|
$.value = true;
|
|
23
23
|
});
|
|
@@ -35,27 +35,27 @@ const P = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
35
35
|
J();
|
|
36
36
|
}, J = () => {
|
|
37
37
|
const e3 = [], l2 = [];
|
|
38
|
-
if (
|
|
39
|
-
const e4 = W.value.length -
|
|
38
|
+
if (P.value.limit && W.value.length > P.value.limit) {
|
|
39
|
+
const e4 = W.value.length - P.value.limit;
|
|
40
40
|
for (let l3 = 0; l3 < e4; l3++) W.value.shift();
|
|
41
41
|
}
|
|
42
42
|
for (let t2 = 0; t2 < W.value.length; t2++) e3.push(W.value[t2].showName), l2.push(W.value[t2].serverPath);
|
|
43
|
-
h(
|
|
43
|
+
h(_2.pageContext.entity, S, l2.join(",")), h(_2.pageContext.entity, F, e3.join(","));
|
|
44
44
|
}, K = l(null), L = l(null);
|
|
45
45
|
return t(() => {
|
|
46
|
-
b.$on(
|
|
47
|
-
|
|
48
|
-
}),
|
|
49
|
-
const e3 = d(
|
|
50
|
-
y(l2,
|
|
46
|
+
b.$on(q.value + "-pickFileDone", (e3) => {
|
|
47
|
+
U.value.pickFileDone(e3);
|
|
48
|
+
}), i(() => {
|
|
49
|
+
const e3 = d(I, S), l2 = { showName: d(I, F), serverPath: e3 };
|
|
50
|
+
y(l2, _2.pageContext, _2.configure, { formItemRef: K.value, componentRef: U.value, titleRef: L.value, value: l2, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
51
51
|
});
|
|
52
|
-
}),
|
|
53
|
-
b.$off(
|
|
52
|
+
}), o(() => {
|
|
53
|
+
b.$off(q.value + "-pickFileDone");
|
|
54
54
|
}), (e3, l2) => {
|
|
55
55
|
const t2 = a("el-form-item");
|
|
56
|
-
return
|
|
56
|
+
return P.value.tittleShow ? (n(), s(t2, { key: 0, ref_key: "formItemRef", ref: K, required: P.value.required, class: r(m(R)), "label-width": P.value.labelWidth, style: p(m(j)) }, { label: f(() => [P.value.tittleShow ? (n(), v("div", { key: 0, ref_key: "titleRef", ref: L, style: p({ ...m(T), ...m(z) }) }, c(m(k)(P.value.title)), 5)) : u("", true)]), default: f(() => [$.value ? (n(), s(m(x), { key: 0, ref_key: "fileUploadRef", ref: U, style: { width: "100%" }, disabled: "disabled" === P.value.state, displayType: P.value.displayType, accept: P.value.accept, multiple: P.value.multiple, placeholder: P.value.placeholder, limit: P.value.limit, "limit-file-size": P.value.limitFileSize, openCameraOrChoosePhoto: P.value.openCameraOrChoosePhoto, "file-info": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: q.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : $.value ? (n(), s(m(x), { key: 1, ref_key: "fileUploadRef", ref: U, style: { width: "100%" }, disabled: "disabled" === P.value.state, displayType: P.value.displayType, accept: P.value.accept, multiple: P.value.multiple, placeholder: P.value.placeholder, limit: P.value.limit, "limit-file-size": P.value.limitFileSize, openCameraOrChoosePhoto: P.value.openCameraOrChoosePhoto, "file-info": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: q.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true);
|
|
57
57
|
};
|
|
58
58
|
} });
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
_ as default
|
|
61
61
|
};
|