super-page-designer 2.3.16-sit3-design1 → 2.3.17-sit1-design1
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/assets/images/data/file.png.js +4 -0
- package/dist/es/assets/images/data/folder.png.js +4 -0
- package/dist/es/components/design/utils/ucr-element-filter.d.ts +2 -0
- package/dist/es/components/design/utils/ucr-element-filter.js +11 -0
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/object-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/object-design.vue3.js +66 -66
- package/dist/es/components/design/views/design/page-design.vue.d.ts +9 -0
- package/dist/es/components/design/views/design/page-design.vue2.js +42 -42
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +11 -10
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.d.ts +16 -2
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +8 -8
- package/dist/es/components/design/views/design/view/assemblys-container-list.vue.d.ts +16 -2
- package/dist/es/components/design/views/design/view/assemblys-container-list.vue.js +23 -20
- package/dist/es/components/design/views/design/view/assemblys-container.vue.js +11 -12
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue.d.ts +38 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue.js +7 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue2.js +111 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/util.d.ts +6 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/util.js +27 -0
- package/dist/es/components/design/views/design/view/page-switch.vue.d.ts +18 -0
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +34 -30
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +13 -13
- package/dist/es/style.css +33 -5
- package/package.json +5 -5
package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue2.js
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, resolveDirective as o, createElementBlock as r, openBlock as n, Fragment as u, withDirectives as d, createBlock as i, withCtx as p, createVNode as s, createElementVNode as m, toDisplayString as c, createCommentVNode as f, unref as v, createTextVNode as g } from "vue";
|
|
2
|
+
import y from "../../../../../../../assets/images/data/folder.png.js";
|
|
3
|
+
import h from "../../../../../../../assets/images/data/file.png.js";
|
|
4
|
+
import { Plus as R, Edit as x, Delete as b, Operation as T } from "@element-plus/icons-vue";
|
|
5
|
+
import { ElMessageBox as _, ElMessage as w } from "element-plus";
|
|
6
|
+
import { getUcrReportTree as N, findPageIdByReportCode as D, updateDisplayOrder as E, getUcrReportDetail as O, deleteUcrReport as k, saveUcrReportData as C } from "./util.js";
|
|
7
|
+
import { getUuidv4 as U, deepCopy as V } from "../../../../../utils/common-util.js";
|
|
8
|
+
import { checkPermission as L } from "agilebuilder-ui/src/utils/permission";
|
|
9
|
+
const B = { key: 0, class: "item-row" }, I = { class: "item-side" }, P = { key: 1, class: "item-side", style: { display: "flex", "align-items": "center" } }, j = { class: "dialog-footer" }, F = e({ __name: "index", props: { pageId: { type: Number, default: null }, pageDesign: { type: Object, default: () => ({}) }, ucrDesign: { type: Boolean, default: false } }, emits: ["change-page", "init-loaded"], setup(e2, { emit: F2 }) {
|
|
10
|
+
const z = { children: "children", label: "label" }, $ = F2, S = l(null), X = l(false), H = l(false), M = l(), Y = l(""), q = l(), A = l(false), G = l(), J = l("card"), K = l({}), Q = l([]), W = l({ top: 0, left: 0, bottom: 0, right: 0 }), Z = l({ getBoundingClientRect: () => W.value });
|
|
11
|
+
async function ee() {
|
|
12
|
+
try {
|
|
13
|
+
if (L("ucr.ucrReport.configUcrReport", null)) {
|
|
14
|
+
H.value = true, A.value = true;
|
|
15
|
+
const e3 = await N();
|
|
16
|
+
e3 && (Q.value = e3);
|
|
17
|
+
}
|
|
18
|
+
} finally {
|
|
19
|
+
A.value = false;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function le() {
|
|
23
|
+
H.value = true;
|
|
24
|
+
}
|
|
25
|
+
function ae() {
|
|
26
|
+
H.value = false;
|
|
27
|
+
}
|
|
28
|
+
a(() => {
|
|
29
|
+
ee();
|
|
30
|
+
});
|
|
31
|
+
const te = () => {
|
|
32
|
+
var _a;
|
|
33
|
+
(_a = G.value) == null ? void 0 : _a.handleClose();
|
|
34
|
+
}, oe = (e3) => {
|
|
35
|
+
J.value = "card", re(e3);
|
|
36
|
+
}, re = (e3) => {
|
|
37
|
+
var _a;
|
|
38
|
+
const { clientX: l2, clientY: a2 } = e3;
|
|
39
|
+
W.value = DOMRect.fromRect({ x: l2, y: a2 }), e3.preventDefault(), (_a = G.value) == null ? void 0 : _a.handleOpen();
|
|
40
|
+
}, ne = (e3, l2, a2, t2) => {
|
|
41
|
+
J.value = "tree", S.value = l2, re(e3);
|
|
42
|
+
};
|
|
43
|
+
let ue = null;
|
|
44
|
+
const de = (e3, l2, a2) => {
|
|
45
|
+
if ("REPORT" === e3.type) {
|
|
46
|
+
if (ue && ue === e3) return;
|
|
47
|
+
_.confirm(`确认切换到报表:${e3.label}?`, "提示", { confirmButtonText: "确认", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
48
|
+
A.value = true, ue = e3, D(e3.reportCode).then((e4) => {
|
|
49
|
+
$("change-page", e4);
|
|
50
|
+
}).finally(() => {
|
|
51
|
+
H.value = false, A.value = false;
|
|
52
|
+
});
|
|
53
|
+
}).catch(() => {
|
|
54
|
+
w({ type: "info", message: "已取消切换", duration: 1e3 });
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}, ie = (e3, l2) => {
|
|
58
|
+
}, pe = (e3, l2, a2) => {
|
|
59
|
+
}, se = (e3, l2, a2) => {
|
|
60
|
+
}, me = (e3, l2, a2) => {
|
|
61
|
+
"REPORT" === l2.data.type && (a2.dataTransfer.dropEffect = "none");
|
|
62
|
+
}, ce = (e3, l2, a2, t2) => {
|
|
63
|
+
const o2 = "inner" === a2 ? "INNER" : "after" === a2 ? "NEXT" : "PREV";
|
|
64
|
+
E({ currentIds: [e3.data.id], targetId: l2 ? l2.data.id : null, moveType: o2 }).then(() => {
|
|
65
|
+
w({ message: "排序更新成功", type: "success", duration: 1e3 }), ee();
|
|
66
|
+
});
|
|
67
|
+
}, fe = (e3, l2, a2, t2) => {
|
|
68
|
+
}, ve = (e3, l2, a2) => "REPORT" !== l2.data.type || "inner" !== a2, ge = (e3) => {
|
|
69
|
+
if (Y.value = e3, "add" === e3) {
|
|
70
|
+
if ("card" === J.value) K.value = { reportType: "FOLDER", reportName: "", reportCode: U() };
|
|
71
|
+
else if ("tree" === J.value) {
|
|
72
|
+
if ("FOLDER" !== S.value.type) return void w({ message: "只能在文件夹下添加子节点", type: "warning", duration: 1e3 });
|
|
73
|
+
K.value = { parentId: S.value.id, reportType: "FOLDER", reportName: "", reportCode: U() };
|
|
74
|
+
}
|
|
75
|
+
X.value = true;
|
|
76
|
+
} else if ("update" === e3) A.value = true, O(S.value.id).then((e4) => {
|
|
77
|
+
K.value = V(e4), X.value = true;
|
|
78
|
+
}).finally(() => {
|
|
79
|
+
A.value = false;
|
|
80
|
+
});
|
|
81
|
+
else if ("delete" === e3) {
|
|
82
|
+
const e4 = S.value.children > 0 ? `节点:${S.value.label} 下有子节点,确认删除?` : `确认删除节点:${S.value.label}?`;
|
|
83
|
+
_.confirm(e4, "提示", { confirmButtonText: "确认", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
84
|
+
k(S.value.id).then(() => {
|
|
85
|
+
w({ type: "success", message: "删除成功!", duration: 1e3 }), ee();
|
|
86
|
+
});
|
|
87
|
+
}).catch(() => {
|
|
88
|
+
w({ type: "info", message: "已取消删除", duration: 1e3 });
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}, ye = (e3) => {
|
|
92
|
+
e3();
|
|
93
|
+
}, he = () => {
|
|
94
|
+
C(K.value).then((e3) => {
|
|
95
|
+
w({ message: "保存成功", type: "success", duration: 1e3 }), X.value = false, ee(), H.value = true;
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
return (e3, l2) => {
|
|
99
|
+
const a2 = t("el-button"), _2 = t("el-tree"), w2 = t("el-card"), N2 = t("el-dropdown-item"), D2 = t("el-dropdown-menu"), E2 = t("el-dropdown"), O2 = t("el-popover"), k2 = t("el-radio"), C2 = t("el-radio-group"), U2 = t("el-form-item"), V2 = t("el-input"), L2 = t("OrganizationInput"), F3 = t("el-form"), $2 = t("el-dialog"), W2 = o("permission"), ee2 = o("loading");
|
|
100
|
+
return n(), r(u, null, [d((n(), i(O2, { visible: H.value, "onUpdate:visible": l2[1] || (l2[1] = (e4) => H.value = e4), persistent: "", trigger: "manual", onShow: le, onHide: ae, ref_key: "popoverRef", ref: M, width: "auto", "popper-style": "box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; " }, { reference: p(() => [d((n(), i(a2, { type: "default", icon: v(T), style: { "font-size": "14px", "font-weight": "600" }, onClick: l2[0] || (l2[0] = (e4) => H.value = true) }, { default: p(() => l2[6] || (l2[6] = [g(" 配置报表 ")])), _: 1 }, 8, ["icon"])), [[W2, "ucr.ucrReport.configUcrReport"]])]), default: p(() => [s(w2, { style: { width: "400px" }, onClick: te, onContextmenu: oe }, { default: p(() => [s(_2, { ref_key: "treeRef", ref: q, style: { "max-width": "600px" }, "allow-drop": ve, data: Q.value, props: z, draggable: "", "default-expand-all": "", "node-key": "id", onNodeDragStart: ie, onNodeDragEnter: pe, onNodeDragLeave: se, onNodeDragOver: me, onNodeDragEnd: ce, onNodeDrop: fe, onNodeContextmenu: ne, onNodeClick: de }, { default: p(({ node: e4, data: a3 }) => ["FOLDER" === a3.type ? (n(), r("div", B, [m("div", I, [l2[7] || (l2[7] = m("img", { src: y, class: "file" }, null, -1)), m("span", null, c(a3.label), 1)])])) : (n(), r("div", P, [l2[8] || (l2[8] = m("img", { src: h, class: "file" }, null, -1)), m("span", null, c(a3.label), 1)]))]), empty: p(() => l2[9] || (l2[9] = [m("div", { style: { "text-align": "center", padding: "20px", color: "#999" } }, "暂无报表数据,请在当前区域右键添加", -1)])), _: 1 }, 8, ["data"])]), _: 1 }), d((n(), i(E2, { ref_key: "dropdownRef", ref: G, "virtual-ref": Z.value, teleported: false, "show-arrow": false, "popper-options": { modifiers: [{ name: "offset", options: { offset: [0, 0] } }] }, style: { "z-index": "100" }, "virtual-triggering": "", trigger: "contextmenu", onCommand: ge, placement: "bottom-start" }, { dropdown: p(() => [s(D2, null, { default: p(() => {
|
|
101
|
+
var _a;
|
|
102
|
+
return ["REPORT" !== ((_a = S.value) == null ? void 0 : _a.type) ? (n(), i(N2, { key: 0, icon: v(R), command: "add" }, { default: p(() => l2[10] || (l2[10] = [g(" 添加 ")])), _: 1 }, 8, ["icon"])) : f("", true), "card" !== J.value ? (n(), i(N2, { key: 1, icon: v(x), command: "update" }, { default: p(() => l2[11] || (l2[11] = [g(" 修改 ")])), _: 1 }, 8, ["icon"])) : f("", true), "card" !== J.value ? (n(), i(N2, { key: 2, icon: v(b), command: "delete" }, { default: p(() => l2[12] || (l2[12] = [g(" 删除 ")])), _: 1 }, 8, ["icon"])) : f("", true)];
|
|
103
|
+
}), _: 1 })]), _: 1 }, 8, ["virtual-ref"])), [[W2, "ucr.ucrReport.configUcrReport"]])]), _: 1 }, 8, ["visible"])), [[ee2, A.value]]), d((n(), i($2, { modelValue: X.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => X.value = e4), title: "提示", width: "600", "append-to-body": "", "before-close": ye }, { footer: p(() => [m("div", j, [s(a2, { onClick: l2[4] || (l2[4] = (e4) => X.value = false) }, { default: p(() => l2[15] || (l2[15] = [g("取消")])), _: 1 }), s(a2, { type: "primary", onClick: he }, { default: p(() => l2[16] || (l2[16] = [g(" 保存 ")])), _: 1 })])]), default: p(() => [s(F3, { model: K.value, "label-width": "auto", style: { "max-width": "600px" } }, { default: p(() => [s(U2, { label: "类型" }, { default: p(() => {
|
|
104
|
+
var _a;
|
|
105
|
+
return [s(C2, { disabled: ((_a = S.value) == null ? void 0 : _a.id) && "add" !== Y.value, modelValue: K.value.reportType, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => K.value.reportType = e4) }, { default: p(() => [s(k2, { value: "FOLDER" }, { default: p(() => l2[13] || (l2[13] = [g("文件夹")])), _: 1 }), s(k2, { value: "REPORT" }, { default: p(() => l2[14] || (l2[14] = [g("报表")])), _: 1 })]), _: 1 }, 8, ["disabled", "modelValue"])];
|
|
106
|
+
}), _: 1 }), s(U2, { label: "名称" }, { default: p(() => [s(V2, { modelValue: K.value.reportName, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => K.value.reportName = e4) }, null, 8, ["modelValue"])]), _: 1 }), s(U2, { label: "分享给部门" }, { default: p(() => [s(L2, { ref: "componentRef", multiple: true, treeType: "DeptTree", value: K.value.shareToDeptName, models: K.value, fields: [{ type: "name", model: "shareToDeptName" }, { type: "code", model: "shareToDeptCode" }] }, null, 8, ["value", "models"])]), _: 1 }), s(U2, { label: "分享给用户" }, { default: p(() => [s(L2, { ref: "componentRef", multiple: true, treeType: "DeptUserTree", value: K.value.shareToUserName, models: K.value, fields: [{ type: "name", model: "shareToUserName" }, { type: "loginName", model: "shareToUserLoginName" }] }, null, 8, ["value", "models"])]), _: 1 })]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["modelValue"])), [[ee2, A.value]])], 64);
|
|
107
|
+
};
|
|
108
|
+
} });
|
|
109
|
+
export {
|
|
110
|
+
F as default
|
|
111
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function getUcrReportTree(): any;
|
|
2
|
+
export declare function getUcrReportDetail(id: number): any;
|
|
3
|
+
export declare function deleteUcrReport(id: number): any;
|
|
4
|
+
export declare function saveUcrReportData(data: any): any;
|
|
5
|
+
export declare function updateDisplayOrder(dragNode: any): any;
|
|
6
|
+
export declare function findPageIdByReportCode(reportCode: string): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import e from "agilebuilder-ui/src/utils/request";
|
|
2
|
+
function r() {
|
|
3
|
+
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/ucr/my-created-report/tree");
|
|
4
|
+
}
|
|
5
|
+
function o(r2) {
|
|
6
|
+
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/ucr/ucr-report/detail/" + r2);
|
|
7
|
+
}
|
|
8
|
+
function t(r2) {
|
|
9
|
+
return e.delete(window.$vueApp.config.globalProperties.baseAPI + "/ucr/ucr-report/" + r2);
|
|
10
|
+
}
|
|
11
|
+
function n(r2) {
|
|
12
|
+
return e.post(window.$vueApp.config.globalProperties.baseAPI + "/ucr/ucr-report", r2);
|
|
13
|
+
}
|
|
14
|
+
function p(r2) {
|
|
15
|
+
return e.post(window.$vueApp.config.globalProperties.baseAPI + "/ucr/ucr-report/display-order", r2);
|
|
16
|
+
}
|
|
17
|
+
function u(r2) {
|
|
18
|
+
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/ucr/ucr-report/page-id/" + r2);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
t as deleteUcrReport,
|
|
22
|
+
u as findPageIdByReportCode,
|
|
23
|
+
o as getUcrReportDetail,
|
|
24
|
+
r as getUcrReportTree,
|
|
25
|
+
n as saveUcrReportData,
|
|
26
|
+
p as updateDisplayOrder
|
|
27
|
+
};
|
|
@@ -1,20 +1,38 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
pageId: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: any;
|
|
5
|
+
};
|
|
2
6
|
pageDesign: {
|
|
3
7
|
type: ObjectConstructor;
|
|
4
8
|
default: () => {};
|
|
5
9
|
};
|
|
10
|
+
ucrDesign: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
6
14
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
15
|
"change-page": (...args: any[]) => void;
|
|
8
16
|
"init-loaded": (...args: any[]) => void;
|
|
9
17
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
pageId: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
10
22
|
pageDesign: {
|
|
11
23
|
type: ObjectConstructor;
|
|
12
24
|
default: () => {};
|
|
13
25
|
};
|
|
26
|
+
ucrDesign: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
14
30
|
}>> & Readonly<{
|
|
15
31
|
"onChange-page"?: (...args: any[]) => any;
|
|
16
32
|
"onInit-loaded"?: (...args: any[]) => any;
|
|
17
33
|
}>, {
|
|
18
34
|
pageDesign: Record<string, any>;
|
|
35
|
+
ucrDesign: boolean;
|
|
36
|
+
pageId: number;
|
|
19
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
38
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./page-switch.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = t(e, [["__scopeId", "data-v-
|
|
4
|
+
const p = t(e, [["__scopeId", "data-v-e79c563b"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,58 +1,62 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as a, computed as t, onMounted as l, resolveComponent as n, createElementBlock as o, openBlock as i, createBlock as s, withCtx as p, createElementVNode as u, createVNode as d, unref as r, toDisplayString as g, createTextVNode as c } from "vue";
|
|
2
2
|
import { Menu as m, Tickets as f, Folder as y, Operation as v, ArrowUp as h, ArrowDown as x } from "@element-plus/icons-vue";
|
|
3
3
|
import { ElMessageBox as w } from "element-plus";
|
|
4
4
|
import b from "agilebuilder-ui/src/utils/request";
|
|
5
5
|
import _ from "agilebuilder-ui/src/utils/i18n-util";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
import k from "./components/ucr-report-swtich/index.vue.js";
|
|
7
|
+
const I = { style: { display: "flex", "min-width": "60px", height: "60px", "margin-left": "15px", "align-items": "center", cursor: "pointer" } }, C = { style: { "overflow-y": "auto" } }, D = { style: { "vertical-align": "middle" } }, N = { key: 3, style: { "margin-left": "5px" } }, P = { key: 4, style: { "margin-left": "5px" } }, T = e({ __name: "page-switch", props: { pageId: { type: Number, default: null }, pageDesign: { type: Object, default: () => ({}) }, ucrDesign: { type: Boolean, default: false } }, emits: ["change-page", "init-loaded"], setup(e2, { emit: T2 }) {
|
|
8
|
+
const A = e2, S = T2, z = a(false), B = a(""), L = a(), $ = a(), V = a({ value: "id", label: "name", leaf: "leaf", emitPath: false, lazy: true, lazyLoad: async function(e3, a2) {
|
|
9
|
+
-1 === j.value && await b.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/systems/getByCode/" + A.pageDesign.systemCode).then((e4) => {
|
|
9
10
|
if (e4) {
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
b.post(window.$vueApp.config.globalProperties.baseAPI + "/acs/user/i18n-languages",
|
|
13
|
-
const
|
|
14
|
-
_.loadLangFile(
|
|
11
|
+
S("init-loaded", { system: e4 }), _.setEnableI18nState(e4.code, e4.enableI18n), j.value = e4.id;
|
|
12
|
+
const a3 = e4.code, t3 = { systemCode: a3 };
|
|
13
|
+
b.post(window.$vueApp.config.globalProperties.baseAPI + "/acs/user/i18n-languages", t3).then((e5) => {
|
|
14
|
+
const t4 = e5.i18nFileUrls[e5.language] + "?_t_=" + (/* @__PURE__ */ new Date()).getTime();
|
|
15
|
+
_.loadLangFile(a3, t4, "zh_CN").catch(() => {
|
|
15
16
|
});
|
|
16
17
|
});
|
|
17
18
|
}
|
|
18
19
|
});
|
|
19
|
-
let
|
|
20
|
-
if (0 === e3.level)
|
|
20
|
+
let t2 = window.$vueApp.config.globalProperties.baseAPI + "/mms/menu-trees?isShowNoNode=false&isShowSystemNode=false&";
|
|
21
|
+
if (0 === e3.level) t2 += "systemId=system-" + j.value;
|
|
21
22
|
else {
|
|
22
|
-
let
|
|
23
|
-
|
|
23
|
+
let a3 = e3.data.menuId;
|
|
24
|
+
t2 += "systemId=" + j.value + "&parentMenuId=" + a3;
|
|
24
25
|
}
|
|
25
|
-
b.get(
|
|
26
|
-
|
|
26
|
+
b.get(t2).then((e4) => {
|
|
27
|
+
a2(e4);
|
|
27
28
|
});
|
|
28
|
-
}, expandTrigger: "hover" }),
|
|
29
|
+
}, expandTrigger: "hover" }), j = a(-1), F = a("");
|
|
29
30
|
function R() {
|
|
30
|
-
|
|
31
|
+
z.value = true;
|
|
31
32
|
}
|
|
32
33
|
function U() {
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
function j(e3) {
|
|
36
|
-
const t2 = e3.data.id.split("_")[2];
|
|
37
|
-
return e3.label + " (" + t2 + ")";
|
|
34
|
+
z.value = false;
|
|
38
35
|
}
|
|
39
36
|
function q(e3) {
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
const a2 = e3.data.id.split("_")[2];
|
|
38
|
+
return e3.label + " (" + a2 + ")";
|
|
39
|
+
}
|
|
40
|
+
function E(e3) {
|
|
41
|
+
const a2 = L.value.getCheckedNodes();
|
|
42
|
+
if (e3 && "page" === a2[0].data.menuType) {
|
|
43
|
+
const e4 = a2[0].data.name + " (" + a2[0].data.id.split("_")[2] + ")", t2 = a2[0].data.id.split("_")[0];
|
|
43
44
|
w.confirm(`确认切换到页面:${e4}?`, "切换页面", { confirmButtonText: "切换", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
44
|
-
$.value.hide(),
|
|
45
|
+
$.value.hide(), S("change-page", t2);
|
|
45
46
|
}).catch(() => {
|
|
46
47
|
L.value.clearCheckedNodes();
|
|
47
48
|
});
|
|
48
49
|
} else L.value.clearCheckedNodes();
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
function H(e3) {
|
|
52
|
+
S("change-page", e3);
|
|
53
|
+
}
|
|
54
|
+
return t(() => options.value.filter((e3) => !F.value || e3.name.toLowerCase().includes(F.value.toLowerCase()))), l(() => {
|
|
55
|
+
}), (a2, t2) => {
|
|
52
56
|
const l2 = n("el-icon"), w2 = n("el-button"), b2 = n("el-cascader-panel"), _2 = n("el-popover");
|
|
53
|
-
return i(), o("div", k, [s(_2, { onShow: R, onHide: U, ref_key: "popoverRef", ref: $, width: "auto", "popper-style": "box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;" }, { reference: p(() => [
|
|
57
|
+
return i(), o("div", I, [e2.ucrDesign ? (i(), s(k, { key: 0, pageDesign: e2.pageDesign, pageId: e2.pageId, onChangePage: H }, null, 8, ["pageDesign", "pageId"])) : (i(), s(_2, { key: 1, onShow: R, onHide: U, ref_key: "popoverRef", ref: $, width: "auto", "popper-style": "box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;" }, { reference: p(() => [d(w2, { type: "default", icon: r(v), style: { "font-size": "14px", "font-weight": "600" } }, { default: p(() => [c(g(e2.pageDesign.label + "(" + e2.pageDesign.version + ")") + " ", 1), z.value ? (i(), s(l2, { key: 0, class: "el-icon--right" }, { default: p(() => [d(r(h))]), _: 1 })) : (i(), s(l2, { key: 1, class: "el-icon--right" }, { default: p(() => [d(r(x))]), _: 1 }))]), _: 1 }, 8, ["icon"])]), default: p(() => [u("div", C, [d(b2, { ref_key: "cascaderRef", ref: L, style: { width: "fit-content", "margin-top": "6px" }, props: V.value, modelValue: B.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => B.value = e3), onChange: E }, { default: p(({ node: e3, data: a3 }) => [u("div", D, ["menu" === a3.menuType ? (i(), s(l2, { key: 0 }, { default: p(() => [d(r(m))]), _: 1 })) : "page" === a3.menuType ? (i(), s(l2, { key: 1 }, { default: p(() => [d(r(f))]), _: 1 })) : (i(), s(l2, { key: 2 }, { default: p(() => [d(r(y))]), _: 1 })), "page" === a3.menuType ? (i(), o("span", N, g(q(e3)), 1)) : (i(), o("span", P, g(e3.label), 1))])]), _: 1 }, 8, ["props", "modelValue"])])]), _: 1 }, 512))]);
|
|
54
58
|
};
|
|
55
59
|
} });
|
|
56
60
|
export {
|
|
57
|
-
|
|
61
|
+
T as default
|
|
58
62
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as i, reactive as n, computed as t, watch as l, onMounted as o, onUnmounted as s, resolveComponent as r, createElementBlock as a, openBlock as u, Fragment as c, createElementVNode as m, createBlock as g, createCommentVNode as p, createVNode as f, withDirectives as d, normalizeClass as v, withCtx as b, unref as y, vShow as h, normalizeStyle as j, renderList as C } from "vue";
|
|
2
|
-
import { Monitor as
|
|
3
|
-
import { useDraggable as
|
|
2
|
+
import { Monitor as k, Cellphone as S, Iphone as _, Plus as O, Check as A, View as D } from "@element-plus/icons";
|
|
3
|
+
import { useDraggable as T } from "vue-draggable-plus";
|
|
4
4
|
import x from "../../assemblys/object-design.vue.js";
|
|
5
5
|
import { deepCopy as W, getUuidv4 as N, findDesignItemByUuid as E } from "../../../utils/common-util.js";
|
|
6
6
|
import { addComponentRef as U } from "../../../utils/page-helper-util.js";
|
|
@@ -89,13 +89,13 @@ const L = { class: "amb-design-content-center-header" }, I = { class: "amb-desig
|
|
|
89
89
|
P({ message: "保存失败", type: "error" });
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
T(de, ie, { filter: ".el-scrollbar__bar", preventOnFilter: false, group: "amb-assembly-item", animation: 300, ghostClass: "amb-item-ghost", forceFallback: true, onAdd(e3) {
|
|
93
93
|
} });
|
|
94
94
|
const be = i(false);
|
|
95
95
|
const ye = i(null), he = i({}), je = i({}), Ce = i(false);
|
|
96
|
-
let
|
|
97
|
-
function
|
|
98
|
-
|
|
96
|
+
let ke;
|
|
97
|
+
function Se() {
|
|
98
|
+
ke && clearTimeout(ke), Ce.value = false, ke = setTimeout(() => {
|
|
99
99
|
Ce.value = true;
|
|
100
100
|
}, 1);
|
|
101
101
|
}
|
|
@@ -106,33 +106,33 @@ const L = { class: "amb-design-content-center-header" }, I = { class: "amb-desig
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
return s(() => {
|
|
109
|
-
|
|
109
|
+
ke && clearTimeout(ke);
|
|
110
110
|
}), H2({ onSelectEvent: function(e3) {
|
|
111
111
|
Ce.value = !(!e3 || "selected" !== e3);
|
|
112
112
|
}, addEvent: function(e3, i2) {
|
|
113
113
|
he.value = e3;
|
|
114
114
|
const n2 = _e(e3.eventName);
|
|
115
|
-
n2 && (je.value = n2), ye.value = i2 || "event",
|
|
115
|
+
n2 && (je.value = n2), ye.value = i2 || "event", Se();
|
|
116
116
|
}, changeEvent: function(e3) {
|
|
117
117
|
if (e3) {
|
|
118
118
|
ye.value = null, he.value = e3;
|
|
119
119
|
const i2 = _e(e3.eventName);
|
|
120
|
-
je.value = i2 || null,
|
|
120
|
+
je.value = i2 || null, Se();
|
|
121
121
|
} else Ce.value = false;
|
|
122
122
|
} }), (e3, i2) => {
|
|
123
123
|
const n2 = r("el-icon"), t2 = r("el-divider"), l2 = r("Setting"), o2 = r("el-scrollbar");
|
|
124
|
-
return u(), a(c, null, [m("div", { class: "amb-design-content", ref_key: "ambPageDesignContent", ref: ue }, [m("div", L, [m("div", I, [m("div", $, [d(m("label", { class: v(["amb-page-type", { selected: !e3.configure.dimensions || "pc" == e3.configure.dimensions }]), onClick: i2[0] || (i2[0] = (i3) => e3.configure.dimensions = "pc") }, [f(n2, { size: 23 }, { default: b(() => [f(y(
|
|
124
|
+
return u(), a(c, null, [m("div", { class: "amb-design-content", ref_key: "ambPageDesignContent", ref: ue }, [m("div", L, [m("div", I, [m("div", $, [d(m("label", { class: v(["amb-page-type", { selected: !e3.configure.dimensions || "pc" == e3.configure.dimensions }]), onClick: i2[0] || (i2[0] = (i3) => e3.configure.dimensions = "pc") }, [f(n2, { size: 23 }, { default: b(() => [f(y(k))]), _: 1 })], 2), [[h, "assembly" === e3.selAsselbyType]]), d(m("label", { class: v(["amb-page-type", { selected: "ipad" == e3.configure.dimensions }]), onClick: i2[1] || (i2[1] = (i3) => e3.configure.dimensions = "ipad") }, [f(n2, { size: 23 }, { default: b(() => [f(y(S))]), _: 1 })], 2), [[h, "assembly" === e3.selAsselbyType]]), d(m("label", { class: v(["amb-page-type", { selected: "phone" == e3.configure.dimensions }]), onClick: i2[2] || (i2[2] = (i3) => e3.configure.dimensions = "phone") }, [f(n2, { size: 23 }, { default: b(() => [f(y(_))]), _: 1 })], 2), [[h, "assembly" === e3.selAsselbyType]]), d(f(t2, { direction: "vertical" }, null, 512), [[h, "assembly" === e3.selAsselbyType]])]), m("div", G, [m("label", { class: "amb-page-type", onClick: i2[3] || (i2[3] = (e4) => {
|
|
125
125
|
var _a;
|
|
126
126
|
(_a = Z.value) == null ? void 0 : _a.show();
|
|
127
|
-
}) }, [f(n2, { size: 18 }, { default: b(() => [f(l2)]), _: 1 }), i2[9] || (i2[9] = m("label", null, "国际化配置", -1))]),
|
|
127
|
+
}) }, [f(n2, { size: 18 }, { default: b(() => [f(l2)]), _: 1 }), i2[9] || (i2[9] = m("label", null, "国际化配置", -1))]), e3.configure.ucrDesign ? p("", true) : (u(), a("label", { key: 0, class: "amb-page-type", onClick: i2[4] || (i2[4] = (e4) => {
|
|
128
128
|
Y.value && Y.value.openDialog();
|
|
129
|
-
}) }, [f(n2, { size: 18 }, { default: b(() => [f(y(O))]), _: 1 }), i2[10] || (i2[10] = m("label", null, "快捷添加", -1))]), f(t2, { direction: "vertical" }), m("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: i2[5] || (i2[5] = (e4) => ve()) }, [f(n2, { size: 18 }, { default: b(() => [f(y(A))]), _: 1 }), i2[11] || (i2[11] = m("label", null, "保存", -1))]), f(t2, { direction: "vertical" }), m("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: i2[6] || (i2[6] = (e4) => function() {
|
|
129
|
+
}) }, [f(n2, { size: 18 }, { default: b(() => [f(y(O))]), _: 1 }), i2[10] || (i2[10] = m("label", null, "快捷添加", -1))])), f(t2, { direction: "vertical" }), m("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: i2[5] || (i2[5] = (e4) => ve()) }, [f(n2, { size: 18 }, { default: b(() => [f(y(A))]), _: 1 }), i2[11] || (i2[11] = m("label", null, "保存", -1))]), f(t2, { direction: "vertical" }), m("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: i2[6] || (i2[6] = (e4) => function() {
|
|
130
130
|
const e5 = JSON.parse(JSON.stringify(X.configure));
|
|
131
131
|
e5.tableRuntimes = {}, e5.tableUuids && e5.tableUuids.forEach((i3) => {
|
|
132
132
|
const n3 = E(e5, i3);
|
|
133
133
|
n3 && K(n3, e5);
|
|
134
134
|
}), ne.value = e5, be.value = true;
|
|
135
|
-
}()) }, [f(n2, { size: 18 }, { default: b(() => [f(y(
|
|
135
|
+
}()) }, [f(n2, { size: 18 }, { default: b(() => [f(y(D))]), _: 1 }), i2[12] || (i2[12] = m("label", null, "预览", -1))])])])]), f(o2, { height: "100%" }, { default: b(() => [d(m("div", { class: v(["amb-design-board amb-design-board-main", oe.value]), ref_key: "pageDesignBoardMain", ref: de, style: j(re.value), onClick: ce }, [(u(true), a(c, null, C(y(ie), (i3, n3) => (u(), g(x, { key: i3.uuid, indexObj: te, configure: i3, pageDesign: e3.configure, selectWidget: e3.selectWidget, onOnSelectWidget: me, onOnCustomAttrWidget: ge, onOnCopy: pe, onOnDelete: fe }, null, 8, ["indexObj", "configure", "pageDesign", "selectWidget"]))), 128))], 6), [[h, "assembly" === e3.selAsselbyType]])]), _: 1 })], 512), be.value ? (u(), g(J, { key: 0, pageDesign: ne.value, modelValue: be.value, "onUpdate:modelValue": i2[7] || (i2[7] = (e4) => be.value = e4), onClose: i2[8] || (i2[8] = (e4) => be.value = false) }, null, 8, ["pageDesign", "modelValue"])) : p("", true), f(z, { ref_key: "quickAddDialogRef", ref: Y, pageDesign: e3.configure }, null, 8, ["pageDesign"]), f(M, { ref_key: "i18nSettingRef", ref: Z, pageDesign: e3.configure }, null, 8, ["pageDesign"])], 64);
|
|
136
136
|
};
|
|
137
137
|
} });
|
|
138
138
|
export {
|
package/dist/es/style.css
CHANGED
|
@@ -830,7 +830,7 @@ fieldset.amb-design-item-selected {
|
|
|
830
830
|
content: "\e605";
|
|
831
831
|
}
|
|
832
832
|
|
|
833
|
-
.amb-object-design-ref[data-v-
|
|
833
|
+
.amb-object-design-ref[data-v-c2d9c8d5] .el-table td.el-table__cell > .cell {
|
|
834
834
|
padding-left: 2px;
|
|
835
835
|
padding-right: 2px;
|
|
836
836
|
}.runtime-page-container[data-v-f796b484] {
|
|
@@ -905,19 +905,47 @@ fieldset.amb-design-item-selected {
|
|
|
905
905
|
height: 100%;
|
|
906
906
|
}
|
|
907
907
|
/* 定义滚动条的轨道 */
|
|
908
|
-
[data-v-
|
|
908
|
+
[data-v-d6244281]::-webkit-scrollbar {
|
|
909
909
|
height: 6px;
|
|
910
910
|
width: 6px; /* 宽度 */
|
|
911
911
|
}
|
|
912
912
|
|
|
913
913
|
/* 定义滑块 */
|
|
914
|
-
[data-v-
|
|
914
|
+
[data-v-d6244281]::-webkit-scrollbar-thumb {
|
|
915
915
|
background-color: darkgrey; /* 滑块颜色 */
|
|
916
916
|
border-radius: 5px; /* 圆角 */
|
|
917
917
|
}
|
|
918
918
|
|
|
919
919
|
/* 当滑块hover时改变颜色 */
|
|
920
|
-
[data-v-
|
|
920
|
+
[data-v-d6244281]::-webkit-scrollbar-thumb:hover {
|
|
921
|
+
background-color: grey;
|
|
922
|
+
}
|
|
923
|
+
.item-side {
|
|
924
|
+
&[data-v-d6244281] {
|
|
925
|
+
display: flex;
|
|
926
|
+
align-items: center;
|
|
927
|
+
}
|
|
928
|
+
.file[data-v-d6244281] {
|
|
929
|
+
width: 17px;
|
|
930
|
+
height: 17px;
|
|
931
|
+
margin-right: 5px;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
/* 定义滚动条的轨道 */
|
|
936
|
+
[data-v-e79c563b]::-webkit-scrollbar {
|
|
937
|
+
height: 6px;
|
|
938
|
+
width: 6px; /* 宽度 */
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
/* 定义滑块 */
|
|
942
|
+
[data-v-e79c563b]::-webkit-scrollbar-thumb {
|
|
943
|
+
background-color: darkgrey; /* 滑块颜色 */
|
|
944
|
+
border-radius: 5px; /* 圆角 */
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/* 当滑块hover时改变颜色 */
|
|
948
|
+
[data-v-e79c563b]::-webkit-scrollbar-thumb:hover {
|
|
921
949
|
background-color: grey;
|
|
922
950
|
}
|
|
923
951
|
._amb-page-container_1k9lg_1 {
|
|
@@ -13104,7 +13132,7 @@ fieldset.amb-design-item-selected {
|
|
|
13104
13132
|
background-color: var(--el-fill-color-blank);
|
|
13105
13133
|
}
|
|
13106
13134
|
|
|
13107
|
-
.collapse-item-content[data-v-
|
|
13135
|
+
.collapse-item-content[data-v-93b865b5] {
|
|
13108
13136
|
padding: 8px 0px 0px 0px;
|
|
13109
13137
|
}
|
|
13110
13138
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-designer",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.17-sit1-design1",
|
|
4
4
|
"description": "AgileBuilder super page designer",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
30
30
|
"@vueuse/core": "^10.9.0",
|
|
31
31
|
"agilebuilder-private-libs": "1.0.26",
|
|
32
|
-
"agilebuilder-ui": "1.1.
|
|
32
|
+
"agilebuilder-ui": "1.1.59-sit2",
|
|
33
33
|
"echarts": "^5.5.0",
|
|
34
34
|
"element-plus": "^2.6.1",
|
|
35
35
|
"font-awesome": "^4.7.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"pinia": "^2.1.7",
|
|
41
41
|
"qrcode": "^1.5.3",
|
|
42
42
|
"quill": "^2.0.1",
|
|
43
|
-
"service-flow-designer": "2.3.
|
|
44
|
-
"super-page-runtime": "2.3.
|
|
43
|
+
"service-flow-designer": "2.3.17-sit1-flow1",
|
|
44
|
+
"super-page-runtime": "2.3.17-sit1",
|
|
45
45
|
"uuid": "^9.0.1",
|
|
46
46
|
"vite": "^5.1.6",
|
|
47
47
|
"vite-plugin-node-stdlib-browser": "^0.2.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"vue-echarts": "^6.6.9",
|
|
53
53
|
"vue-router": "^4.3.0",
|
|
54
54
|
"vuex": "^4.1.0",
|
|
55
|
-
"workflow-editor": "0.0.
|
|
55
|
+
"workflow-editor": "0.0.78-up"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@codemirror/autocomplete": "^6.16.0",
|