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