super-page-designer 2.3.14-sit1-design2 → 2.3.14-sit4-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/chart-design-util.js +23 -17
- package/dist/es/components/design/utils/form-design-util.js +1 -1
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +34 -33
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr-base.vue.js +9 -8
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +12 -7
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-style.vue.js +13 -12
- package/dist/es/components/design/views/assemblys/chart/column-line/series/styles/style-emphasis.vue.js +11 -0
- package/dist/es/components/design/views/assemblys/chart/column-line/series/styles/style-emphasis.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-stack.vue.js +7 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-stack.vue2.js +27 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-style-tooltip.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-style.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/common/common-task-title.vue.js +7 -0
- package/dist/es/components/design/views/assemblys/common/common-task-title.vue2.js +127 -0
- package/dist/es/components/design/views/assemblys/data/component/attr-style.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr-advanced.vue.js +36 -42
- 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/page-event-content.vue.js +1 -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/view-design-display.vue.js +1 -1
- package/dist/es/style.css +48 -3
- package/package.json +3 -3
- /package/dist/es/components/design/views/assemblys/button/component/{journal-set-dialog.vue3.js → journal-set-dialog.vue2.js} +0 -0
|
@@ -13,14 +13,14 @@ function i(e2) {
|
|
|
13
13
|
return "variable" == l2.groupSource && !l2.enableDrill && l2.groupVariable && (r2.includes(l2.groupVariable) || r2.push(l2.groupVariable)), t2.monitorFields = r2, t2;
|
|
14
14
|
}
|
|
15
15
|
function a(e2, l2) {
|
|
16
|
-
const i2 = e2.props ? e2.props : {}, a2 = e2.style ? e2.style : {}, u2 = { title: [{ textStyle: {}, subtextStyle: {} }], toolbox: { show: false, feature: { saveAsImage: { show: false }, restore: { show: false }, dataView: { show: false }, dataZoom: { show: false }, magicType: { show: false }, brush: { show: false } } }, grid: {}, xAxis: [{ axisLabel: {}, nameTruncate: {} }], yAxis: [{ show: false, position: "left", nameTextStyle: {}, axisLine: {}, splitLine: {}, axisLabel: {} }, { show: false, position: "right", nameTextStyle: {}, axisLine: {}, splitLine: {}, axisLabel: {} }], tooltip: { textStyle: {} }, dataZoom: [], series: [] },
|
|
16
|
+
const i2 = e2.props ? e2.props : {}, a2 = e2.style ? e2.style : {}, u2 = { title: [{ textStyle: {}, subtextStyle: {} }], toolbox: { show: false, feature: { saveAsImage: { show: false }, restore: { show: false }, dataView: { show: false }, dataZoom: { show: false }, magicType: { show: false }, brush: { show: false } } }, grid: {}, xAxis: [{ axisLabel: {}, nameTruncate: {} }], yAxis: [{ show: false, position: "left", nameTextStyle: {}, axisLine: {}, splitLine: {}, axisLabel: {} }, { show: false, position: "right", nameTextStyle: {}, axisLine: {}, splitLine: {}, axisLabel: {} }], tooltip: { textStyle: {} }, dataZoom: [], series: [] }, h2 = "chart-column-line" == e2.name, b2 = "chart-pie" == e2.name, c2 = "chart-gauge" == e2.name, g = "chart-radar" == e2.name, m = "chart-scatter" == e2.name;
|
|
17
17
|
if (i2.title, i2.subTitle) {
|
|
18
18
|
u2.title[0].subtext = i2.subTitle, a2.subtitleTextAlign && (u2.title[0].left = a2.subtitleTextAlign);
|
|
19
19
|
const e3 = o(a2);
|
|
20
20
|
Object.assign(u2.title[0], e3);
|
|
21
21
|
}
|
|
22
|
-
if ((i2.enableDownloadBtn || i2.enableDataBtn) && (u2.toolbox.show = true), null != i2.enableDownloadBtn && (u2.toolbox.feature.saveAsImage.show = i2.enableDownloadBtn), null != i2.enableDataBtn && (u2.toolbox.feature.dataView.show = i2.enableDataBtn), (
|
|
23
|
-
|
|
22
|
+
if ((i2.enableDownloadBtn || i2.enableDataBtn) && (u2.toolbox.show = true), null != i2.enableDownloadBtn && (u2.toolbox.feature.saveAsImage.show = i2.enableDownloadBtn), null != i2.enableDataBtn && (u2.toolbox.feature.dataView.show = i2.enableDataBtn), (h2 || b2 || g || m) && null != a2.enableLegend && (null == u2.legend && (u2.legend = {}), u2.legend.show = a2.enableLegend, a2.enableLegend && (a2.legendLayout && (u2.legend.orient = a2.legendLayout), a2.legendAlign && (u2.legend.left = a2.legendAlign), a2.legendVerticalAlign && (u2.legend.top = a2.legendVerticalAlign), a2.legendPadding && (u2.legend.padding = a2.legendPadding), a2.customLegend && (u2.legend.formatter = a2.customLegend))), a2.gridBackgroundColor && (u2.grid.show = true, u2.grid.backgroundColor = a2.gridBackgroundColor), a2.gridPaddingTop && (u2.grid.top = a2.gridPaddingTop), a2.gridPaddingRight && (u2.grid.right = a2.gridPaddingRight), a2.gridPaddingBottom && (u2.grid.bottom = a2.gridPaddingBottom), a2.gridPaddingLeft && (u2.grid.left = a2.gridPaddingLeft), a2.enableGridLine ? (u2.grid.show = true, a2.gridLineWidth && (u2.grid.borderWidth = a2.gridLineWidth), a2.gridLineColor && (u2.grid.show = true, u2.grid.borderColor = a2.gridLineColor)) : a2.gridShadowColor || (u2.grid.borderWidth = 0), a2.gridShadowColor && (u2.grid.show = true, u2.grid.shadowColor = a2.gridShadowColor, a2.gridShadowX && (u2.grid.shadowOffsetX = a2.gridShadowX), a2.gridShadowY && (u2.grid.shadowOffsetY = a2.gridShadowY), a2.gridShadowBlur && (u2.grid.shadowBlur = a2.gridShadowBlur)), h2 || m) {
|
|
23
|
+
h2 && (a2.xaxisTestdatas || (a2.xaxisTestdatas = "项1,项2,项3,项4,项5,项6,项7,项8"), u2.xAxis[0].data = a2.xaxisTestdatas.split(",")), null != a2.enableXaxis && (u2.xAxis[0].show = a2.enableXaxis, a2.enableXaxis && (null == u2.xAxis[0].axisLabel && (u2.xAxis[0].axisLabel = {}), a2.xaxisAngle && (u2.xAxis[0].axisLabel.rotate = a2.xaxisAngle), a2.xaxisOffset && (u2.xAxis[0].offset = a2.xaxisOffset), a2.xaxisWidth && (u2.xAxis[0].axisLabel.overflow = "truncate", u2.xAxis[0].axisLabel.width = a2.xaxisWidth), a2.xaxisEllipsis && (u2.xAxis[0].axisLabel.overflow = "truncate", u2.xAxis[0].axisLabel.ellipsis = a2.xaxisEllipsis), a2.xaxisFormatter && (u2.xAxis[0].axisLabel.formatter = a2.xaxisFormatter)), h2 && 0 != u2.xAxis[0].show && (u2.xAxis[0].data = a2.xaxisTestdatas.split(","))), a2.xaxisMin && (u2.xAxis[0].min = a2.xaxisMin), a2.xaxisMax && (u2.xAxis[0].max = a2.xaxisMax);
|
|
24
24
|
const e3 = [a2.yaxisLeft, a2.yaxisRight];
|
|
25
25
|
for (let t2 = 0; t2 < e3.length; t2++) {
|
|
26
26
|
r(e3[t2], u2.yAxis[t2]);
|
|
@@ -52,11 +52,12 @@ function a(e2, l2) {
|
|
|
52
52
|
a3.indicator = s2, t2.radar || (t2.radar = []);
|
|
53
53
|
0 == t2.radar.length && t2.radar.push({});
|
|
54
54
|
Object.assign(t2.radar[0], a3);
|
|
55
|
-
}(e2, u2), (
|
|
55
|
+
}(e2, u2), (h2 || m) && a2.enableDatazoom) {
|
|
56
56
|
const e3 = { type: "slider" };
|
|
57
57
|
a2.dataZoomType && (e3.type = a2.dataZoomType), a2.dataZoomStart && (e3.start = a2.dataZoomStart), a2.dataZoomEnd && (e3.end = a2.dataZoomEnd), u2.dataZoom.push(e3);
|
|
58
58
|
}
|
|
59
59
|
null != a2.enableTooltip && function(e3, l3) {
|
|
60
|
+
var _a;
|
|
60
61
|
l3.tooltip.show = e3.enableTooltip, e3.tooltipTrigger && (l3.tooltip.trigger = e3.tooltipTrigger);
|
|
61
62
|
e3.tooltipPosition && (l3.tooltip.position = e3.tooltipPosition);
|
|
62
63
|
if (e3.tooltipNumFormat) {
|
|
@@ -68,30 +69,35 @@ function a(e2, l2) {
|
|
|
68
69
|
e3.tooltipColor && (l3.tooltip.textStyle.color = e3.tooltipColor);
|
|
69
70
|
e3.tooltipWeight && (l3.tooltip.textStyle.fontWeight = e3.tooltipWeight);
|
|
70
71
|
e3.tooltipFormatter && (l3.tooltip.formatter = e3.tooltipFormatter);
|
|
72
|
+
e3.axisPointer && (((_a = l3.tooltip) == null ? void 0 : _a.axisPointer) || (l3.tooltip.axisPointer = {}), e3.axisPointer.type && (l3.tooltip.axisPointer.type = e3.axisPointer.type));
|
|
71
73
|
}(a2, u2);
|
|
72
|
-
const f =
|
|
74
|
+
const f = {};
|
|
75
|
+
if (e2.stacks && e2.stacks.length > 0) for (let t2 of e2.stacks) t2.series && t2.series.length > 0 && t2.series.forEach((e3) => {
|
|
76
|
+
f[e3] = t2.uuid;
|
|
77
|
+
});
|
|
78
|
+
const x = e2.items ? e2.items : [];
|
|
73
79
|
if (g) {
|
|
74
80
|
u2.series || (u2.series = []), 0 == u2.series.length && u2.series.push({});
|
|
75
81
|
let e3 = u2.series[0];
|
|
76
82
|
e3.type = "radar", e3.data = [];
|
|
77
|
-
for (let t2 of
|
|
83
|
+
for (let t2 of x) if ("radar" == t2.type) {
|
|
78
84
|
const l3 = n(t2, u2);
|
|
79
85
|
l3.uuid = t2.uuid, e3.data.push(l3);
|
|
80
86
|
}
|
|
81
|
-
} else for (let e3 of
|
|
87
|
+
} else for (let e3 of x) {
|
|
82
88
|
let t2 = null;
|
|
83
|
-
if (t2 = "scatter" == e3.type ? d(e3) : s(e3), t2.uuid = e3.uuid, (
|
|
89
|
+
if (t2 = "scatter" == e3.type ? d(e3) : s(e3), t2.uuid = e3.uuid, (h2 || m) && ("1" == e3.props.yAxisIndex ? (t2.yAxisIndex = 1, u2.yAxis[1].show = true) : u2.yAxis[0].show = true, "bar" == t2.type && (null != a2.barGap && null != a2.barGap && "" != a2.barGap && (t2.barGap = a2.barGap + "%"), null != a2.barCategoryGap && null != a2.barCategoryGap && "" != a2.barCategoryGap && (t2.barCategoryGap = a2.barCategoryGap + "%"))), (b2 || c2) && e3.props.subTitle) {
|
|
84
90
|
const t3 = o(e3.style);
|
|
85
91
|
t3.subtext = e3.props.subTitle, u2.title.push(t3);
|
|
86
92
|
}
|
|
87
|
-
u2.series.push(t2);
|
|
93
|
+
f && Object.keys(f).length > 0 && f[t2.uuid] && (t2.stack = f[t2.uuid]), u2.series.push(t2);
|
|
88
94
|
}
|
|
89
|
-
if (
|
|
95
|
+
if (b2 && (0 == a2.enableLegend && (u2.legend = void 0), u2.xAxis[0].show = false), (c2 || g) && (u2.xAxis[0].show = false), i2.isBar) {
|
|
90
96
|
for (let e3 of u2.yAxis) e3.show && (e3.type = "category", e3.data = u2.xAxis[0].data);
|
|
91
97
|
u2.xAxis[0].data = void 0, u2.isBar = i2.isBar;
|
|
92
98
|
}
|
|
93
|
-
const
|
|
94
|
-
|
|
99
|
+
const y = p(a2.customAttr);
|
|
100
|
+
y && Object.assign(u2, y), l2.value = u2;
|
|
95
101
|
}
|
|
96
102
|
function o(e2) {
|
|
97
103
|
const t2 = { subtextStyle: {} };
|
|
@@ -106,7 +112,7 @@ function r(e2, t2) {
|
|
|
106
112
|
}
|
|
107
113
|
function s(e2) {
|
|
108
114
|
const l2 = e2.props ? e2.props : {}, i2 = e2.style ? e2.style : {}, a2 = { name: l2.title, type: e2.type, label: {}, itemStyle: {}, lineStyle: {}, emphasis: {} };
|
|
109
|
-
if ("bar" === e2.type && (a2.emphasis.itemStyle = { color: "#E3E8C0", borderWidth: 1, borderType: "dashed", borderColor: "#878773" }), null != i2.enableLabel) {
|
|
115
|
+
if ("bar" === e2.type && (a2.emphasis.itemStyle = { color: "#E3E8C0", borderWidth: 1, borderType: "dashed", borderColor: "#878773" }, e2.style.emphasis && (a2.emphasis || (a2.emphasis = {}), Object.assign(a2.emphasis, e2.style.emphasis))), null != i2.enableLabel) {
|
|
110
116
|
if (a2.label.show = i2.enableLabel, i2.labelPosition && (a2.label.position = i2.labelPosition), i2.labelFontSize && (a2.label.fontSize = i2.labelFontSize), i2.labelColor && (a2.label.color = i2.labelColor), i2.labelWeight && (a2.label.fontWeight = i2.labelWeight), i2.textAlign && (a2.label.align = i2.textAlign), i2.verticalAlign && (a2.label.verticalAlign = i2.verticalAlign), i2.labelAngle && (a2.label.rotate = i2.labelAngle), i2.labelLeft || i2.labelTop) {
|
|
111
117
|
const e3 = [0, 0];
|
|
112
118
|
i2.labelLeft && !isNaN(i2.labelLeft) && (e3[0] = parseFloat(i2.labelLeft)), i2.labelTop && !isNaN(i2.labelTop) && (e3[1] = parseFloat(i2.labelTop)), a2.label.offset = e3;
|
|
@@ -341,7 +347,7 @@ function u(t2) {
|
|
|
341
347
|
e2 > -1 && l2.initChartServiceConfigs.shift(e2, 1);
|
|
342
348
|
}
|
|
343
349
|
}
|
|
344
|
-
function
|
|
350
|
+
function h(t2, i2) {
|
|
345
351
|
var _a;
|
|
346
352
|
const a2 = e().pageContext;
|
|
347
353
|
if (a2) {
|
|
@@ -367,7 +373,7 @@ function b(t2, i2) {
|
|
|
367
373
|
}
|
|
368
374
|
return null;
|
|
369
375
|
}
|
|
370
|
-
function
|
|
376
|
+
function b(t2, i2) {
|
|
371
377
|
const a2 = e().pageContext;
|
|
372
378
|
if (a2.initChartServiceConfigs) {
|
|
373
379
|
a2.initChartServiceConfigs.filter((e2) => e2.uuid && e2.uuid === t2.uuid).forEach((e2) => {
|
|
@@ -385,8 +391,8 @@ function c(e2, t2) {
|
|
|
385
391
|
export {
|
|
386
392
|
i as generateChartHeader,
|
|
387
393
|
a as generateChartOption,
|
|
388
|
-
|
|
394
|
+
h as initComponentDataConfig,
|
|
389
395
|
u as removComponentDataConfig,
|
|
390
396
|
c as updateDynamicSeriesField,
|
|
391
|
-
|
|
397
|
+
b as updateServiceInputs
|
|
392
398
|
};
|
|
@@ -198,7 +198,7 @@ function w(e2, t2) {
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
function T(e2, t2) {
|
|
201
|
-
if ("wfRemark" === t2) {
|
|
201
|
+
if ("wfRemark" === t2 || "taskTitle" === t2) {
|
|
202
202
|
return ["copyTask"].includes(e2);
|
|
203
203
|
}
|
|
204
204
|
return ["submitTask", "approve", "refuse", "readed", "agreement", "oppose", "kiken", "returnToPreviousTask", "returnTaskTo", "endInstance", "extractWorkflow"].includes(e2);
|
|
@@ -1,62 +1,63 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, watch as l, resolveComponent as a, createBlock as i, openBlock as n, withCtx as t, createVNode as u, createCommentVNode as s, createElementVNode as r, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as o, watch as l, resolveComponent as a, createBlock as i, openBlock as n, withCtx as t, createVNode as u, createCommentVNode as s, createElementVNode as r, createElementBlock as g, Fragment as c, renderList as f, createTextVNode as m, withDirectives as p, vShow as d } 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";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { isShowOpinionSetting as
|
|
5
|
+
import k from "../component/journal-set-dialog.vue.js";
|
|
6
|
+
import C from "../../common/common-advanced-basic-showcondition.vue.js";
|
|
7
|
+
import { isShowOpinionSetting as _ } from "../../../../utils/form-design-util.js";
|
|
8
8
|
import V from "agilebuilder-ui/src/utils/request";
|
|
9
9
|
import { getTableConfigByTableUuid as w } from "../../../../utils/page-table-util.js";
|
|
10
|
-
import
|
|
11
|
-
|
|
10
|
+
import D from "../../common/common-watermark.vue.js";
|
|
11
|
+
import h from "../../common/common-task-title.vue.js";
|
|
12
|
+
const j = { style: { padding: "8px 0px 0px 0px" } }, O = e({ __name: "button-attr-advanced", props: { configure: { type: Object, default: () => {
|
|
12
13
|
} }, pageDesign: { type: Object, default: () => {
|
|
13
14
|
} } }, setup(e2) {
|
|
14
15
|
var _a;
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
|
|
16
|
+
const O2 = e2, M = o(["base"]), x = o(false), L = o([]), R = (_a = O2.pageDesign) == null ? void 0 : _a.systemVersion, S = o(w(O2.pageDesign, O2.configure));
|
|
17
|
+
function N() {
|
|
18
|
+
x.value = false;
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
20
|
+
function U(e3) {
|
|
21
|
+
O2.configure.props.base.logSetting = e3, N();
|
|
21
22
|
}
|
|
22
|
-
V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${
|
|
23
|
-
|
|
23
|
+
V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${O2.pageDesign.systemCode}/${R}`).then((e3) => {
|
|
24
|
+
L.value = e3;
|
|
24
25
|
});
|
|
25
|
-
const
|
|
26
|
-
function
|
|
27
|
-
|
|
26
|
+
const z = o(false);
|
|
27
|
+
function A() {
|
|
28
|
+
z.value = false;
|
|
28
29
|
}
|
|
29
|
-
const
|
|
30
|
-
function
|
|
31
|
-
|
|
30
|
+
const $ = o(false);
|
|
31
|
+
function F() {
|
|
32
|
+
$.value = false;
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
-
|
|
34
|
+
function P(e3) {
|
|
35
|
+
O2.configure.props.setValueList = e3;
|
|
35
36
|
}
|
|
36
|
-
const
|
|
37
|
+
const T = o(false);
|
|
37
38
|
function W() {
|
|
38
|
-
|
|
39
|
+
T.value = false;
|
|
39
40
|
}
|
|
40
41
|
function q(e3) {
|
|
41
|
-
|
|
42
|
+
O2.configure.props.base.showConditions = JSON.stringify(e3);
|
|
42
43
|
}
|
|
43
|
-
const I = o(
|
|
44
|
-
function
|
|
44
|
+
const I = o(E("opinion")), J = o(E("wfRemark")), B = o(E("taskTitle"));
|
|
45
|
+
function E(e3) {
|
|
45
46
|
let o2 = false;
|
|
46
|
-
const l2 =
|
|
47
|
+
const l2 = O2.configure.events.filter((e4) => "click" === e4.name && e4.eventName);
|
|
47
48
|
if (l2 && l2.length > 0) {
|
|
48
49
|
const a2 = l2[0].eventName;
|
|
49
|
-
o2 =
|
|
50
|
+
o2 = _(a2, e3);
|
|
50
51
|
}
|
|
51
52
|
return o2;
|
|
52
53
|
}
|
|
53
|
-
return l(
|
|
54
|
-
I.value =
|
|
54
|
+
return l(O2.configure.events, (e3) => {
|
|
55
|
+
I.value = E("opinion"), J.value = E("wfRemark"), I.value || (O2.configure.props.base.isMustOpinion = false);
|
|
55
56
|
}, { immediate: true }), (o2, l2) => {
|
|
56
|
-
const
|
|
57
|
-
return n(), i(
|
|
57
|
+
const _2 = a("el-option"), V2 = a("el-select"), w2 = a("el-form-item"), O3 = a("el-button"), R2 = a("el-text"), E2 = a("el-switch"), G = a("el-collapse-item"), H = a("el-collapse"), K = a("el-form");
|
|
58
|
+
return n(), i(K, { "label-width": "80px", size: "small" }, { default: t(() => [u(H, { modelValue: M.value, "onUpdate:modelValue": l2[7] || (l2[7] = (e3) => M.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [u(G, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", j, [u(w2, { label: "成功后", class: "amb-design-attr-item" }, { default: t(() => [u(V2, { modelValue: e2.configure.props.base.successOperation, "onUpdate:modelValue": l2[0] || (l2[0] = (o3) => e2.configure.props.base.successOperation = o3), class: "ml-4" }, { default: t(() => [u(_2, { label: "无操作", value: "noOperation" }), u(_2, { label: "刷新", value: "refresh" }), u(_2, { label: "关闭窗口", value: "closeWindow" }), u(_2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(w2, { label: "转换规则", class: "amb-design-attr-item" }, { default: t(() => [u(V2, { modelValue: e2.configure.props.base.conversionCodes, "onUpdate:modelValue": l2[1] || (l2[1] = (o3) => e2.configure.props.base.conversionCodes = o3), multiple: "", class: "ml-4" }, { default: t(() => [(n(true), g(c, null, f(L.value, (e3) => (n(), i(_2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(w2, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [u(O3, { type: "primary", onClick: l2[2] || (l2[2] = (e3) => z.value = true) }, { default: t(() => l2[8] || (l2[8] = [m("编辑")])), _: 1 })]), _: 1 }), u(w2, { label: "启用条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(C, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", tableConfigure: S.value, type: "editConditions" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), u(w2, { label: "自动设值", class: "amb-design-attr-item" }, { default: t(() => [u(O3, { type: "primary", onClick: l2[3] || (l2[3] = (e3) => $.value = true) }, { default: t(() => l2[9] || (l2[9] = [m("编辑")])), _: 1 }), p(u(R2, { type: "success" }, { default: t(() => l2[10] || (l2[10] = [m(" 已设置条件. ")])), _: 1 }, 512), [[d, e2.configure.props && e2.configure.props.setValueList && e2.configure.props.setValueList.length > 0]])]), _: 1 }), u(w2, { label: "显示条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(C, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions", tableConfigure: S.value }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), u(w2, { label: "日志设置", class: "amb-design-attr-item" }, { default: t(() => [u(O3, { type: "primary", onClick: l2[4] || (l2[4] = (e3) => x.value = true) }, { default: t(() => l2[11] || (l2[11] = [m("编辑")])), _: 1 })]), _: 1 }), I.value ? (n(), i(w2, { key: 0, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [u(E2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": l2[5] || (l2[5] = (o3) => e2.configure.props.base.isMustOpinion = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), e2.configure.props.base.isMustOpinion ? (n(), i(w2, { key: 1, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(C, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: S.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : s("", true), J.value ? (n(), i(w2, { key: 2, label: "备注必填", class: "amb-design-attr-item" }, { default: t(() => [u(E2, { modelValue: e2.configure.props.base.isMustRemark, "onUpdate:modelValue": l2[6] || (l2[6] = (o3) => e2.configure.props.base.isMustRemark = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), e2.configure.props.base.isMustRemark ? (n(), i(w2, { key: 3, label: "备注必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(C, { key: e2.configure.uuid + "_remark", configure: e2.configure, type: "mustRemarkConditions", tableConfigure: S.value, title: "办理备注必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : s("", true), B.value ? (n(), i(w2, { key: 4, label: "任务标题", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(h, { key: e2.configure.uuid + "_taskTitle", configure: e2.configure, pageDesign: e2.pageDesign, title: "任务标题生效条件" }, null, 8, ["configure", "pageDesign"]))]), _: 1 })) : s("", true)])]), _: 1 }), u(G, { title: "水印设置", name: "watermark", class: "amb-design-attr-group-header" }, { default: t(() => [u(D, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }), z.value ? (n(), i(b, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: S.value, onClose: A }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : s("", true), $.value ? (n(), i(v, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: S.value, onSave: P, onClose: F }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : s("", true), T.value ? (n(), i(y, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: S.value, onSave: q, onClose: W }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : s("", true), x.value ? (n(), i(k, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: N, onSave: U }, null, 8, ["modelValue"])) : s("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
58
59
|
};
|
|
59
60
|
} });
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
+
O as default
|
|
62
63
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./button-attr-base.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const o = e(t, [["__scopeId", "data-v-
|
|
4
|
+
const o = e(t, [["__scopeId", "data-v-4cfd68dd"]]);
|
|
5
5
|
export {
|
|
6
6
|
o as default
|
|
7
7
|
};
|
|
@@ -4,18 +4,18 @@ import "../../../../../../stores/page-store.js";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
import v from "../../common/common-icon-bind.vue.js";
|
|
6
6
|
import _ from "agilebuilder-ui/src/utils/request";
|
|
7
|
-
import
|
|
7
|
+
import y from "../../common/common-function-code.vue.js";
|
|
8
8
|
import "@element-plus/icons";
|
|
9
|
-
import { Close as
|
|
9
|
+
import { Close as U, Check as h } from "@element-plus/icons-vue";
|
|
10
10
|
import "uuid";
|
|
11
11
|
import "../../../../../../stores/table-store.js";
|
|
12
12
|
import "../../../../../../stores/statistics-table-store.js";
|
|
13
13
|
/* empty css */
|
|
14
14
|
import { getTableConfigByTableUuid as k } from "../../../../utils/page-table-util.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
const
|
|
15
|
+
import x from "../../common/common-i18n-key-input.vue.js";
|
|
16
|
+
import D from "../../chart/statistical-table/component/link-table.vue.js";
|
|
17
|
+
import P from "../../common/common-template-select.vue.js";
|
|
18
|
+
const j = { 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
19
|
const E2 = e2, q = a(["base", "appearance", "otherSettings", "linkPage", "templateConfig"]), F = a({}), A = a([]), I = a($()), R = a(false);
|
|
20
20
|
E2.configure.props.base.templateFiles && E2.configure.props.base.templateFiles.forEach((e3) => {
|
|
21
21
|
A.value.push(e3.templateUuid);
|
|
@@ -38,11 +38,11 @@ const x = { class: "collapse-item-content" }, T = { class: "collapse-item-conten
|
|
|
38
38
|
}(), E2.pageDesign.tableUuids && E2.pageDesign.tableUuids.length > 0 && (S.value = E2.pageDesign.tableUuids);
|
|
39
39
|
}), (a2, l2) => {
|
|
40
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",
|
|
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", j, [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(y, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 }), u(F2, { label: "标题", class: "amb-design-attr-item" }, { default: s(() => [u(x, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.base.title = a3) }, null, 8, ["modelValue"])]), _: 1 }), u(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
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(
|
|
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(U) }, 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(U) }, 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(U) }, 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(U) }, 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(D, { key: 0, pageDesign: e2.pageDesign, paramTypes: ["data", "task", "page", "context", "system", "request", "fixed", "row"], data: e2.configure.props.linkPage, configure: e2.configure, tableConfigure: I.value, onDataChange: l2[16] || (l2[16] = (e3) => function(e4) {
|
|
44
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(
|
|
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(P, { 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
46
|
};
|
|
47
47
|
} });
|
|
48
48
|
export {
|
package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr-base.vue.js
CHANGED
|
@@ -3,19 +3,20 @@ import c from "../common/common-attr-base.vue.js";
|
|
|
3
3
|
import l from "../common/common-attr-serieslist.vue.js";
|
|
4
4
|
import s from "../common/common-attr-groupby.vue.js";
|
|
5
5
|
import a from "../common/common-attr-sortby.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import f from "../../form/common/data-linkage.vue.js";
|
|
7
|
+
import p from "../common/common-attr-assistant.vue.js";
|
|
8
8
|
import g from "../../common/common-attr-size.vue.js";
|
|
9
9
|
import d from "../common/common-attr-data.vue.js";
|
|
10
10
|
import v from "../common/common-attr-clickset.vue.js";
|
|
11
11
|
import j from "../../form/common/suffixmodule.vue.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
import k from "../common/common-attr-stack.vue.js";
|
|
13
|
+
const b = { style: { padding: "8px 0px 0px 0px" } }, y = o({ __name: "column-line-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => ({ props: {} }) } }, setup(o2) {
|
|
14
|
+
const y2 = e(["propsBase", "seriesList", "dataSet", "propsGroup", "attrSize", "propsSort", "propsDrill", "propsAssistant", "linkage", "clicklinkage", "clickTrigger", "stackList"]);
|
|
15
|
+
return (e2, x) => {
|
|
16
|
+
const z = r("el-collapse-item"), D = r("el-collapse"), _ = r("el-form");
|
|
17
|
+
return i(), n(_, { "label-width": "80px", size: "small" }, { default: u(() => [t(D, { modelValue: y2.value, "onUpdate:modelValue": x[0] || (x[0] = (o3) => y2.value = o3), style: { "margin-top": "6px" } }, { default: u(() => [t(c, { configure: o2.configure, chartType: "columnLine" }, null, 8, ["configure"]), t(l, { configure: o2.configure, defaultType: "bar" }, null, 8, ["configure"]), t(k, { configure: o2.configure, defaultType: "bar" }, null, 8, ["configure"]), t(d, { configure: o2.configure }, null, 8, ["configure"]), t(s, { configure: o2.configure }, null, 8, ["configure"]), t(a, { configure: o2.configure }, null, 8, ["configure"]), t(v, { configure: o2.configure }, null, 8, ["configure"]), t(z, { title: "Click跳转配置", name: "clicklinkage", class: "amb-design-attr-group-header" }, { default: u(() => [m("div", b, [(i(), n(j, { key: o2.configure.uuid, configure: o2.configure, pageDesign: o2.pageDesign, isButton: false }, null, 8, ["configure", "pageDesign"]))])]), _: 1 }), t(f, { configureProps: o2.configure.props }, null, 8, ["configureProps"]), t(p, { configure: o2.configure }, null, 8, ["configure"]), t(g, { size: o2.configure.props.size }, null, 8, ["size"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
17
18
|
};
|
|
18
19
|
} });
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
y as default
|
|
21
22
|
};
|
package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, ref as i, watch as t, onUnmounted as r, createElementBlock as o, openBlock as n, withModifiers as
|
|
1
|
+
import { defineComponent as e, ref as i, watch as t, onUnmounted as r, createElementBlock as o, openBlock as n, withModifiers as s, normalizeClass as u, normalizeStyle as c, withDirectives as l, createVNode as m, vShow as a, unref as f, createElementVNode as g, Fragment as p, renderList as d, toDisplayString as v } from "vue";
|
|
2
2
|
import { getUuidv4 as h } from "../../../../utils/common-util.js";
|
|
3
3
|
import { caculateComponentStyle as b } from "../../../../utils/container-design-util.js";
|
|
4
4
|
import { removComponentDataConfig as W, generateChartHeader as j, generateChartOption as y, updateDynamicSeriesField as C, initComponentDataConfig as I } from "../../../../utils/chart-design-util.js";
|
|
5
|
-
import { getCustomTheme as
|
|
6
|
-
import
|
|
5
|
+
import { getCustomTheme as k } from "super-page-runtime";
|
|
6
|
+
import x from "./series/column-line-series-attr.vue.js";
|
|
7
7
|
import D from "../common/common-chart-header.vue.js";
|
|
8
8
|
import { use as F } from "echarts/core";
|
|
9
9
|
import { CanvasRenderer as T } from "echarts/renderers";
|
|
@@ -30,12 +30,17 @@ const Q = { class: "amb-design-item-title" }, S = ["onClick"], E = e({ __name: "
|
|
|
30
30
|
P();
|
|
31
31
|
}), t(G.configure.items, () => {
|
|
32
32
|
V();
|
|
33
|
-
})
|
|
33
|
+
}), t(() => {
|
|
34
|
+
var _a;
|
|
35
|
+
return (_a = G.configure) == null ? void 0 : _a.stacks;
|
|
36
|
+
}, () => {
|
|
37
|
+
V();
|
|
38
|
+
}, { immediate: true, deep: true });
|
|
34
39
|
const U = setTimeout(() => {
|
|
35
40
|
P();
|
|
36
41
|
}, 100);
|
|
37
42
|
function V() {
|
|
38
|
-
y(G.configure, L), M.value = j(G.configure), N.value =
|
|
43
|
+
y(G.configure, L), M.value = j(G.configure), N.value = k(G.configure.props.customTheme), G.configure.runtime.chartOption = L.value, G.configure.runtime.headerInfo = M.value, C(G.configure, M.value);
|
|
39
44
|
}
|
|
40
45
|
function X() {
|
|
41
46
|
if (G.configure.items) for (let e3 of G.configure.items) e3.selected = false;
|
|
@@ -49,7 +54,7 @@ const Q = { class: "amb-design-item-title" }, S = ["onClick"], E = e({ __name: "
|
|
|
49
54
|
null != G.selectWidget && G.selectWidget.value != G.configure.componentIndex && X();
|
|
50
55
|
}), i(null);
|
|
51
56
|
const Z = E2;
|
|
52
|
-
return (e3, i2) => (n(), o("div", { style: c([J.value, { position: "relative" }]), class:
|
|
57
|
+
return (e3, i2) => (n(), o("div", { style: c([J.value, { position: "relative" }]), class: u([K.value, "amb-widget-chart"]), onClick: s(Y, ["stop"]), ref: "thisRef" }, [l(m(D, { headerInfo: M.value }, null, 8, ["headerInfo"]), [[a, M.value.showHeader]]), m(f(H), { ref: "chartRef", theme: N.value, option: L.value, autoresize: "" }, null, 8, ["theme", "option"]), l(g("div", Q, [(n(true), o(p, null, d(e3.configure.items, (e4, i3) => (n(), o("label", { class: u([[e4.selected ? "amb-design-chart-series-selected" : ""], "amb-design-chart-series"]), onClick: s((e5) => function(e6, i4) {
|
|
53
58
|
e6 && e6.preventDefault();
|
|
54
59
|
const t2 = G.configure.items[i4];
|
|
55
60
|
if (!t2.selected) {
|
|
@@ -57,7 +62,7 @@ const Q = { class: "amb-design-item-title" }, S = ["onClick"], E = e({ __name: "
|
|
|
57
62
|
e7.selected = false;
|
|
58
63
|
break;
|
|
59
64
|
}
|
|
60
|
-
t2.serviceFields = G.configure.serviceFields, t2.serviceDataField = G.configure.serviceDataField, t2.selected = true, Z("onCustomAttrWidget", t2,
|
|
65
|
+
t2.serviceFields = G.configure.serviceFields, t2.serviceDataField = G.configure.serviceDataField, t2.selected = true, Z("onCustomAttrWidget", t2, x);
|
|
61
66
|
}
|
|
62
67
|
}(e5, i3), ["stop"]) }, v(e4.props.title), 11, S))), 256))], 512), [[a, e3.configure.componentIndex == e3.selectWidget.value]])], 6));
|
|
63
68
|
} });
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, resolveComponent as l, createBlock as r, openBlock as u, withCtx as n, createVNode as t, withDirectives as i,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { defineComponent as e, ref as o, resolveComponent as l, createBlock as r, openBlock as u, withCtx as n, createVNode as t, withDirectives as i, createCommentVNode as s, vShow as c } from "vue";
|
|
2
|
+
import f from "../../common-series/common-style-label.vue.js";
|
|
3
|
+
import m from "./styles/style-bar.vue.js";
|
|
4
|
+
import a from "./styles/style-line.vue.js";
|
|
5
|
+
import g from "./styles/style-linearea.vue.js";
|
|
6
|
+
import p from "../../common/common-style-custom.vue.js";
|
|
7
|
+
import y from "./styles/style-emphasis.vue.js";
|
|
8
|
+
const d = e({ __name: "column-line-series-attr-style", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
9
|
+
const d2 = o(["styleLabel", "styleBar", "styleLine"]);
|
|
10
|
+
return (o2, v) => {
|
|
11
|
+
const b = l("el-collapse"), j = l("el-form");
|
|
12
|
+
return u(), r(j, { "label-width": "80px", size: "small" }, { default: n(() => [t(b, { modelValue: d2.value, "onUpdate:modelValue": v[0] || (v[0] = (e3) => d2.value = e3), style: { "margin-top": "6px" } }, { default: n(() => [i(t(m, { configure: e2.configure }, null, 8, ["configure"]), [[c, "bar" == e2.configure.type]]), "bar" == e2.configure.type ? (u(), r(y, { key: 0, configure: e2.configure }, null, 8, ["configure"])) : s("", true), i(t(a, { configure: e2.configure }, null, 8, ["configure"]), [[c, "line" == e2.configure.type]]), t(f, { configure: e2.configure }, null, 8, ["configure"]), i(t(g, { configure: e2.configure }, null, 8, ["configure"]), [[c, "line" == e2.configure.type]]), t(p, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
12
13
|
};
|
|
13
14
|
} });
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
d as default
|
|
16
17
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineComponent as e, resolveComponent as l, createBlock as a, openBlock as s, withCtx as t, createElementVNode as o, createVNode as u, createTextVNode as i, toDisplayString as p } from "vue";
|
|
2
|
+
const d = { style: { padding: "8px 0px 0px 0px" } }, r = e({ __name: "style-emphasis", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
3
|
+
const r2 = e2;
|
|
4
|
+
return r2.configure.style.emphasis || (r2.configure.style.emphasis = { disabled: false }), (r3, n) => {
|
|
5
|
+
const m = l("el-switch"), c = l("el-form-item"), f = l("el-option"), b = l("el-select"), g = l("el-collapse-item");
|
|
6
|
+
return s(), a(g, { title: "高亮状态", name: "styleEmphasis", class: "amb-design-attr-group-header" }, { default: t(() => [o("div", d, [u(c, { label: "开启", style: { "margin-top": "4px" } }, { default: t(() => [i(p(e2.configure.style.emphasis.disabled) + " ", 1), u(m, { modelValue: e2.configure.style.emphasis.disabled, "onUpdate:modelValue": n[0] || (n[0] = (l2) => e2.configure.style.emphasis.disabled = l2), "active-value": false, "inactive-value": true }, null, 8, ["modelValue"])]), _: 1 }), u(c, { label: "聚焦效果", style: { "margin-top": "4px" } }, { default: t(() => [u(b, { modelValue: e2.configure.style.emphasis.focus, "onUpdate:modelValue": n[1] || (n[1] = (l2) => e2.configure.style.emphasis.focus = l2), placeholder: "默认", clearable: "" }, { default: t(() => [u(f, { label: "none", value: "none" }), u(f, { label: "当前高亮", value: "self" }), u(f, { label: "所在系列", value: "series" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(c, { label: "淡出范围", style: { "margin-top": "4px" } }, { default: t(() => [u(b, { modelValue: e2.configure.style.emphasis.blurScope, "onUpdate:modelValue": n[2] || (n[2] = (l2) => e2.configure.style.emphasis.blurScope = l2), placeholder: "默认", clearable: "" }, { default: t(() => [u(f, { label: "坐标系", value: "coordinateSystem" }), u(f, { label: "系列", value: "series" }), u(f, { label: "全局", value: "global" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 });
|
|
7
|
+
};
|
|
8
|
+
} });
|
|
9
|
+
export {
|
|
10
|
+
r as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as t, createBlock as u, openBlock as a, withCtx as n, createElementVNode as i, createElementBlock as o, withModifiers as s, createTextVNode as r, Fragment as c, renderList as p, createVNode as d, unref as f } from "vue";
|
|
2
|
+
import { getUuidv4 as m } from "../../../../utils/common-util.js";
|
|
3
|
+
import { Plus as v, Delete as g } from "@element-plus/icons-vue";
|
|
4
|
+
const k = { style: { "text-align": "center" } }, y = e({ __name: "common-attr-stack", props: { configure: { type: Object, required: true }, defaultType: { type: String, default: "" } }, setup(e2) {
|
|
5
|
+
var _a;
|
|
6
|
+
const y2 = e2, h = l([]);
|
|
7
|
+
function b(e3) {
|
|
8
|
+
h.value.splice(e3 + 1, 0, { series: [], uuid: m() }), _();
|
|
9
|
+
}
|
|
10
|
+
function _() {
|
|
11
|
+
const e3 = [];
|
|
12
|
+
for (let l2 = 0; l2 < h.value.length; l2++) h.value[l2] && h.value[l2].series && h.value[l2].series.length > 0 && e3.push(h.value[l2]);
|
|
13
|
+
0 !== e3.length ? y2.configure.stacks = e3 : y2.configure.stacks = null;
|
|
14
|
+
}
|
|
15
|
+
return ((_a = y2.configure.stacks) == null ? void 0 : _a.length) > 0 && (h.value = JSON.parse(JSON.stringify(y2.configure.stacks))), (l2, m2) => {
|
|
16
|
+
const y3 = t("el-button"), C = t("el-option"), V = t("el-select"), x = t("el-icon"), O = t("el-collapse-item");
|
|
17
|
+
return a(), u(O, { title: "堆叠系列", name: "stackList", class: "amb-design-attr-group-header" }, { default: n(() => {
|
|
18
|
+
var _a2;
|
|
19
|
+
return [i("div", k, [((_a2 = h.value) == null ? void 0 : _a2.length) ? (a(true), o(c, { key: 1 }, p(h.value, (l3, t2) => (a(), o("div", { key: t2, class: "bind-variable-item" }, [d(V, { onChange: _, modelValue: h.value[t2].series, "onUpdate:modelValue": (e3) => h.value[t2].series = e3, placeholder: "选择系列", multiple: "", clearable: "" }, { default: n(() => [(a(true), o(c, null, p(e2.configure.items, (e3) => (a(), u(C, { key: e3.uuid, label: e3.props.title, value: e3.uuid }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), d(x, { onClick: s((e3) => b(t2), ["prevent"]) }, { default: n(() => [d(f(v))]), _: 2 }, 1032, ["onClick"]), d(x, { onClick: s((e3) => function(e4) {
|
|
20
|
+
h.value.splice(e4, 1), _();
|
|
21
|
+
}(t2), ["prevent"]) }, { default: n(() => [d(f(g))]), _: 2 }, 1032, ["onClick"])]))), 128)) : (a(), u(y3, { key: 0, type: "text", onClick: m2[0] || (m2[0] = s((e3) => b(0), ["prevent"])) }, { default: n(() => m2[1] || (m2[1] = [r("添加堆叠系列")])), _: 1 }))])];
|
|
22
|
+
}), _: 1 });
|
|
23
|
+
};
|
|
24
|
+
} });
|
|
25
|
+
export {
|
|
26
|
+
y as default
|
|
27
|
+
};
|