super-page-designer 2.3.5-design1 → 2.3.5-sit1-design1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +1 -0
- package/dist/es/components/design/utils/page-event-util.js +0 -1
- package/dist/es/components/design/utils/page-i18n-util.js +5 -6
- package/dist/es/components/design/utils/page-table-util.js +4 -4
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +16 -16
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +5 -52
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue2.js +48 -2
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue2.js +1 -1
- 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/common-template-select.vue.js +52 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/common-template-select.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +16 -19
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +4 -5
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-sortby.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +17 -17
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +0 -3
- package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +2 -3
- package/dist/es/components/design/views/assemblys/common/common-template-select.vue.js +46 -0
- package/dist/es/components/design/views/assemblys/common/common-template-select.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +5 -137
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +139 -0
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr.vue2.js +2 -3
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +22 -22
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/data/component/import-header.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +2 -2
- 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 +8 -7
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +1 -1
- 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 +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/data-linkage.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin-service-in.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/form/common/title-suffix.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-base.vue.js +1 -1
- 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/file-upload/fileupload-design.vue2.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 +1 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +1 -1
- 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/rich-text/richtext-design.vue2.js +13 -14
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +1 -1
- 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/page-attr-advanced.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js +3 -3
- package/dist/es/components/design/views/design/page-design.vue2.js +1 -1
- package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue3.js +17 -18
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +0 -1
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +2 -3
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/stores/undo-redo-store.js +1 -1
- package/dist/es/style.css +5 -1
- package/package.json +5 -5
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +0 -7
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
const e = ["tools", "form"];
|
|
2
|
-
function s(
|
|
2
|
+
function s(l, o) {
|
|
3
3
|
var _a;
|
|
4
4
|
try {
|
|
5
|
-
|
|
6
|
-
s(e2,
|
|
5
|
+
l.name || l.label && a(l.label, o), ((_a = l.props) == null ? void 0 : _a.base) && !e.includes(l.name) && (l.props.base.title && a(l.props.base.title, o), l.props.base.placeholder && a(l.props.base.placeholder, o), l.props.base.label && a(l.props.base.label, o)), l.items && l.items.length > 0 && l.items.forEach((e2) => {
|
|
6
|
+
s(e2, o);
|
|
7
7
|
});
|
|
8
8
|
} catch (e2) {
|
|
9
|
-
console.error(e2);
|
|
10
9
|
}
|
|
11
10
|
}
|
|
12
|
-
function
|
|
11
|
+
function a(e2, s2) {
|
|
13
12
|
Array.isArray(e2) || (e2 = [e2]), e2.forEach((e3) => {
|
|
14
13
|
s2.i18nKeys.includes(e3) || s2.i18nKeys.push(e3);
|
|
15
14
|
});
|
|
16
15
|
}
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
a as addI18nKey,
|
|
19
18
|
s as setPagetemI18nKey
|
|
20
19
|
};
|
|
@@ -23,7 +23,7 @@ function p(e2, r2) {
|
|
|
23
23
|
return (_a2 = e4.items) == null ? void 0 : _a2.forEach((e5) => {
|
|
24
24
|
const s4 = { controlName: c(e5) };
|
|
25
25
|
let o4 = { headerName: e5.props.base.name, prop: t(e5.props.base.prop), width: e5.props.base.columnWidth, listColumnSort: e5.props.base.sortable, filterable: e5.props.base.filterable, visible: e5.props.base.visible, exportable: e5.props.base.exportable, total: e5.props.base.total, listColumnFixed: e5.props.base.listColumnFixed, format: g(e5), valueSet: l(e5), querySettingName: e5.props.base.querySettingName ? e5.props.base.querySettingName : "no", queryMatching: e5.props.base.queryMatching, querySetting: e5.props.querySetting ? JSON.stringify(e5.props.querySetting) : null, editable: e5.props.editLine.editable, defaultValue: e5.props.base.defaultValue, controlName: s4.controlName, controlConfig: b(e5), eventType: S(e5), displayOrder: e5.props.base.displayOrder, fileSet: f(e5), orgTreeSet: d(e5), dynamicColumnJson: C(e5), valueSetOptions: u(e5, r4.systemCode, r4.systemVersion), required: e5.props.verification.required, pattern: e5.props.verification.verifyRegex, checkType: h(e5.props.verification.type), contAlign: e5.props.base ? e5.props.base.alignContent : null, titleAlign: e5.props.base ? e5.props.base.alignTitle : null, i18nKey: e5.props.base.name };
|
|
26
|
-
r4.i18nKeys && a(e5.props.base.name, r4), i4.push(o4);
|
|
26
|
+
r4.i18nKeys && a(e5.props.base.name, r4), e5.functionCodes && e5.functionCodes.length > 0 && (o4.functionCode = e5.functionCodes.join(",")), i4.push(o4);
|
|
27
27
|
}), i4;
|
|
28
28
|
}(e3, r3), o3.groupHeaders = function(e4) {
|
|
29
29
|
const t2 = [];
|
|
@@ -167,11 +167,11 @@ function b(e2) {
|
|
|
167
167
|
if ("select" === e2.name) {
|
|
168
168
|
const r2 = e2.props.base, a2 = r2.allowCreate, i2 = r2.clearable;
|
|
169
169
|
let s2 = false;
|
|
170
|
-
("normal" === e2.props.dataOrigin.filterType || a2) && (s2 = true), t2 =
|
|
170
|
+
("normal" === e2.props.dataOrigin.filterType || a2) && (s2 = true), t2.automaticDropdown = false, t2.clearable = i2, t2.filterable = s2, t2.allowCreate = a2;
|
|
171
171
|
} else if ("input-text" === e2.name) {
|
|
172
172
|
const r2 = !!((_a = e2.props.scan) == null ? void 0 : _a.enable), a2 = (_b = e2.props.scan) == null ? void 0 : _b.ruleList;
|
|
173
|
-
t2 =
|
|
174
|
-
} else "custom" === e2.name ? t2.customParams = e2.props.parameter : "datePicker" === e2.name ? t2 =
|
|
173
|
+
t2.scanEnable = r2, t2.scanRuleList = a2;
|
|
174
|
+
} 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.deptScopeDepts = e2.props.base.deptScopeDepts);
|
|
175
175
|
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), t2 ? JSON.stringify(t2) : null;
|
|
176
176
|
}
|
|
177
177
|
function g(e2) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as o, resolveComponent as a, createBlock as i, openBlock as n, withCtx as t, createVNode as s, createCommentVNode as u, createElementVNode as r, createElementBlock as p, Fragment as f, renderList as c, createTextVNode as g, withDirectives as d, vShow as m } from "vue";
|
|
2
2
|
import b from "../component/condition-dialog.vue.js";
|
|
3
3
|
import v from "../component/set-dialog.vue.js";
|
|
4
4
|
import y from "../component/combination.vue.js";
|
|
@@ -11,7 +11,7 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, D = e({ __name: "button-att
|
|
|
11
11
|
} }, pageDesign: { type: Object, default: () => {
|
|
12
12
|
} } }, setup(e2) {
|
|
13
13
|
var _a;
|
|
14
|
-
const D2 = e2, O =
|
|
14
|
+
const D2 = e2, O = l(["base"]), j = l(false), M = l([]), x = (_a = D2.pageDesign) == null ? void 0 : _a.systemVersion, L = l(h(D2.pageDesign, D2.configure));
|
|
15
15
|
function R() {
|
|
16
16
|
j.value = false;
|
|
17
17
|
}
|
|
@@ -21,39 +21,39 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, D = e({ __name: "button-att
|
|
|
21
21
|
V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${D2.pageDesign.systemCode}/${x}`).then((e3) => {
|
|
22
22
|
M.value = e3;
|
|
23
23
|
});
|
|
24
|
-
const N =
|
|
24
|
+
const N = l(false);
|
|
25
25
|
function U() {
|
|
26
26
|
N.value = false;
|
|
27
27
|
}
|
|
28
|
-
const z =
|
|
28
|
+
const z = l(false);
|
|
29
29
|
function A() {
|
|
30
30
|
z.value = false;
|
|
31
31
|
}
|
|
32
32
|
function $(e3) {
|
|
33
|
-
D2.configure.props.setValueList = e3
|
|
33
|
+
D2.configure.props.setValueList = e3;
|
|
34
34
|
}
|
|
35
|
-
const F =
|
|
35
|
+
const F = l(false);
|
|
36
36
|
function P() {
|
|
37
37
|
F.value = false;
|
|
38
38
|
}
|
|
39
39
|
function W(e3) {
|
|
40
40
|
D2.configure.props.base.showConditions = JSON.stringify(e3);
|
|
41
41
|
}
|
|
42
|
-
const q =
|
|
42
|
+
const q = l(J("opinion")), I = l(J("wfRemark"));
|
|
43
43
|
function J(e3) {
|
|
44
|
-
let
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
const a2 =
|
|
48
|
-
|
|
44
|
+
let l2 = false;
|
|
45
|
+
const o2 = D2.configure.events.filter((e4) => "click" === e4.name && e4.eventName);
|
|
46
|
+
if (o2 && o2.length > 0) {
|
|
47
|
+
const a2 = o2[0].eventName;
|
|
48
|
+
l2 = k(a2, e3);
|
|
49
49
|
}
|
|
50
|
-
return
|
|
50
|
+
return l2;
|
|
51
51
|
}
|
|
52
|
-
return
|
|
52
|
+
return o(D2.configure.events, (e3) => {
|
|
53
53
|
q.value = J("opinion"), I.value = J("wfRemark"), q.value || (D2.configure.props.base.isMustOpinion = false);
|
|
54
|
-
}, { immediate: true }), (
|
|
54
|
+
}, { immediate: true }), (l2, o2) => {
|
|
55
55
|
const k2 = a("el-option"), V2 = a("el-select"), h2 = a("el-form-item"), D3 = a("el-button"), x2 = a("el-text"), J2 = a("el-switch"), B = a("el-collapse-item"), E = a("el-collapse"), G = a("el-form");
|
|
56
|
-
return n(), i(G, { "label-width": "80px", size: "small" }, { default: t(() => [s(E, { modelValue: O.value, "onUpdate:modelValue":
|
|
56
|
+
return n(), i(G, { "label-width": "80px", size: "small" }, { default: t(() => [s(E, { modelValue: O.value, "onUpdate:modelValue": o2[7] || (o2[7] = (e3) => O.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [s(B, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", w, [s(h2, { label: "成功后", class: "amb-design-attr-item" }, { default: t(() => [s(V2, { modelValue: e2.configure.props.base.successOperation, "onUpdate:modelValue": o2[0] || (o2[0] = (l3) => e2.configure.props.base.successOperation = l3), class: "ml-4" }, { default: t(() => [s(k2, { label: "无操作", value: "noOperation" }), s(k2, { label: "刷新", value: "refresh" }), s(k2, { label: "关闭窗口", value: "closeWindow" }), s(k2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(h2, { label: "转换规则", class: "amb-design-attr-item" }, { default: t(() => [s(V2, { modelValue: e2.configure.props.base.conversionCodes, "onUpdate:modelValue": o2[1] || (o2[1] = (l3) => e2.configure.props.base.conversionCodes = l3), multiple: "", class: "ml-4" }, { default: t(() => [(n(true), p(f, null, c(M.value, (e3) => (n(), i(k2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(h2, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: o2[2] || (o2[2] = (e3) => N.value = true) }, { default: t(() => o2[8] || (o2[8] = [g("编辑")])), _: 1 })]), _: 1 }), s(h2, { label: "启用条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", tableConfigure: L.value, type: "editConditions" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(h2, { label: "自动设值", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: o2[3] || (o2[3] = (e3) => z.value = true) }, { default: t(() => o2[9] || (o2[9] = [g("编辑")])), _: 1 }), d(s(x2, { type: "success" }, { default: t(() => o2[10] || (o2[10] = [g(" 已设置条件. ")])), _: 1 }, 512), [[m, e2.configure.props && e2.configure.props.setValueList && e2.configure.props.setValueList.length > 0]])]), _: 1 }), s(h2, { label: "显示条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions", tableConfigure: L.value }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(h2, { label: "日志设置", class: "amb-design-attr-item" }, { default: t(() => [s(D3, { type: "primary", onClick: o2[4] || (o2[4] = (e3) => j.value = true) }, { default: t(() => o2[11] || (o2[11] = [g("编辑")])), _: 1 })]), _: 1 }), q.value ? (n(), i(h2, { key: 0, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [s(J2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": o2[5] || (o2[5] = (l3) => e2.configure.props.base.isMustOpinion = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustOpinion ? (n(), i(h2, { key: 1, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: L.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true), I.value ? (n(), i(h2, { key: 2, label: "备注必填", class: "amb-design-attr-item" }, { default: t(() => [s(J2, { modelValue: e2.configure.props.base.isMustRemark, "onUpdate:modelValue": o2[6] || (o2[6] = (l3) => e2.configure.props.base.isMustRemark = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustRemark ? (n(), i(h2, { key: 3, label: "备注必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_remark", configure: e2.configure, type: "mustRemarkConditions", tableConfigure: L.value, title: "办理备注必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true)])]), _: 1 }), N.value ? (n(), i(b, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: L.value, onClose: U }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), z.value ? (n(), i(v, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: L.value, onSave: $, onClose: A }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), F.value ? (n(), i(y, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: L.value, onSave: W, onClose: P }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : u("", true), j.value ? (n(), i(C, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: R, onSave: S }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
57
57
|
};
|
|
58
58
|
} });
|
|
59
59
|
export {
|
|
@@ -1,54 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import "../../../../../../
|
|
4
|
-
|
|
5
|
-
import v from "../../common/common-icon-bind.vue.js";
|
|
6
|
-
import _ from "agilebuilder-ui/src/utils/request";
|
|
7
|
-
import y from "../../common/common-function-code.vue.js";
|
|
8
|
-
import "@element-plus/icons";
|
|
9
|
-
import { Close as U, Check as x } from "@element-plus/icons-vue";
|
|
10
|
-
import "uuid";
|
|
11
|
-
import "../../../../../../stores/table-store.js";
|
|
12
|
-
import "../../../../../../stores/statistics-table-store.js";
|
|
13
|
-
/* empty css */
|
|
14
|
-
import { getTableConfigByTableUuid as h } from "../../../../utils/page-table-util.js";
|
|
15
|
-
import k from "../../common/common-i18n-key-input.vue.js";
|
|
16
|
-
import P from "../../chart/statistical-table/component/link-table.vue.js";
|
|
17
|
-
const j = { style: { padding: "8px 0px 0px 0px" } }, D = { style: { padding: "8px 0px 0px 0px" } }, T = { style: { padding: "8px 0px 0px 0px" } }, w = { style: { padding: "8px 0px 0px 0px" } }, z = e({ __name: "button-attr-base", props: { configure: { type: Object, default: () => ({ props: {} }) }, pageDesign: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
|
|
18
|
-
const z2 = e2, E = a(["base", "appearance", "otherSettings", "linkPage"]), F = a({}), q = a([]), C = a(R()), A = a(false);
|
|
19
|
-
z2.configure.props.base.templateFiles && z2.configure.props.base.templateFiles.forEach((e3) => {
|
|
20
|
-
q.value.push(e3.templateUuid);
|
|
21
|
-
}), void 0 === z2.configure.props.base.isEnableRequired && (z2.configure.props.base.isEnableRequired = true), !z2.configure.props.linkPage || z2.configure.props.linkPage instanceof Array || (z2.configure.props.linkPage = [{ linkPage: z2.configure.props.linkPage }]), A.value = true;
|
|
22
|
-
const N = a([]);
|
|
23
|
-
function I() {
|
|
24
|
-
q.value, q.value.length > 0 ? (z2.configure.props.base.templateFiles || (z2.configure.props.base.templateFiles = []), F.value.filter((e3) => q.value.includes(e3.uuid)).forEach((e3) => {
|
|
25
|
-
z2.configure.props.base.templateFiles.push({ templateName: e3.fileName, templateUuid: e3.uuid });
|
|
26
|
-
})) : z2.configure.props.base.templateFiles = [];
|
|
27
|
-
}
|
|
28
|
-
function R() {
|
|
29
|
-
return h(z2.pageDesign, z2.configure);
|
|
30
|
-
}
|
|
31
|
-
function S(e3) {
|
|
32
|
-
const a2 = R();
|
|
33
|
-
C.value = a2;
|
|
34
|
-
}
|
|
35
|
-
return l(() => {
|
|
36
|
-
!function() {
|
|
37
|
-
var _a;
|
|
38
|
-
const e3 = (_a = z2.pageDesign) == null ? void 0 : _a.systemVersion;
|
|
39
|
-
_.post(window.$vueApp.config.globalProperties.baseAPI + `/dc/template-management/list/${z2.pageDesign.systemCode}?publishVersion=${e3}`, {}).then((e4) => {
|
|
40
|
-
F.value = e4.data;
|
|
41
|
-
});
|
|
42
|
-
}(), z2.pageDesign.tableUuids && z2.pageDesign.tableUuids.length > 0 && (N.value = z2.pageDesign.tableUuids);
|
|
43
|
-
}), (a2, l2) => {
|
|
44
|
-
const _2 = o("el-option"), h2 = o("el-select"), R2 = o("el-form-item"), $ = o("el-input"), M = o("el-radio"), O = o("el-radio-group"), B = o("el-collapse-item"), G = o("el-radio-button"), H = o("el-switch"), J = o("el-collapse"), K = o("el-form");
|
|
45
|
-
return t(), i(K, { "label-width": "80px", size: "small" }, { default: u(() => [s(J, { modelValue: E.value, "onUpdate:modelValue": l2[25] || (l2[25] = (e3) => E.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [s(B, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", j, [s(R2, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [s(h2, { modelValue: e2.configure.name, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.name = a3), placeholder: "请选择" }, { default: u(() => [(t(true), r(d, null, p(c(V)(), (e3) => (t(), i(_2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [s($, { 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 }), s(R2, { label: "自定义编码", class: "amb-design-attr-item" }, { default: u(() => [s($, { modelValue: e2.configure.code, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.code = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "绑定权限", class: "amb-design-attr-item" }, { default: u(() => [(t(), i(y, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 }), s(R2, { label: "标题", class: "amb-design-attr-item" }, { default: u(() => [s(k, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.base.title = a3) }, null, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "尺寸", class: "amb-design-attr-item" }, { default: u(() => [s(O, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.base.size = a3), class: "ml-4" }, { default: u(() => [s(M, { value: "large" }, { default: u(() => l2[26] || (l2[26] = [m("大")])), _: 1 }), s(M, { value: "default" }, { default: u(() => l2[27] || (l2[27] = [m("中")])), _: 1 }), s(M, { value: "small" }, { default: u(() => l2[28] || (l2[28] = [m("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [s(O, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.base.state = a3), class: "ml-4" }, { default: u(() => [s(M, { value: "default" }, { default: u(() => l2[29] || (l2[29] = [m("普通")])), _: 1 }), s(M, { value: "disabled" }, { default: u(() => l2[30] || (l2[30] = [m("禁用")])), _: 1 }), s(M, { value: "hidden" }, { default: u(() => l2[31] || (l2[31] = [m("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), s(B, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", D, [s(R2, { label: "按钮类型", class: "amb-design-attr-item" }, { default: u(() => [s(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: u(() => [s(_2, { label: "primary", value: "primary" }), s(_2, { label: "success", value: "success" }), s(_2, { label: "warning", value: "warning" }), s(_2, { label: "danger", value: "danger" }), s(_2, { label: "info", value: "info" }), s(_2, { label: "default", value: "default" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "图标", class: "amb-design-attr-item" }, { default: u(() => [(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) {
|
|
46
|
-
z2.configure.props.base.iconType = e4, z2.configure.props.base.iconValue = a4, a4 || (z2.configure.props.base.isTextIcon = false);
|
|
47
|
-
}(e3, a3)) }, null, 8, ["iconType", "iconValue"]))]), _: 1 }), f(s(R2, { label: "图标位置", class: "amb-design-attr-item" }, { default: u(() => [s(O, { modelValue: e2.configure.props.base.iconPosition, "onUpdate:modelValue": l2[8] || (l2[8] = (a3) => e2.configure.props.base.iconPosition = a3), class: "ml-4" }, { default: u(() => [s(G, { value: "left" }, { default: u(() => l2[32] || (l2[32] = [m("标题前")])), _: 1 }), s(G, { value: "right" }, { default: u(() => l2[33] || (l2[33] = [m("标题后")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.iconValue]]), s(R2, { label: "文字按钮", class: "amb-design-attr-item" }, { default: u(() => [s(H, { 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": c(x), "inactive-icon": c(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), e2.configure.props.base.text ? (t(), i(R2, { key: 0, label: "图标按钮", class: "amb-design-attr-item" }, { default: u(() => [s(H, { 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": c(x), "inactive-icon": c(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 })) : b("", true), s(R2, { label: "朴素按钮", class: "amb-design-attr-item" }, { default: u(() => [s(H, { 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": c(x), "inactive-icon": c(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), s(R2, { label: "圆角按钮", class: "amb-design-attr-item" }, { default: u(() => [s(H, { 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": c(x), "inactive-icon": c(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), s(R2, { label: "加载状态", class: "amb-design-attr-item" }, { default: u(() => [s(O, { modelValue: e2.configure.props.base.loading, "onUpdate:modelValue": l2[13] || (l2[13] = (a3) => e2.configure.props.base.loading = a3), class: "ml-4" }, { default: u(() => [s(M, { value: true }, { default: u(() => l2[34] || (l2[34] = [m("是")])), _: 1 }), s(M, { value: false }, { default: u(() => l2[35] || (l2[35] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "默认聚焦", class: "amb-design-attr-item" }, { default: u(() => [s(O, { modelValue: e2.configure.props.base.focus, "onUpdate:modelValue": l2[14] || (l2[14] = (a3) => e2.configure.props.base.focus = a3), class: "ml-4" }, { default: u(() => [s(M, { value: true }, { default: u(() => l2[36] || (l2[36] = [m("是")])), _: 1 }), s(M, { value: false }, { default: u(() => l2[37] || (l2[37] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "原生type", class: "amb-design-attr-item" }, { default: u(() => [s(O, { 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: u(() => [s(M, { value: "button" }, { default: u(() => l2[38] || (l2[38] = [m("button")])), _: 1 }), s(M, { value: "submit" }, { default: u(() => l2[39] || (l2[39] = [m("submit")])), _: 1 }), s(M, { value: "reset" }, { default: u(() => l2[40] || (l2[40] = [m("reset")])), _: 1 })]), _: 1 }, 8, ["modelValue", "disabled"])]), _: 1 })])]), _: 1 }), s(B, { title: "跳转配置", name: "linkPage", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", T, [A.value ? (t(), i(P, { key: 0, pageDesign: e2.pageDesign, paramTypes: ["data", "task", "page", "request", "row"], data: e2.configure.props.linkPage, configure: e2.configure, tableConfigure: C.value, onDataChange: l2[16] || (l2[16] = (e3) => function(e4) {
|
|
48
|
-
z2.configure.props.linkPage = e4;
|
|
49
|
-
}(e3)) }, null, 8, ["pageDesign", "data", "configure", "tableConfigure"])) : b("", true)])]), _: 1 }), s(B, { title: "其他设置", name: "otherSettings", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", w, [s(R2, { label: "回填赋值", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.isNeedValueMapping, "onUpdate:modelValue": l2[17] || (l2[17] = (a3) => e2.configure.props.base.isNeedValueMapping = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "权限保护", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.isPermission, "onUpdate:modelValue": l2[18] || (l2[18] = (a3) => e2.configure.props.base.isPermission = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "是否异步", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.isAsync, "onUpdate:modelValue": l2[19] || (l2[19] = (a3) => e2.configure.props.base.isAsync = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "必填验证", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.isEnableRequired, "onUpdate:modelValue": l2[20] || (l2[20] = (a3) => e2.configure.props.base.isEnableRequired = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "逻辑删除", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.isSafeDelete, "onUpdate:modelValue": l2[21] || (l2[21] = (a3) => e2.configure.props.base.isSafeDelete = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "模板路径", class: "amb-design-attr-item" }, { default: u(() => [s(h2, { modelValue: q.value, "onUpdate:modelValue": l2[22] || (l2[22] = (e3) => q.value = e3), filterable: "", multiple: "", onChange: I }, { default: u(() => [(t(true), r(d, null, p(F.value, (e3) => (t(), i(_2, { key: e3.uuid, label: e3.fileName, value: e3.uuid }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "执行条件", class: "amb-design-attr-item" }, { default: u(() => [s(h2, { modelValue: e2.configure.props.base.conditionsForExecution, "onUpdate:modelValue": l2[23] || (l2[23] = (a3) => e2.configure.props.base.conditionsForExecution = a3) }, { default: u(() => [s(_2, { label: "无限制", value: "any" }), s(_2, { label: "选单行", value: "one" }), s(_2, { label: "选多行(包括单行)", value: "more" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(R2, { label: "对应表格", class: "amb-design-attr-item" }, { default: u(() => [s(h2, { modelValue: e2.configure.props.base.tableUuid, "onUpdate:modelValue": l2[24] || (l2[24] = (a3) => e2.configure.props.base.tableUuid = a3), clearable: "", filterable: "", "allow-create": "", onChange: S }, { default: u(() => [(t(true), r(d, null, p(N.value, (e3) => (t(), i(_2, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
50
|
-
};
|
|
51
|
-
} });
|
|
1
|
+
import t from "./button-attr-base.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const o = e(t, [["__scopeId", "data-v-b665b830"]]);
|
|
52
5
|
export {
|
|
53
|
-
|
|
6
|
+
o as default
|
|
54
7
|
};
|
|
@@ -1,4 +1,50 @@
|
|
|
1
|
-
import t from "
|
|
1
|
+
import { defineComponent as e, ref as a, onMounted as l, resolveComponent as o, createBlock as t, openBlock as i, withCtx as s, createVNode as u, createElementVNode as n, createElementBlock as r, Fragment as d, renderList as p, unref as c, createTextVNode as m, withDirectives as f, createCommentVNode as g, vShow as b } from "vue";
|
|
2
|
+
import { getFormComponentOptions as V } from "../../../../utils/assemblys-config.js";
|
|
3
|
+
import "../../../../../../stores/page-store.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import v from "../../common/common-icon-bind.vue.js";
|
|
6
|
+
import _ from "agilebuilder-ui/src/utils/request";
|
|
7
|
+
import U from "../../common/common-function-code.vue.js";
|
|
8
|
+
import "@element-plus/icons";
|
|
9
|
+
import { Close as y, Check as h } from "@element-plus/icons-vue";
|
|
10
|
+
import "uuid";
|
|
11
|
+
import "../../../../../../stores/table-store.js";
|
|
12
|
+
import "../../../../../../stores/statistics-table-store.js";
|
|
13
|
+
/* empty css */
|
|
14
|
+
import { getTableConfigByTableUuid as k } from "../../../../utils/page-table-util.js";
|
|
15
|
+
import D from "../../common/common-i18n-key-input.vue.js";
|
|
16
|
+
import P from "../../chart/statistical-table/component/link-table.vue.js";
|
|
17
|
+
import j from "../../common/common-template-select.vue.js";
|
|
18
|
+
const x = { class: "collapse-item-content" }, T = { class: "collapse-item-content" }, C = { class: "collapse-item-content" }, w = { class: "collapse-item-content" }, z = { class: "collapse-item-content" }, E = e({ __name: "button-attr-base", props: { configure: { type: Object, default: () => ({ props: {} }) }, pageDesign: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
|
|
19
|
+
const E2 = e2, q = a(["base", "appearance", "otherSettings", "linkPage", "templateConfig"]), F = a({}), A = a([]), I = a($()), R = a(false);
|
|
20
|
+
E2.configure.props.base.templateFiles && E2.configure.props.base.templateFiles.forEach((e3) => {
|
|
21
|
+
A.value.push(e3.templateUuid);
|
|
22
|
+
}), void 0 === E2.configure.props.base.isEnableRequired && (E2.configure.props.base.isEnableRequired = true), !E2.configure.props.linkPage || E2.configure.props.linkPage instanceof Array || (E2.configure.props.linkPage = [{ linkPage: E2.configure.props.linkPage }]), R.value = true;
|
|
23
|
+
const S = a([]);
|
|
24
|
+
function $() {
|
|
25
|
+
return k(E2.pageDesign, E2.configure);
|
|
26
|
+
}
|
|
27
|
+
function M(e3) {
|
|
28
|
+
const a2 = $();
|
|
29
|
+
I.value = a2;
|
|
30
|
+
}
|
|
31
|
+
return l(() => {
|
|
32
|
+
!function() {
|
|
33
|
+
var _a;
|
|
34
|
+
const e3 = (_a = E2.pageDesign) == null ? void 0 : _a.systemVersion;
|
|
35
|
+
_.post(window.$vueApp.config.globalProperties.baseAPI + `/dc/template-management/list/${E2.pageDesign.systemCode}?publishVersion=${e3}`, {}).then((e4) => {
|
|
36
|
+
F.value = e4.data;
|
|
37
|
+
});
|
|
38
|
+
}(), E2.pageDesign.tableUuids && E2.pageDesign.tableUuids.length > 0 && (S.value = E2.pageDesign.tableUuids);
|
|
39
|
+
}), (a2, l2) => {
|
|
40
|
+
const _2 = o("el-option"), k2 = o("el-select"), F2 = o("el-form-item"), A2 = 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 i(), t(J, { "label-width": "80px", size: "small" }, { default: s(() => [u(H, { modelValue: q.value, "onUpdate:modelValue": l2[25] || (l2[25] = (e3) => q.value = e3), style: { "margin-top": "6px" } }, { default: s(() => [u(O, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: s(() => [n("div", x, [u(F2, { label: "组件类型", class: "amb-design-attr-item" }, { default: s(() => [u(k2, { modelValue: e2.configure.name, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.name = a3), placeholder: "请选择" }, { default: s(() => [(i(true), r(d, null, p(c(V)(), (e3) => (i(), t(_2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: s(() => [u(A2, { 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(F2, { label: "自定义编码", class: "amb-design-attr-item" }, { default: s(() => [u(A2, { modelValue: e2.configure.code, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.code = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "绑定权限", class: "amb-design-attr-item" }, { default: s(() => [(i(), t(U, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 }), u(F2, { label: "标题", class: "amb-design-attr-item" }, { default: s(() => [u(D, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.base.title = a3) }, null, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "尺寸", class: "amb-design-attr-item" }, { default: s(() => [u(N, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.base.size = a3), class: "ml-4" }, { default: s(() => [u($2, { value: "large" }, { default: s(() => l2[26] || (l2[26] = [m("大")])), _: 1 }), u($2, { value: "default" }, { default: s(() => l2[27] || (l2[27] = [m("中")])), _: 1 }), u($2, { value: "small" }, { default: s(() => l2[28] || (l2[28] = [m("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "状态", class: "amb-design-attr-item" }, { default: s(() => [u(N, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.base.state = a3), class: "ml-4" }, { default: s(() => [u($2, { value: "default" }, { default: s(() => l2[29] || (l2[29] = [m("普通")])), _: 1 }), u($2, { value: "disabled" }, { default: s(() => l2[30] || (l2[30] = [m("禁用")])), _: 1 }), u($2, { value: "hidden" }, { default: s(() => l2[31] || (l2[31] = [m("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), u(O, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: s(() => [n("div", T, [u(F2, { label: "按钮类型", class: "amb-design-attr-item" }, { default: s(() => [u(k2, { 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(F2, { label: "图标", class: "amb-design-attr-item" }, { default: s(() => [(i(), t(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) {
|
|
42
|
+
E2.configure.props.base.iconType = e4, E2.configure.props.base.iconValue = a4, a4 || (E2.configure.props.base.isTextIcon = false);
|
|
43
|
+
}(e3, a3)) }, null, 8, ["iconType", "iconValue"]))]), _: 1 }), f(u(F2, { 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[32] || (l2[32] = [m("标题前")])), _: 1 }), u(B, { value: "right" }, { default: s(() => l2[33] || (l2[33] = [m("标题后")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.iconValue]]), u(F2, { 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": c(h), "inactive-icon": c(y) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), e2.configure.props.base.text ? (i(), t(F2, { 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": c(h), "inactive-icon": c(y) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 })) : g("", true), u(F2, { 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": c(h), "inactive-icon": c(y) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), u(F2, { 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": c(h), "inactive-icon": c(y) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), u(F2, { 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[34] || (l2[34] = [m("是")])), _: 1 }), u($2, { value: false }, { default: s(() => l2[35] || (l2[35] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(F2, { 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[36] || (l2[36] = [m("是")])), _: 1 }), u($2, { value: false }, { default: s(() => l2[37] || (l2[37] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(F2, { 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[38] || (l2[38] = [m("button")])), _: 1 }), u($2, { value: "submit" }, { default: s(() => l2[39] || (l2[39] = [m("submit")])), _: 1 }), u($2, { value: "reset" }, { default: s(() => l2[40] || (l2[40] = [m("reset")])), _: 1 })]), _: 1 }, 8, ["modelValue", "disabled"])]), _: 1 })])]), _: 1 }), u(O, { title: "跳转配置", name: "linkPage", class: "amb-design-attr-group-header" }, { default: s(() => [n("div", C, [R.value ? (i(), t(P, { key: 0, pageDesign: e2.pageDesign, paramTypes: ["data", "task", "page", "request", "row"], data: e2.configure.props.linkPage, configure: e2.configure, tableConfigure: I.value, onDataChange: l2[16] || (l2[16] = (e3) => function(e4) {
|
|
44
|
+
E2.configure.props.linkPage = e4;
|
|
45
|
+
}(e3)) }, null, 8, ["pageDesign", "data", "configure", "tableConfigure"])) : g("", true)])]), _: 1 }), u(O, { title: "模板配置", name: "templateConfig", class: "amb-design-attr-group-header" }, { default: s(() => [n("div", w, [u(j, { modelValue: e2.configure.props.base.templateFiles, "onUpdate:modelValue": l2[17] || (l2[17] = (a3) => e2.configure.props.base.templateFiles = a3), pageDesign: e2.pageDesign, tableConfigure: I.value }, null, 8, ["modelValue", "pageDesign", "tableConfigure"])])]), _: 1 }), u(O, { title: "其他设置", name: "otherSettings", class: "amb-design-attr-group-header" }, { default: s(() => [n("div", z, [u(F2, { label: "回填赋值", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.isNeedValueMapping, "onUpdate:modelValue": l2[18] || (l2[18] = (a3) => e2.configure.props.base.isNeedValueMapping = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "权限保护", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.isPermission, "onUpdate:modelValue": l2[19] || (l2[19] = (a3) => e2.configure.props.base.isPermission = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "是否异步", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.isAsync, "onUpdate:modelValue": l2[20] || (l2[20] = (a3) => e2.configure.props.base.isAsync = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "必填验证", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.isEnableRequired, "onUpdate:modelValue": l2[21] || (l2[21] = (a3) => e2.configure.props.base.isEnableRequired = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "逻辑删除", class: "amb-design-attr-item" }, { default: s(() => [u(G, { modelValue: e2.configure.props.base.isSafeDelete, "onUpdate:modelValue": l2[22] || (l2[22] = (a3) => e2.configure.props.base.isSafeDelete = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "执行条件", class: "amb-design-attr-item" }, { default: s(() => [u(k2, { modelValue: e2.configure.props.base.conditionsForExecution, "onUpdate:modelValue": l2[23] || (l2[23] = (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(F2, { label: "对应表格", class: "amb-design-attr-item" }, { default: s(() => [u(k2, { modelValue: e2.configure.props.base.tableUuid, "onUpdate:modelValue": l2[24] || (l2[24] = (a3) => e2.configure.props.base.tableUuid = a3), clearable: "", filterable: "", "allow-create": "", onChange: M }, { default: s(() => [(i(true), r(d, null, p(S.value, (e3) => (i(), t(_2, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
46
|
+
};
|
|
47
|
+
} });
|
|
2
48
|
export {
|
|
3
|
-
|
|
49
|
+
E as default
|
|
4
50
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as o, createBlock as t, openBlock as u, withCtx as d, createVNode as r, unref as n, createTextVNode as i, createElementBlock as p, Fragment as m, renderList as s } from "vue";
|
|
2
2
|
import { CirclePlus as b, Delete as f } from "@element-plus/icons-vue";
|
|
3
|
-
import v from "../../common/common-variable-bind.
|
|
3
|
+
import v from "../../common/common-variable-bind.vue2.js";
|
|
4
4
|
import { ElMessage as c } from "element-plus";
|
|
5
5
|
import { getOperators as V } from "../../../../utils/data-table-util.js";
|
|
6
6
|
import { getModelOptionsByFields as _ } from "../../../../utils/page-table-util.js";
|
package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, createBlock as u, openBlock as o, withCtx as n, createElementBlock as i, Fragment as r, renderList as d, createTextVNode as m, toDisplayString as p, withKeys as s, createVNode as v, unref as f, createElementVNode as c } from "vue";
|
|
2
2
|
import { EditPen as y, Search as g } from "@element-plus/icons-vue";
|
|
3
|
-
import _ from "../../common/common-variable-bind.
|
|
3
|
+
import _ from "../../common/common-variable-bind.vue2.js";
|
|
4
4
|
const V = { class: "dialog-footer" }, k = e({ __name: "journal-set-dialog", props: { modelValue: { type: Array, default: () => [] } }, emits: ["save"], setup(e2, { emit: k2 }) {
|
|
5
5
|
const C = e2, b = k2, h = l([]), x = l(false), z = l(""), w = l(false), j = l("");
|
|
6
6
|
function B() {
|
|
@@ -2,7 +2,7 @@ import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o
|
|
|
2
2
|
import { formatConditionList as c } from "../../../../utils/data-table-util.js";
|
|
3
3
|
import { CirclePlus as v, Delete as g } from "@element-plus/icons-vue";
|
|
4
4
|
import b from "./combination.vue.js";
|
|
5
|
-
import C from "../../common/common-variable-bind.
|
|
5
|
+
import C from "../../common/common-variable-bind.vue2.js";
|
|
6
6
|
import { getModelOptionsByFields as y } from "../../../../utils/page-table-util.js";
|
|
7
7
|
const w = { class: "dialog-footer" }, F = e({ __name: "set-dialog", props: { configure: { type: Object, default: () => {
|
|
8
8
|
} }, pageDesign: { type: Object, default: () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, resolveComponent as l, createBlock as t, openBlock as o, withCtx as u, createVNode as r, createElementVNode as d, withDirectives as i, createTextVNode as s, toDisplayString as n, vShow as p, createCommentVNode as m } from "vue";
|
|
2
2
|
import f from "../../form/common/row-ul-li.vue.js";
|
|
3
|
-
import g from "../../common/common-variable-bind.
|
|
3
|
+
import g from "../../common/common-variable-bind.vue2.js";
|
|
4
4
|
import c from "../../common/common-function-code.vue.js";
|
|
5
5
|
import b from "../../common/common-i18n-key-input.vue.js";
|
|
6
6
|
const _ = { style: { padding: "8px 0px 0px 0px" } }, V = { style: { padding: "8px 0px 0px 0px" } }, v = e({ __name: "dropdown-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
|
package/dist/es/components/design/views/assemblys/button/export-pdf/common-template-select.vue.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as t, createBlock as a, openBlock as o, withCtx as u, createVNode as i, createElementBlock as n, Fragment as d, renderList as s, unref as p } from "vue";
|
|
2
|
+
import { getUuidv4 as m } from "../../../../utils/common-util.js";
|
|
3
|
+
import { getCustomFuncs as r } from "../../../../utils/page-event-util.js";
|
|
4
|
+
import c from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import f from "../../chart/statistical-table/component/table-showcondition.vue.js";
|
|
6
|
+
const g = e({ __name: "common-template-select", props: { modelValue: {}, pageDesign: {}, tableConfigure: {}, templateType: {} }, emits: ["update:modelValue"], setup(e2, { emit: g2 }) {
|
|
7
|
+
const b = g2, w = e2;
|
|
8
|
+
if (w.modelValue && w.modelValue.length > 0) {
|
|
9
|
+
const e3 = w.modelValue[0];
|
|
10
|
+
if (e3.templateUuid && e3.templateName) {
|
|
11
|
+
const e4 = [];
|
|
12
|
+
w.modelValue.forEach((l2) => {
|
|
13
|
+
l2.templateUuid && l2.templateName && e4.push({ uuid: m(), templates: [{ templateName: l2.templateName, templateUuid: l2.templateUuid }], templateFileUuids: [l2.templateUuid], conditions: [], scopeFunc: null });
|
|
14
|
+
}), b("update:modelValue", e4);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const V = l([]);
|
|
18
|
+
function h(e3, l2) {
|
|
19
|
+
const t2 = { uuid: m(), templates: [], conditions: [], scopeFunc: "" };
|
|
20
|
+
void 0 !== l2 ? w.modelValue.splice(l2 + 1, 0, t2) : w.modelValue.push(t2);
|
|
21
|
+
}
|
|
22
|
+
function v(e3) {
|
|
23
|
+
e3.row && (e3.row.conditions = e3.data);
|
|
24
|
+
}
|
|
25
|
+
return function() {
|
|
26
|
+
var _a;
|
|
27
|
+
let e3 = {};
|
|
28
|
+
if ("pdf" === w.templateType) c.post(window.$vueApp.config.globalProperties.baseAPI + `/dc/pdf-templates/list/${w.pageDesign.systemCode}`, e3).then((e4) => {
|
|
29
|
+
V.value = e4.data;
|
|
30
|
+
});
|
|
31
|
+
else {
|
|
32
|
+
const l2 = (_a = w.pageDesign) == null ? void 0 : _a.systemVersion;
|
|
33
|
+
c.post(window.$vueApp.config.globalProperties.baseAPI + `/dc/template-management/list/${w.pageDesign.systemCode}?publishVersion=${l2}`, e3).then((e4) => {
|
|
34
|
+
V.value = e4.data;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}(), w.modelValue || b("update:modelValue", []), (e3, l2) => {
|
|
38
|
+
const m2 = t("Plus"), c2 = t("el-icon"), g3 = t("Delete"), b2 = t("el-table-column"), U = t("el-option"), C = t("el-select"), y = t("el-table");
|
|
39
|
+
return o(), a(y, { data: e3.modelValue, style: { width: "100%" }, "row-key": "uuid" }, { default: u(() => [i(b2, { label: "操作", width: "55", align: "center" }, { header: u(() => [i(c2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: l2[0] || (l2[0] = (e4) => h()) }, { default: u(() => [i(m2)]), _: 1 })]), default: u((e4) => [i(c2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => h(e4.row, e4.$index) }, { default: u(() => [i(m2)]), _: 2 }, 1032, ["onClick"]), i(c2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => {
|
|
40
|
+
return e4.row, t2 = e4.$index, void w.modelValue.splice(t2, 1);
|
|
41
|
+
var t2;
|
|
42
|
+
} }, { default: u(() => [i(g3)]), _: 2 }, 1032, ["onClick"])]), _: 1 }), i(b2, { label: "模板", width: "150" }, { default: u((e4) => [i(C, { modelValue: e4.row.templateFileUuids, "onUpdate:modelValue": (l3) => e4.row.templateFileUuids = l3, filterable: "", multiple: "", onChange: (l3) => {
|
|
43
|
+
return t2 = l3, a2 = e4.row, e4.$index, void (t2.length > 0 ? (a2.templates = [], V.value.filter((e5) => t2.includes(e5.uuid)).forEach((e5) => {
|
|
44
|
+
a2.templates.push({ templateName: e5.fileName, templateUuid: e5.uuid });
|
|
45
|
+
})) : a2.templates = []);
|
|
46
|
+
var t2, a2;
|
|
47
|
+
} }, { default: u(() => [(o(true), n(d, null, s(V.value, (e5) => (o(), a(U, { key: e5.uuid, label: e5.fileName, value: e5.uuid }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }), i(b2, { label: "条件" }, { default: u((l3) => [i(f, { data: l3.row.conditions, pageDesign: e3.pageDesign, row: l3.row, tableConfigure: e3.tableConfigure, "onUpdate:data": v }, null, 8, ["data", "pageDesign", "row", "tableConfigure"])]), _: 1 }), i(b2, { label: "自定义条件" }, { default: u((e4) => [i(C, { modelValue: e4.row.scopeFunc, "onUpdate:modelValue": (l3) => e4.row.scopeFunc = l3, clearable: "", title: e4.row.scopeFunc, size: "small", placeholder: "请选择" }, { default: u(() => [(o(true), n(d, null, s(p(r)(), (e5) => (o(), a(U, { key: e5.value, label: e5.label, value: e5.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 })]), _: 1 }, 8, ["data"]);
|
|
48
|
+
};
|
|
49
|
+
} });
|
|
50
|
+
export {
|
|
51
|
+
g as default
|
|
52
|
+
};
|
package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js
CHANGED
|
@@ -1,33 +1,30 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as o, createBlock as
|
|
2
|
-
import { getFormComponentOptions as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as o, createBlock as t, openBlock as u, withCtx as i, createVNode as s, createElementVNode as n, createElementBlock as d, Fragment as p, renderList as r, unref as m, createTextVNode as c, withDirectives as f, vShow as g } from "vue";
|
|
2
|
+
import { getFormComponentOptions as b } from "../../../../utils/assemblys-config.js";
|
|
3
|
+
import V from "../../common/common-icon-bind.vue.js";
|
|
4
|
+
import v from "../../common/common-function-code.vue.js";
|
|
5
5
|
import _ from "agilebuilder-ui/src/utils/request";
|
|
6
6
|
import y from "../../common/common-i18n-key-input.vue.js";
|
|
7
7
|
import { Close as x, Check as U } from "@element-plus/icons-vue";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
k2.configure.props.base.templateFiles.push({ templateName: e3.fileName, templateUuid: e3.uuid });
|
|
13
|
-
})) : k2.configure.props.base.templateFiles = [];
|
|
14
|
-
}
|
|
8
|
+
import h from "./common-template-select.vue.js";
|
|
9
|
+
import { getTableConfigByTableUuid as j } from "../../../../utils/page-table-util.js";
|
|
10
|
+
const P = { style: { padding: "8px 0px 0px 0px" } }, D = { style: { padding: "8px 0px 0px 0px" } }, T = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "exportpdf-attr-base", props: { configure: { type: Object, default: () => ({ props: {} }) }, pageDesign: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
|
|
11
|
+
const w2 = e2, k = l(["base", "appearance", "otherSettings", "linkPage"]), F = l([]), z = l([]), C = l(j(w2.pageDesign, w2.configure));
|
|
15
12
|
return a(() => {
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
w2.configure.props.base.templateFiles && w2.configure.props.base.templateFiles.forEach((e3) => {
|
|
14
|
+
z.value.push(e3.templateUuid);
|
|
18
15
|
}), function() {
|
|
19
16
|
let e3 = {};
|
|
20
|
-
_.post(window.$vueApp.config.globalProperties.baseAPI + `/dc/pdf-templates/list/${
|
|
17
|
+
_.post(window.$vueApp.config.globalProperties.baseAPI + `/dc/pdf-templates/list/${w2.pageDesign.systemCode}`, e3).then((e4) => {
|
|
21
18
|
F.value = e4.data;
|
|
22
19
|
});
|
|
23
20
|
}();
|
|
24
21
|
}), (l2, a2) => {
|
|
25
|
-
const _2 = o("el-option"),
|
|
26
|
-
return
|
|
27
|
-
|
|
28
|
-
}(e3, l3)) }, null, 8, ["iconType", "iconValue"]))]), _: 1 }), f(s(
|
|
22
|
+
const _2 = o("el-option"), j2 = o("el-select"), F2 = o("el-form-item"), z2 = o("el-input"), A = o("el-radio"), O = o("el-radio-group"), S = o("el-divider"), $ = o("el-collapse-item"), q = o("el-radio-button"), E = o("el-switch"), I = o("el-collapse"), B = o("el-form");
|
|
23
|
+
return u(), t(B, { "label-width": "80px", size: "small" }, { default: i(() => [s(I, { modelValue: k.value, "onUpdate:modelValue": a2[17] || (a2[17] = (e3) => k.value = e3), style: { "margin-top": "6px" } }, { default: i(() => [s($, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: i(() => [n("div", P, [s(F2, { label: "组件类型", class: "amb-design-attr-item" }, { default: i(() => [s(j2, { modelValue: e2.configure.name, "onUpdate:modelValue": a2[0] || (a2[0] = (l3) => e2.configure.name = l3), placeholder: "请选择" }, { default: i(() => [(u(true), d(p, null, r(m(b)(), (e3) => (u(), t(_2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(F2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: i(() => [s(z2, { modelValue: e2.configure.uuid, "onUpdate:modelValue": a2[1] || (a2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), s(F2, { label: "自定义编码", class: "amb-design-attr-item" }, { default: i(() => [s(z2, { modelValue: e2.configure.code, "onUpdate:modelValue": a2[2] || (a2[2] = (l3) => e2.configure.code = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), s(F2, { label: "绑定权限", class: "amb-design-attr-item" }, { default: i(() => [(u(), t(v, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 }), s(F2, { label: "标题", class: "amb-design-attr-item" }, { default: i(() => [s(y, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": a2[3] || (a2[3] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }), s(F2, { label: "尺寸", class: "amb-design-attr-item" }, { default: i(() => [s(O, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": a2[4] || (a2[4] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: i(() => [s(A, { value: "large" }, { default: i(() => a2[18] || (a2[18] = [c("大")])), _: 1 }), s(A, { value: "default" }, { default: i(() => a2[19] || (a2[19] = [c("中")])), _: 1 }), s(A, { value: "small" }, { default: i(() => a2[20] || (a2[20] = [c("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(F2, { label: "状态", class: "amb-design-attr-item" }, { default: i(() => [s(O, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": a2[5] || (a2[5] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: i(() => [s(A, { value: "default" }, { default: i(() => a2[21] || (a2[21] = [c("普通")])), _: 1 }), s(A, { value: "disabled" }, { default: i(() => a2[22] || (a2[22] = [c("禁用")])), _: 1 }), s(A, { value: "hidden" }, { default: i(() => a2[23] || (a2[23] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(S, null, { default: i(() => a2[24] || (a2[24] = [c(" PDF模板 ")])), _: 1 }), s(h, { modelValue: e2.configure.props.base.templateFiles, "onUpdate:modelValue": a2[6] || (a2[6] = (l3) => e2.configure.props.base.templateFiles = l3), pageDesign: e2.pageDesign, tableConfigure: C.value, templateType: "pdf" }, null, 8, ["modelValue", "pageDesign", "tableConfigure"])])]), _: 1 }), s($, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: i(() => [n("div", D, [s(F2, { label: "按钮类型", class: "amb-design-attr-item" }, { default: i(() => [s(j2, { modelValue: e2.configure.props.base.type, "onUpdate:modelValue": a2[7] || (a2[7] = (l3) => e2.configure.props.base.type = l3), class: "ml-4", clearable: "" }, { default: i(() => [s(_2, { label: "primary", value: "primary" }), s(_2, { label: "success", value: "success" }), s(_2, { label: "warning", value: "warning" }), s(_2, { label: "danger", value: "danger" }), s(_2, { label: "info", value: "info" }), s(_2, { label: "default", value: "default" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(F2, { label: "图标", class: "amb-design-attr-item" }, { default: i(() => [(u(), t(V, { key: e2.configure.uuid, iconType: e2.configure.props.base.iconType, iconValue: e2.configure.props.base.iconValue, "onUpdate:modelValue": a2[8] || (a2[8] = (e3, l3) => function(e4, l4) {
|
|
24
|
+
w2.configure.props.base.iconType = e4, w2.configure.props.base.iconValue = l4;
|
|
25
|
+
}(e3, l3)) }, null, 8, ["iconType", "iconValue"]))]), _: 1 }), f(s(F2, { label: "图标位置", class: "amb-design-attr-item" }, { default: i(() => [s(O, { modelValue: e2.configure.props.base.iconPosition, "onUpdate:modelValue": a2[9] || (a2[9] = (l3) => e2.configure.props.base.iconPosition = l3), class: "ml-4" }, { default: i(() => [s(q, { value: "left" }, { default: i(() => a2[25] || (a2[25] = [c("标题前")])), _: 1 }), s(q, { value: "right" }, { default: i(() => a2[26] || (a2[26] = [c("标题后")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.iconValue]]), s(F2, { label: "文字按钮", class: "amb-design-attr-item" }, { default: i(() => [s(E, { modelValue: e2.configure.props.base.text, "onUpdate:modelValue": a2[10] || (a2[10] = (l3) => e2.configure.props.base.text = l3), disabled: !!e2.configure.props.base.plain || !!e2.configure.props.base.plain, "inline-prompt": "", "active-icon": m(U), "inactive-icon": m(x) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), s(F2, { label: "朴素按钮", class: "amb-design-attr-item" }, { default: i(() => [s(E, { modelValue: e2.configure.props.base.plain, "onUpdate:modelValue": a2[11] || (a2[11] = (l3) => e2.configure.props.base.plain = l3), disabled: !!e2.configure.props.base.text, "inline-prompt": "", "active-icon": m(U), "inactive-icon": m(x) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), s(F2, { label: "圆角按钮", class: "amb-design-attr-item" }, { default: i(() => [s(E, { modelValue: e2.configure.props.base.round, "onUpdate:modelValue": a2[12] || (a2[12] = (l3) => e2.configure.props.base.round = l3), disabled: !!e2.configure.props.base.text, "inline-prompt": "", "active-icon": m(U), "inactive-icon": m(x) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), s(F2, { label: "加载状态", class: "amb-design-attr-item" }, { default: i(() => [s(O, { modelValue: e2.configure.props.base.loading, "onUpdate:modelValue": a2[13] || (a2[13] = (l3) => e2.configure.props.base.loading = l3), class: "ml-4" }, { default: i(() => [s(A, { value: true }, { default: i(() => a2[27] || (a2[27] = [c("是")])), _: 1 }), s(A, { value: false }, { default: i(() => a2[28] || (a2[28] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(F2, { label: "默认聚焦", class: "amb-design-attr-item" }, { default: i(() => [s(O, { modelValue: e2.configure.props.base.focus, "onUpdate:modelValue": a2[14] || (a2[14] = (l3) => e2.configure.props.base.focus = l3), class: "ml-4" }, { default: i(() => [s(A, { value: true }, { default: i(() => a2[29] || (a2[29] = [c("是")])), _: 1 }), s(A, { value: false }, { default: i(() => a2[30] || (a2[30] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(F2, { label: "原生type", class: "amb-design-attr-item" }, { default: i(() => [s(O, { modelValue: e2.configure.props.base.originalType, "onUpdate:modelValue": a2[15] || (a2[15] = (l3) => e2.configure.props.base.originalType = l3), class: "ml-4" }, { default: i(() => [s(A, { value: "button" }, { default: i(() => a2[31] || (a2[31] = [c("button")])), _: 1 }), s(A, { value: "submit" }, { default: i(() => a2[32] || (a2[32] = [c("submit")])), _: 1 }), s(A, { value: "reset" }, { default: i(() => a2[33] || (a2[33] = [c("reset")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), s($, { title: "其他设置", name: "otherSettings", class: "amb-design-attr-group-header" }, { default: i(() => [n("div", T, [s(F2, { label: "权限保护", class: "amb-design-attr-item" }, { default: i(() => [s(E, { modelValue: e2.configure.props.base.isPermission, "onUpdate:modelValue": a2[16] || (a2[16] = (l3) => e2.configure.props.base.isPermission = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
29
26
|
};
|
|
30
27
|
} });
|
|
31
28
|
export {
|
|
32
|
-
|
|
29
|
+
w as default
|
|
33
30
|
};
|
|
@@ -2,13 +2,12 @@ import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a
|
|
|
2
2
|
import m from "../../common-series/common-attr-dataset-columnline.vue.js";
|
|
3
3
|
import d from "../../common-series/common-attr-dynamic.vue.js";
|
|
4
4
|
import c from "../../common-series/common-attr-testdatas.vue.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
e2.pageDesign;
|
|
5
|
+
import f from "../../../form/common/suffixmodule.vue.js";
|
|
6
|
+
const g = { style: { padding: "8px 0px 0px 0px" } }, x = { style: { padding: "8px 0px 0px 0px" } }, y = e({ __name: "column-line-series-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
|
|
8
7
|
const y2 = l(["1", "dataList", "propsDynamic", "clicklinkage", "propsTestDatas"]);
|
|
9
8
|
return (l2, b) => {
|
|
10
|
-
const V = o("el-option"), v = o("el-select"), _ = o("el-form-item"), h = o("el-switch"),
|
|
11
|
-
return t(), a(w, { "label-width": "80px", size: "small" }, { default: u(() => [i(S, { modelValue: y2.value, "onUpdate:modelValue": b[4] || (b[4] = (e3) => y2.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(U, { title: "基本", name: "1", class: "amb-design-attr-group-header" }, { default: u(() => [n("div",
|
|
9
|
+
const V = o("el-option"), v = o("el-select"), _ = o("el-form-item"), h = o("el-switch"), j = o("el-input"), k = o("el-radio-button"), D = o("el-radio-group"), U = o("el-collapse-item"), S = o("el-collapse"), w = o("el-form");
|
|
10
|
+
return t(), a(w, { "label-width": "80px", size: "small" }, { default: u(() => [i(S, { modelValue: y2.value, "onUpdate:modelValue": b[4] || (b[4] = (e3) => y2.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(U, { title: "基本", name: "1", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", g, [i(_, { label: "系列类型", style: { "margin-top": "4px" } }, { default: u(() => [i(v, { modelValue: e2.configure.type, "onUpdate:modelValue": b[0] || (b[0] = (l3) => e2.configure.type = l3) }, { default: u(() => [i(V, { label: "柱状图", value: "bar" }), i(V, { label: "折线图", value: "line" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(i(_, { label: "曲线", style: { "margin-top": "-10px" } }, { default: u(() => [i(h, { modelValue: e2.configure.style.isSmooth, "onUpdate:modelValue": b[1] || (b[1] = (l3) => e2.configure.style.isSmooth = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[p, "line" == e2.configure.type]]), i(_, { label: "系列名称", style: { "margin-top": "-10px" } }, { default: u(() => [i(j, { modelValue: e2.configure.props.title, "onUpdate:modelValue": b[2] || (b[2] = (l3) => e2.configure.props.title = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), i(_, { label: "Y坐标参照", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: u(() => [i(D, { modelValue: e2.configure.props.yAxisIndex, "onUpdate:modelValue": b[3] || (b[3] = (l3) => e2.configure.props.yAxisIndex = l3) }, { default: u(() => [i(k, { value: "0" }, { default: u(() => b[5] || (b[5] = [s("左坐标")])), _: 1 }), i(k, { value: "1" }, { default: u(() => b[6] || (b[6] = [s("右坐标")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(m, { configure: e2.configure }, null, 8, ["configure"]), r(i(d, { configure: e2.configure }, null, 8, ["configure"]), [[p, !e2.configure.props.yaxisSource || "variable" === e2.configure.props.yaxisSource]]), i(U, { title: "Click跳转配置", name: "clicklinkage", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", x, [(t(), a(f, { key: e2.configure.uuid, configure: e2.configure, pageDesign: e2.pageDesign, isButton: false }, null, 8, ["configure", "pageDesign"]))])]), _: 1 }), i(c, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
12
11
|
};
|
|
13
12
|
} });
|
|
14
13
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, onUnmounted as a, watch as t, resolveComponent as o, createBlock as i, openBlock as u, withCtx as r, createElementVNode as n, createVNode as c, createElementBlock as s, Fragment as d, renderList as f, toDisplayString as m, unref as p } from "vue";
|
|
2
2
|
import { Plus as v, Delete as b } from "@element-plus/icons-vue";
|
|
3
3
|
import { getUuidv4 as g } from "../../../../utils/common-util.js";
|
|
4
|
-
import _ from "../../common/common-variable-bind.
|
|
4
|
+
import _ from "../../common/common-variable-bind.vue2.js";
|
|
5
5
|
const V = { style: { padding: "8px 0px 0px 0px" } }, h = { style: { float: "left" } }, w = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, k = e({ __name: "common-attr-clickset", props: { configure: {} }, setup(e2) {
|
|
6
6
|
const k2 = e2;
|
|
7
7
|
k2.configure.clickSet || (k2.configure.clickSet = {});
|