super-page-designer 2.3.30-design1 → 2.3.30-tmp1-design2
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/page-table-util.js +1 -1
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue2.js +20 -28
- package/dist/es/components/design/views/assemblys/common/common-style-margin.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/common/common-style-padding.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +2 -26
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +26 -2
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +1 -1
- package/dist/es/components/design/views/design/view/components/i18n-setting-enabled.vue.js +16 -16
- 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 +39 -39
- package/dist/es/components/design/views/design/view/components/i18n-setting.vue.js +1 -1
- package/dist/es/style.css +2 -2
- package/package.json +4 -4
|
@@ -182,7 +182,7 @@ function b(e2) {
|
|
|
182
182
|
} else if ("input-text" === e2.name) {
|
|
183
183
|
const r2 = !!((_a = e2.props.scan) == null ? void 0 : _a.enable), a2 = (_b = e2.props.scan) == null ? void 0 : _b.ruleList;
|
|
184
184
|
t2.scanEnable = r2, t2.scanRuleList = a2;
|
|
185
|
-
} else "custom" === e2.name ?
|
|
185
|
+
} else "custom" === e2.name ? t2.customParams = e2.props.parameter : "datePicker" === e2.name ? (t2.format = e2.props.base.format, t2.valueFormat = e2.props.base.valueFormat) : "dept-tree" === e2.name && (t2.limitFilterColumn = e2.props.base.limitFilterColumn, t2.deptScope = e2.props.base.deptScope, t2.deptScopeField = e2.props.base.deptScopeField, t2.deptScopeCodes = e2.props.base.deptScopeDepts, "textarea" === e2.props.base.inputShowWay && (t2.inputShowWay = e2.props.base.inputShowWay, t2.autosize = { minRows: e2.props.base.textareaMinRow, maxRows: e2.props.base.textareaMaxRow }));
|
|
186
186
|
return ((_c = e2.style) == null ? void 0 : _c.cellStyle) && (t2.cellStyle = e2.style.cellStyle), ((_d = e2.style) == null ? void 0 : _d.titleStyle) && (t2.titleStyle = e2.style.titleStyle), ((_f = (_e = e2.props) == null ? void 0 : _e.base) == null ? void 0 : _f.editConditions) && e2.props.base.editConditions.length > 0 && (t2.editConditions = e2.props.base.editConditions), ((_g = e2.props) == null ? void 0 : _g.querySettings) && (t2.querySettings = e2.props.querySettings), t2 ? JSON.stringify(t2) : null;
|
|
187
187
|
}
|
|
188
188
|
function y(e2) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./button-attr-base.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const o = e(t, [["__scopeId", "data-v-9f576183"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
o as default
|
|
7
7
|
};
|
|
@@ -6,51 +6,43 @@ import v from "../../common/common-icon-bind.vue.js";
|
|
|
6
6
|
import _ from "agilebuilder-ui/src/utils/request";
|
|
7
7
|
import y from "../../common/common-function-code.vue.js";
|
|
8
8
|
import "@element-plus/icons";
|
|
9
|
-
import { Close as U, Check as
|
|
10
|
-
import
|
|
9
|
+
import { Close as U, Check as k } from "@element-plus/icons-vue";
|
|
10
|
+
import "uuid";
|
|
11
11
|
import "../../../../../../stores/table-store.js";
|
|
12
12
|
import "../../../../../../stores/statistics-table-store.js";
|
|
13
13
|
/* empty css */
|
|
14
|
-
import { getTableConfigByTableUuid as
|
|
14
|
+
import { getTableConfigByTableUuid as h } from "../../../../utils/page-table-util.js";
|
|
15
15
|
import x from "../../common/common-i18n-key-input.vue.js";
|
|
16
|
-
import
|
|
16
|
+
import D from "../../chart/statistical-table/component/link-table.vue.js";
|
|
17
17
|
import P from "../../common/common-template-select.vue.js";
|
|
18
|
-
const
|
|
19
|
-
const C2 = e2,
|
|
18
|
+
const j = { class: "collapse-item-content" }, w = { class: "collapse-item-content" }, F = { class: "collapse-item-content" }, T = { class: "collapse-item-content" }, z = { class: "collapse-item-content" }, C = e({ __name: "button-attr-base", props: { configure: { type: Object, default: () => ({ props: {} }) }, pageDesign: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
|
|
19
|
+
const C2 = e2, E = a(["base", "appearance", "otherSettings", "linkPage", "templateConfig"]), q = a({}), R = a([]), A = a($()), I = a(false);
|
|
20
20
|
C2.configure.props.base.templateFiles && C2.configure.props.base.templateFiles.forEach((e3) => {
|
|
21
|
-
|
|
22
|
-
}), void 0 === C2.configure.props.base.isEnableRequired && (C2.configure.props.base.isEnableRequired = true), !C2.configure.props.linkPage || C2.configure.props.linkPage instanceof Array || (C2.configure.props.linkPage = [{ linkPage: C2.configure.props.linkPage }]),
|
|
23
|
-
const
|
|
24
|
-
function
|
|
25
|
-
return
|
|
21
|
+
R.value.push(e3.templateUuid);
|
|
22
|
+
}), void 0 === C2.configure.props.base.isEnableRequired && (C2.configure.props.base.isEnableRequired = true), !C2.configure.props.linkPage || C2.configure.props.linkPage instanceof Array || (C2.configure.props.linkPage = [{ linkPage: C2.configure.props.linkPage }]), I.value = true;
|
|
23
|
+
const S = a([]);
|
|
24
|
+
function $() {
|
|
25
|
+
return h(C2.pageDesign, C2.configure);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const a2 =
|
|
29
|
-
|
|
27
|
+
function M(e3) {
|
|
28
|
+
const a2 = $();
|
|
29
|
+
A.value = a2;
|
|
30
30
|
}
|
|
31
31
|
return l(() => {
|
|
32
32
|
!function() {
|
|
33
33
|
var _a;
|
|
34
34
|
const e3 = (_a = C2.pageDesign) == null ? void 0 : _a.systemVersion;
|
|
35
35
|
_.post(window.$vueApp.config.globalProperties.baseAPI + `/dc/template-management/list/${C2.pageDesign.systemCode}?publishVersion=${e3}`, {}).then((e4) => {
|
|
36
|
-
|
|
36
|
+
q.value = e4.data;
|
|
37
37
|
});
|
|
38
|
-
}(),
|
|
39
|
-
if (C2.pageDesign.tableUuids && C2.pageDesign.tableUuids.length > 0) {
|
|
40
|
-
const e3 = [];
|
|
41
|
-
C2.pageDesign.tableUuids.forEach((a2) => {
|
|
42
|
-
const l2 = k(C2.pageDesign, a2);
|
|
43
|
-
(l2 == null ? void 0 : l2.title) ? e3.push({ label: l2.title, value: a2 }) : e3.push({ label: a2 + "(唯一编码)", value: a2 });
|
|
44
|
-
}), $.value = e3;
|
|
45
|
-
}
|
|
46
|
-
}();
|
|
38
|
+
}(), C2.pageDesign.tableUuids && C2.pageDesign.tableUuids.length > 0 && (S.value = C2.pageDesign.tableUuids);
|
|
47
39
|
}), (a2, l2) => {
|
|
48
|
-
const _2 = o("el-option"),
|
|
49
|
-
return t(), i(J, { "label-width": "80px", size: "small" }, { default: s(() => [u(H, { modelValue:
|
|
40
|
+
const _2 = o("el-option"), h2 = o("el-select"), q2 = o("el-form-item"), R2 = o("el-input"), $2 = o("el-radio"), N = o("el-radio-group"), O = o("el-collapse-item"), B = o("el-radio-button"), G = o("el-switch"), H = o("el-collapse"), J = o("el-form");
|
|
41
|
+
return t(), i(J, { "label-width": "80px", size: "small" }, { default: s(() => [u(H, { modelValue: E.value, "onUpdate:modelValue": l2[26] || (l2[26] = (e3) => E.value = e3), style: { "margin-top": "6px" } }, { default: s(() => [e2.configure.isFlow ? n("", true) : (t(), i(O, { key: 0, title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: s(() => [r("div", j, [u(q2, { label: "组件类型", class: "amb-design-attr-item" }, { default: s(() => [u(h2, { modelValue: e2.configure.name, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.name = a3), filterable: "", placeholder: "请选择" }, { default: s(() => [(t(true), d(p, null, c(m(V)(), (e3) => (t(), i(_2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(q2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: s(() => [u(R2, { modelValue: e2.configure.uuid, "onUpdate:modelValue": l2[1] || (l2[1] = (a3) => e2.configure.uuid = a3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), u(q2, { label: "自定义编码", class: "amb-design-attr-item" }, { default: s(() => [u(R2, { modelValue: e2.configure.code, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.code = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), u(q2, { label: "绑定权限", class: "amb-design-attr-item" }, { default: s(() => [(t(), i(y, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 }), u(q2, { label: "标题", class: "amb-design-attr-item" }, { default: s(() => [u(x, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.base.title = a3) }, null, 8, ["modelValue"])]), _: 1 }), u(q2, { label: "状态", class: "amb-design-attr-item" }, { default: s(() => [u(N, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.base.state = a3), class: "ml-4" }, { default: s(() => [u($2, { value: "default" }, { default: s(() => l2[27] || (l2[27] = [f("普通")])), _: 1 }), u($2, { value: "disabled" }, { default: s(() => l2[28] || (l2[28] = [f("禁用")])), _: 1 }), u($2, { value: "hidden" }, { default: s(() => l2[29] || (l2[29] = [f("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 })), u(O, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: s(() => [r("div", w, [u(q2, { label: "尺寸", class: "amb-design-attr-item" }, { default: s(() => [u(N, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.base.size = a3), class: "ml-4" }, { default: s(() => [u($2, { value: "large" }, { default: s(() => l2[30] || (l2[30] = [f("大")])), _: 1 }), u($2, { value: "default" }, { default: s(() => l2[31] || (l2[31] = [f("中")])), _: 1 }), u($2, { value: "small" }, { default: s(() => l2[32] || (l2[32] = [f("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(q2, { label: "按钮类型", class: "amb-design-attr-item" }, { default: s(() => [u(h2, { modelValue: e2.configure.props.base.type, "onUpdate:modelValue": l2[6] || (l2[6] = (a3) => e2.configure.props.base.type = a3), class: "ml-4", clearable: "" }, { default: s(() => [u(_2, { label: "primary", value: "primary" }), u(_2, { label: "success", value: "success" }), u(_2, { label: "warning", value: "warning" }), u(_2, { label: "danger", value: "danger" }), u(_2, { label: "info", value: "info" }), u(_2, { label: "default", value: "default" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(q2, { label: "图标", class: "amb-design-attr-item" }, { default: s(() => [(t(), i(v, { key: e2.configure.uuid, iconType: e2.configure.props.base.iconType, iconValue: e2.configure.props.base.iconValue, "onUpdate:modelValue": l2[7] || (l2[7] = (e3, a3) => function(e4, a4) {
|
|
50
42
|
C2.configure.props.base.iconType = e4, C2.configure.props.base.iconValue = a4, a4 || (C2.configure.props.base.isTextIcon = false);
|
|
51
|
-
}(e3, a3)) }, null, 8, ["iconType", "iconValue"]))]), _: 1 }), g(u(
|
|
43
|
+
}(e3, a3)) }, null, 8, ["iconType", "iconValue"]))]), _: 1 }), g(u(q2, { label: "图标位置", class: "amb-design-attr-item" }, { default: s(() => [u(N, { modelValue: e2.configure.props.base.iconPosition, "onUpdate:modelValue": l2[8] || (l2[8] = (a3) => e2.configure.props.base.iconPosition = a3), class: "ml-4" }, { default: s(() => [u(B, { value: "left" }, { default: s(() => l2[33] || (l2[33] = [f("标题前")])), _: 1 }), u(B, { value: "right" }, { default: s(() => l2[34] || (l2[34] = [f("标题后")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.iconValue]]), u(q2, { label: "文字按钮", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.text, "onUpdate:modelValue": l2[9] || (l2[9] = (a3) => e2.configure.props.base.text = a3), disabled: !!e2.configure.props.base.plain || !!e2.configure.props.base.plain, "inline-prompt": "", "active-icon": m(k), "inactive-icon": m(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), e2.configure.props.base.text ? (t(), i(q2, { key: 0, label: "图标按钮", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.isTextIcon, "onUpdate:modelValue": l2[10] || (l2[10] = (a3) => e2.configure.props.base.isTextIcon = a3), disabled: !e2.configure.props.base.iconValue, "inline-prompt": "", "active-icon": m(k), "inactive-icon": m(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 })) : n("", true), u(q2, { label: "朴素按钮", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.plain, "onUpdate:modelValue": l2[11] || (l2[11] = (a3) => e2.configure.props.base.plain = a3), disabled: !!e2.configure.props.base.text, "inline-prompt": "", "active-icon": m(k), "inactive-icon": m(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), u(q2, { label: "圆角按钮", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.round, "onUpdate:modelValue": l2[12] || (l2[12] = (a3) => e2.configure.props.base.round = a3), disabled: !!e2.configure.props.base.text, "inline-prompt": "", "active-icon": m(k), "inactive-icon": m(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), u(q2, { label: "加载状态", class: "amb-design-attr-item" }, { default: s(() => [u(N, { modelValue: e2.configure.props.base.loading, "onUpdate:modelValue": l2[13] || (l2[13] = (a3) => e2.configure.props.base.loading = a3), class: "ml-4" }, { default: s(() => [u($2, { value: true }, { default: s(() => l2[35] || (l2[35] = [f("是")])), _: 1 }), u($2, { value: false }, { default: s(() => l2[36] || (l2[36] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(q2, { label: "默认聚焦", class: "amb-design-attr-item" }, { default: s(() => [u(N, { modelValue: e2.configure.props.base.focus, "onUpdate:modelValue": l2[14] || (l2[14] = (a3) => e2.configure.props.base.focus = a3), class: "ml-4" }, { default: s(() => [u($2, { value: true }, { default: s(() => l2[37] || (l2[37] = [f("是")])), _: 1 }), u($2, { value: false }, { default: s(() => l2[38] || (l2[38] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(q2, { label: "原生type", class: "amb-design-attr-item" }, { default: s(() => [u(N, { modelValue: e2.configure.props.base.originalType, "onUpdate:modelValue": l2[15] || (l2[15] = (a3) => e2.configure.props.base.originalType = a3), class: "ml-4", disabled: !!e2.configure.props.base.text }, { default: s(() => [u($2, { value: "button" }, { default: s(() => l2[39] || (l2[39] = [f("button")])), _: 1 }), u($2, { value: "submit" }, { default: s(() => l2[40] || (l2[40] = [f("submit")])), _: 1 }), u($2, { value: "reset" }, { default: s(() => l2[41] || (l2[41] = [f("reset")])), _: 1 })]), _: 1 }, 8, ["modelValue", "disabled"])]), _: 1 })])]), _: 1 }), e2.configure.isFlow ? n("", true) : (t(), i(O, { key: 1, title: "跳转配置", name: "linkPage", class: "amb-design-attr-group-header" }, { default: s(() => [r("div", F, [I.value ? (t(), i(D, { key: 0, pageDesign: e2.pageDesign, paramTypes: ["data", "task", "page", "context", "system", "request", "fixed", "row"], data: e2.configure.props.linkPage, configure: e2.configure, tableConfigure: A.value, onDataChange: l2[16] || (l2[16] = (e3) => function(e4) {
|
|
52
44
|
C2.configure.props.linkPage = e4;
|
|
53
|
-
}(e3)) }, null, 8, ["pageDesign", "data", "configure", "tableConfigure"])) : n("", true)])]), _: 1 })), e2.configure.isFlow ? n("", true) : (t(), i(O, { key: 2, title: "模板配置", name: "templateConfig", class: "amb-design-attr-group-header" }, { default: s(() => [r("div", T, [u(P, { modelValue: e2.configure.props.base.templateFiles, "onUpdate:modelValue": l2[17] || (l2[17] = (a3) => e2.configure.props.base.templateFiles = a3), pageDesign: e2.pageDesign, tableConfigure:
|
|
45
|
+
}(e3)) }, null, 8, ["pageDesign", "data", "configure", "tableConfigure"])) : n("", true)])]), _: 1 })), e2.configure.isFlow ? n("", true) : (t(), i(O, { key: 2, title: "模板配置", name: "templateConfig", class: "amb-design-attr-group-header" }, { default: s(() => [r("div", T, [u(P, { modelValue: e2.configure.props.base.templateFiles, "onUpdate:modelValue": l2[17] || (l2[17] = (a3) => e2.configure.props.base.templateFiles = a3), pageDesign: e2.pageDesign, tableConfigure: A.value }, null, 8, ["modelValue", "pageDesign", "tableConfigure"])])]), _: 1 })), u(O, { title: "其他设置", name: "otherSettings", class: "amb-design-attr-group-header" }, { default: s(() => [r("div", z, [!e2.configure.isFlow ? (t(), d(p, { key: 1 }, [u(q2, { label: "回填赋值", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.isNeedValueMapping, "onUpdate:modelValue": l2[19] || (l2[19] = (a3) => e2.configure.props.base.isNeedValueMapping = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(q2, { label: "权限保护", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.isPermission, "onUpdate:modelValue": l2[20] || (l2[20] = (a3) => e2.configure.props.base.isPermission = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(q2, { label: "是否异步", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.isAsync, "onUpdate:modelValue": l2[21] || (l2[21] = (a3) => e2.configure.props.base.isAsync = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(q2, { label: "必填验证", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.isEnableRequired, "onUpdate:modelValue": l2[22] || (l2[22] = (a3) => e2.configure.props.base.isEnableRequired = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(q2, { label: "逻辑删除", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.isSafeDelete, "onUpdate:modelValue": l2[23] || (l2[23] = (a3) => e2.configure.props.base.isSafeDelete = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(q2, { label: "执行条件", class: "amb-design-attr-item" }, { default: s(() => [u(h2, { modelValue: e2.configure.props.base.conditionsForExecution, "onUpdate:modelValue": l2[24] || (l2[24] = (a3) => e2.configure.props.base.conditionsForExecution = a3) }, { default: s(() => [u(_2, { label: "无限制", value: "any" }), u(_2, { label: "选单行", value: "one" }), u(_2, { label: "选多行(包括单行)", value: "more" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(q2, { label: "对应表格", class: "amb-design-attr-item" }, { default: s(() => [u(h2, { modelValue: e2.configure.props.base.tableUuid, "onUpdate:modelValue": l2[25] || (l2[25] = (a3) => e2.configure.props.base.tableUuid = a3), clearable: "", filterable: "", "allow-create": "", onChange: M }, { default: s(() => [(t(true), d(p, null, c(S.value, (e3) => (t(), i(_2, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })], 64)) : (t(), i(q2, { key: 0, label: "必填验证", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.isEnableRequired, "onUpdate:modelValue": l2[18] || (l2[18] = (a3) => e2.configure.props.base.isEnableRequired = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }))])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
54
46
|
};
|
|
55
47
|
} });
|
|
56
48
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as e, resolveComponent as l, createBlock as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as e, resolveComponent as l, createBlock as a, openBlock as t, withCtx as m, createElementVNode as o, createVNode as n } from "vue";
|
|
2
|
+
const i = { style: { padding: "8px 0px 0px 0px" } }, r = e({ __name: "common-style-margin", props: { configure: { type: Object, required: true } }, setup: (e2) => (r2, u) => {
|
|
3
3
|
const g = l("el-input-number"), p = l("el-form-item"), d = l("el-collapse-item");
|
|
4
|
-
return
|
|
4
|
+
return t(), a(d, { title: "Margin", name: "styleMargin", class: "amb-design-attr-group-header" }, { default: m(() => [o("div", i, [n(p, { label: "左边距", style: { "margin-top": "4px" } }, { default: m(() => [n(g, { modelValue: e2.configure.style.marginLeft, "onUpdate:modelValue": u[0] || (u[0] = (l2) => e2.configure.style.marginLeft = l2), min: 0, max: 40 }, null, 8, ["modelValue"])]), _: 1 }), n(p, { label: "右边距", style: { "margin-top": "-10px" } }, { default: m(() => [n(g, { modelValue: e2.configure.style.marginRight, "onUpdate:modelValue": u[1] || (u[1] = (l2) => e2.configure.style.marginRight = l2), min: 0, max: 40 }, null, 8, ["modelValue"])]), _: 1 }), n(p, { label: "上边距", style: { "margin-top": "-10px" } }, { default: m(() => [n(g, { modelValue: e2.configure.style.marginTop, "onUpdate:modelValue": u[2] || (u[2] = (l2) => e2.configure.style.marginTop = l2), min: 0, max: 40 }, null, 8, ["modelValue"])]), _: 1 }), n(p, { label: "下边距", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: m(() => [n(g, { modelValue: e2.configure.style.marginBottom, "onUpdate:modelValue": u[3] || (u[3] = (l2) => e2.configure.style.marginBottom = l2), min: 0, max: 40 }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 });
|
|
5
5
|
} });
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
r as default
|
|
8
8
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as e, resolveComponent as l, createBlock as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
return
|
|
1
|
+
import { defineComponent as e, resolveComponent as l, createBlock as a, openBlock as t, withCtx as d, createElementVNode as o, createVNode as n } from "vue";
|
|
2
|
+
const i = { style: { padding: "8px 0px 0px 0px" } }, m = e({ __name: "common-style-padding", props: { configure: { type: Object, required: true } }, setup: (e2) => (m2, p) => {
|
|
3
|
+
const u = l("el-input-number"), g = l("el-form-item"), r = l("el-collapse-item");
|
|
4
|
+
return t(), a(r, { title: "Padding", name: "stylePadding", class: "amb-design-attr-group-header" }, { default: d(() => [o("div", i, [n(g, { label: "左边距", style: { "margin-top": "4px" } }, { default: d(() => [n(u, { modelValue: e2.configure.style.paddingLeft, "onUpdate:modelValue": p[0] || (p[0] = (l2) => e2.configure.style.paddingLeft = l2), min: 0, max: 100 }, null, 8, ["modelValue"])]), _: 1 }), n(g, { label: "右边距", style: { "margin-top": "-10px" } }, { default: d(() => [n(u, { modelValue: e2.configure.style.paddingRight, "onUpdate:modelValue": p[1] || (p[1] = (l2) => e2.configure.style.paddingRight = l2), min: 0, max: 100 }, null, 8, ["modelValue"])]), _: 1 }), n(g, { label: "上边距", style: { "margin-top": "-10px" } }, { default: d(() => [n(u, { modelValue: e2.configure.style.paddingTop, "onUpdate:modelValue": p[2] || (p[2] = (l2) => e2.configure.style.paddingTop = l2), min: 0, max: 100 }, null, 8, ["modelValue"])]), _: 1 }), n(g, { label: "下边距", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: d(() => [n(u, { modelValue: e2.configure.style.paddingBottom, "onUpdate:modelValue": p[3] || (p[3] = (l2) => e2.configure.style.paddingBottom = l2), min: 0, max: 100 }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 });
|
|
5
5
|
} });
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
m as default
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, computed as l, resolveComponent as i, createBlock as t, openBlock as o, withCtx as n, createElementVNode as r, createVNode as s, createCommentVNode as u, withDirectives as d, renderSlot as p, createTextVNode as c, unref as g, vShow as f, createElementBlock as m, Fragment as v, renderList as b, normalizeClass as y, toDisplayString as V } from "vue";
|
|
2
|
-
import O from "../../form/common/dataorigin-input-table.
|
|
2
|
+
import O from "../../form/common/dataorigin-input-table.vue2.js";
|
|
3
3
|
import { Codemirror as _ } from "vue-codemirror";
|
|
4
4
|
import S from "../../workflow/component/combination.vue.js";
|
|
5
5
|
import C from "./return-set-table.vue.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, createBlock as o, openBlock as u, withCtx as i, createElementVNode as n, createVNode as s, createCommentVNode as d, withDirectives as r, unref as m, createElementBlock as p, Fragment as c, renderList as b, createTextVNode as f, vShow as y, normalizeClass as v } from "vue";
|
|
2
|
-
import V from "./dataorigin-input-table.
|
|
2
|
+
import V from "./dataorigin-input-table.vue2.js";
|
|
3
3
|
import g from "./condition.vue.js";
|
|
4
4
|
import S from "./row-ul-li.vue.js";
|
|
5
5
|
import "uuid";
|
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Search as p } from "@element-plus/icons-vue";
|
|
3
|
-
const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
|
|
4
|
-
const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
|
|
5
|
-
function y() {
|
|
6
|
-
if (_.value.length > 0) {
|
|
7
|
-
let e3 = "";
|
|
8
|
-
_.value.forEach((l2) => {
|
|
9
|
-
e3 = e3 + l2.name + ",";
|
|
10
|
-
}), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
|
|
11
|
-
} else b.value = false;
|
|
12
|
-
}
|
|
13
|
-
function S(e3) {
|
|
14
|
-
_.value = e3;
|
|
15
|
-
}
|
|
16
|
-
function w() {
|
|
17
|
-
b.value = true;
|
|
18
|
-
}
|
|
19
|
-
return a(() => c.modelValue, (e3) => {
|
|
20
|
-
g.value = e3;
|
|
21
|
-
}), (e3, l2) => {
|
|
22
|
-
const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
-
return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
|
|
24
|
-
};
|
|
25
|
-
} });
|
|
1
|
+
import t from "./dataorigin-input-table.vue2.js";
|
|
26
2
|
export {
|
|
27
|
-
|
|
3
|
+
t as default
|
|
28
4
|
};
|
package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
import t from "
|
|
1
|
+
import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
|
|
2
|
+
import { Search as p } from "@element-plus/icons-vue";
|
|
3
|
+
const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
|
|
4
|
+
const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
|
|
5
|
+
function y() {
|
|
6
|
+
if (_.value.length > 0) {
|
|
7
|
+
let e3 = "";
|
|
8
|
+
_.value.forEach((l2) => {
|
|
9
|
+
e3 = e3 + l2.name + ",";
|
|
10
|
+
}), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
|
|
11
|
+
} else b.value = false;
|
|
12
|
+
}
|
|
13
|
+
function S(e3) {
|
|
14
|
+
_.value = e3;
|
|
15
|
+
}
|
|
16
|
+
function w() {
|
|
17
|
+
b.value = true;
|
|
18
|
+
}
|
|
19
|
+
return a(() => c.modelValue, (e3) => {
|
|
20
|
+
g.value = e3;
|
|
21
|
+
}), (e3, l2) => {
|
|
22
|
+
const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
+
return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
|
|
24
|
+
};
|
|
25
|
+
} });
|
|
2
26
|
export {
|
|
3
|
-
|
|
27
|
+
v as default
|
|
4
28
|
};
|
|
@@ -30,7 +30,7 @@ const w = e({ __name: "select-design", props: { pageDesign: {}, configure: {} },
|
|
|
30
30
|
z();
|
|
31
31
|
}), (e3, l2) => {
|
|
32
32
|
const a2 = u("el-option"), t2 = u("el-select"), b2 = u("el-form-item");
|
|
33
|
-
return o(), i(b2, { required: !!_.value.required, class: s([x.value, "remove-formLabel-formContent-blankStyle"]), "label-width": _.value.labelWidth, style: r(S.value)
|
|
33
|
+
return o(), i(b2, { required: !!_.value.required, class: s([x.value, "remove-formLabel-formContent-blankStyle"]), "label-width": _.value.labelWidth, style: r(S.value) }, { label: n(() => [_.value.tittleShow ? (o(), p("div", { key: 0, style: r({ ...C.value, ...D.value, "padding-right": "12px" }) }, [_.value.prefixType ? (o(), i(h, { key: 0, configure: e3.configure }, null, 8, ["configure"])) : (o(), p(f, { key: 1 }, [g(d(_.value.title), 1)], 64))], 4)) : v("", true)]), default: n(() => [c(t2, { ref_key: "thisRef", ref: k, disabled: "", size: _.value.size, clearable: _.value.clearable, multiple: _.value.multiple, "collapse-tags": _.value.collapseTags, "collapse-tags-tooltip": _.value.collapseTagsTooltip, filterable: _.value.filterable, "allow-create": _.value.allowCreate, placeholder: _.value.placeholder, modelValue: _.value.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => _.value.value = e4), onClick: l2[1] || (l2[1] = (l3) => e3.$emit("handleSelect")) }, { default: n(() => [(o(true), p(f, null, m(_.value.options, (e4) => (o(), i(a2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
34
34
|
};
|
|
35
35
|
} });
|
|
36
36
|
export {
|
|
@@ -1,27 +1,27 @@
|
|
|
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
2
|
import { Plus as v, Delete as y, Refresh as b } from "@element-plus/icons";
|
|
3
3
|
import w from "agilebuilder-ui/src/utils/request";
|
|
4
|
-
import { ElMessageBox as h, ElMessage as C, ElLoading as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
import { ElMessageBox as h, ElMessage as C, ElLoading as k } from "element-plus";
|
|
5
|
+
const S = { style: { padding: "0 0 10px 0" } }, E = e({ __name: "i18n-setting-enabled", props: { systemCode: { type: String, default: "" } }, emits: ["close"], setup(e2, { expose: E2, emit: T }) {
|
|
6
|
+
const A = e2, _ = window.$vueApp.config.globalProperties.baseAPI, N = t([]), P = t(), x = t(false), D = [{ leftBracket: "(", propName: "systemCode", propDbName: "system_code", dataType: "TEXT", operator: "EQ", propValue: A.systemCode, joinSign: "or" }, { propName: "systemCode", propDbName: "system_code", dataType: "TEXT", operator: "EQ", propValue: "common", rightBracket: ")", joinSign: "and" }], R = function(e3, t2) {
|
|
7
7
|
N.value = e3;
|
|
8
|
-
},
|
|
9
|
-
e3.SYSTEM_CODE =
|
|
10
|
-
} }, statementDto: {}, initSearchForm:
|
|
11
|
-
function
|
|
8
|
+
}, B = { initSearch: true, dynamicServiceName: "languagePackageDynamicValueServiceImpl", lineEditOptions: { aftersaveIsCreateRow: false, beforeSave: function(e3) {
|
|
9
|
+
e3.SYSTEM_CODE = A.systemCode;
|
|
10
|
+
} }, statementDto: {}, initSearchForm: D, renderRow: {}, isSql: true, operations: { operation: [{ onClick: G, eventName: "lineEditUpdate", props: { title: "修改", isPermission: true, type: "primary", size: "small", elementType: "el-button", label: "修改", code: "lineEditUpdate" } }, { onClick: I, eventName: "lineEditSave", isShow: U, props: { title: "保存", type: "primary", size: "small", elementType: "el-button", label: "保存" } }, { onClick: z, eventName: "lineEditDelete", props: { title: "删除", type: "danger", size: "small", elementType: "el-button", label: "删除" } }, { onClick: $, eventName: "restoreEdit", props: { title: "取消编辑", type: "primary", size: "small", elementType: "el-button", label: "取消编辑", code: "restoreEdit" } }] }, pageHeight: 0.45 * window.innerHeight };
|
|
11
|
+
function I(e3, t2, o2, l2, a2) {
|
|
12
12
|
P.value.saveRow(a2);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function z(e3, t2, o2, l2, a2) {
|
|
15
15
|
h.confirm("确认删除", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
16
16
|
w.delete(window.$vueApp.config.globalProperties.baseAPI + "/bs/language-package", { data: [o2.id] }).then((e4) => {
|
|
17
17
|
C.success({ message: "删除成功", showClose: true }), P.value.refresh();
|
|
18
18
|
});
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function $(e3, t2, o2, l2, a2) {
|
|
22
22
|
P.value.restoreRow(a2);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function G(e3, t2, o2, l2, a2) {
|
|
25
25
|
P.value.editRow(a2);
|
|
26
26
|
}
|
|
27
27
|
function U(e3, t2, o2, l2, a2) {
|
|
@@ -30,15 +30,15 @@ const k = { style: { padding: "0 0 10px 0" } }, S = e({ __name: "i18n-setting-en
|
|
|
30
30
|
function V() {
|
|
31
31
|
P.value.createRow();
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function j() {
|
|
34
34
|
if (!N.value || 0 === N.value.length) return void C.warning({ message: "请选择要删除的数据", showClose: true });
|
|
35
35
|
let e3 = N.value.map((e4) => e4.id);
|
|
36
36
|
w.delete(window.$vueApp.config.globalProperties.baseAPI + "/bs/language-package", { data: e3 }).then((e4) => {
|
|
37
37
|
C.success({ message: "删除成功", showClose: true }), P.value.refresh();
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const e3 =
|
|
40
|
+
function q() {
|
|
41
|
+
const e3 = k.service({ fullscreen: true, lock: true, text: "更新中", background: "rgba(0, 0, 0, 0.7)" });
|
|
42
42
|
w.delete().then((t2) => {
|
|
43
43
|
e3.close(), C.success({ message: "更新完毕", showClose: true });
|
|
44
44
|
}).catch((t2) => {
|
|
@@ -50,11 +50,11 @@ const k = { style: { padding: "0 0 10px 0" } }, S = e({ __name: "i18n-setting-en
|
|
|
50
50
|
P.value.refresh();
|
|
51
51
|
});
|
|
52
52
|
}), o(() => {
|
|
53
|
-
}),
|
|
53
|
+
}), E2({}), (e3, t2) => {
|
|
54
54
|
const o2 = a("el-button"), l2 = a("super-grid"), w2 = n("loading");
|
|
55
|
-
return s(), i(r, null, [p("div",
|
|
55
|
+
return s(), i(r, null, [p("div", S, [u((s(), d(o2, { disabled: x.value, icon: m(v), type: "primary", onClick: V }, { default: g(() => t2[0] || (t2[0] = [f(" 新建 ")])), _: 1 }, 8, ["disabled", "icon"])), [[w2, x.value]]), u((s(), d(o2, { disabled: x.value, icon: m(y), type: "danger", onClick: j }, { default: g(() => t2[1] || (t2[1] = [f(" 删除 ")])), _: 1 }, 8, ["disabled", "icon"])), [[w2, x.value]]), u((s(), d(o2, { type: "default", align: "left", class: "button--default", icon: m(b), onClick: q }, { default: g(() => t2[2] || (t2[2] = [f(" 更新缓存 ")])), _: 1 }, 8, ["icon"])), [[w2, x.value]])]), c(l2, { style: { width: "100%" }, ref_key: "grid", ref: P, url: m(_) + "/bs/language-package/list", options: B, code: "BS_LANGUAGE_PACKAGE", onSelect: R, onSelectAll: R }, null, 8, ["url"])], 64);
|
|
56
56
|
};
|
|
57
57
|
} });
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
E as default
|
|
60
60
|
};
|
|
@@ -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,94 +1,94 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, reactive as a, computed as t, resolveComponent as u, resolveDirective as
|
|
2
|
-
import { Plus 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
|
+
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";
|
|
5
5
|
import V from "./translate-error-dialog.vue.js";
|
|
6
|
-
const
|
|
7
|
-
const
|
|
6
|
+
const _ = { style: { padding: "0 0 10px 0" }, class: "amb-design-attr-item-inline" }, x = { key: 1 }, A = { key: 1 }, R = { class: "dialog-footer" }, O = e({ __name: "i18n-setting-page", props: { pageDesign: { type: Object, default: "" } }, emits: ["close"], setup(e2, { expose: O2, emit: K }) {
|
|
7
|
+
const $ = e2;
|
|
8
8
|
l(false);
|
|
9
|
-
const T = l(false),
|
|
9
|
+
const T = l(false), U = l(0.5 * window.innerHeight), M = l([]), z = l([]), P = l(-1), B = l(""), I = l([]), L = l(false), q = l([]), S = l(false), j = l({ CODE: "", REMARK: "" }), F = a({ CODE: [{ required: true, message: "请输入国际化编码", trigger: "blur" }] }), N = () => {
|
|
10
10
|
D.confirm("确定要翻译吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
11
11
|
T.value = true;
|
|
12
12
|
let e3 = [];
|
|
13
13
|
I.value && I.value.length > 0 ? I.value.forEach((l2) => {
|
|
14
14
|
e3.push(l2.CODE);
|
|
15
|
-
}) : e3 = [
|
|
16
|
-
e4 ? (
|
|
15
|
+
}) : e3 = [...$.pageDesign.i18nKeys], k.post(window.$vueApp.config.globalProperties.baseAPI + `/bs/language-package/translate/by-codes/${$.pageDesign.systemCode}`, e3).then((e4) => {
|
|
16
|
+
e4 ? (q.value = e4, L.value = true, E.error({ message: "翻译错误,请检查翻译结果后自行保存", showClose: true })) : J(), T.value = false;
|
|
17
17
|
}).catch((e4) => {
|
|
18
18
|
T.value = false;
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
|
-
},
|
|
21
|
+
}, H = () => {
|
|
22
22
|
D.confirm("确定要更新缓存吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
23
|
-
T.value = true, k.post(window.$vueApp.config.globalProperties.baseAPI + `/bs/language-package/refresh-cache/by-codes/${
|
|
23
|
+
T.value = true, k.post(window.$vueApp.config.globalProperties.baseAPI + `/bs/language-package/refresh-cache/by-codes/${$.pageDesign.systemCode}`, $.pageDesign.i18nKeys).then(() => {
|
|
24
24
|
T.value = false, E.success("更新成功");
|
|
25
25
|
}).catch(() => {
|
|
26
26
|
T.value = false, E.error("更新失败");
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
},
|
|
30
|
-
k.post(window.$vueApp.config.globalProperties.baseAPI + `/bs/language-value/by-language-codes/${
|
|
31
|
-
|
|
29
|
+
}, G = t(() => M.value.filter((e3) => !B.value || e3.CODE.toLowerCase().includes(B.value.toLowerCase()))), J = () => {
|
|
30
|
+
k.post(window.$vueApp.config.globalProperties.baseAPI + `/bs/language-value/by-language-codes/${$.pageDesign.systemCode}`, $.pageDesign.i18nKeys).then((e3) => {
|
|
31
|
+
Q(e3);
|
|
32
32
|
}).catch((e3) => {
|
|
33
33
|
E.error("加载失败");
|
|
34
34
|
});
|
|
35
|
-
},
|
|
36
|
-
if (M.value = [],
|
|
37
|
-
|
|
35
|
+
}, Q = (e3) => {
|
|
36
|
+
if (M.value = [], z.value = e3.languages, z.value && z.value.length > 0) if (z.value.forEach((e4) => {
|
|
37
|
+
F[e4.value] = [{ required: true, message: `请输入${e4.name}`, trigger: "blur" }];
|
|
38
38
|
}), e3.data && e3.data.length > 0) {
|
|
39
39
|
const l2 = {};
|
|
40
40
|
e3.data.forEach((e4) => {
|
|
41
41
|
l2[e4.CODE] = e4;
|
|
42
|
-
}),
|
|
42
|
+
}), $.pageDesign.i18nKeys.forEach((e4) => {
|
|
43
43
|
l2[e4] ? M.value.push(l2[e4]) : M.value.push({ CODE: e4 });
|
|
44
44
|
});
|
|
45
|
-
} else
|
|
45
|
+
} else $.pageDesign.i18nKeys.forEach((e4) => {
|
|
46
46
|
M.value.push({ CODE: e4 });
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
|
|
50
|
-
const
|
|
49
|
+
J();
|
|
50
|
+
const W = (e3) => {
|
|
51
51
|
const l2 = {};
|
|
52
|
-
for (let a3 = 0; a3 <
|
|
53
|
-
const t2 =
|
|
52
|
+
for (let a3 = 0; a3 < z.value.length; a3++) {
|
|
53
|
+
const t2 = z.value[a3];
|
|
54
54
|
if (!e3[t2.value]) return void E.warning(`${t2.name}不能为空`);
|
|
55
55
|
l2[t2.value] = e3[t2.value];
|
|
56
56
|
}
|
|
57
|
-
const a2 = { code: e3.CODE, remark: e3.REMARK, systemCode:
|
|
57
|
+
const a2 = { code: e3.CODE, remark: e3.REMARK, systemCode: $.pageDesign.systemCode, languageValue: l2 };
|
|
58
58
|
return k.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/language-value/desiger-save", a2);
|
|
59
|
-
},
|
|
59
|
+
}, X = (e3) => {
|
|
60
60
|
I.value = e3;
|
|
61
|
+
}, Y = () => {
|
|
62
|
+
S.value = true;
|
|
61
63
|
}, Z = () => {
|
|
62
|
-
j.value
|
|
63
|
-
|
|
64
|
-
X(F.value).then(() => {
|
|
65
|
-
E.success("保存成功"), j.value = false, F.value.CODE && U.pageDesign.i18nKeys.push(F.value.CODE), F.value = {}, Q();
|
|
64
|
+
W(j.value).then(() => {
|
|
65
|
+
E.success("保存成功"), S.value = false, j.value.CODE && $.pageDesign.i18nKeys.push(j.value.CODE), j.value = {}, J();
|
|
66
66
|
}).catch(() => {
|
|
67
67
|
E.error("保存失败");
|
|
68
68
|
});
|
|
69
|
+
}, ee = () => {
|
|
70
|
+
S.value = false;
|
|
69
71
|
}, le = () => {
|
|
70
|
-
|
|
71
|
-
}, ae = () => {
|
|
72
|
-
q.value = false, Q();
|
|
72
|
+
L.value = false, J();
|
|
73
73
|
};
|
|
74
|
-
return
|
|
75
|
-
const t2 = u("el-button"), D2 = u("el-input"), k2 = u("el-table-column"),
|
|
76
|
-
return s(),
|
|
74
|
+
return O2({}), (l2, a2) => {
|
|
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
|
-
} }, { default: m(() => a2[8] || (a2[8] = [f(" 修改 ")])), _: 2 }, 1032, ["onClick"]),
|
|
80
|
-
return e3.$index, a3 = e3.row,
|
|
79
|
+
} }, { default: m(() => a2[8] || (a2[8] = [f(" 修改 ")])), _: 2 }, 1032, ["onClick"]), g(t2, { size: "small", type: "danger", onClick: (l3) => {
|
|
80
|
+
return e3.$index, a3 = e3.row, $.pageDesign.i18nKeys = $.pageDesign.i18nKeys.filter((e4) => e4 !== a3.CODE), M.value = M.value.filter((e4) => e4.CODE !== a3.CODE), void E.success("删除成功");
|
|
81
81
|
var a3;
|
|
82
|
-
} }, { default: m(() => a2[9] || (a2[9] = [f(" 删除 ")])), _: 2 }, 1032, ["onClick"])], 64)) :
|
|
83
|
-
return e3.$index, a3 = e3.row, void
|
|
82
|
+
} }, { default: m(() => a2[9] || (a2[9] = [f(" 删除 ")])), _: 2 }, 1032, ["onClick"])], 64)) : c("", true), P.value === e3.$index ? (s(), o(i, { key: 1 }, [g(t2, { size: "small", type: "primary", onClick: (l3) => {
|
|
83
|
+
return e3.$index, a3 = e3.row, void W(a3).then(() => {
|
|
84
84
|
E.success("保存成功"), P.value = -1;
|
|
85
85
|
}).catch(() => {
|
|
86
86
|
E.error("保存失败");
|
|
87
87
|
});
|
|
88
88
|
var a3;
|
|
89
|
-
} }, { default: m(() => a2[10] || (a2[10] = [f(" 保存 ")])), _: 2 }, 1032, ["onClick"]),
|
|
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 {
|
|
93
|
-
|
|
93
|
+
O as default
|
|
94
94
|
};
|
|
@@ -17,7 +17,7 @@ const p = e({ __name: "i18n-setting", props: { pageDesign: { type: Object, defau
|
|
|
17
17
|
c.value = true;
|
|
18
18
|
} }), (l2, t2) => {
|
|
19
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: "
|
|
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 {
|
package/dist/es/style.css
CHANGED
|
@@ -859,7 +859,7 @@ fieldset.amb-design-item-selected {
|
|
|
859
859
|
min-width: 120px !important;
|
|
860
860
|
}
|
|
861
861
|
|
|
862
|
-
[data-v-
|
|
862
|
+
[data-v-68ce085a] .centered-input .el-input__inner {
|
|
863
863
|
text-align: center;
|
|
864
864
|
}
|
|
865
865
|
|
|
@@ -13164,7 +13164,7 @@ fieldset.amb-design-item-selected {
|
|
|
13164
13164
|
background-color: var(--el-fill-color-blank);
|
|
13165
13165
|
}
|
|
13166
13166
|
|
|
13167
|
-
.collapse-item-content[data-v-
|
|
13167
|
+
.collapse-item-content[data-v-9f576183] {
|
|
13168
13168
|
padding: 8px 0px 0px 0px;
|
|
13169
13169
|
}
|
|
13170
13170
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-designer",
|
|
3
|
-
"version": "2.3.30-
|
|
3
|
+
"version": "2.3.30-tmp1-design2",
|
|
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.81-tmp1",
|
|
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.30-tmp1-flow1",
|
|
44
|
+
"super-page-runtime": "2.3.30-tmp1",
|
|
45
45
|
"uuid": "^9.0.1",
|
|
46
46
|
"vite": "^5.1.6",
|
|
47
47
|
"vite-plugin-node-stdlib-browser": "^0.2.1",
|