super-page-designer 2.2.82 → 2.2.88
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/design/utils/assemblys-config.js +2 -2
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +21 -21
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +33 -33
- package/dist/es/components/design/views/assemblys/button/button/button-design.vue2.js +21 -21
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js +38 -34
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +20 -19
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +19 -19
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue.js +9 -8
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +19 -19
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +39 -36
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +24 -23
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/common/common-i18n-key-input.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +64 -60
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +11 -11
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +67 -63
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +43 -38
- package/dist/es/components/design/views/assemblys/container/iframe/iframe-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +26 -26
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +30 -30
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +10 -10
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/data/component/return-set-table.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/data/component/variate-select.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +17 -14
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +83 -80
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +29 -9
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +10 -10
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +33 -25
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +33 -30
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/object-design.vue.d.ts +4 -0
- package/dist/es/components/design/views/assemblys/object-design.vue.js +5 -138
- package/dist/es/components/design/views/assemblys/object-design.vue3.js +140 -0
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/page/create-workflow-dialog.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +25 -34
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-design.vue2.js +22 -18
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +36 -36
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +64 -64
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +10 -9
- package/dist/es/components/design/views/design/view/attr-container.vue.js +24 -24
- package/dist/es/components/design/views/design/view/components/el-aside-expand-component.vue.js +24 -0
- package/dist/es/components/design/views/design/view/components/i18n-setting-enabled.vue.js +2 -2
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue2.js +4 -4
- package/dist/es/components/design/views/design/view/components/i18n-setting.vue.js +4 -4
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +10 -9
- package/dist/es/components/design/views/design/view/components/translate-error-dialog.vue.js +8 -8
- 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 +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue2.js +2 -2
- package/dist/es/components/design/views/design/view/view-design.vue.js +27 -26
- package/dist/es/index.js +1 -1
- package/dist/es/style.css +12853 -11195
- package/package.json +4 -4
- package/dist/es/components/design/views/assemblys/object-design.vue2.js +0 -4
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch as l, resolveComponent as u, createElementBlock as o, openBlock as s, createElementVNode as i, createVNode as r, withDirectives as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch as l, resolveComponent as u, createElementBlock as o, openBlock as s, createElementVNode as i, createVNode as r, withDirectives as m, withCtx as c, vShow as d, unref as v, createTextVNode as p, toDisplayString as f, Fragment as g, renderList as b, createBlock as y } from "vue";
|
|
2
2
|
import { ElMessageBox as x, ElMessage as h } from "element-plus";
|
|
3
3
|
import C from "./config.vue.js";
|
|
4
4
|
import { standardButtonOperations as E } from "../../../utils/assemblys-config.js";
|
|
5
|
-
import { findDesignItemByUuid as S, getUuidv4 as
|
|
6
|
-
import { usePageContextStore as
|
|
5
|
+
import { findDesignItemByUuid as S, getUuidv4 as V, deepCopy as k } from "../../../utils/common-util.js";
|
|
6
|
+
import { usePageContextStore as _ } from "../../../../../stores/page-store.js";
|
|
7
7
|
import { undoRedo as T } from "../../../../../stores/event-undo-redo-store.js";
|
|
8
8
|
import U from "../../../utils/eventBus.js";
|
|
9
|
-
const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style: { "user-select": "none" } }, $ = { class: "amb-design-tool-item" }, j = { style: { "margin-left": "0px", display: "inline-block", width: "39px" } },
|
|
10
|
-
const
|
|
11
|
-
let
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
const
|
|
15
|
-
function
|
|
9
|
+
const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style: { "user-select": "none", "margin-bottom": "10px" } }, $ = { class: "amb-design-tool-item" }, j = { style: { "margin-left": "0px", display: "inline-block", width: "39px" } }, w = { class: "amb-design-tool-item", style: { "padding-right": "10px" } }, N = { style: { display: "flex", gap: "15px", padding: "0 20px" } }, B = { class: "codemirror", style: { "margin-left": "20px", "margin-top": "-10px" } }, J = e({ __name: "page-event-content", props: { eventForm: {}, configure: {}, customEvent: {}, handleType: {} }, emits: ["changeSelectEvent", "addEvent", "changeSelectStandardEvent"], setup(e2, { expose: J2, emit: A }) {
|
|
10
|
+
const L = e2, O = T(), P = _(), Z = t(null), I = t();
|
|
11
|
+
let q = t();
|
|
12
|
+
const R = E;
|
|
13
|
+
let H = L.customEvent;
|
|
14
|
+
const D = t({ jsContent: "" }), G = t({ jsContent: "" }), K = t(0), M = t(-1), Q = t();
|
|
15
|
+
function W() {
|
|
16
16
|
let e3 = false;
|
|
17
|
-
|
|
17
|
+
G.value && G.value.standardValues && G.value.standardValues.includes("true") && (e3 = true), G.value && (G.value.isStandard = e3);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const e3 =
|
|
19
|
+
function X() {
|
|
20
|
+
const e3 = D.value ? JSON.stringify(D.value) : null, t2 = G.value ? JSON.stringify(G.value) : null;
|
|
21
21
|
e3 && e3 !== t2 ? x.confirm("当前方法有修改,是否需要暂存?", "确认", { confirmButtonText: "确定", cancelButtonText: "忽略", type: "warning" }).then(() => {
|
|
22
|
-
false !==
|
|
22
|
+
false !== te() && Y();
|
|
23
23
|
}).catch((e4) => {
|
|
24
|
-
|
|
25
|
-
}) :
|
|
24
|
+
Y();
|
|
25
|
+
}) : Y();
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Y() {
|
|
28
28
|
const e3 = { name: "customFunc", isStandard: false, jsContent: "" };
|
|
29
|
-
e3.uuid =
|
|
29
|
+
e3.uuid = V(), ee(e3);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
e3 = e3 || {},
|
|
31
|
+
function ee(e3) {
|
|
32
|
+
e3 = e3 || {}, D.value = e3, G.value = k(e3), Z.value && Z.value.updateJsContent && Z.value.updateJsContent(G.value), O.clearSnapshot(), O.addSnapshot(G), K.value = 1, M.value = 0;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
if (!
|
|
36
|
-
const e3 =
|
|
34
|
+
function te() {
|
|
35
|
+
if (!G.value) return x.confirm("编辑对象不存在,不需要保存!", "提示", { confirmButtonText: "确定", showCancelButton: false, type: "error" }), false;
|
|
36
|
+
const e3 = P.pageContext;
|
|
37
37
|
if (!e3) return x.confirm("页面设计对象不存在,不可保存!", "提示", { confirmButtonText: "确定", showCancelButton: false, type: "error" }), false;
|
|
38
38
|
const t2 = function() {
|
|
39
|
-
const e4 =
|
|
39
|
+
const e4 = G.value;
|
|
40
40
|
if (!e4.isStandard && !e4.jsContent) return h({ message: "方法内容不能为空!", type: "error" }), false;
|
|
41
41
|
if ("customFunc" == e4.name) {
|
|
42
42
|
if (e4.eventName && (e4.eventName = e4.eventName.trim()), !e4.funcParam) return h({ message: "自定义方法参数名不能为空!", type: "error" }), false;
|
|
@@ -48,7 +48,7 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
|
|
|
48
48
|
if (n3) {
|
|
49
49
|
if (!/^([a-zA-Z_$][a-zA-Z0-9_$]*(?:,[a-zA-Z_$][a-zA-Z0-9_$]*)*)$/.test(n3)) return h({ message: "方法参数只能以字母、下划线或$开头,只能包含数字、字母或$!", type: "error" }), false;
|
|
50
50
|
}
|
|
51
|
-
const a3 =
|
|
51
|
+
const a3 = P.pageContext;
|
|
52
52
|
if (a3 && a3.customEvents) {
|
|
53
53
|
for (let n4 of a3.customEvents) if ("customFunc" == n4.name && n4.eventName == t3 && n4.uuid != e4.uuid) return h({ message: "存在相同的方法名!", type: "error" }), false;
|
|
54
54
|
}
|
|
@@ -56,7 +56,7 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
|
|
|
56
56
|
}();
|
|
57
57
|
if (false === t2) return false;
|
|
58
58
|
e3.customEvents || (e3.customEvents = []);
|
|
59
|
-
const n2 =
|
|
59
|
+
const n2 = G.value;
|
|
60
60
|
let a2 = null, l2 = -1;
|
|
61
61
|
for (let t3 = 0; t3 < e3.customEvents.length; t3++) {
|
|
62
62
|
const u2 = e3.customEvents[t3];
|
|
@@ -78,20 +78,20 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
|
|
|
78
78
|
e4 > -1 && (t3.events[e4] = a2);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
} else Object.assign(
|
|
82
|
-
|
|
81
|
+
} else Object.assign(D.value, n2), e3.customEvents.push(D.value);
|
|
82
|
+
D.value = n2, G.value = k(n2), h({ message: "暂存成功!", type: "success" });
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ne() {
|
|
85
85
|
x.confirm("确定要清除吗?", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
86
86
|
!function() {
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
G.value && ae(G.value);
|
|
88
|
+
Y();
|
|
89
89
|
}();
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
const t2 = e3, n2 =
|
|
94
|
-
if (e3.isStandard)
|
|
92
|
+
function ae(e3) {
|
|
93
|
+
const t2 = e3, n2 = P.pageContext;
|
|
94
|
+
if (e3.isStandard) le(e3), ue(t2, e3);
|
|
95
95
|
else if (n2 && n2.customEvents) for (let e4 = 0; e4 < n2.customEvents.length; e4++) {
|
|
96
96
|
let a2 = n2.customEvents[e4];
|
|
97
97
|
if ("customFunc" == t2.name) {
|
|
@@ -100,63 +100,63 @@ const F = { style: { margin: "10px" } }, z = { class: "amb-design-tool", style:
|
|
|
100
100
|
break;
|
|
101
101
|
}
|
|
102
102
|
} else if (a2.name == t2.name && t2.componentUuid == a2.componentUuid) {
|
|
103
|
-
|
|
103
|
+
le(a2), n2.customEvents.splice(e4, 1), ue(t2, a2);
|
|
104
104
|
break;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function le(e3) {
|
|
109
109
|
e3.eventName = null, e3.isStandard = false, e3.jsContent = "", e3.remark = "", e3.standardValues = [];
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
const n2 =
|
|
111
|
+
function ue(e3, t2) {
|
|
112
|
+
const n2 = P.pageContext, a2 = S(n2, e3.componentUuid);
|
|
113
113
|
if (a2 && a2.events) {
|
|
114
114
|
const n3 = a2.events.findIndex((t3) => t3.name == e3.name && t3.componentUuid == e3.componentUuid);
|
|
115
115
|
n3 > -1 && (a2.events[n3] = t2);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
n(() => {
|
|
119
|
-
|
|
120
|
-
if (
|
|
121
|
-
const t2 =
|
|
122
|
-
"customFunc" == e3.name ? e3.uuid == t2.uuid &&
|
|
119
|
+
I.value = window.innerHeight, q.value = { overflow: "auto", height: I.value + "px" }, U.$on("clearEvent", (e3) => {
|
|
120
|
+
if (ae(e3), G.value) {
|
|
121
|
+
const t2 = G.value;
|
|
122
|
+
"customFunc" == e3.name ? e3.uuid == t2.uuid && Y() : e3.componentUuid == t2.componentUuid && e3.name == t2.name && Y();
|
|
123
123
|
}
|
|
124
124
|
}), U.$on("editEvent", (e3) => {
|
|
125
125
|
let t2 = false;
|
|
126
|
-
if (
|
|
126
|
+
if (G.value && ("customFunc" == e3.name ? G.value.uuid == e3.uuid && (t2 = true) : G.value.componentUuid == e3.componentUuid && e3.name == G.value.name && (t2 = true)), t2) return;
|
|
127
127
|
null == e3.jsContent && (e3.jsContent = ""), null == e3.isStandard && (e3.isStandard = false, e3.standardValues = []), e3.isStandard && !e3.standardValues && (e3.standardValues = ["true"]);
|
|
128
|
-
const n2 =
|
|
128
|
+
const n2 = D.value ? JSON.stringify(D.value) : null, a2 = G.value ? JSON.stringify(G.value) : null;
|
|
129
129
|
n2 && n2 !== a2 ? x.confirm("当前方法有修改,是否需要暂存?", "确认", { confirmButtonText: "确定", cancelButtonText: "忽略", type: "warning" }).then(() => {
|
|
130
|
-
false !==
|
|
130
|
+
false !== te() && ee(e3);
|
|
131
131
|
}).catch((t3) => {
|
|
132
|
-
|
|
133
|
-
}) :
|
|
132
|
+
ee(e3);
|
|
133
|
+
}) : ee(e3);
|
|
134
134
|
});
|
|
135
135
|
}), a(() => {
|
|
136
|
-
U.$off("clearEvent"), U.$off("editEvent"),
|
|
137
|
-
}),
|
|
138
|
-
let
|
|
139
|
-
function
|
|
140
|
-
|
|
141
|
-
|
|
136
|
+
U.$off("clearEvent"), U.$off("editEvent"), oe && clearTimeout(oe), se && clearTimeout(se), O.clearSnapshotTimeout();
|
|
137
|
+
}), Y();
|
|
138
|
+
let oe, se, ie = false;
|
|
139
|
+
function re() {
|
|
140
|
+
oe && clearTimeout(oe), ie = true, O.undo(G), K.value = O.getTotalLen(), M.value = O.getCurrentIndex(), Z.value && Z.value.updateJsContent && Z.value.updateJsContent(G.value), oe = setTimeout(() => {
|
|
141
|
+
ie = false;
|
|
142
142
|
}, 100);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
function me() {
|
|
145
|
+
se && clearTimeout(se), ie = true, O.record(G), K.value = O.getTotalLen(), M.value = O.getCurrentIndex(), Z.value && Z.value.updateJsContent && Z.value.updateJsContent(G.value), se = setTimeout(() => {
|
|
146
|
+
ie = false;
|
|
147
147
|
}, 100);
|
|
148
148
|
}
|
|
149
|
-
return l(() =>
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
return l(() => G, (e3) => {
|
|
150
|
+
ie || O.addSnapshot(G, function() {
|
|
151
|
+
K.value = O.getTotalLen(), M.value = O.getCurrentIndex();
|
|
152
152
|
});
|
|
153
|
-
}, { deep: true }),
|
|
154
|
-
|
|
153
|
+
}, { deep: true }), J2({ resize: function() {
|
|
154
|
+
Z.value && Z.value.resize && Z.value.resize();
|
|
155
155
|
} }), (e3, t2) => {
|
|
156
|
-
const n2 = u("Plus"), a2 = u("el-icon"), l2 = u("el-divider"), x2 = u("Check"), h2 = u("View"), E2 = u("el-text"), S2 = u("el-input"),
|
|
157
|
-
return s(), o("div", F, [i("div", z, [i("div", $, [i("label", { class: "amb-page-type", onClick:
|
|
156
|
+
const n2 = u("Plus"), a2 = u("el-icon"), l2 = u("el-divider"), x2 = u("Check"), h2 = u("View"), E2 = u("el-text"), S2 = u("el-input"), V2 = u("el-form-item"), k2 = u("el-checkbox"), _2 = u("el-checkbox-group"), T2 = u("el-option"), U2 = u("el-option-group"), J3 = u("el-select"), A2 = u("el-form");
|
|
157
|
+
return s(), o("div", F, [i("div", z, [i("div", $, [i("label", { class: "amb-page-type", onClick: X }, [r(a2, { size: 18 }, { default: c(() => [r(n2)]), _: 1 }), t2[5] || (t2[5] = i("label", null, "添加自定义方法", -1))]), r(l2, { direction: "vertical" }), m(i("label", j, null, 512), [[d, M.value < 1]]), m(i("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: re }, t2[6] || (t2[6] = [i("span", { class: "iconfont icon-chexiaozuo", style: { "font-size": "20px" }, title: "撤销" }, null, -1)]), 512), [[d, M.value > 0]]), m(i("label", { class: "amb-page-type", onClick: me }, t2[7] || (t2[7] = [i("span", { class: "iconfont icon-chexiaoyou", style: { "font-size": "20px" }, title: "恢复" }, null, -1)]), 512), [[d, M.value > -1 && M.value + 1 < K.value]])]), m(i("div", w, [i("label", { class: "amb-page-type", onClick: t2[0] || (t2[0] = (e4) => te()) }, [r(a2, { size: 18 }, { default: c(() => [r(x2)]), _: 1 }), t2[8] || (t2[8] = i("label", null, "确定", -1))]), r(l2, { direction: "vertical" }), i("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: ne }, [r(a2, { size: 18 }, { default: c(() => [r(h2)]), _: 1 }), t2[9] || (t2[9] = i("label", null, "清除", -1))])], 512), [[d, G.value.name]])]), r(A2, { class: "amb-design-board", style: { "padding-top": "20px" }, ref_key: "formRef", ref: Q, size: "small", model: v(H), "inline-message": "", "label-width": "80px" }, { default: c(() => [i("div", N, [r(V2, { label: "名称", "label-width": "auto", style: { "min-width": "280px" }, required: "customFunc" == G.value.name }, { default: c(() => [m(r(E2, { type: "primary" }, { default: c(() => [p(f(G.value.title ? G.value.title + (G.value.componentLabel ? "(" + G.value.componentLabel + ")" : "") : G.value.componentLabel) + "." + f(G.value.name), 1)]), _: 1 }, 512), [[d, G.value.name && "customFunc" != G.value.name]]), m(r(S2, { modelValue: G.value.eventName, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => G.value.eventName = e4), title: "自定义方法名" }, null, 8, ["modelValue"]), [[d, "customFunc" == G.value.name]])]), _: 1 }, 8, ["required"]), m(r(_2, { modelValue: G.value.standardValues, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => G.value.standardValues = e4), onChange: W }, { default: c(() => [r(k2, { value: "true", label: "标准功能" })]), _: 1 }, 8, ["modelValue"]), [[d, "customFunc" != G.value.name]]), m(r(J3, { disabled: !G.value.isStandard, modelValue: G.value.eventName, "onUpdate:modelValue": t2[3] || (t2[3] = (e4) => G.value.eventName = e4), placeholder: "请选择", filterable: "", style: { width: "240px", "margin-left": "10px" } }, { default: c(() => [(s(true), o(g, null, b(v(R), (e4) => (s(), y(U2, { key: e4.label, label: e4.label }, { default: c(() => [(s(true), o(g, null, b(e4.options, (e5) => (s(), y(T2, { key: e5.value, label: e5.label, value: e5.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["label"]))), 128))]), _: 1 }, 8, ["disabled", "modelValue"]), [[d, "customFunc" != G.value.name]]), r(V2, { label: "描述", "label-width": "auto", style: { flex: "1 1 auto" } }, { default: c(() => [r(S2, { modelValue: G.value.remark, "onUpdate:modelValue": t2[4] || (t2[4] = (e4) => G.value.remark = e4) }, null, 8, ["modelValue"])]), _: 1 })]), m(i("div", B, [r(C, { eventForm: G.value, ref_key: "editorRef", ref: Z }, null, 8, ["eventForm"])], 512), [[d, "customFunc" == G.value.name || "customFunc" != G.value.name && !G.value.isStandard]])]), _: 1 }, 8, ["model"])]);
|
|
158
158
|
};
|
|
159
159
|
} });
|
|
160
160
|
export {
|
|
161
|
-
|
|
161
|
+
J as default
|
|
162
162
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { defineComponent as e, ref as n, resolveComponent as t, createBlock as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as n, resolveComponent as t, createBlock as o, openBlock as r, withCtx as a, createVNode as u } from "vue";
|
|
2
|
+
import i from "./page-event-container.vue.js";
|
|
3
3
|
import l from "./page-event-content.vue.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import c from "../view/components/el-aside-expand-component.vue.js";
|
|
5
|
+
const f = e({ __name: "page-event-view", setup(e2, { expose: f2 }) {
|
|
6
|
+
const s = n(null);
|
|
7
|
+
return f2({ resize: function() {
|
|
8
|
+
s.value && s.value.resize && s.value.resize();
|
|
8
9
|
} }), (e3, n2) => {
|
|
9
|
-
const
|
|
10
|
-
return r(),
|
|
10
|
+
const f3 = t("el-main"), m = t("el-container");
|
|
11
|
+
return r(), o(m, { class: "amb-container" }, { default: a(() => [u(c, null, { default: a(() => [u(i, { ref: "pageEventContainerRef", configure: e3.configure }, null, 8, ["configure"])]), _: 1 }), u(f3, { class: "amb-container-main" }, { default: a(() => [u(l, { configure: {}, eventForm: {}, ref_key: "contentRef", ref: s }, null, 512)]), _: 1 })]), _: 1 });
|
|
11
12
|
};
|
|
12
13
|
} });
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
f as default
|
|
15
16
|
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as e, ref as n,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { getAttrComponentByName as m, getComponentEventOptions as
|
|
5
|
-
import { deepCopy as
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
function
|
|
1
|
+
import { defineComponent as e, ref as n, createBlock as s, openBlock as t, resolveDynamicComponent as a } from "vue";
|
|
2
|
+
import o from "../../assemblys/page/page-attr.vue.js";
|
|
3
|
+
import u from "../../assemblys/error-attr.vue.js";
|
|
4
|
+
import { getAttrComponentByName as m, getComponentEventOptions as l } from "../../../utils/assemblys-config.js";
|
|
5
|
+
import { deepCopy as r } from "../../../utils/common-util.js";
|
|
6
|
+
const i = e({ __name: "attr-container", props: { pageInfo: Object, system: Object }, setup(e2, { expose: i2 }) {
|
|
7
|
+
const f = e2, p = n({}), c = n({});
|
|
8
|
+
p.value = f.pageInfo, c.value = o;
|
|
9
|
+
const v = n({ index: 1 }), g = {};
|
|
10
|
+
function y(e3) {
|
|
11
11
|
if (e3 && e3.name && "page" !== e3.name) {
|
|
12
12
|
!function(e4) {
|
|
13
13
|
if (!e4 || !e4.name || !e4.events) return;
|
|
14
|
-
const n3 =
|
|
14
|
+
const n3 = l(e4.name);
|
|
15
15
|
if (!n3) return;
|
|
16
|
-
const
|
|
17
|
-
for (let n4 of e4.events)
|
|
18
|
-
for (let
|
|
19
|
-
if (t2
|
|
20
|
-
const n4 =
|
|
16
|
+
const s2 = {};
|
|
17
|
+
for (let n4 of e4.events) s2[n4.name] = n4;
|
|
18
|
+
for (let t2 of n3) {
|
|
19
|
+
if (s2[t2.name]) continue;
|
|
20
|
+
const n4 = r(t2);
|
|
21
21
|
e4.events.push(n4);
|
|
22
22
|
}
|
|
23
|
-
}(e3),
|
|
24
|
-
let n2 =
|
|
25
|
-
null == n2 && (n2 = m(e3.name)), null == n2 && (n2 =
|
|
26
|
-
} else
|
|
23
|
+
}(e3), p.value = e3;
|
|
24
|
+
let n2 = g[e3.name];
|
|
25
|
+
null == n2 && (n2 = m(e3.name)), null == n2 && (n2 = u), g[e3.name] = n2, c.value = n2;
|
|
26
|
+
} else p.value = f.pageInfo, c.value = o;
|
|
27
27
|
}
|
|
28
|
-
return
|
|
29
|
-
|
|
30
|
-
} }), (n2,
|
|
28
|
+
return i2({ changeAssembly: y, changeAssemblyByComponent: function(e3, n2) {
|
|
29
|
+
p.value = e3, c.value = n2;
|
|
30
|
+
} }), (n2, o2) => (t(), s(a(c.value), { key: "attr_" + p.value.uuid, indexObj: v.value, pageDesign: e2.pageInfo, system: e2.system, configure: p.value, onChangeAssembly: y }, null, 40, ["indexObj", "pageDesign", "system", "configure"]));
|
|
31
31
|
} });
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
i as default
|
|
34
34
|
};
|
package/dist/es/components/design/views/design/view/components/el-aside-expand-component.vue.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ref as e, onMounted as t, watch as a, resolveComponent as l, createBlock as n, openBlock as i, normalizeStyle as d, normalizeClass as o, withCtx as r, withDirectives as s, createCommentVNode as u, createVNode as c, createElementVNode as g, renderSlot as f, vShow as p } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import v from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const h = v({ __name: "el-aside-expand-component", props: { direction: { type: String, default: "right", validator: (e2) => ["left", "right"].includes(e2) }, width: { type: String, default: "280px" }, defaultExpanded: { type: Boolean, default: true }, toggleable: { type: Boolean, default: true } }, emits: ["expand-change"], setup(v2, { emit: h2 }) {
|
|
5
|
+
const m = v2, x = h2, y = e(null), _ = e(m.defaultExpanded), b = e(false), w = () => !!y.value && (y.value.children.length > 0 || y.value.textContent.trim().length > 0), k = () => {
|
|
6
|
+
m.toggleable && (_.value = !_.value, x("expand-change", _.value));
|
|
7
|
+
};
|
|
8
|
+
return t(() => {
|
|
9
|
+
b.value = w();
|
|
10
|
+
}), a(() => {
|
|
11
|
+
var _a;
|
|
12
|
+
return (_a = y.value) == null ? void 0 : _a.innerHTML;
|
|
13
|
+
}, () => {
|
|
14
|
+
b.value = w();
|
|
15
|
+
}), a(() => m.toggleable, (e2) => {
|
|
16
|
+
e2 || (_.value = true);
|
|
17
|
+
}), (e2, t2) => {
|
|
18
|
+
const a2 = l("el-scrollbar"), h3 = l("el-button"), m2 = l("el-aside");
|
|
19
|
+
return i(), n(m2, { class: o(["transition-all duration-300 ease-in-out el-aside-expand-container", ["right" === v2.direction ? "right-aside" : "left-aside", { expanded: _.value }]]), style: d({ maxWidth: v2.width }) }, { default: r(() => [s(c(a2, { class: "amd-el-aside-content-scrollbar", height: "100%", style: d({ width: v2.width }) }, { default: r(() => [g("div", { class: "amd-el-aside-content", ref_key: "contentRef", ref: y }, [f(e2.$slots, "default", {}, void 0, true)], 512)]), _: 3 }, 8, ["style"]), [[p, _.value]]), v2.toggleable && b.value ? (i(), n(h3, { key: 0, type: "primary", size: "small", class: o(["toggle-btn", ["right" === v2.direction ? "right-toggle-btn" : "left-toggle-btn", { expanded: _.value }]]), onClick: k }, { default: r(() => [g("i", { class: o(["right" === v2.direction ? _.value ? "fa fa-chevron-left" : "fa fa-chevron-right" : _.value ? "fa fa-chevron-right" : "fa fa-chevron-left", "text-white"]) }, null, 2)]), _: 1 }, 8, ["class"])) : u("", true)]), _: 3 }, 8, ["class", "style"]);
|
|
20
|
+
};
|
|
21
|
+
} }, [["__scopeId", "data-v-51944ec4"]]);
|
|
22
|
+
export {
|
|
23
|
+
h as default
|
|
24
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, onMounted as o, nextTick as l, resolveComponent as a, resolveDirective as n, createElementBlock as i, openBlock as s, Fragment as r, createElementVNode as p, createVNode as c, withDirectives as u, createBlock as d, unref as m, withCtx as g, createTextVNode as f } from "vue";
|
|
2
|
-
import { Plus as
|
|
2
|
+
import { Plus as y, Delete as b, Refresh as v } from "@element-plus/icons";
|
|
3
3
|
import w from "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import { ElMessageBox as h, ElMessage as C, ElLoading as k } from "element-plus";
|
|
5
5
|
const S = { style: { padding: "0 0 10px 0" } }, T = e({ __name: "i18n-setting-enabled", props: { systemCode: { type: String, default: "" } }, emits: ["close"], setup(e2, { expose: T2, emit: A }) {
|
|
@@ -52,7 +52,7 @@ const S = { style: { padding: "0 0 10px 0" } }, T = e({ __name: "i18n-setting-en
|
|
|
52
52
|
}), o(() => {
|
|
53
53
|
}), T2({}), (e3, t2) => {
|
|
54
54
|
const o2 = a("el-button"), l2 = a("super-grid"), w2 = n("loading");
|
|
55
|
-
return s(), i(r, null, [p("div", S, [u((s(), d(o2, { disabled: N.value, icon: m(
|
|
55
|
+
return s(), i(r, null, [p("div", S, [u((s(), d(o2, { disabled: N.value, icon: m(y), type: "primary", onClick: j }, { default: g(() => t2[0] || (t2[0] = [f(" 新建 ")])), _: 1 }, 8, ["disabled", "icon"])), [[w2, N.value]]), u((s(), d(o2, { disabled: N.value, icon: m(b), type: "danger", onClick: q }, { default: g(() => t2[1] || (t2[1] = [f(" 删除 ")])), _: 1 }, 8, ["disabled", "icon"])), [[w2, N.value]]), u((s(), d(o2, { type: "default", align: "left", class: "button--default", icon: m(v), onClick: H }, { default: g(() => t2[2] || (t2[2] = [f(" 更新缓存 ")])), _: 1 }, 8, ["icon"])), [[w2, N.value]])]), c(l2, { style: { width: "100%" }, ref_key: "grid", ref: x, url: m(_) + "/bs/language-package/list", options: D, code: "BS_LANGUAGE_PACKAGE", onSelect: B, onSelectAll: B }, null, 8, ["url"])], 64);
|
|
56
56
|
};
|
|
57
57
|
} });
|
|
58
58
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./i18n-setting-page.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-68ce085a"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, reactive as a, computed as t, resolveComponent as
|
|
1
|
+
import { defineComponent as e, ref as l, reactive as a, computed as t, resolveComponent as u, resolveDirective as n, createElementBlock as o, openBlock as s, Fragment as i, createElementVNode as r, withDirectives as d, createBlock as p, createCommentVNode as c, createVNode as g, unref as v, withCtx as m, createTextVNode as f, renderList as y, toDisplayString as h } from "vue";
|
|
2
2
|
import { Plus as C, Reading as b, Refresh as w } from "@element-plus/icons-vue";
|
|
3
3
|
import { ElMessageBox as D, ElMessage as E } from "element-plus";
|
|
4
4
|
import k from "agilebuilder-ui/src/utils/request";
|
|
@@ -72,8 +72,8 @@ const _ = { style: { padding: "0 0 10px 0" }, class: "amb-design-attr-item-inlin
|
|
|
72
72
|
L.value = false, J();
|
|
73
73
|
};
|
|
74
74
|
return O2({}), (l2, a2) => {
|
|
75
|
-
const t2 =
|
|
76
|
-
return s(), o(i, null, [r("div", _, [d((s(), p(t2, { align: "left", type: "primary", icon: v(C), onClick: Y }, { default: m(() => a2[4] || (a2[4] = [f(" 新增 ")])), _: 1 }, 8, ["icon"])), [[ae, T.value]]), d((s(), p(t2, { align: "left", type: "primary", icon: v(b), onClick: N }, { default: m(() => a2[5] || (a2[5] = [f(" 自动翻译 ")])), _: 1 }, 8, ["icon"])), [[ae, T.value]]), d((s(), p(t2, { align: "left", class: "button--default", icon: v(w), onClick: H }, { default: m(() => a2[6] || (a2[6] = [f(" 更新缓存 ")])), _: 1 }, 8, ["icon"])), [[ae, T.value]]), d((s(), p(t2, { align: "left", class: "button--default", icon: v(w), onClick: J }, { default: m(() => a2[7] || (a2[7] = [f(" 刷新 ")])), _: 1 }, 8, ["icon"])), [[ae, T.value]]), g(D2, { style: { width: "200px", "margin-left": "20px" }, modelValue: B.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => B.value = e3), clearable: "", placeholder: "筛选" }, null, 8, ["modelValue"])]), d((s(), p(O3, { data: G.value, border: "", stripe: "", onSelectionChange: X, style: { width: "100%" }, height: U.value, size: "small" }, { default: m(() => [g(k2, { type: "selection", width: "55", align: "center" }), g(k2, { type: "index", width: "50", align: "center", label: "序号" }), g(k2, { prop: "CODE", label: "国际化编码", width: "180", align: "center" }), (s(true), o(i, null,
|
|
75
|
+
const t2 = u("el-button"), D2 = u("el-input"), k2 = u("el-table-column"), O3 = u("el-table"), K2 = u("el-form-item"), I2 = u("el-form"), Q2 = u("el-dialog"), ae = n("loading");
|
|
76
|
+
return s(), o(i, null, [r("div", _, [d((s(), p(t2, { align: "left", type: "primary", icon: v(C), onClick: Y }, { default: m(() => a2[4] || (a2[4] = [f(" 新增 ")])), _: 1 }, 8, ["icon"])), [[ae, T.value]]), d((s(), p(t2, { align: "left", type: "primary", icon: v(b), onClick: N }, { default: m(() => a2[5] || (a2[5] = [f(" 自动翻译 ")])), _: 1 }, 8, ["icon"])), [[ae, T.value]]), d((s(), p(t2, { type: "default", align: "left", class: "button--default", icon: v(w), onClick: H }, { default: m(() => a2[6] || (a2[6] = [f(" 更新缓存 ")])), _: 1 }, 8, ["icon"])), [[ae, T.value]]), d((s(), p(t2, { type: "default", align: "left", class: "button--default", icon: v(w), onClick: J }, { default: m(() => a2[7] || (a2[7] = [f(" 刷新 ")])), _: 1 }, 8, ["icon"])), [[ae, T.value]]), g(D2, { style: { width: "200px", "margin-left": "20px" }, modelValue: B.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => B.value = e3), clearable: "", placeholder: "筛选" }, null, 8, ["modelValue"])]), d((s(), p(O3, { data: G.value, border: "", stripe: "", onSelectionChange: X, style: { width: "100%" }, height: U.value, size: "small" }, { default: m(() => [g(k2, { type: "selection", width: "55", align: "center" }), g(k2, { type: "index", width: "50", align: "center", label: "序号" }), g(k2, { prop: "CODE", label: "国际化编码", width: "180", align: "center" }), (s(true), o(i, null, y(z.value, (e3) => (s(), p(k2, { prop: e3.value, label: e3.name, align: "center" }, { default: m((l3) => [P.value === l3.$index ? (s(), p(D2, { key: 0, modelValue: l3.row[e3.value], "onUpdate:modelValue": (a3) => l3.row[e3.value] = a3, size: "small", style: { "text-align": "center" }, class: "centered-input" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (s(), o("span", x, h(l3.row[e3.value]), 1))]), _: 2 }, 1032, ["prop", "label"]))), 256)), g(k2, { prop: "REMARK", label: "备注", width: "180", align: "center" }, { default: m((e3) => [P.value === e3.$index ? (s(), p(D2, { key: 0, modelValue: e3.row.REMARK, "onUpdate:modelValue": (l3) => e3.row.REMARK = l3, size: "small", class: "centered-input" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (s(), o("span", A, h(e3.row.REMARK), 1))]), _: 1 }), g(k2, { prop: "TRANSLATED", label: "已翻译", width: "180", align: "center" }, { default: m((e3) => [f(h(true === e3.row.TRANSLATED ? "是" : "否"), 1)]), _: 1 }), g(k2, { align: "center", label: "操作" }, { default: m((e3) => [-1 === P.value || P.value !== e3.$index ? (s(), o(i, { key: 0 }, [g(t2, { type: "default", size: "small", onClick: (l3) => {
|
|
77
77
|
return a3 = e3.$index, e3.row, void (-1 === P.value ? P.value = a3 : E.warning("请先保存或取消当前编辑行"));
|
|
78
78
|
var a3;
|
|
79
79
|
} }, { default: m(() => a2[8] || (a2[8] = [f(" 修改 ")])), _: 2 }, 1032, ["onClick"]), g(t2, { size: "small", type: "danger", onClick: (l3) => {
|
|
@@ -86,7 +86,7 @@ const _ = { style: { padding: "0 0 10px 0" }, class: "amb-design-attr-item-inlin
|
|
|
86
86
|
E.error("保存失败");
|
|
87
87
|
});
|
|
88
88
|
var a3;
|
|
89
|
-
} }, { default: m(() => a2[10] || (a2[10] = [f(" 保存 ")])), _: 2 }, 1032, ["onClick"]), g(t2, { size: "small", onClick: (l3) => (e3.$index, e3.row, void (P.value = -1)) }, { default: m(() => a2[11] || (a2[11] = [f(" 取消编辑 ")])), _: 2 }, 1032, ["onClick"])], 64)) : c("", true)]), _: 1 })]), _: 1 }, 8, ["data", "height"])), [[ae, T.value]]), r("span", null, "总条数:" +
|
|
89
|
+
} }, { default: m(() => a2[10] || (a2[10] = [f(" 保存 ")])), _: 2 }, 1032, ["onClick"]), g(t2, { type: "default", size: "small", onClick: (l3) => (e3.$index, e3.row, void (P.value = -1)) }, { default: m(() => a2[11] || (a2[11] = [f(" 取消编辑 ")])), _: 2 }, 1032, ["onClick"])], 64)) : c("", true)]), _: 1 })]), _: 1 }, 8, ["data", "height"])), [[ae, T.value]]), r("span", null, "总条数:" + h(G.value.length), 1), L.value ? (s(), p(V, { key: 0, systemCode: e2.pageDesign.systemCode, languages: z.value, errorTranslateData: q.value, onClose: le }, null, 8, ["systemCode", "languages", "errorTranslateData"])) : c("", true), S.value ? (s(), p(Q2, { key: 1, modelValue: S.value, "onUpdate:modelValue": a2[3] || (a2[3] = (e3) => S.value = e3), width: "500", title: "新增", "append-to-body": "" }, { footer: m(() => [r("div", R, [g(t2, { type: "default", onClick: ee }, { default: m(() => a2[12] || (a2[12] = [f("取消")])), _: 1 }), g(t2, { type: "primary", onClick: Z }, { default: m(() => a2[13] || (a2[13] = [f(" 保存 ")])), _: 1 })])]), default: m(() => [g(I2, { ref: "addFormRef", style: { "max-width": "600px" }, model: j.value, rules: F, "label-width": "auto", class: "demo-addForm", size: "small", "status-icon": "" }, { default: m(() => [g(K2, { label: "编码", prop: "CODE" }, { default: m(() => [g(D2, { modelValue: j.value.CODE, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => j.value.CODE = e3) }, null, 8, ["modelValue"])]), _: 1 }), (s(true), o(i, null, y(z.value, (e3) => (s(), p(K2, { prop: e3.value, label: e3.name }, { default: m(() => [g(D2, { modelValue: j.value[e3.value], "onUpdate:modelValue": (l3) => j.value[e3.value] = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1032, ["prop", "label"]))), 256)), g(K2, { label: "备注", prop: "REMARK" }, { default: m(() => [g(D2, { modelValue: j.value.REMARK, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => j.value.REMARK = e3) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])) : c("", true)], 64);
|
|
90
90
|
};
|
|
91
91
|
} });
|
|
92
92
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, onMounted as t, resolveComponent as a, createBlock as o, openBlock as n, withCtx as s, createVNode as
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as t, resolveComponent as a, createBlock as o, openBlock as n, withCtx as s, createVNode as d, nextTick as u } from "vue";
|
|
2
2
|
import i from "./i18n-setting-enabled.vue.js";
|
|
3
3
|
import g from "./i18n-setting-page.vue.js";
|
|
4
4
|
const p = e({ __name: "i18n-setting", props: { pageDesign: { type: Object, default: "" } }, emits: ["close"], setup(e2, { expose: p2, emit: m }) {
|
|
5
5
|
const f = m, c = l(false), r = l("page"), v = (e3, l2) => {
|
|
6
6
|
}, h = l(), b = l();
|
|
7
7
|
function y() {
|
|
8
|
-
|
|
8
|
+
u(() => {
|
|
9
9
|
h.value.dialogContentRef && (b.value = h.value.dialogContentRef);
|
|
10
10
|
});
|
|
11
11
|
}
|
|
@@ -16,8 +16,8 @@ const p = e({ __name: "i18n-setting", props: { pageDesign: { type: Object, defau
|
|
|
16
16
|
}), p2({ show: function() {
|
|
17
17
|
c.value = true;
|
|
18
18
|
} }), (l2, t2) => {
|
|
19
|
-
const
|
|
20
|
-
return n(), o(m2, { modelValue: c.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => c.value = e3), "close-on-press-escape": "", ref_key: "dialogRef", ref: h, "destroy-on-close": "", style: { height: "75vh" }, width: "70%", title: "国际化配置", onOpened: y, onClose: C }, { default: s(() => [
|
|
19
|
+
const u2 = a("el-tab-pane"), p3 = a("el-tabs"), m2 = a("el-dialog");
|
|
20
|
+
return n(), o(m2, { modelValue: c.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => c.value = e3), "close-on-press-escape": "", "append-to-body": "", ref_key: "dialogRef", ref: h, "destroy-on-close": "", style: { height: "75vh" }, width: "70%", title: "国际化配置", onOpened: y, onClose: C }, { default: s(() => [d(p3, { modelValue: r.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => r.value = e3), class: "demo-tabs", onTabClick: v }, { default: s(() => [d(u2, { label: "当前页面", name: "page", style: { height: "60vh" } }, { default: s(() => [d(g, { "page-design": e2.pageDesign }, null, 8, ["page-design"])]), _: 1 }), d(u2, { label: "所有可用", name: "enabled", style: { height: "60vh" } }, { default: s(() => [d(i, { "system-code": e2.pageDesign.systemCode, dialogContentRef: b.value }, null, 8, ["system-code", "dialogContentRef"])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"]);
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, reactive as s, computed as o, resolveComponent as l, createElementBlock as i, openBlock as a, Fragment as n, createVNode as p, withCtx as r, createElementVNode as u, unref as m, createTextVNode as d, renderList as f, createBlock as c } from "vue";
|
|
2
|
-
import { ElMessage as b, ElMessageBox as
|
|
3
|
-
import { Check as
|
|
2
|
+
import { ElMessage as b, ElMessageBox as y } from "element-plus";
|
|
3
|
+
import { Check as g, Search as v, Close as h } from "@element-plus/icons";
|
|
4
4
|
import V from "../../../assemblys/common/common-select-table.vue.js";
|
|
5
5
|
import C from "./quick-add-fields.vue.js";
|
|
6
6
|
import "agilebuilder-ui/src/utils/request";
|
|
@@ -69,7 +69,7 @@ const I = { style: { "background-color": "rgba(88, 147, 239, 0.06)", padding: "1
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
function Z() {
|
|
72
|
-
P.tableName ? P.buttons && 0 != P.buttons.length || P.fieldInfos && 0 != P.fieldInfos.length ?
|
|
72
|
+
P.tableName ? P.buttons && 0 != P.buttons.length || P.fieldInfos && 0 != P.fieldInfos.length ? y.confirm("确定要添加吗?", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(({ value: e3 }) => {
|
|
73
73
|
"form" == P.pageType ? function() {
|
|
74
74
|
const e4 = [];
|
|
75
75
|
if (P.buttons && P.buttons.length > 0) {
|
|
@@ -129,6 +129,7 @@ const I = { style: { "background-color": "rgba(88, 147, 239, 0.06)", padding: "1
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
(function(e5) {
|
|
132
|
+
var _a, _b;
|
|
132
133
|
let t3 = -1;
|
|
133
134
|
const s3 = e5.items;
|
|
134
135
|
for (let e6 = 0; e6 < s3.length; e6++) {
|
|
@@ -149,7 +150,7 @@ const I = { style: { "background-color": "rgba(88, 147, 239, 0.06)", padding: "1
|
|
|
149
150
|
});
|
|
150
151
|
for (let t4 of P.listButtons) {
|
|
151
152
|
const s4 = G[t4], o3 = te(s4 ? s4.label : "按钮", t4);
|
|
152
|
-
o3.props && o3.props.base && (o3.props.base.size = "small"), e5.btnList.push(o3);
|
|
153
|
+
o3.props && o3.props.base && (o3.props.base.size = "small"), ((_a = s4.props) == null ? void 0 : _a.base) && (o3.props.base = { ...o3.props.base ?? {}, ...((_b = s4.props) == null ? void 0 : _b.base) ?? {} }), e5.btnList.push(o3);
|
|
153
154
|
}
|
|
154
155
|
})(t2), t2.props.dataOrigin || (t2.props.dataOrigin = {});
|
|
155
156
|
t2.props.dataOrigin.optionValueSetType = "dataTable", t2.tableSysCode = P.systemCode, t2.tableSysVersion = P.systemVersion, t2.props.dataOrigin.tableName = P.tableName, t2.props.dataOrigin.alias = P.tableAlias, t2.modelFields = P.modelFields, e4.push(t2), B.items || (B.items = []);
|
|
@@ -170,10 +171,10 @@ const I = { style: { "background-color": "rgba(88, 147, 239, 0.06)", padding: "1
|
|
|
170
171
|
return o2.index > l2 ? 1 : 0;
|
|
171
172
|
});
|
|
172
173
|
for (let t2 of P.buttons) {
|
|
173
|
-
const s2 = G[t2];
|
|
174
|
+
const s2 = G[t2], o2 = (s2 == null ? void 0 : s2.props) ?? {};
|
|
174
175
|
if (!s2) continue;
|
|
175
|
-
let
|
|
176
|
-
|
|
176
|
+
let l2 = null;
|
|
177
|
+
"button-detail" == s2.name ? (l2 = te(s2.label, t2), (o2 == null ? void 0 : o2.base) && (l2.props.base = { ...l2.props.base ?? {}, ...(o2 == null ? void 0 : o2.base) ?? {} })) : l2 = se(s2.name), l2 && e3.items.push(l2);
|
|
177
178
|
}
|
|
178
179
|
return e3;
|
|
179
180
|
}
|
|
@@ -197,8 +198,8 @@ const I = { style: { "background-color": "rgba(88, 147, 239, 0.06)", padding: "1
|
|
|
197
198
|
let e3 = window.innerHeight - 110 - 310 - 20;
|
|
198
199
|
e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), U.value = e3, W.value = true;
|
|
199
200
|
} }), (e3, t2) => {
|
|
200
|
-
const s2 = l("el-button"), o2 = l("el-radio"), b2 = l("el-radio-group"),
|
|
201
|
-
return a(), i(n, null, [p(j2, { modelValue: W.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => W.value = e4), "close-on-press-escape": "", title: "快捷添加", onClose: t2[6] || (t2[6] = (e4) => L("close")), width: "900" }, { default: r(() => [u("div", I, [p(s2, { size: "small", type: "primary", style: { "margin-left": "10px" }, icon: m(
|
|
201
|
+
const s2 = l("el-button"), o2 = l("el-radio"), b2 = l("el-radio-group"), y2 = l("el-form-item"), x2 = l("el-col"), T2 = l("el-switch"), _2 = l("el-input"), N2 = l("el-row"), w2 = l("el-checkbox"), k2 = l("el-checkbox-group"), F2 = l("el-form"), O2 = l("el-divider"), j2 = l("el-dialog");
|
|
202
|
+
return a(), i(n, null, [p(j2, { "append-to-body": "", modelValue: W.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => W.value = e4), "close-on-press-escape": "", title: "快捷添加", onClose: t2[6] || (t2[6] = (e4) => L("close")), width: "900" }, { default: r(() => [u("div", I, [p(s2, { size: "small", type: "primary", style: { "margin-left": "10px" }, icon: m(g), onClick: Z }, { default: r(() => t2[7] || (t2[7] = [d("确定")])), _: 1 }, 8, ["icon"])]), p(F2, { style: { "margin-top": "15px" }, size: "small" }, { default: r(() => [p(N2, null, { default: r(() => [p(x2, { span: 6 }, { default: r(() => [p(y2, { label: " 页面类型", class: "amb-design-attr-item" }, { default: r(() => [p(b2, { modelValue: P.pageType, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => P.pageType = e4) }, { default: r(() => [p(o2, { value: "form" }, { default: r(() => t2[8] || (t2[8] = [d("表单")])), _: 1 }), p(o2, { value: "list" }, { default: r(() => t2[9] || (t2[9] = [d("台帐")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 }), p(x2, { span: 4 }, { default: r(() => [p(y2, { label: "工作流模式", class: "amb-design-attr-item" }, { default: r(() => [p(T2, { disabled: "form" != P.pageType, modelValue: P.isWorkflow, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => P.isWorkflow = e4) }, null, 8, ["disabled", "modelValue"])]), _: 1 })]), _: 1 }), p(x2, { span: 12 }, { default: r(() => [p(y2, { label: "数据表", class: "amb-design-attr-item" }, { default: r(() => [p(_2, { modelValue: P.tableAlias, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => P.tableAlias = e4), title: P.tableAlias, clearable: "", readonly: "true", onClick: Q }, { append: r(() => [p(s2, { type: "default", icon: m(v), onClick: Q, size: "small" }, null, 8, ["icon"]), p(s2, { type: "default", icon: m(h), onClick: X, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 })]), _: 1 })]), _: 1 }), p(y2, { label: " 可选功能", class: "amb-design-attr-item" }, { default: r(() => [p(k2, { modelValue: P.buttons, "onUpdate:modelValue": t2[3] || (t2[3] = (e4) => P.buttons = e4), onChange: $ }, { default: r(() => [(a(true), i(n, null, f(K.value, (e4) => (a(), c(w2, { value: e4.value, label: e4.label }, null, 8, ["value", "label"]))), 256))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), p(y2, { label: "行编辑功能", class: "amb-design-attr-item" }, { default: r(() => [p(k2, { modelValue: P.listButtons, "onUpdate:modelValue": t2[4] || (t2[4] = (e4) => P.listButtons = e4) }, { default: r(() => [(a(), i(n, null, f(M, (e4) => p(w2, { disabled: "list" != P.pageType, value: e4.value, label: e4.label }, null, 8, ["disabled", "value", "label"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 }), p(O2, { style: { "margin-bottom": "10px", "margin-top": "-10px" } }), p(C, { model: P, ref_key: "addFieldsRef", ref: E, height: U.value }, null, 8, ["model", "height"])]), _: 1 }, 8, ["modelValue"]), p(V, { ref_key: "selectTableDialog", ref: D, onSelectTable: Y, systemCode: m(B).systemCode, systemVersion: m(B).systemVersion }, null, 8, ["systemCode", "systemVersion"])], 64);
|
|
202
203
|
};
|
|
203
204
|
} });
|
|
204
205
|
export {
|
package/dist/es/components/design/views/design/view/components/translate-error-dialog.vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, createBlock as o, openBlock as n, withCtx as u, createVNode as r, createElementVNode as
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, createBlock as o, openBlock as n, withCtx as u, createVNode as r, createElementVNode as d, createElementBlock as i, Fragment as s, createTextVNode as c, toDisplayString as v, createCommentVNode as p } from "vue";
|
|
2
|
+
import { ElMessage as f } from "element-plus";
|
|
3
|
+
import m from "agilebuilder-ui/src/utils/request";
|
|
4
4
|
const g = { class: "dialog-footer" }, y = e({ __name: "translate-error-dialog", props: { systemCode: { type: String, default: "" }, languages: { type: Array, default: [] }, errorTranslateData: { type: Object, default: () => ({}) } }, emits: ["close"], setup(e2, { emit: y2 }) {
|
|
5
5
|
const h = e2, w = y2, b = l(true), k = l([]), C = l([]), _ = l(""), x = l(null);
|
|
6
6
|
function V() {
|
|
@@ -24,19 +24,19 @@ const g = { class: "dialog-footer" }, y = e({ __name: "translate-error-dialog",
|
|
|
24
24
|
};
|
|
25
25
|
function $(e3) {
|
|
26
26
|
const l2 = { lang: h.errorTranslateData.lang, systemCode: h.systemCode, languageValues: e3 };
|
|
27
|
-
|
|
28
|
-
x.value = null,
|
|
27
|
+
m.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/language-value/save-with-lang", l2).then(() => {
|
|
28
|
+
x.value = null, f.success({ message: "保存成功", showClose: true });
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
function z() {
|
|
32
32
|
w("close");
|
|
33
33
|
}
|
|
34
34
|
return (e3, l2) => {
|
|
35
|
-
const a2 = t("el-alert"),
|
|
36
|
-
return n(), o(w2, { title: "翻译结果参照", width: "700", modelValue: b.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => b.value = e4), onClose: z, "destroy-on-close": "", "apped-to-body": "", "close-on-click-modal": "" }, { footer: u(() => [
|
|
35
|
+
const a2 = t("el-alert"), f2 = t("el-table-column"), m2 = t("el-input"), y3 = t("el-button"), h2 = t("el-table"), w2 = t("el-dialog");
|
|
36
|
+
return n(), o(w2, { title: "翻译结果参照", width: "700", modelValue: b.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => b.value = e4), onClose: z, "destroy-on-close": "", "apped-to-body": "", "close-on-click-modal": "" }, { footer: u(() => [d("div", g, [C.value.length > 0 ? (n(), o(y3, { key: 0, type: "primary", onClick: V }, { default: u(() => [c(" 保存选中行(" + v(C.value.length) + ")条 ", 1)]), _: 1 })) : p("", true), r(y3, { type: "default", onClick: z }, { default: u(() => l2[4] || (l2[4] = [c(" 返回 ")])), _: 1 })])]), default: u(() => [r(a2, { title: "语言类型:" + _.value, type: "warning", closable: false }, null, 8, ["title"]), l2[5] || (l2[5] = d("br", null, null, -1)), r(h2, { data: k.value, style: { width: "100%" }, height: "500", onRowClick: T, ref: "multipleTableRef", onSelectionChange: D }, { default: u(() => [r(f2, { type: "selection", width: "55" }), r(f2, { type: "index", width: "50" }), r(f2, { prop: "code", label: "编码", width: "180" }), r(f2, { prop: "value", label: "翻译结果", width: "180" }, { default: u((e4) => [x.value === e4.$index ? (n(), o(m2, { key: 0, modelValue: e4.row.value, "onUpdate:modelValue": (l3) => e4.row.value = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (n(), i(s, { key: 1 }, [c(v(e4.row.value), 1)], 64))]), _: 1 }), r(f2, { align: "center", label: "操作" }, { default: u((e4) => [x.value === e4.$index ? (n(), o(y3, { key: 0, type: "primary", size: "small", onClick: (l3) => {
|
|
37
37
|
return e4.$index, a3 = e4.row, void $({ [a3.code]: a3.value });
|
|
38
38
|
var a3;
|
|
39
|
-
} }, { default: u(() => l2[1] || (l2[1] = [c(" 保存 ")])), _: 2 }, 1032, ["onClick"])) : (n(), s
|
|
39
|
+
} }, { default: u(() => l2[1] || (l2[1] = [c(" 保存 ")])), _: 2 }, 1032, ["onClick"])) : (n(), i(s, { key: 1 }, [r(y3, { type: "default", size: "small", onClick: (l3) => {
|
|
40
40
|
return a3 = e4.$index, e4.row, void (x.value = a3);
|
|
41
41
|
var a3;
|
|
42
42
|
} }, { default: u(() => l2[2] || (l2[2] = [c(" 编辑 ")])), _: 2 }, 1032, ["onClick"]), r(y3, { size: "small", type: "danger", onClick: (l3) => {
|
|
@@ -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-e8f0bd36"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|