super-page-designer 2.2.76 → 2.2.77-sit3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/design/utils/assemblys-config.js +2 -2
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +33 -33
- package/dist/es/components/design/views/assemblys/button/button/button-design.vue2.js +21 -21
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js +38 -34
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +20 -19
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +19 -19
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue.js +9 -8
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +19 -19
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +39 -36
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +24 -23
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-i18n-key-input.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +53 -53
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +11 -11
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +59 -59
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +43 -38
- package/dist/es/components/design/views/assemblys/container/iframe/iframe-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +26 -26
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +30 -30
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/data/component/return-set-table.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/data/component/variate-select.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +14 -11
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +83 -80
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +29 -9
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +10 -10
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +26 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +2 -26
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +33 -30
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/object-design.vue.d.ts +4 -0
- package/dist/es/components/design/views/assemblys/object-design.vue.js +5 -138
- package/dist/es/components/design/views/assemblys/object-design.vue3.js +140 -0
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/page/create-workflow-dialog.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +9 -20
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-design.vue2.js +22 -18
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +36 -36
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +64 -64
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +10 -9
- package/dist/es/components/design/views/design/view/attr-container.vue.js +24 -24
- package/dist/es/components/design/views/design/view/components/el-aside-expand-component.vue.js +24 -0
- package/dist/es/components/design/views/design/view/components/i18n-setting-enabled.vue.js +2 -2
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue2.js +4 -4
- package/dist/es/components/design/views/design/view/components/i18n-setting.vue.js +4 -4
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +10 -9
- package/dist/es/components/design/views/design/view/components/translate-error-dialog.vue.js +8 -8
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue2.js +2 -2
- package/dist/es/components/design/views/design/view/view-design.vue.js +27 -26
- package/dist/es/style.css +1826 -736
- package/package.json +4 -4
- package/dist/es/components/design/views/assemblys/object-design.vue2.js +0 -4
|
@@ -1,65 +1,68 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, computed as l, resolveComponent as o, createBlock as i, openBlock as t, withCtx as
|
|
2
|
-
import { InfoFilled as _, Delete as
|
|
3
|
-
import { queryTableFields as
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as a, computed as l, resolveComponent as o, createBlock as i, openBlock as t, withCtx as r, createElementVNode as n, createVNode as u, createCommentVNode as d, createElementBlock as s, withDirectives as p, createTextVNode as c, Fragment as m, renderList as g, toDisplayString as f, unref as b, withModifiers as v, vShow as O } from "vue";
|
|
2
|
+
import { InfoFilled as _, Delete as V } from "@element-plus/icons";
|
|
3
|
+
import { queryTableFields as y } from "../../../../../utils/page-table-util.js";
|
|
4
|
+
import C from "../../../form/common/data-origin-service-in.vue.js";
|
|
5
5
|
import w from "../../../common/page-permission-select.vue.js";
|
|
6
6
|
import T from "./row-colmun.vue.js";
|
|
7
|
-
import { queryServiceReturnFields as
|
|
7
|
+
import { queryServiceReturnFields as h } from "../../../../../utils/page-service-util.js";
|
|
8
8
|
import "uuid";
|
|
9
|
-
import { tableField as
|
|
9
|
+
import { tableField as k } from "../../../../../../../stores/table-store.js";
|
|
10
10
|
import R from "../../../common/common-variable-bind.vue.js";
|
|
11
|
-
import { getCustomFuncs as
|
|
12
|
-
const
|
|
11
|
+
import { getCustomFuncs as U } from "../../../../../utils/page-event-util.js";
|
|
12
|
+
const F = { style: { padding: "8px 0px 0px 0px" } }, x = { style: { float: "left" } }, S = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, j = { style: { float: "left" } }, D = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, N = e({ __name: "data-origin", props: { configure: { type: Object, default: () => {
|
|
13
13
|
} }, remote: { type: Boolean, default: true }, pageDesign: { type: Object, default: () => {
|
|
14
|
-
} }, sourceFields: { type: Array, default: () => [] } }, emits: ["serviceFieldChange", "bindVariableChange"], setup(e2, { emit:
|
|
15
|
-
const
|
|
14
|
+
} }, sourceFields: { type: Array, default: () => [] } }, emits: ["serviceFieldChange", "bindVariableChange"], setup(e2, { emit: N2 }) {
|
|
15
|
+
const z = N2, M = e2;
|
|
16
16
|
M.configure.props.dataOrigin.rowToColumn || (M.configure.props.dataOrigin.rowToColumn = {}), M.configure.props.dataOrigin.columnToRow || (M.configure.props.dataOrigin.columnToRow = { transColumns: [], titleColumns: [], dataColumns: [], dataColumnsMapping: [] }), M.configure.props.dataOrigin.columnToRow.transColumns || (M.configure.props.dataOrigin.columnToRow.transColumns = []);
|
|
17
|
-
const
|
|
18
|
-
M.configure.props.dataOrigin.dataSource || (M.configure.props.dataOrigin.dataSource = "service"), "service" === M.configure.props.dataOrigin.dataSource ?
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
let
|
|
22
|
-
function
|
|
23
|
-
if (
|
|
24
|
-
const e3 =
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
const E = k(), G = a(""), A = M.configure.props.dataOrigin;
|
|
18
|
+
M.configure.props.dataOrigin.dataSource || (M.configure.props.dataOrigin.dataSource = "service"), "service" === M.configure.props.dataOrigin.dataSource ? B() : "variable" === M.configure.props.dataOrigin.dataSource && z("bindVariableChange", A.variable);
|
|
19
|
+
const I = a([]), L = l(() => I.value.filter((e3) => "array" == e3.type || "any" == e3.type || !e3.type));
|
|
20
|
+
A.service || (A.service = {});
|
|
21
|
+
let Q = a([]);
|
|
22
|
+
function B() {
|
|
23
|
+
if (A.service.simpleCode) {
|
|
24
|
+
const e3 = A.service.simpleCode;
|
|
25
|
+
h(e3).then((e4) => {
|
|
26
|
+
I.value = e4, z("serviceFieldChange", e4);
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
function N() {
|
|
31
|
-
"variable" === Q.dataSource && D("serviceFieldChange", []);
|
|
32
|
-
}
|
|
33
30
|
function $() {
|
|
34
|
-
|
|
31
|
+
"variable" === A.dataSource && z("serviceFieldChange", []);
|
|
35
32
|
}
|
|
36
33
|
function q() {
|
|
34
|
+
M.configure.props.dataOrigin.columnToRow.transColumns.push({}), G.value = "";
|
|
35
|
+
}
|
|
36
|
+
function H() {
|
|
37
37
|
M.configure.props.dataOrigin.columnToRow.transColumns.splice(G, 1);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
M.configure.props.dataOrigin.variable = e3,
|
|
39
|
+
function J(e3) {
|
|
40
|
+
M.configure.props.dataOrigin.variable = e3, z("bindVariableChange", e3);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function K(e3) {
|
|
43
43
|
M.configure.props.dataOrigin.fields = e3;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function P(e3) {
|
|
46
|
+
M.configure.props.dataOrigin.itemNumVariable = e3;
|
|
47
|
+
}
|
|
48
|
+
function W() {
|
|
46
49
|
M.configure.props.dataOrigin.columnToRow.dataColumnsMapping || (M.configure.props.dataOrigin.columnToRow.dataColumnsMapping = []), M.configure.props.dataOrigin.columnToRow.dataColumnsMapping.push({ prop: [] });
|
|
47
50
|
}
|
|
48
51
|
return a(null), function() {
|
|
49
52
|
const e3 = M.pageDesign.systemCode, a2 = M.pageDesign.version, l2 = { name: M.configure.props.dataOrigin.tableName };
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
y(e3, a2, l2.name).then((e4) => {
|
|
54
|
+
Q.value = e4, E.addFieldList(e4);
|
|
52
55
|
});
|
|
53
56
|
}(), (a2, l2) => {
|
|
54
|
-
const
|
|
55
|
-
return t(), i(
|
|
57
|
+
const y2 = o("el-radio"), h2 = o("el-radio-group"), k2 = o("el-form-item"), N3 = o("el-option"), z2 = o("el-select"), M2 = o("el-tooltip"), E2 = o("el-input"), G2 = o("el-button"), I2 = o("el-icon"), Q2 = o("el-table-column"), X = o("el-table"), Y = o("el-divider"), Z = o("el-col"), ee = o("el-switch"), ae = o("el-text"), le = o("el-input-number"), oe = o("el-collapse-item");
|
|
58
|
+
return t(), i(oe, { title: "数据", name: "dataOrigin", class: "amb-design-attr-group-header" }, { default: r(() => {
|
|
56
59
|
var _a, _b;
|
|
57
|
-
return [
|
|
58
|
-
|
|
59
|
-
}(0, a3, l3, o2)) }, null, 8, ["pageDesign", "rowObj"])]), _: 1 })) : d("", true), "service" === e2.configure.props.dataOrigin.dataSource ? (t(), i(h2, { key: 2, label: "数据集", class: "amb-design-attr-item" }, { default: n(() => [u(D2, { modelValue: e2.configure.props.dataOrigin.service.serviceDataField, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.props.dataOrigin.service.serviceDataField = a3), placeholder: "请选择" }, { default: n(() => [(t(true), s(m, null, g(B.value, (e3, a3) => (t(), i(j3, { key: a3, label: e3.label, value: e3.value }, { default: n(() => [r("span", S, f(e3.label), 1), r("span", x, f(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true), "service" === e2.configure.props.dataOrigin.dataSource ? (t(), i(h2, { key: 3, label: "立即查询", class: "amb-design-attr-item" }, { default: n(() => [u(k2, { modelValue: e2.configure.initializationQuery, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.initializationQuery = a3), class: "ml-4" }, { default: n(() => [u(V2, { value: true }, { default: n(() => l2[15] || (l2[15] = [c("是")])), _: 1 }), u(V2, { value: false }, { default: n(() => l2[16] || (l2[16] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true), u(h2, { label: "行列转换", class: "amb-design-attr-item" }, { default: n(() => [u(k2, { modelValue: e2.configure.props.dataOrigin.transition, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.dataOrigin.transition = a3), class: "ml-4" }, { default: n(() => [u(V2, { value: false }, { default: n(() => l2[17] || (l2[17] = [c("否")])), _: 1 }), u(V2, { value: "rowToColumn" }, { default: n(() => l2[18] || (l2[18] = [c("行转列")])), _: 1 }), u(V2, { value: "columnToRow" }, { default: n(() => l2[19] || (l2[19] = [c("列转行")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(h2, { label: "使用分组", class: "amb-design-attr-item" }, { default: n(() => [u(k2, { modelValue: e2.configure.props.dataOrigin.useGroup, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.dataOrigin.useGroup = a3), class: "ml-4" }, { default: n(() => [u(V2, { value: true }, { default: n(() => l2[20] || (l2[20] = [c("是")])), _: 1 }), u(V2, { value: false }, { default: n(() => l2[21] || (l2[21] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), e2.configure.props.dataOrigin.transition && e2.configure.props.dataOrigin.useGroup ? (t(), i(h2, { key: 4, title: "统计分组字段", label: "分组字段", class: "amb-design-attr-item" }, { default: n(() => [u(D2, { modelValue: e2.configure.props.dataOrigin.groupField, "onUpdate:modelValue": l2[6] || (l2[6] = (a3) => e2.configure.props.dataOrigin.groupField = a3), multiple: "", placeholder: "请选择" }, { default: n(() => [(t(true), s(m, null, g(e2.configure.items, (e3, a3) => (t(), i(j3, { key: e3.uuid, label: e3.props.base.name, value: e3.props.base.prop }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true), "rowToColumn" === e2.configure.props.dataOrigin.transition ? (t(), s(m, { key: 5 }, [u(h2, { label: "标题列字段", class: "amb-design-attr-item" }, { label: n(() => [u(M2, { class: "box-item", placement: "left", content: "标题列为行转列时,原数据列的值转换后多个新列的标题值对应的字段" }, { default: n(() => l2[22] || (l2[22] = [c(" 标题列字段 ")])), _: 1 })]), default: n(() => [u(D2, { modelValue: e2.configure.props.dataOrigin.rowToColumn.titleColumns, "onUpdate:modelValue": l2[7] || (l2[7] = (a3) => e2.configure.props.dataOrigin.rowToColumn.titleColumns = a3), multiple: "", placeholder: "请选择" }, { default: n(() => [(t(true), s(m, null, g(e2.sourceFields, (e3, a3) => (t(), i(j3, { key: a3, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), e2.configure.props.dataOrigin.useGroup ? d("", true) : (t(), i(h2, { key: 0, label: "首列标题", class: "amb-design-attr-item" }, { default: n(() => [u(z2, { modelValue: e2.configure.props.dataOrigin.rowToColumn.firstColumnTitle, "onUpdate:modelValue": l2[8] || (l2[8] = (a3) => e2.configure.props.dataOrigin.rowToColumn.firstColumnTitle = a3) }, null, 8, ["modelValue"])]), _: 1 })), u(h2, { class: "amb-design-attr-item" }, { label: n(() => [u(M2, { class: "box-item", placement: "left", content: "哪些字段填充为新列的数据" }, { default: n(() => l2[23] || (l2[23] = [c(" 数据列字段 ")])), _: 1 })]), default: n(() => [u(D2, { modelValue: e2.configure.props.dataOrigin.rowToColumn.dataColumns, "onUpdate:modelValue": l2[9] || (l2[9] = (a3) => e2.configure.props.dataOrigin.rowToColumn.dataColumns = a3), multiple: "", placeholder: "请选择" }, { default: n(() => [(t(true), s(m, null, g(e2.sourceFields, (e3, a3) => (t(), i(j3, { key: a3, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })], 64)) : d("", true), "columnToRow" === e2.configure.props.dataOrigin.transition ? (t(), s(m, { key: 6 }, [u(h2, { label: "标题列", class: "amb-design-attr-item" }, { default: n(() => [u(G2, { type: "primary", onClick: l2[10] || (l2[10] = (a3) => e2.configure.props.dataOrigin.columnToRow.titleColumns.push({ prop: "", title: "" })) }, { default: n(() => l2[24] || (l2[24] = [c(" 添加")])), _: 1 }), u(M2, { class: "box-item", content: "标题列为列转行后,原数据列的标题转换为表格新的一列数据时该列的标题" }, { default: n(() => [u(A2, null, { default: n(() => [u(b(_))]), _: 1 })]), _: 1 })]), _: 1 }), ((_a = e2.configure.props.dataOrigin.columnToRow.titleColumns) == null ? void 0 : _a.length) > 0 ? (t(), i(T, { key: 0, sourceFields: e2.sourceFields, tableData: e2.configure.props.dataOrigin.columnToRow.titleColumns }, null, 8, ["sourceFields", "tableData"])) : d("", true), "columnToRow" === e2.configure.props.dataOrigin.transition ? (t(), i(h2, { key: 1, label: "转换列字段", class: "amb-design-attr-item" }, { default: n(() => [u(G2, { type: "primary", onClick: $ }, { default: n(() => l2[25] || (l2[25] = [c("添加")])), _: 1 }), u(G2, { onClick: q }, { default: n(() => l2[26] || (l2[26] = [c("删除")])), _: 1 })]), _: 1 })) : d("", true), "columnToRow" === e2.configure.props.dataOrigin.transition ? (t(), i(K, { key: 2, data: e2.configure.props.dataOrigin.columnToRow.transColumns, style: { width: "100%", "margin-bottom": "8px" } }, { default: n(() => [u(I2, { "header-align": "center", align: "center" }, { default: n((a3) => [u(A2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => e2.configure.props.dataOrigin.columnToRow.transColumns.splice(a3.$index, 1) }, { default: n(() => [u(b(C))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), u(I2, { label: "列", "header-align": "center", align: "center" }, { default: n((a3) => [u(D2, { modelValue: a3.row.columns, "onUpdate:modelValue": (e3) => a3.row.columns = e3, multiple: "", placeholder: "请选择" }, { default: n(() => [(t(true), s(m, null, g(e2.sourceFields, (e3, a4) => (t(), i(j3, { key: a4, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(I2, { label: "显示值", "header-align": "center", align: "center" }, { default: n((e3) => [u(z2, { modelValue: e3.row.label, "onUpdate:modelValue": (a3) => e3.row.label = a3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(I2, { label: "关联列", "header-align": "center", align: "center" }, { default: n((a3) => [u(D2, { modelValue: a3.row.relatedTitle, "onUpdate:modelValue": (e3) => a3.row.relatedTitle = e3, placeholder: "请选择" }, { default: n(() => [(t(true), s(m, null, g(e2.configure.props.dataOrigin.columnToRow.titleColumns, (e3, a4) => (t(), i(j3, { key: a4, label: e3.title, value: e3.prop }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])) : d("", true), u(P), u(h2, { label: "数据列", class: "amb-design-attr-item" }, { default: n(() => [u(G2, { type: "primary", onClick: l2[11] || (l2[11] = (a3) => e2.configure.props.dataOrigin.columnToRow.dataColumns.push({ prop: "", title: "" })) }, { default: n(() => l2[27] || (l2[27] = [c(" 添加 ")])), _: 1 }), u(M2, { class: "box-item", content: "数据列为列转行后,原数据列中的内容转换为表格新的一列数据时该列的标题" }, { default: n(() => [u(A2, null, { default: n(() => [u(b(_))]), _: 1 })]), _: 1 })]), _: 1 }), u(T, { sourceFields: e2.sourceFields, tableData: e2.configure.props.dataOrigin.columnToRow.dataColumns }, null, 8, ["sourceFields", "tableData"]), ((_b = e2.configure.props.dataOrigin.columnToRow.dataColumns) == null ? void 0 : _b.length) > 1 ? (t(), i(h2, { key: 3, label: "数据列分组", class: "amb-design-attr-item" }, { default: n(() => [u(G2, { type: "primary", onClick: J }, { default: n(() => l2[28] || (l2[28] = [c(" 添加 ")])), _: 1 }), u(M2, { class: "box-item", content: "当原始数据中不同的列要在转换后分成多个新列时,需要设置转换后的哪几列数据需要在同一行中" }, { default: n(() => [u(A2, null, { default: n(() => [u(b(_))]), _: 1 })]), _: 1 })]), _: 1 })) : d("", true), (t(true), s(m, null, g(e2.configure.props.dataOrigin.columnToRow.dataColumnsMapping, (a3, l3) => (t(), i(h2, { key: a3.key, label: "分组" + (l3 + 1) }, { default: n(() => [u(W, { span: 20 }, { default: n(() => [u(D2, { modelValue: e2.configure.props.dataOrigin.columnToRow.dataColumnsMapping[l3].props, "onUpdate:modelValue": (a4) => e2.configure.props.dataOrigin.columnToRow.dataColumnsMapping[l3].props = a4, multiple: "", placeholder: "请选择" }, { default: n(() => [(t(true), s(m, null, g(e2.sourceFields, (e3, a4) => (t(), i(j3, { key: a4, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), u(A2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: v((a4) => e2.configure.props.dataOrigin.columnToRow.dataColumnsMapping.splice(l3, 1), ["prevent"]) }, { default: n(() => [u(b(C))]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["label"]))), 128))], 64)) : d("", true), u(h2, { label: "数据格式化", class: "amb-design-attr-item" }, { default: n(() => [u(D2, { modelValue: e2.configure.props.dataOrigin.dataFormatting, "onUpdate:modelValue": l2[12] || (l2[12] = (a3) => e2.configure.props.dataOrigin.dataFormatting = a3), placeholder: "请选择", clearable: "" }, { default: n(() => [(t(true), s(m, null, g(b(F)(), (e3) => (t(), i(j3, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "service" === e2.configure.props.dataOrigin.dataSource ? (t(), i(h2, { key: 7, label: "设置到变量", class: "amb-design-attr-item" }, { default: n(() => [(t(), i(R, { key: e2.configure.uuid, modelValue: e2.configure.props.dataOrigin.fields, "onUpdate:modelValue": H }, null, 8, ["modelValue"]))]), _: 1 })) : d("", true), p(u(y, { ref: "dataOriginServiceInRef", dataOrigin: b(Q) }, null, 8, ["dataOrigin"]), [[O, "service" == e2.configure.props.dataOrigin.dataSource]])])];
|
|
60
|
+
return [n("div", F, [u(k2, { label: "数据来源", class: "amb-design-attr-item" }, { default: r(() => [u(h2, { modelValue: e2.configure.props.dataOrigin.dataSource, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.props.dataOrigin.dataSource = a3), onChange: $ }, { default: r(() => [u(y2, { value: "variable" }, { default: r(() => l2[18] || (l2[18] = [c("变量")])), _: 1 }), u(y2, { value: "service" }, { default: r(() => l2[19] || (l2[19] = [c("服务")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "variable" === e2.configure.props.dataOrigin.dataSource ? (t(), i(k2, { key: 0, label: "选择变量", class: "amb-design-attr-item" }, { default: r(() => [(t(), i(R, { key: e2.configure.uuid, modelValue: e2.configure.props.dataOrigin.variable, "onUpdate:modelValue": J }, null, 8, ["modelValue"]))]), _: 1 })) : d("", true), "service" === e2.configure.props.dataOrigin.dataSource ? (t(), i(k2, { key: 1, label: "选择服务", class: "amb-design-attr-item" }, { default: r(() => [u(w, { pageDesign: e2.pageDesign, rowObj: e2.configure.props.dataOrigin.service, onlyService: "", "onUpdate:modelValue": l2[1] || (l2[1] = (e3, a3, l3, o2) => function(e4, a4, l4, o3) {
|
|
61
|
+
A.service.simpleCode = a4, A.service.id = o3, A.service.name = l4, B();
|
|
62
|
+
}(0, a3, l3, o2)) }, null, 8, ["pageDesign", "rowObj"])]), _: 1 })) : d("", true), "service" === e2.configure.props.dataOrigin.dataSource ? (t(), i(k2, { key: 2, label: "数据集", class: "amb-design-attr-item" }, { default: r(() => [u(z2, { modelValue: e2.configure.props.dataOrigin.service.serviceDataField, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.props.dataOrigin.service.serviceDataField = a3), placeholder: "请选择" }, { default: r(() => [(t(true), s(m, null, g(L.value, (e3, a3) => (t(), i(N3, { key: a3, label: e3.label, value: e3.value }, { default: r(() => [n("span", x, f(e3.label), 1), n("span", S, f(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true), "service" === e2.configure.props.dataOrigin.dataSource ? (t(), i(k2, { key: 3, label: "立即查询", class: "amb-design-attr-item" }, { default: r(() => [u(h2, { modelValue: e2.configure.initializationQuery, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.initializationQuery = a3), class: "ml-4" }, { default: r(() => [u(y2, { value: true }, { default: r(() => l2[20] || (l2[20] = [c("是")])), _: 1 }), u(y2, { value: false }, { default: r(() => l2[21] || (l2[21] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true), u(k2, { label: "行列转换", class: "amb-design-attr-item" }, { default: r(() => [u(h2, { modelValue: e2.configure.props.dataOrigin.transition, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.dataOrigin.transition = a3), class: "ml-4" }, { default: r(() => [u(y2, { value: false }, { default: r(() => l2[22] || (l2[22] = [c("否")])), _: 1 }), u(y2, { value: "rowToColumn" }, { default: r(() => l2[23] || (l2[23] = [c("行转列")])), _: 1 }), u(y2, { value: "columnToRow" }, { default: r(() => l2[24] || (l2[24] = [c("列转行")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(k2, { label: "使用分组", class: "amb-design-attr-item" }, { default: r(() => [u(h2, { modelValue: e2.configure.props.dataOrigin.useGroup, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.dataOrigin.useGroup = a3), class: "ml-4" }, { default: r(() => [u(y2, { value: true }, { default: r(() => l2[25] || (l2[25] = [c("是")])), _: 1 }), u(y2, { value: false }, { default: r(() => l2[26] || (l2[26] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), e2.configure.props.dataOrigin.transition && e2.configure.props.dataOrigin.useGroup ? (t(), i(k2, { key: 4, title: "统计分组字段", label: "分组字段", class: "amb-design-attr-item" }, { default: r(() => [u(z2, { modelValue: e2.configure.props.dataOrigin.groupField, "onUpdate:modelValue": l2[6] || (l2[6] = (a3) => e2.configure.props.dataOrigin.groupField = a3), multiple: "", placeholder: "请选择" }, { default: r(() => [(t(true), s(m, null, g(e2.configure.items, (e3, a3) => (t(), i(N3, { key: e3.uuid, label: e3.props.base.name, value: e3.props.base.prop }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true), "rowToColumn" === e2.configure.props.dataOrigin.transition ? (t(), s(m, { key: 5 }, [u(k2, { label: "标题列字段", class: "amb-design-attr-item" }, { label: r(() => [u(M2, { class: "box-item", placement: "left", content: "标题列为行转列时,原数据列的值转换后多个新列的标题值对应的字段" }, { default: r(() => l2[27] || (l2[27] = [c(" 标题列字段 ")])), _: 1 })]), default: r(() => [u(z2, { modelValue: e2.configure.props.dataOrigin.rowToColumn.titleColumns, "onUpdate:modelValue": l2[7] || (l2[7] = (a3) => e2.configure.props.dataOrigin.rowToColumn.titleColumns = a3), multiple: "", placeholder: "请选择" }, { default: r(() => [(t(true), s(m, null, g(e2.sourceFields, (e3, a3) => (t(), i(N3, { key: a3, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), e2.configure.props.dataOrigin.useGroup ? d("", true) : (t(), i(k2, { key: 0, label: "首列标题", class: "amb-design-attr-item" }, { default: r(() => [u(E2, { modelValue: e2.configure.props.dataOrigin.rowToColumn.firstColumnTitle, "onUpdate:modelValue": l2[8] || (l2[8] = (a3) => e2.configure.props.dataOrigin.rowToColumn.firstColumnTitle = a3) }, null, 8, ["modelValue"])]), _: 1 })), u(k2, { class: "amb-design-attr-item" }, { label: r(() => [u(M2, { class: "box-item", placement: "left", content: "哪些字段填充为新列的数据" }, { default: r(() => l2[28] || (l2[28] = [c(" 数据列字段 ")])), _: 1 })]), default: r(() => [u(z2, { modelValue: e2.configure.props.dataOrigin.rowToColumn.dataColumns, "onUpdate:modelValue": l2[9] || (l2[9] = (a3) => e2.configure.props.dataOrigin.rowToColumn.dataColumns = a3), multiple: "", placeholder: "请选择" }, { default: r(() => [(t(true), s(m, null, g(e2.sourceFields, (e3, a3) => (t(), i(N3, { key: a3, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })], 64)) : d("", true), "columnToRow" === e2.configure.props.dataOrigin.transition ? (t(), s(m, { key: 6 }, [u(k2, { label: "标题列", class: "amb-design-attr-item" }, { default: r(() => [u(G2, { type: "primary", onClick: l2[10] || (l2[10] = (a3) => e2.configure.props.dataOrigin.columnToRow.titleColumns.push({ prop: "", title: "" })) }, { default: r(() => l2[29] || (l2[29] = [c(" 添加")])), _: 1 }), u(M2, { class: "box-item", content: "标题列为列转行后,原数据列的标题转换为表格新的一列数据时该列的标题" }, { default: r(() => [u(I2, null, { default: r(() => [u(b(_))]), _: 1 })]), _: 1 })]), _: 1 }), ((_a = e2.configure.props.dataOrigin.columnToRow.titleColumns) == null ? void 0 : _a.length) > 0 ? (t(), i(T, { key: 0, sourceFields: e2.sourceFields, tableData: e2.configure.props.dataOrigin.columnToRow.titleColumns }, null, 8, ["sourceFields", "tableData"])) : d("", true), "columnToRow" === e2.configure.props.dataOrigin.transition ? (t(), i(k2, { key: 1, label: "转换列字段", class: "amb-design-attr-item" }, { default: r(() => [u(G2, { type: "primary", onClick: q }, { default: r(() => l2[30] || (l2[30] = [c("添加")])), _: 1 }), u(G2, { type: "default", onClick: H }, { default: r(() => l2[31] || (l2[31] = [c("删除")])), _: 1 })]), _: 1 })) : d("", true), "columnToRow" === e2.configure.props.dataOrigin.transition ? (t(), i(X, { key: 2, data: e2.configure.props.dataOrigin.columnToRow.transColumns, style: { width: "100%", "margin-bottom": "8px" } }, { default: r(() => [u(Q2, { "header-align": "center", align: "center" }, { default: r((a3) => [u(I2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => e2.configure.props.dataOrigin.columnToRow.transColumns.splice(a3.$index, 1) }, { default: r(() => [u(b(V))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), u(Q2, { label: "列", "header-align": "center", align: "center" }, { default: r((a3) => [u(z2, { modelValue: a3.row.columns, "onUpdate:modelValue": (e3) => a3.row.columns = e3, multiple: "", placeholder: "请选择" }, { default: r(() => [(t(true), s(m, null, g(e2.sourceFields, (e3, a4) => (t(), i(N3, { key: a4, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(Q2, { label: "显示值", "header-align": "center", align: "center" }, { default: r((e3) => [u(E2, { modelValue: e3.row.label, "onUpdate:modelValue": (a3) => e3.row.label = a3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(Q2, { label: "关联列", "header-align": "center", align: "center" }, { default: r((a3) => [u(z2, { modelValue: a3.row.relatedTitle, "onUpdate:modelValue": (e3) => a3.row.relatedTitle = e3, placeholder: "请选择" }, { default: r(() => [(t(true), s(m, null, g(e2.configure.props.dataOrigin.columnToRow.titleColumns, (e3, a4) => (t(), i(N3, { key: a4, label: e3.title, value: e3.prop }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])) : d("", true), u(Y), u(k2, { label: "数据列", class: "amb-design-attr-item" }, { default: r(() => [u(G2, { type: "primary", onClick: l2[11] || (l2[11] = (a3) => e2.configure.props.dataOrigin.columnToRow.dataColumns.push({ prop: "", title: "" })) }, { default: r(() => l2[32] || (l2[32] = [c(" 添加 ")])), _: 1 }), u(M2, { class: "box-item", content: "数据列为列转行后,原数据列中的内容转换为表格新的一列数据时该列的标题" }, { default: r(() => [u(I2, null, { default: r(() => [u(b(_))]), _: 1 })]), _: 1 })]), _: 1 }), u(T, { sourceFields: e2.sourceFields, tableData: e2.configure.props.dataOrigin.columnToRow.dataColumns }, null, 8, ["sourceFields", "tableData"]), ((_b = e2.configure.props.dataOrigin.columnToRow.dataColumns) == null ? void 0 : _b.length) > 1 ? (t(), i(k2, { key: 3, label: "数据列分组", class: "amb-design-attr-item" }, { default: r(() => [u(G2, { type: "primary", onClick: W }, { default: r(() => l2[33] || (l2[33] = [c(" 添加 ")])), _: 1 }), u(M2, { class: "box-item", content: "当原始数据中不同的列要在转换后分成多个新列时,需要设置转换后的哪几列数据需要在同一行中" }, { default: r(() => [u(I2, null, { default: r(() => [u(b(_))]), _: 1 })]), _: 1 })]), _: 1 })) : d("", true), (t(true), s(m, null, g(e2.configure.props.dataOrigin.columnToRow.dataColumnsMapping, (a3, l3) => (t(), i(k2, { key: a3.key, label: "分组" + (l3 + 1) }, { default: r(() => [u(Z, { span: 20 }, { default: r(() => [u(z2, { modelValue: e2.configure.props.dataOrigin.columnToRow.dataColumnsMapping[l3].props, "onUpdate:modelValue": (a4) => e2.configure.props.dataOrigin.columnToRow.dataColumnsMapping[l3].props = a4, multiple: "", placeholder: "请选择" }, { default: r(() => [(t(true), s(m, null, g(e2.sourceFields, (e3, a4) => (t(), i(N3, { key: a4, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), u(I2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: v((a4) => e2.configure.props.dataOrigin.columnToRow.dataColumnsMapping.splice(l3, 1), ["prevent"]) }, { default: r(() => [u(b(V))]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["label"]))), 128))], 64)) : d("", true), u(k2, { label: "数据格式化", class: "amb-design-attr-item" }, { default: r(() => [u(z2, { modelValue: e2.configure.props.dataOrigin.dataFormatting, "onUpdate:modelValue": l2[12] || (l2[12] = (a3) => e2.configure.props.dataOrigin.dataFormatting = a3), placeholder: "请选择", clearable: "" }, { default: r(() => [(t(true), s(m, null, g(b(U)(), (e3) => (t(), i(N3, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "service" === e2.configure.props.dataOrigin.dataSource ? (t(), i(k2, { key: 7, label: "设置到变量", class: "amb-design-attr-item" }, { default: r(() => [(t(), i(R, { key: e2.configure.uuid, modelValue: e2.configure.props.dataOrigin.fields, "onUpdate:modelValue": K }, null, 8, ["modelValue"]))]), _: 1 })) : d("", true), u(k2, { label: "限制数量", class: "amb-design-attr-item" }, { default: r(() => [u(ee, { modelValue: e2.configure.props.dataOrigin.limitEnable, "onUpdate:modelValue": l2[13] || (l2[13] = (a3) => e2.configure.props.dataOrigin.limitEnable = a3) }, null, 8, ["modelValue"])]), _: 1 }), e2.configure.props.dataOrigin.limitEnable ? (t(), i(k2, { key: 8, label: "需合计字段", class: "amb-design-attr-item" }, { default: r(() => [u(z2, { modelValue: e2.configure.props.dataOrigin.limitCountColumns, "onUpdate:modelValue": l2[14] || (l2[14] = (a3) => e2.configure.props.dataOrigin.limitCountColumns = a3), placeholder: "Select", multiple: "", "allow-create": "", filterable: "" }, { default: r(() => [(t(true), s(m, null, g(e2.sourceFields, (e3) => (t(), i(N3, { key: e3.value, label: e3.label, value: e3.value }, { default: r(() => [n("span", j, f(e3.label), 1), n("span", D, f(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true), p(u(k2, { label: "" }, { default: r(() => [u(ae, { type: "success", size: "small" }, { default: r(() => l2[34] || (l2[34] = [c("未设置时默认合计超出行中类型为number类型的字段")])), _: 1 })]), _: 1 }, 512), [[O, e2.configure.props.dataOrigin.limitEnable]]), p(u(h2, { modelValue: e2.configure.props.dataOrigin.itemNumSource, "onUpdate:modelValue": l2[16] || (l2[16] = (a3) => e2.configure.props.dataOrigin.itemNumSource = a3) }, { default: r(() => [u(k2, null, { label: r(() => [u(y2, { value: "fix" }, { default: r(() => l2[35] || (l2[35] = [c("固定数量")])), _: 1 })]), default: r(() => [u(le, { disabled: e2.configure.props.dataOrigin.itemNumSource && "fix" != e2.configure.props.dataOrigin.itemNumSource, placeholder: "10", modelValue: e2.configure.props.dataOrigin.itemNumFix, "onUpdate:modelValue": l2[15] || (l2[15] = (a3) => e2.configure.props.dataOrigin.itemNumFix = a3), min: 1 }, null, 8, ["disabled", "modelValue"])]), _: 1 }), u(k2, { style: { "margin-top": "-10px" } }, { label: r(() => [u(y2, { value: "variable" }, { default: r(() => l2[36] || (l2[36] = [c("数量变量")])), _: 1 })]), default: r(() => [u(R, { showLabel: "variable" != e2.configure.props.dataOrigin.itemNumSource, modelValue: e2.configure.props.dataOrigin.itemNumVariable, paramTypes: ["data", "page"], "onUpdate:modelValue": P }, null, 8, ["showLabel", "modelValue"]), p(u(ae, { type: "success", size: "small" }, { default: r(() => l2[37] || (l2[37] = [c("将根据此变量控制显示数量")])), _: 1 }, 512), [[O, "variable" == e2.configure.props.dataOrigin.itemNumSource]])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), [[O, e2.configure.props.dataOrigin.limitEnable]]), p(u(k2, { class: "amb-design-attr-item", label: "超出时别名" }, { default: r(() => [u(E2, { modelValue: e2.configure.props.dataOrigin.overItemAlias, "onUpdate:modelValue": l2[17] || (l2[17] = (a3) => e2.configure.props.dataOrigin.overItemAlias = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[O, e2.configure.props.dataOrigin.limitEnable]]), p(u(k2, { label: "" }, { default: r(() => [u(ae, { type: "success", size: "small" }, { default: r(() => l2[38] || (l2[38] = [c("未设置时不显示超出数量的数据项")])), _: 1 })]), _: 1 }, 512), [[O, e2.configure.props.dataOrigin.limitEnable]]), p(u(C, { ref: "dataOriginServiceInRef", dataOrigin: b(A) }, null, 8, ["dataOrigin"]), [[O, "service" == e2.configure.props.dataOrigin.dataSource]])])];
|
|
60
63
|
}), _: 1 });
|
|
61
64
|
};
|
|
62
65
|
} });
|
|
63
66
|
export {
|
|
64
|
-
|
|
67
|
+
N as default
|
|
65
68
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as l, ref as e, resolveComponent as a, createElementBlock as t, openBlock as u, Fragment as o, createElementVNode as d, createBlock as n, createCommentVNode as p, createVNode as r, withCtx as
|
|
1
|
+
import { defineComponent as l, ref as e, resolveComponent as a, createElementBlock as t, openBlock as u, Fragment as o, createElementVNode as d, createBlock as n, createCommentVNode as p, createVNode as r, withCtx as s, createTextVNode as f, renderList as m } from "vue";
|
|
2
2
|
import { ElMessage as i } from "element-plus";
|
|
3
|
-
const
|
|
4
|
-
} }, title: { type: String, default: "设置样式" } }, setup(l2) {
|
|
5
|
-
const
|
|
6
|
-
function
|
|
3
|
+
const v = { style: { padding: "0 10px" } }, y = l({ __name: "font-style-dialog", props: { data: { type: Object, required: true, default: () => {
|
|
4
|
+
} }, title: { type: String, default: "设置样式" } }, emits: ["update:data"], setup(l2, { emit: y2 }) {
|
|
5
|
+
const c = l2, _ = y2, V = ["8px", "10px", "12px", "14px", "16px", "18px", "20px", "24px", "28px"], b = e(false), x = e({});
|
|
6
|
+
function S(l3) {
|
|
7
7
|
try {
|
|
8
|
-
|
|
8
|
+
x.value.customStyle && JSON.parse(x.value.customStyle), _("update:data", x.value), l3();
|
|
9
9
|
} catch (l4) {
|
|
10
10
|
i.error("style需要是json格式");
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
13
|
+
function g() {
|
|
14
|
+
c.data && (x.value = c.data), x.value.style || (x.value.style = {}), b.value = true;
|
|
15
15
|
}
|
|
16
|
-
return
|
|
17
|
-
const
|
|
18
|
-
return u(), t(o, null, [d("div", null, [r(
|
|
16
|
+
return c.data && (x.value = c.data), x.value.style || (x.value.style = {}), (e2, i2) => {
|
|
17
|
+
const y3 = a("el-button"), c2 = a("el-radio"), _2 = a("el-radio-group"), h = a("el-form-item"), U = a("el-col"), k = a("el-row"), w = a("el-color-picker"), z = a("el-option"), C = a("el-select"), j = a("el-text"), O = a("el-input"), W = a("el-form"), q = a("el-dialog");
|
|
18
|
+
return u(), t(o, null, [d("div", null, [r(y3, { type: "primary", onClick: g }, { default: s(() => i2[7] || (i2[7] = [f("编辑")])), _: 1 })]), b.value ? (u(), n(q, { key: 0, modelValue: b.value, "onUpdate:modelValue": i2[6] || (i2[6] = (l3) => b.value = l3), "destroy-on-close": "", title: l2.title, width: "900", "append-to-body": "", "before-close": S }, { default: s(() => [r(W, { model: x.value, "label-width": "80" }, { default: s(() => [r(k, null, { default: s(() => [r(U, { span: 12 }, { default: s(() => [r(h, { label: "加粗" }, { default: s(() => [r(_2, { modelValue: x.value.style.fontWeight, "onUpdate:modelValue": i2[0] || (i2[0] = (l3) => x.value.style.fontWeight = l3), class: "ml-4" }, { default: s(() => [r(c2, { value: "bold" }, { default: s(() => i2[8] || (i2[8] = [f("是")])), _: 1 }), r(c2, { value: "normal" }, { default: s(() => i2[9] || (i2[9] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 }), r(U, { span: 12 }, { default: s(() => [r(h, { label: "倾斜" }, { default: s(() => [r(_2, { modelValue: x.value.style.fontStyle, "onUpdate:modelValue": i2[1] || (i2[1] = (l3) => x.value.style.fontStyle = l3), class: "ml-4" }, { default: s(() => [r(c2, { value: "italic" }, { default: s(() => i2[10] || (i2[10] = [f("是")])), _: 1 }), r(c2, { value: "normal" }, { default: s(() => i2[11] || (i2[11] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), r(k, null, { default: s(() => [r(U, { span: 12 }, { default: s(() => [r(h, { label: "字体颜色" }, { default: s(() => [r(w, { modelValue: x.value.style.color, "onUpdate:modelValue": i2[2] || (i2[2] = (l3) => x.value.style.color = l3) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), r(U, { span: 12 }, { default: s(() => [r(h, { label: "背景颜色" }, { default: s(() => [r(w, { modelValue: x.value.style.backgroundColor, "onUpdate:modelValue": i2[3] || (i2[3] = (l3) => x.value.style.backgroundColor = l3) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), r(k, null, { default: s(() => [r(U, { span: 12 }, { default: s(() => [r(h, { label: "字号" }, { default: s(() => [r(C, { modelValue: x.value.style.fontSize, "onUpdate:modelValue": i2[4] || (i2[4] = (l3) => x.value.style.fontSize = l3), placeholder: "默认", clearable: "" }, { default: s(() => [(u(), t(o, null, m(V, (l3) => r(z, { label: l3, value: l3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), r(k, null, { default: s(() => [r(U, { span: 24 }, { default: s(() => [r(h, { label: " style" }, { default: s(() => [d("div", v, [r(j, { type: "primary" }, { default: s(() => i2[12] || (i2[12] = [f('格式如:{"fontSize": "24px", "padding": "10px", "color":"red"}')])), _: 1 })]), r(O, { modelValue: x.value.customStyle, "onUpdate:modelValue": i2[5] || (i2[5] = (l3) => x.value.customStyle = l3), rows: 5, type: "textarea", placeholder: "" }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["modelValue", "title"])) : p("", true)], 64);
|
|
19
19
|
};
|
|
20
20
|
} });
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
y as default
|
|
23
23
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as a, watch as l, resolveComponent as t, createBlock as o, openBlock as n, withCtx as i, createCommentVNode as r, createVNode as u, createElementBlock as d, Fragment as p, renderList as s, unref as c } from "vue";
|
|
2
2
|
import f from "./table-showcondition.vue.js";
|
|
3
3
|
import m from "./font-style-dialog.vue.js";
|
|
4
4
|
import { getCustomFuncs as g } from "../../../../../utils/page-event-util.js";
|
|
5
|
-
const
|
|
5
|
+
const y = e({ __name: "style-table", props: { configure: { type: Object, default: () => {
|
|
6
6
|
} }, data: { type: Array, default: () => [] }, showField: { type: Boolean, default: false }, showCondition: { type: Boolean, default: false }, paramTypes: { type: Array, default: () => ["data", "task", "page", "request", "row"] }, pageDesign: { type: Object, default: () => {
|
|
7
|
-
} } }, emits: ["dataChange"], setup(e2, { emit:
|
|
8
|
-
const
|
|
7
|
+
} } }, emits: ["dataChange"], setup(e2, { emit: y2 }) {
|
|
8
|
+
const v = e2, w = y2, b = a([]);
|
|
9
9
|
function h(e3) {
|
|
10
10
|
e3.row && (e3.row.matchingCondition = e3.data);
|
|
11
11
|
}
|
|
12
|
-
return
|
|
12
|
+
return v.data && Array.isArray(v.data) && (b.value = v.data), b.value && 0 != b.value.length || b.value.push({ matchingCondition: [], eventCallBack: "", style: {} }), l(() => b.value, (e3) => {
|
|
13
13
|
w("dataChange", b.value);
|
|
14
|
-
}, { deep: true }), (
|
|
15
|
-
const
|
|
16
|
-
return n(), o(V, { data: b.value, style: { width: "100%" } }, { default: i(() => [e2.showCondition ? (n(), o(
|
|
17
|
-
return e3.row,
|
|
18
|
-
var
|
|
19
|
-
} }, { default: i(() => [
|
|
14
|
+
}, { deep: true }), (a2, l2) => {
|
|
15
|
+
const y3 = t("el-table-column"), v2 = t("el-option"), w2 = t("el-select"), C = t("Plus"), k = t("el-icon"), _ = t("Delete"), V = t("el-table");
|
|
16
|
+
return n(), o(V, { data: b.value, style: { width: "100%" } }, { default: i(() => [e2.showCondition ? (n(), o(y3, { key: 0, label: "条件", width: "55", align: "center" }, { default: i((a3) => [u(f, { paramTypes: e2.paramTypes, title: "匹配条件/生效条件", row: a3.row, data: a3.row.matchingCondition, pageDesign: e2.pageDesign, tableConfigure: e2.configure, "onUpdate:data": h }, null, 8, ["paramTypes", "row", "data", "pageDesign", "tableConfigure"])]), _: 1 })) : r("", true), e2.showField ? (n(), o(y3, { key: 1, label: "字段", align: "center" }, { default: i((a3) => [u(w2, { modelValue: a3.row.field, "onUpdate:modelValue": (e3) => a3.row.field = e3, multiple: "", "allow-create": "", filterable: "", placeholder: "请选择" }, { default: i(() => [(n(true), d(p, null, s(e2.configure.items, (e3, a4) => (n(), o(v2, { key: e3.uuid, label: e3.props.base.name, value: e3.props.base.prop }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })) : r("", true), u(y3, { label: "自定义条件", align: "center" }, { default: i((e3) => [u(w2, { modelValue: e3.row.scopeFunc, "onUpdate:modelValue": (a3) => e3.row.scopeFunc = a3, clearable: "", title: e3.row.scopeFunc, size: "small", placeholder: "请选择" }, { default: i(() => [(n(true), d(p, null, s(c(g)(), (e4) => (n(), o(v2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), u(y3, { label: "样式", width: "55", align: "center" }, { default: i((e3) => [(n(), o(m, { key: e3.$index, data: e3.row, "onUpdate:data": (a3) => e3.row = a3 }, null, 8, ["data", "onUpdate:data"]))]), _: 1 }), u(y3, { label: "操作", align: "center" }, { default: i((e3) => [u(k, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (a3) => {
|
|
17
|
+
return e3.row, l3 = e3.$index, void b.value.splice(l3 + 1, 0, { matchingCondition: [], eventCallBack: "", style: {} });
|
|
18
|
+
var l3;
|
|
19
|
+
} }, { default: i(() => [u(C)]), _: 2 }, 1032, ["onClick"]), u(k, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (a3) => function(e4, a4) {
|
|
20
20
|
if (1 == b.value.length) return e4.matchingCondition = [], e4.eventCallBack = "", void (e4.style = {});
|
|
21
|
-
b.value.splice(
|
|
22
|
-
}(e3.row, e3.$index) }, { default: i(() => [
|
|
21
|
+
b.value.splice(a4, 1);
|
|
22
|
+
}(e3.row, e3.$index) }, { default: i(() => [u(_)]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]);
|
|
23
23
|
};
|
|
24
24
|
} });
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
y as default
|
|
27
27
|
};
|
|
@@ -5,19 +5,19 @@ import { isNumberType as g, getUuidv4 as w } from "../../../../../utils/common-u
|
|
|
5
5
|
import { usePageContextStore as y } from "../../../../../../../stores/page-store.js";
|
|
6
6
|
import { statisticsTable as h } from "../../../../../../../stores/statistics-table-store.js";
|
|
7
7
|
import { getModelOptionsByFields as V, getTableConfigByTableUuid as T } from "../../../../../utils/page-table-util.js";
|
|
8
|
-
const
|
|
8
|
+
const k = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, _ = e({ __name: "table-showcondition", props: { data: { type: Array, required: true, default: () => [] }, title: { type: String, default: "显示条件" }, paramTypes: { type: Array, default: () => ["data", "task", "page", "request", "row"] }, configure: { type: Object, default: () => {
|
|
9
9
|
} }, tableConfigure: { type: Object, default: () => {
|
|
10
10
|
} }, pageDesign: { type: Object, default: () => {
|
|
11
11
|
} }, row: { type: Object, default: () => {
|
|
12
|
-
} } }, emits: ["update:data"], setup(e2, { emit:
|
|
13
|
-
const N = y(), C = h(), O = e2, j =
|
|
12
|
+
} } }, emits: ["update:data"], setup(e2, { emit: _2 }) {
|
|
13
|
+
const N = y(), C = h(), O = e2, j = _2, U = l(300), x = l([]);
|
|
14
14
|
O.data && (x.value = O.data);
|
|
15
15
|
const B = l(false);
|
|
16
16
|
let L;
|
|
17
|
-
const
|
|
18
|
-
!
|
|
19
|
-
const
|
|
20
|
-
L && L.length > 0 && (
|
|
17
|
+
const I = O.pageDesign ? O.pageDesign.pageType : null;
|
|
18
|
+
!I || "form" !== I && "list" !== I || (L = O.pageDesign.modelFields);
|
|
19
|
+
const M = l(null);
|
|
20
|
+
L && L.length > 0 && (M.value = V(L));
|
|
21
21
|
const S = l(null);
|
|
22
22
|
function E(e3) {
|
|
23
23
|
e3 && (S.value = V(e3.modelFields));
|
|
@@ -55,7 +55,7 @@ const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
55
55
|
let a3, t2 = [];
|
|
56
56
|
l2.propName = e3;
|
|
57
57
|
let o2 = "";
|
|
58
|
-
if (e3 && e3.startsWith("${") && (a3 = e3.substring(2, e3.length - 1), a3.startsWith("page.") || (a3.startsWith("data.") ? (a3 = a3.substring(5), t2 =
|
|
58
|
+
if (e3 && e3.startsWith("${") && (a3 = e3.substring(2, e3.length - 1), a3.startsWith("page.") || (a3.startsWith("data.") ? (a3 = a3.substring(5), t2 = M.value, t2 && 0 !== t2.length || (t2 = N.pageContextVarOptions.dataOptions)) : a3.startsWith("row.") && (a3 = a3.substring(4), t2 = S.value, t2 && 0 !== t2.length || (t2 = C.columnList)))), t2 && a3) {
|
|
59
59
|
const e4 = t2.find((e5) => e5.value == a3);
|
|
60
60
|
e4 && (o2 = e4.dataType);
|
|
61
61
|
}
|
|
@@ -63,8 +63,8 @@ const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
return (l2, a2) => {
|
|
66
|
-
const w2 = t("el-button"), y2 = t("el-row"), h2 = t("Top"), V2 = t("el-icon"), T2 = t("Bottom"),
|
|
67
|
-
return u(), o(r, null, [d("div", null, [p(w2, { type: "primary", onClick: D }, { default: i(() => a2[1] || (a2[1] = [n("编辑")])), _: 1 })]), p(j2, { modelValue: B.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => B.value = e3), title: e2.title, width: "900", "append-to-body": "" }, { default: i(() => [p(y2, { style: { "padding-bottom": "8px" } }, { default: i(() => [p(w2, { icon: s(b), plain: "", type: "primary", onClick: A }, { default: i(() => a2[2] || (a2[2] = [n(" 添加 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), p(O2, { border: "", "highlight-current-row": "", onCurrentChange: W, data: x.value, style: { width: "100%" } }, { default: i(() => [p(
|
|
66
|
+
const w2 = t("el-button"), y2 = t("el-row"), h2 = t("Top"), V2 = t("el-icon"), T2 = t("Bottom"), _3 = t("el-table-column"), N2 = t("el-option"), C2 = t("el-select"), O2 = t("el-table"), j2 = t("el-dialog");
|
|
67
|
+
return u(), o(r, null, [d("div", null, [p(w2, { type: "primary", onClick: D }, { default: i(() => a2[1] || (a2[1] = [n("编辑")])), _: 1 })]), p(j2, { modelValue: B.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => B.value = e3), title: e2.title, width: "900", "append-to-body": "" }, { default: i(() => [p(y2, { style: { "padding-bottom": "8px" } }, { default: i(() => [p(w2, { icon: s(b), plain: "", type: "primary", onClick: A }, { default: i(() => a2[2] || (a2[2] = [n(" 添加 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), p(O2, { "row-key": "uuid", border: "", "highlight-current-row": "", onCurrentChange: W, data: x.value, style: { width: "100%" } }, { default: i(() => [p(_3, { label: "", width: "50" }, { default: i((e3) => [d("div", k, [p(V2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
68
68
|
let l4 = z(e4);
|
|
69
69
|
if (l4 < 1) return;
|
|
70
70
|
const a3 = x.value;
|
|
@@ -74,12 +74,12 @@ const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
74
74
|
if (-1 == l4 || x.value.length == l4 + 1) return;
|
|
75
75
|
const a3 = x.value;
|
|
76
76
|
[a3[l4], a3[l4 + 1]] = [a3[l4 + 1], a3[l4]];
|
|
77
|
-
}(e3.row) }, { default: i(() => [p(T2)]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), p(
|
|
77
|
+
}(e3.row) }, { default: i(() => [p(T2)]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), p(_3, { prop: "leftBracket", label: "(", width: "80" }, { default: i((e3) => [p(C2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", placeholder: "请选择" }, { default: i(() => [p(N2, { label: "", value: "" }), p(N2, { label: "(", value: "(" }), p(N2, { label: "((", value: "((" }), p(N2, { label: "(((", value: "(((" }), p(N2, { label: "((((", value: "((((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(_3, { prop: "propName", label: "字段名(*)", width: "150" }, { default: i((l3) => [p(v, { modelValue: l3.row.propName, dataModelOptions: M.value, objModelOptions: S.value, paramTypes: e2.paramTypes, "onUpdate:modelValue": (e3) => q(e3, l3.row, "propName") }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "paramTypes", "onUpdate:modelValue"])]), _: 1 }), p(_3, { prop: "operator", label: "操作符", width: "90" }, { default: i((e3) => [p(C2, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", placeholder: "请选择" }, { default: i(() => [s(g)(e3.row.dataType) ? (u(), m(N2, { key: 0, label: "大于", value: "GT" })) : c("", true), s(g)(e3.row.dataType) ? (u(), m(N2, { key: 1, label: "小于", value: "LT" })) : c("", true), "date" == e3.row.dataType || "datetime" == e3.row.dataType ? (u(), m(N2, { key: 2, label: "晚于", value: "GT" })) : c("", true), "date" == e3.row.dataType || "datetime" == e3.row.dataType ? (u(), m(N2, { key: 3, label: "早于", value: "LT" })) : c("", true), p(N2, { label: "等于", value: "EQ" }), s(g)(e3.row.dataType) ? (u(), m(N2, { key: 4, label: "小于等于", value: "LET" })) : c("", true), s(g)(e3.row.dataType) ? (u(), m(N2, { key: 5, label: "大于等于", value: "GET" })) : c("", true), "date" == e3.row.dataType || "datetime" == e3.row.dataType ? (u(), m(N2, { key: 6, label: "不晚于", value: "LET" })) : c("", true), "date" == e3.row.dataType || "datetime" == e3.row.dataType ? (u(), m(N2, { key: 7, label: "不早于", value: "GET" })) : c("", true), p(N2, { label: "不等于", value: "NET" }), p(N2, { label: "包含", value: "CONTAIN" }), p(N2, { label: "不包含", value: "NOT_CONTAIN" }), p(N2, { label: "等于Null", value: "IS_NULL" }), p(N2, { label: "不等于Null", value: "IS_NOT_NULL" }), p(N2, { label: "in", value: "IN" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(_3, { prop: "propValue", label: "值(*)", width: "150" }, { default: i((e3) => [p(v, { modelValue: e3.row.propValue, dataModelOptions: M.value, objModelOptions: S.value, "onUpdate:modelValue": (l3) => q(l3, e3.row, "propValue") }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "onUpdate:modelValue"])]), _: 1 }), p(_3, { prop: "rightBracket", label: ")", width: "80" }, { default: i((e3) => [p(C2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, placeholder: "请选择", clearable: "" }, { default: i(() => [p(N2, { label: "", value: "" }), p(N2, { label: ")", value: ")" }), p(N2, { label: "))", value: "))" }), p(N2, { label: ")))", value: ")))" }), p(N2, { label: "))))", value: "))))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(_3, { prop: "joinSign", label: "并且/或者", width: "80" }, { default: i((e3) => [p(C2, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", placeholder: "请选择" }, { default: i(() => [p(N2, { label: "或者", value: "or" }), p(N2, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(_3, { prop: "variableIsNull", label: "变量为空时", width: "120" }, { default: i((e3) => [p(C2, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", placeholder: "请选择" }, { default: i(() => [p(N2, { label: "Null", value: "null" }), p(N2, { label: "忽略(1=1)", value: "ignore" }), p(N2, { label: "不符合(1<>1)", value: "notequal" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(_3, { label: "操作", width: "60" }, { default: i((e3) => [p(V2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px", "margin-left": "6px" }, onClick: (l3) => A(e3.row) }, { default: i(() => [p(s(b))]), _: 2 }, 1032, ["onClick"]), p(V2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
78
78
|
let l4 = z(e4);
|
|
79
79
|
l4 > -1 && x.value.splice(l4, 1);
|
|
80
80
|
}(e3.row) }, { default: i(() => [p(s(f))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64);
|
|
81
81
|
};
|
|
82
82
|
} });
|
|
83
83
|
export {
|
|
84
|
-
|
|
84
|
+
_ as default
|
|
85
85
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, onMounted as n, onUnmounted as i, watch as
|
|
2
|
-
import
|
|
3
|
-
import { useDraggable as
|
|
1
|
+
import { defineComponent as e, ref as o, onMounted as n, onUnmounted as i, watch as t, resolveComponent as l, createElementBlock as r, openBlock as u, createVNode as s, createElementVNode as a, withDirectives as c, normalizeStyle as d, normalizeClass as p, withCtx as g, Fragment as m, renderList as f, createBlock as b, createCommentVNode as v, createTextVNode as y, unref as h, vShow as C } from "vue";
|
|
2
|
+
import j from "../../../../utils/eventBus.js";
|
|
3
|
+
import { useDraggable as x } from "vue-draggable-plus";
|
|
4
4
|
import { caculateComponentProps as D } from "../../../../utils/form-design-util.js";
|
|
5
5
|
import { getTableColumnConf as O } from "../../../../utils/assemblys-config.js";
|
|
6
6
|
import { Plus as k, Delete as H } from "@element-plus/icons-vue";
|
|
@@ -13,6 +13,7 @@ import "super-page-runtime";
|
|
|
13
13
|
import "../../../../../../stores/page-store.js";
|
|
14
14
|
import "@vueuse/core";
|
|
15
15
|
import { removComponentDataConfig as M, initComponentDataConfig as W } from "../../../../utils/chart-design-util.js";
|
|
16
|
+
/* empty css */
|
|
16
17
|
import _ from "../../data/component/table-children-column.vue.js";
|
|
17
18
|
import { queryTableFields as B, changeFeieldToMap as T } from "../../../../utils/page-table-util.js";
|
|
18
19
|
import { statisticsTable as $ } from "../../../../../../stores/statistics-table-store.js";
|
|
@@ -34,11 +35,11 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
|
|
|
34
35
|
q.value = E(G.configure);
|
|
35
36
|
}), i(() => {
|
|
36
37
|
M(G.configure);
|
|
37
|
-
}),
|
|
38
|
+
}), j.$on("setHiddenColumsUuid", (e3) => {
|
|
38
39
|
e3.value ? U.value = U.value.filter((o2) => o2 != e3.uuid) : U.value.push(e3.uuid);
|
|
39
|
-
}),
|
|
40
|
+
}), t(G.configure.style, () => {
|
|
40
41
|
G.configure.runtime.style = G.configure.style;
|
|
41
|
-
}, { immediate: true }),
|
|
42
|
+
}, { immediate: true }), t(G.configure.props, () => {
|
|
42
43
|
D(G.configure, P), function() {
|
|
43
44
|
let e3 = G.configure.props;
|
|
44
45
|
if (!e3.base) return;
|
|
@@ -48,13 +49,13 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
|
|
|
48
49
|
const e3 = W(G.configure, null);
|
|
49
50
|
G.configure.runtime.dataConfig = e3;
|
|
50
51
|
}();
|
|
51
|
-
}, { immediate: true }),
|
|
52
|
+
}, { immediate: true }), t(G.configure.items, (e3) => {
|
|
52
53
|
X.addFieldList(e3), G.configure.runtime.items = G.configure.items;
|
|
53
|
-
}, { immediate: true }),
|
|
54
|
+
}, { immediate: true }), t(() => G.configure.props.isChangeGroupHeader, () => {
|
|
54
55
|
G.configure.props.isChangeGroupHeader && (q.value = E(G.configure), K.value && K.value.doLayout());
|
|
55
|
-
}),
|
|
56
|
+
}), j.$on("reloadTable-" + G.configure.uuid, (e3) => {
|
|
56
57
|
e3 && (G.configure.items = e3, q.value = E(G.configure)), K.value && K.value.doLayout();
|
|
57
|
-
}),
|
|
58
|
+
}), t(() => q.value, (e3) => {
|
|
58
59
|
e3.forEach((e4) => {
|
|
59
60
|
e4.props && e4.props.base && !e4.props.base.visible && U.value.push(e4.uuid);
|
|
60
61
|
});
|
|
@@ -62,15 +63,15 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
|
|
|
62
63
|
const z = o("");
|
|
63
64
|
function J() {
|
|
64
65
|
z.value = "", oe.value = {}, Z();
|
|
65
|
-
|
|
66
|
+
j.$emit("selectColumn", { columnData: {} });
|
|
66
67
|
}
|
|
67
68
|
function Q(e3, o2) {
|
|
68
69
|
var n2;
|
|
69
70
|
(o2 || window.event).preventDefault(), n2 = e3, G.configure.items.forEach((e4, o3) => {
|
|
70
71
|
e4.props.base.name == n2.label && (oe.value = e4, ne.value = o3);
|
|
71
72
|
}), R.value = true;
|
|
72
|
-
const i2 = document.querySelector("#tableDesignMenu"),
|
|
73
|
-
i2.style.display = "block", i2.style.left = o2.clientX + 30 + "px", i2.style.top = o2.clientY +
|
|
73
|
+
const i2 = document.querySelector("#tableDesignMenu"), t2 = document.documentElement.scrollTop || document.body.scrollTop;
|
|
74
|
+
i2.style.display = "block", i2.style.left = o2.clientX + 30 + "px", i2.style.top = o2.clientY + t2 - 22 + "px";
|
|
74
75
|
}
|
|
75
76
|
function Z() {
|
|
76
77
|
R.value = false;
|
|
@@ -82,7 +83,7 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
|
|
|
82
83
|
let o2 = O(e4);
|
|
83
84
|
G.configure.items.splice(ne.value + 1, 0, o2), (_a = G.configure.items) == null ? void 0 : _a.forEach((e5, o3) => {
|
|
84
85
|
e5.props.base.displayOrder && e5.props.base.displayOrder == o3 || (e5.props.base.displayOrder = o3);
|
|
85
|
-
}), G.configure.props.base.isEnableGroupHeader && (w(G.configure.items[ne.value + 1], null, G.configure.props.groupHeaders), q.value = E(G.configure),
|
|
86
|
+
}), G.configure.props.base.isEnableGroupHeader && (w(G.configure.items[ne.value + 1], null, G.configure.props.groupHeaders), q.value = E(G.configure), j.$emit("synchroGroupHeadersData"));
|
|
86
87
|
} else "deleteNode" === e3 && S.confirm("当前操作会删除当前列", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
87
88
|
G.configure.items.splice(ne.value, 1);
|
|
88
89
|
}).catch(() => {
|
|
@@ -92,19 +93,19 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
|
|
|
92
93
|
function ie(e3) {
|
|
93
94
|
oe.value = e3;
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
-
|
|
96
|
+
function te(e3, o2, n2, i2) {
|
|
97
|
+
le(q.value, n2.columnKey).props.base.columnWidth = e3;
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
+
function le(e3, o2) {
|
|
99
100
|
let n2 = {};
|
|
100
101
|
return e3.forEach((e4) => {
|
|
101
102
|
if (e4.uuid && e4.uuid === o2) return n2 = e4;
|
|
102
|
-
e4.children && e4.children.length > 0 && (n2 =
|
|
103
|
+
e4.children && e4.children.length > 0 && (n2 = le(e4.children, o2));
|
|
103
104
|
}), n2;
|
|
104
105
|
}
|
|
105
106
|
function re({ row: e3, column: o2, rowIndex: n2, columnIndex: i2 }) {
|
|
106
|
-
let
|
|
107
|
-
return U.value.includes(o2.label) && (
|
|
107
|
+
let t2 = "";
|
|
108
|
+
return U.value.includes(o2.label) && (t2 = "hiddenBorder"), o2.label === z.value && (t2 = "addBorder"), t2;
|
|
108
109
|
}
|
|
109
110
|
function ue(e3) {
|
|
110
111
|
z.value = e3.uuid;
|
|
@@ -115,10 +116,10 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
|
|
|
115
116
|
function ae(e3, o2) {
|
|
116
117
|
for (var n2 = document.getElementsByClassName(o2.id), i2 = 0; i2 < n2.length; i2++) n2[i2].style.backgroundColor = "";
|
|
117
118
|
}
|
|
118
|
-
return
|
|
119
|
+
return x(".el-table__header-wrapper tr", G.configure.items, { animation: 150, ghostClass: "ghost", onStart(e3) {
|
|
119
120
|
} }), (e3, o2) => {
|
|
120
|
-
const n2 =
|
|
121
|
-
return u(), r("div", null, [s(n2, { ref_key: "tableRef", ref: K, "cell-class-name": re, "header-cell-class-name": re, border: "", class: p(I.value), data: A.value, onHeaderDragend:
|
|
121
|
+
const n2 = l("el-table"), i2 = l("el-icon");
|
|
122
|
+
return u(), r("div", null, [s(n2, { ref_key: "tableRef", ref: K, "cell-class-name": re, "header-cell-class-name": re, border: "", class: p(I.value), data: A.value, onHeaderDragend: te, onHeaderContextmenu: Q, onRowClick: J, onCellMouseEnter: se, onCellMouseLeave: ae, style: d(V.value) }, { default: g(() => [(u(true), r(m, null, f(q.value, (o3) => (u(), b(_, { key: o3, listColumns: o3, designProperty: P.value, configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, onSetClickColumn: ue, onOnSelectWidget: Y, onSetColumnData: ie, onCloseMenuVisible: Z, selectWidget: e3.selectWidget }, null, 8, ["listColumns", "designProperty", "configure", "pageDesign", "indexObj", "selectWidget"]))), 128))]), _: 1 }, 8, ["class", "data", "style"]), a("div", { onClick: J, style: { width: "100%", height: "30px" } }), c(a("div", null, [a("ul", N, [a("li", { tabindex: "-1", onClick: o2[0] || (o2[0] = () => ee("createCombinedHeader")) }, [s(i2, null, { default: g(() => [s(h(k))]), _: 1 }), o2[2] || (o2[2] = y(" 创建 "))]), oe.value.props && oe.value.props.base && "$selection" !== oe.value.props.base.prop && "$index" !== oe.value.props.base.prop ? (u(), r("li", { key: 0, tabindex: "-1", onClick: o2[1] || (o2[1] = () => ee("deleteNode")) }, [s(i2, null, { default: g(() => [s(h(H))]), _: 1 }), o2[3] || (o2[3] = y(" 删除 "))])) : v("", true)], 512)], 512), [[C, R.value]])]);
|
|
122
123
|
};
|
|
123
124
|
} });
|
|
124
125
|
export {
|
package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js
CHANGED
|
@@ -2,17 +2,17 @@ import { defineComponent as e, ref as l, resolveComponent as a, createElementBlo
|
|
|
2
2
|
import { Plus as b, Delete as f } from "@element-plus/icons";
|
|
3
3
|
import m from "./common-variable-bind.vue.js";
|
|
4
4
|
import { getUuidv4 as w } from "../../../utils/common-util.js";
|
|
5
|
-
import { usePageContextStore as
|
|
6
|
-
import { getModelOptionsByFields as
|
|
5
|
+
import { usePageContextStore as y } from "../../../../../stores/page-store.js";
|
|
6
|
+
import { getModelOptionsByFields as g } from "../../../utils/page-table-util.js";
|
|
7
7
|
const v = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, T = e({ __name: "common-advanced-basic-showcondition", props: { configure: { type: Object, required: true }, title: { type: String, default: "显示条件" }, type: { type: String, required: false, default: "showConditions" }, tableConfigure: { type: Object, default: () => {
|
|
8
8
|
} } }, setup(e2) {
|
|
9
|
-
const T2 =
|
|
9
|
+
const T2 = y(), V = e2;
|
|
10
10
|
V.configure.props || (V.configure.props = { base: {} });
|
|
11
11
|
let h = null;
|
|
12
12
|
V.configure.props.base || (V.configure.props.base = {}), V.configure.props.base[V.type] || (V.configure.props.base[V.type] = []), h = V.configure.props.base[V.type];
|
|
13
13
|
const _ = l(null);
|
|
14
14
|
var k;
|
|
15
|
-
(k = V.tableConfigure) && (_.value =
|
|
15
|
+
(k = V.tableConfigure) && (_.value = g(k.modelFields));
|
|
16
16
|
const N = l(300), C = l(false);
|
|
17
17
|
function U() {
|
|
18
18
|
let e3 = window.innerHeight - 140 - 176;
|
|
@@ -55,8 +55,8 @@ const v = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
return (l2, w2) => {
|
|
58
|
-
const
|
|
59
|
-
return o(), t(r, null, [u("div", null, [d(
|
|
58
|
+
const y2 = a("el-button"), g2 = a("el-text"), T3 = a("el-row"), V2 = a("Top"), k2 = a("el-icon"), N2 = a("Bottom"), B2 = a("el-table-column"), S = a("el-option"), I = a("el-select"), E = a("el-table"), q = a("el-dialog");
|
|
59
|
+
return o(), t(r, null, [u("div", null, [d(y2, { type: "primary", onClick: U }, { default: n(() => w2[1] || (w2[1] = [i("编辑")])), _: 1 }), p(d(g2, { type: "success" }, { default: n(() => w2[2] || (w2[2] = [i(" 已设置条件.")])), _: 1 }, 512), [[s, c(h) && c(h).length > 0]])]), d(q, { "append-to-body": "", modelValue: C.value, "onUpdate:modelValue": w2[0] || (w2[0] = (e3) => C.value = e3), title: e2.title, width: "900" }, { default: n(() => [d(T3, { style: { "padding-bottom": "8px" } }, { default: n(() => [d(y2, { icon: c(b), plain: "", type: "primary", onClick: x }, { default: n(() => w2[3] || (w2[3] = [i(" 添加 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), d(E, { border: "", "highlight-current-row": "", onCurrentChange: L, "current-row-key": "uuid", "row-key": "uuid", data: c(h), style: { width: "100%" } }, { default: n(() => [d(B2, { label: "", width: "50" }, { default: n((e3) => [u("div", v, [d(k2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
60
60
|
let l4 = j(e4);
|
|
61
61
|
if (l4 < 1) return;
|
|
62
62
|
const a2 = h;
|
|
@@ -17,7 +17,7 @@ const g = { style: { padding: "8px 0px 0px 0px" } }, h = e({ __name: "common-att
|
|
|
17
17
|
});
|
|
18
18
|
return (l2, c2) => {
|
|
19
19
|
const f2 = a("el-radio-button"), h3 = a("el-radio-group"), v2 = a("el-form-item"), x2 = a("el-option"), y = a("el-select"), _ = a("el-input"), C = a("el-switch"), H = a("el-collapse-item");
|
|
20
|
-
return i(), t(H, { title: "尺寸", name: "attrSize", class: "amb-design-attr-group-header" }, { default: d(() => [u("div", g, [o(v2, { label: "宽度", class: "amb-design-attr-item" }, { default: d(() => [o(h3, { modelValue: V.value.widthType, "onUpdate:modelValue": c2[0] || (c2[0] = (e3) => V.value.widthType = e3) }, { default: d(() => [o(f2, { value: "flex" }, { default: d(() => c2[6] || (c2[6] = [m("24格")])), _: 1 }), o(f2, { value: "fix" }, { default: d(() => c2[7] || (c2[7] = [m("自定义")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "fix" != V.value.widthType ? (i(), t(v2, { key: 0, class: "amb-design-attr-item", label: "栏数" }, { default: d(() => [o(y, { modelValue: V.value.flexSpan, "onUpdate:modelValue": c2[1] || (c2[1] = (e3) => V.value.flexSpan = e3), placeholder: "默认", clearable: "" }, { default: d(() => [(i(), n(p, null, r(b, (e3) => o(x2, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "fix" ==
|
|
20
|
+
return i(), t(H, { title: "尺寸", name: "attrSize", class: "amb-design-attr-group-header" }, { default: d(() => [u("div", g, [o(v2, { label: "宽度", class: "amb-design-attr-item" }, { default: d(() => [o(h3, { modelValue: V.value.widthType, "onUpdate:modelValue": c2[0] || (c2[0] = (e3) => V.value.widthType = e3) }, { default: d(() => [o(f2, { value: "flex" }, { default: d(() => c2[6] || (c2[6] = [m("24格")])), _: 1 }), o(f2, { value: "fix" }, { default: d(() => c2[7] || (c2[7] = [m("自定义")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "fix" != V.value.widthType ? (i(), t(v2, { key: 0, class: "amb-design-attr-item", label: "栏数" }, { default: d(() => [o(y, { modelValue: V.value.flexSpan, "onUpdate:modelValue": c2[1] || (c2[1] = (e3) => V.value.flexSpan = e3), placeholder: "默认", clearable: "" }, { default: d(() => [(i(), n(p, null, r(b, (e3) => o(x2, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "fix" == V.value.widthType ? (i(), t(v2, { key: 1, class: "amb-design-attr-item", label: "宽度", title: "未设置时自动宽度,可设置百分比" }, { default: d(() => [o(_, { modelValue: V.value.fixWidth, "onUpdate:modelValue": c2[2] || (c2[2] = (e3) => V.value.fixWidth = e3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), e2.showCalcHeight ? (i(), t(v2, { key: 2, class: "amb-design-attr-item", label: "高度自适应" }, { default: d(() => [o(C, { modelValue: V.value.isCalcHeight, "onUpdate:modelValue": c2[3] || (c2[3] = (e3) => V.value.isCalcHeight = e3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), o(v2, { label: "高度", class: "amb-design-attr-item", title: "未设置时自动高度,可设置百分比" }, { default: d(() => [o(_, { disabled: V.value.isCalcHeight, clearable: "", modelValue: V.value.fixHeight, "onUpdate:modelValue": c2[4] || (c2[4] = (e3) => V.value.fixHeight = e3), placeholder: "请输入" }, null, 8, ["disabled", "modelValue"])]), _: 1 }), o(v2, { label: "最大高度", title: "未设置时自动高度,可设置百分比", class: "amb-design-attr-item" }, { default: d(() => [o(_, { disabled: V.value.isCalcHeight, clearable: "", modelValue: V.value.maxHeight, "onUpdate:modelValue": c2[5] || (c2[5] = (e3) => V.value.maxHeight = e3), placeholder: "请输入" }, null, 8, ["disabled", "modelValue"])]), _: 1 })])]), _: 1 });
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|