super-page-designer 2.3.14-sit1-design3 → 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/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/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/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr-advanced.vue.js +36 -42
- package/dist/es/style.css +46 -1
- 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
- /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.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
|
};
|
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
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, resolveComponent as l, createBlock as
|
|
1
|
+
import { defineComponent as e, resolveComponent as l, createBlock as o, openBlock as t, withCtx as a, createElementVNode as i, createVNode as u, withDirectives as r, createTextVNode as p, vShow as n, createElementBlock as d, Fragment as s, renderList as m } from "vue";
|
|
2
2
|
const f = { style: { padding: "8px 0px 0px 0px" } }, c = e({ __name: "common-style-tooltip", props: { configure: { type: Object, required: true }, chartType: Object }, setup(e2) {
|
|
3
|
-
const c2 = ["8", "10", "12", "14", "16", "18", "20", "24", "28"];
|
|
4
|
-
return (
|
|
5
|
-
const y = l("el-switch"), x = l("el-form-item"), V = l("el-radio-button"), _ = l("el-radio-group"),
|
|
6
|
-
return
|
|
3
|
+
const c2 = e2, g = ["8", "10", "12", "14", "16", "18", "20", "24", "28"];
|
|
4
|
+
return c2.configure.style.axisPointer || (c2.configure.style.axisPointer = { type: "line" }), (c3, b) => {
|
|
5
|
+
const y = l("el-switch"), x = l("el-form-item"), V = l("el-radio-button"), _ = l("el-radio-group"), v = l("el-option"), h = l("el-select"), T = l("el-checkbox"), N = l("el-col"), F = l("el-row"), U = l("el-input"), P = l("el-checkbox-group"), z = l("el-color-picker"), w = l("el-text"), O = l("el-collapse-item");
|
|
6
|
+
return t(), o(O, { title: "提示消息(tooltip)", name: "styleTooltip", class: "amb-design-attr-group-header" }, { default: a(() => [i("div", f, [u(x, { label: "是否显示", style: { "margin-top": "0px", "margin-bottom": "-15px" } }, { default: a(() => [u(y, { modelValue: e2.configure.style.enableTooltip, "onUpdate:modelValue": b[0] || (b[0] = (l2) => e2.configure.style.enableTooltip = l2) }, null, 8, ["modelValue"])]), _: 1 }), r(u(x, { label: "触发类型", style: { "margin-top": "18px" } }, { default: a(() => [u(_, { modelValue: e2.configure.style.tooltipTrigger, "onUpdate:modelValue": b[1] || (b[1] = (l2) => e2.configure.style.tooltipTrigger = l2) }, { default: a(() => [u(V, { value: "" }, { default: a(() => b[12] || (b[12] = [p("默认")])), _: 1 }), u(V, { value: "item" }, { default: a(() => b[13] || (b[13] = [p("item")])), _: 1 }), r(u(V, { value: "axis" }, { default: a(() => b[14] || (b[14] = [p("axis")])), _: 1 }, 512), [[n, "radar" != e2.chartType]])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip]]), r(u(x, { label: "触发位置", style: { "margin-top": "-10px" } }, { default: a(() => [u(h, { modelValue: e2.configure.style.tooltipPosition, "onUpdate:modelValue": b[2] || (b[2] = (l2) => e2.configure.style.tooltipPosition = l2), placeholder: "默认", clearable: "" }, { default: a(() => [u(v, { label: "inside", value: "inside" }), u(v, { label: "top", value: "top" }), u(v, { label: "left", value: "left" }), u(v, { label: "right", value: "right" }), u(v, { label: "bottom", value: "bottom" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip && "item" == e2.configure.style.tooltipTrigger]]), r(u(x, { label: "数据格式", style: { "margin-top": "-15px" } }, { default: a(() => [u(P, { modelValue: e2.configure.style.tooltipNumFormat, "onUpdate:modelValue": b[6] || (b[6] = (l2) => e2.configure.style.tooltipNumFormat = l2) }, { default: a(() => [u(F, null, { default: a(() => [u(N, { span: 14 }, { default: a(() => [u(T, { value: "precision", label: "小数位数", size: "large" })]), _: 1 }), u(N, { span: 8 }, { default: a(() => [u(h, { style: { width: "70px", "margin-top": "8px" }, size: "small", modelValue: e2.configure.style.tooltipNumPrecision, "onUpdate:modelValue": b[3] || (b[3] = (l2) => e2.configure.style.tooltipNumPrecision = l2), disabled: e2.configure.style.tooltipNumFormat && -1 == e2.configure.style.tooltipNumFormat.indexOf("precision"), placeholder: "默认", clearable: "" }, { default: a(() => [u(v, { label: "1", value: "1" }), u(v, { label: "2", value: "2" }), u(v, { label: "3", value: "3" }), u(v, { label: "4", value: "4" }), u(v, { label: "5", value: "5" }), u(v, { label: "6", value: "6" })]), _: 1 }, 8, ["modelValue", "disabled"])]), _: 1 })]), _: 1 }), u(F, { style: { "margin-top": "-10px" } }, { default: a(() => [u(N, { span: 14 }, { default: a(() => [u(T, { value: "prefix", label: "前缀", size: "large" })]), _: 1 }), u(N, { span: 8 }, { default: a(() => [u(U, { size: "small", style: { width: "70px", "margin-top": "8px" }, modelValue: e2.configure.style.tooltipNumPrefix, "onUpdate:modelValue": b[4] || (b[4] = (l2) => e2.configure.style.tooltipNumPrefix = l2), disabled: e2.configure.style.tooltipNumFormat && -1 == e2.configure.style.tooltipNumFormat.indexOf("prefix"), placeholder: "" }, null, 8, ["modelValue", "disabled"])]), _: 1 })]), _: 1 }), u(F, { style: { "margin-top": "-10px" } }, { default: a(() => [u(N, { span: 14 }, { default: a(() => [u(T, { value: "append", label: "后缀", size: "large" })]), _: 1 }), u(N, { span: 8 }, { default: a(() => [u(U, { size: "small", style: { width: "70px", "margin-top": "8px" }, modelValue: e2.configure.style.tooltipNumAppend, "onUpdate:modelValue": b[5] || (b[5] = (l2) => e2.configure.style.tooltipNumAppend = l2), disabled: e2.configure.style.tooltipNumFormat && -1 == e2.configure.style.tooltipNumFormat.indexOf("append"), placeholder: "" }, null, 8, ["modelValue", "disabled"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip]]), r(u(x, { label: "文字颜色", style: { "margin-top": "-10px" } }, { default: a(() => [u(z, { modelValue: e2.configure.style.tooltipColor, "onUpdate:modelValue": b[7] || (b[7] = (l2) => e2.configure.style.tooltipColor = l2) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip]]), r(u(x, { label: "文字字号", style: { "margin-top": "-10px" } }, { default: a(() => [u(h, { modelValue: e2.configure.style.tooltipFontSize, "onUpdate:modelValue": b[8] || (b[8] = (l2) => e2.configure.style.tooltipFontSize = l2), placeholder: "默认", clearable: "" }, { default: a(() => [(t(), d(s, null, m(g, (e3) => u(v, { label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip]]), r(u(x, { label: "文字粗细", style: { "margin-top": "-10px" } }, { default: a(() => [u(h, { modelValue: e2.configure.style.tooltipWeight, "onUpdate:modelValue": b[9] || (b[9] = (l2) => e2.configure.style.tooltipWeight = l2), placeholder: "默认", clearable: "" }, { default: a(() => [u(v, { label: "bold", value: "bold" }), u(v, { label: "bolder", value: "bolder" }), u(v, { label: "lighter", value: "lighter" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip]]), r(u(x, { label: "坐标轴指示器类型", style: { "margin-top": "-10px" } }, { default: a(() => [u(h, { modelValue: e2.configure.style.axisPointer.type, "onUpdate:modelValue": b[10] || (b[10] = (l2) => e2.configure.style.axisPointer.type = l2), placeholder: "none", clearable: "" }, { default: a(() => [u(v, { label: "line", value: "line" }), u(v, { label: "cross", value: "cross" }), u(v, { label: "shadow", value: "shadow" }), u(v, { label: "none", value: "none" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip]]), r(u(x, { label: "内容定义", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: a(() => [u(U, { modelValue: e2.configure.style.tooltipFormatter, "onUpdate:modelValue": b[11] || (b[11] = (l2) => e2.configure.style.tooltipFormatter = l2), rows: 2, type: "textarea", placeholder: "" }, null, 8, ["modelValue"]), u(w, { style: { "line-height": "15px", "margin-top": "5px" }, type: "success", size: "small" }, { default: a(() => b[15] || (b[15] = [p(" {a}:系列名;{b}:数据名;{c}:数据值;{@xxx};{@[n]} ")])), _: 1 })]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip]])])]), _: 1 });
|
|
7
7
|
};
|
|
8
8
|
} });
|
|
9
9
|
export {
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { defineComponent as e, ref as l, computed as a, resolveComponent as t, createElementBlock as o, openBlock as u, Fragment as i, createElementVNode as n, createVNode as r, withDirectives as d, withCtx as p, createTextVNode as s, vShow as c, unref as f, renderList as m, createBlock as v, createCommentVNode as g, toDisplayString as b, withKeys as y } from "vue";
|
|
2
|
+
import { Plus as w, Delete as T, EditPen as h, Search as V } from "@element-plus/icons-vue";
|
|
3
|
+
import _ from "./common-variable-bind.vue.js";
|
|
4
|
+
import { getUuidv4 as k } from "../../../utils/common-util.js";
|
|
5
|
+
import { usePageContextStore as C } from "../../../../../stores/page-store.js";
|
|
6
|
+
import { getModelOptionsByFields as N } from "../../../utils/page-table-util.js";
|
|
7
|
+
const x = { style: { "max-height": "60vh", overflow: "auto" } }, U = { class: "card-header" }, O = { class: "title-config" }, D = { class: "card-remove" }, j = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, L = { class: "item-content" }, B = e({ __name: "common-task-title", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, required: true }, title: { type: String, default: "显示条件" } }, setup(e2) {
|
|
8
|
+
const B2 = C(), z = e2;
|
|
9
|
+
z.configure.props.task || (z.configure.props.task = {});
|
|
10
|
+
const I = l([]), S = l(""), E = a(() => "" === S.value.trim() ? z.pageDesign.modelFields : z.pageDesign.modelFields.filter((e3) => e3.alias.toLowerCase().includes(S.value.trim().toLowerCase()) || e3.dbColumnName.toLowerCase().includes(S.value.trim().toLowerCase())));
|
|
11
|
+
function $() {
|
|
12
|
+
if (G.value = true, I.value = [], z.configure.props.task.title) {
|
|
13
|
+
JSON.parse(JSON.stringify(z.configure.props.task.title)).forEach((e3) => {
|
|
14
|
+
e3.titleDynamicTags = [];
|
|
15
|
+
const l2 = e3.config.match(/\$\{(.+?)\}/g);
|
|
16
|
+
if (l2) for (const a2 of l2) e3.titleDynamicTags.push(a2);
|
|
17
|
+
I.value.push(e3);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const M = l(), F = B2.pageContext;
|
|
22
|
+
var q;
|
|
23
|
+
(q = F.currentTableConfig) && (M.value = N(q.modelFields));
|
|
24
|
+
const G = l(false), W = l(false), A = l(""), J = l(""), K = l(""), Q = l(false);
|
|
25
|
+
function H() {
|
|
26
|
+
if (0 === I.value.length) return void (z.configure.props.task.title = null);
|
|
27
|
+
const e3 = [];
|
|
28
|
+
I.value.forEach((l2) => {
|
|
29
|
+
var _a;
|
|
30
|
+
l2.titleDynamicTags && ((_a = l2.titleDynamicTags) == null ? void 0 : _a.length) > 0 && (l2.config = l2.titleDynamicTags.join(""), delete l2.titleDynamicTags, e3.push(l2));
|
|
31
|
+
}), z.configure.props.task.title = e3;
|
|
32
|
+
}
|
|
33
|
+
function P() {
|
|
34
|
+
const e3 = { uuid: k(), conditions: [], titleDynamicTags: [], config: "" };
|
|
35
|
+
I.value.push(e3);
|
|
36
|
+
}
|
|
37
|
+
function R(e3, l2) {
|
|
38
|
+
let a2 = -1;
|
|
39
|
+
const t2 = l2.conditions.length;
|
|
40
|
+
for (let o2 = 0; o2 < t2; o2++) if (l2.conditions[o2].uuid == e3.uuid) {
|
|
41
|
+
a2 = o2;
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
return a2;
|
|
45
|
+
}
|
|
46
|
+
function X(e3, l2) {
|
|
47
|
+
let a2 = -1;
|
|
48
|
+
e3 && (a2 = R(e3, l2));
|
|
49
|
+
const t2 = { uuid: k(), leftBracket: "", propName: "", operator: "", propValueType: "", rightBracket: "", joinSign: "", dataType: "" };
|
|
50
|
+
-1 === a2 ? l2.conditions.push(t2) : l2.conditions.splice(a2 + 1, 0, t2);
|
|
51
|
+
}
|
|
52
|
+
function Y(e3, l2, a2) {
|
|
53
|
+
if ("propValue" == a2) l2.propValue = e3;
|
|
54
|
+
else {
|
|
55
|
+
l2.propName = e3;
|
|
56
|
+
let a3 = "";
|
|
57
|
+
if (e3 && e3.startsWith("${")) {
|
|
58
|
+
let l3 = e3.substring(2, e3.length - 1);
|
|
59
|
+
if (l3.startsWith("page.")) ;
|
|
60
|
+
else if (l3.startsWith("data.")) {
|
|
61
|
+
l3 = l3.substring(5);
|
|
62
|
+
const e4 = B2.getModelField(l3);
|
|
63
|
+
a3 = e4 ? e4.dataType : null;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
l2.dataType = a3;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function Z(e3) {
|
|
70
|
+
return e3.indexOf("${field") >= 0 ? "success" : null;
|
|
71
|
+
}
|
|
72
|
+
function ee(e3) {
|
|
73
|
+
let l2 = e3;
|
|
74
|
+
if (e3.indexOf("${field[") >= 0) {
|
|
75
|
+
const e4 = l2.substring(l2.indexOf("[") + 1, l2.lastIndexOf("]"));
|
|
76
|
+
l2 = function(e5) {
|
|
77
|
+
let l3 = e5;
|
|
78
|
+
const a2 = B2.getModelField(e5);
|
|
79
|
+
a2 && (l3 = a2.alias);
|
|
80
|
+
return l3;
|
|
81
|
+
}(e4), l2 = "[" + l2 + "]";
|
|
82
|
+
} else if (e3.indexOf("${writeTitle[") >= 0) {
|
|
83
|
+
const a2 = e3.indexOf("${writeTitle[");
|
|
84
|
+
l2 = l2.substring(a2 + 13), l2 = l2.substring(0, l2.indexOf("]"));
|
|
85
|
+
}
|
|
86
|
+
return l2;
|
|
87
|
+
}
|
|
88
|
+
function le(e3) {
|
|
89
|
+
"" !== K.value.trim() && (J.value === e3.uuid && (K.value = "${writeTitle[" + K.value + "]}"), e3.titleDynamicTags.push(K.value)), K.value = "", J.value = "";
|
|
90
|
+
}
|
|
91
|
+
function ae() {
|
|
92
|
+
if ("" !== A.value && J.value) {
|
|
93
|
+
const e3 = I.value.find((e4) => e4.uuid === J.value);
|
|
94
|
+
e3 && e3.titleDynamicTags && e3.titleDynamicTags.push("${field[" + A.value + "]}");
|
|
95
|
+
}
|
|
96
|
+
J.value = "", A.value = "", W.value = false;
|
|
97
|
+
}
|
|
98
|
+
return (l2, a2) => {
|
|
99
|
+
const k2 = t("el-button"), C2 = t("el-text"), N2 = t("el-row"), B3 = t("el-tag"), z2 = t("el-input"), F2 = t("el-button-group"), q2 = t("super-icon"), te = t("el-popconfirm"), oe = t("Top"), ue = t("el-icon"), ie = t("Bottom"), ne = t("el-table-column"), re = t("el-option"), de = t("el-select"), pe = t("el-table"), se = t("el-card"), ce = t("el-dialog"), fe = t("el-radio"), me = t("el-radio-group");
|
|
100
|
+
return u(), o(i, null, [n("div", null, [r(k2, { type: "primary", onClick: $ }, { default: p(() => a2[6] || (a2[6] = [s("编辑")])), _: 1 }), d(r(C2, { type: "success" }, { default: p(() => a2[7] || (a2[7] = [s(" 已设置.")])), _: 1 }, 512), [[c, e2.configure.props.task.title]])]), r(ce, { "append-to-body": "", "destroy-on-close": "", modelValue: G.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => G.value = e3), title: e2.title, width: "900", onClose: H }, { default: p(() => [r(N2, { style: { "padding-bottom": "8px" } }, { default: p(() => [r(k2, { icon: f(w), plain: "", type: "primary", onClick: P }, { default: p(() => a2[8] || (a2[8] = [s(" 添加标题 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), n("div", x, [(u(true), o(i, null, m(I.value, (e3, l3) => (u(), v(se, null, { header: p(() => [n("div", U, [n("div", O, [(u(true), o(i, null, m(e3.titleDynamicTags, (l4, a3) => (u(), v(B3, { key: a3 + l4, type: Z(l4), closable: "", "disable-transitions": false, onClose: (a4) => function(e4, l5) {
|
|
101
|
+
const a5 = l5.titleDynamicTags.indexOf(e4);
|
|
102
|
+
a5 >= 0 && l5.titleDynamicTags.splice(a5, 1);
|
|
103
|
+
}(l4, e3) }, { default: p(() => [s(b(ee(l4)), 1)]), _: 2 }, 1032, ["type", "onClose"]))), 128)), J.value === e3.uuid && false === W.value ? (u(), v(z2, { key: 0, style: { width: "150px", "margin-right": "8px" }, modelValue: K.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => K.value = e4), size: "small", ref_for: true, ref: "saveTagInput" + e3.uuid, onKeyup: y((l4) => le(e3), ["enter", "native"]), onBlur: (l4) => le(e3) }, null, 8, ["modelValue", "onKeyup", "onBlur"])) : g("", true), J.value && J.value === e3.uuid ? g("", true) : (u(), v(F2, { key: 1 }, { default: p(() => [r(k2, { class: "button-new-tag", size: "small", icon: f(h), onClick: (l4) => function(e4) {
|
|
104
|
+
J.value = e4.uuid, Q.value = false;
|
|
105
|
+
}(e3) }, { default: p(() => a2[9] || (a2[9] = [s(" 输入文字 ")])), _: 2 }, 1032, ["icon", "onClick"]), r(k2, { class: "button-new-tag", size: "small", icon: f(V), onClick: (l4) => function(e4) {
|
|
106
|
+
J.value = e4.uuid, W.value = true;
|
|
107
|
+
}(e3) }, { default: p(() => a2[10] || (a2[10] = [s(" 选择字段 ")])), _: 2 }, 1032, ["icon", "onClick"])]), _: 2 }, 1024))]), n("div", D, [r(te, { title: "确认删除该标题配置吗?", onConfirm: (e4) => function(e5) {
|
|
108
|
+
I.value.splice(e5, 1);
|
|
109
|
+
}(l3) }, { reference: p(() => [r(q2, { style: { cursor: "pointer" }, iconValue: "amb-color-icon-shanchu" })]), _: 2 }, 1032, ["onConfirm"])])])]), default: p(() => [r(pe, { border: "", "highlight-current-row": "", "current-row-key": "uuid", "row-key": "uuid", data: e3.conditions, style: { width: "100%" } }, { default: p(() => [r(ne, { label: "", width: "50" }, { default: p((l4) => [n("div", j, [r(ue, { size: "14", style: { cursor: "pointer" }, onClick: (a3) => function(e4, l5) {
|
|
110
|
+
let a4 = R(e4, l5);
|
|
111
|
+
if (a4 < 1) return;
|
|
112
|
+
const t2 = l5.conditions;
|
|
113
|
+
[t2[a4 - 1], t2[a4]] = [t2[a4], t2[a4 - 1]];
|
|
114
|
+
}(l4.row, e3) }, { default: p(() => [r(oe)]), _: 2 }, 1032, ["onClick"]), r(ue, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (a3) => function(e4, l5) {
|
|
115
|
+
let a4 = R(e4, l5);
|
|
116
|
+
if (-1 == a4 || l5.conditions.length == a4 + 1) return;
|
|
117
|
+
const t2 = l5.conditions;
|
|
118
|
+
[t2[a4], t2[a4 + 1]] = [t2[a4 + 1], t2[a4]];
|
|
119
|
+
}(l4.row, e3) }, { default: p(() => [r(ie)]), _: 2 }, 1032, ["onClick"])])]), _: 2 }, 1024), r(ne, { prop: "leftBracket", label: "(", width: "80" }, { default: p((e4) => [r(de, { modelValue: e4.row.leftBracket, "onUpdate:modelValue": (l4) => e4.row.leftBracket = l4, clearable: "", placeholder: "请选择" }, { default: p(() => [r(re, { label: "", value: "" }), r(re, { label: "(", value: "(" }), r(re, { label: "((", value: "((" }), r(re, { label: "(((", value: "(((" }), r(re, { label: "((((", value: "((((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(ne, { prop: "propName", label: "字段名(*)", width: "150" }, { default: p((e4) => [r(_, { modelValue: e4.row.propName, objModelOptions: M.value, paramTypes: ["data", "task", "page", "request", "row"], "onUpdate:modelValue": (l4) => Y(l4, e4.row, "propName") }, null, 8, ["modelValue", "objModelOptions", "onUpdate:modelValue"])]), _: 1 }), r(ne, { prop: "operator", label: "操作符", width: "90" }, { default: p((e4) => [r(de, { modelValue: e4.row.operator, "onUpdate:modelValue": (l4) => e4.row.operator = l4, clearable: "", placeholder: "请选择" }, { default: p(() => [d(r(re, { label: "大于", value: "GT" }, null, 512), [[c, "int" == e4.row.dataType || "long" == e4.row.dataType || "float" == e4.row.dataType || "double" == e4.row.dataType]]), d(r(re, { label: "小于", value: "LT" }, null, 512), [[c, "int" == e4.row.dataType || "long" == e4.row.dataType || "float" == e4.row.dataType || "double" == e4.row.dataType]]), d(r(re, { label: "晚于", value: "GT" }, null, 512), [[c, "date" == e4.row.dataType || "datetime" == e4.row.dataType]]), d(r(re, { label: "早于", value: "LT" }, null, 512), [[c, "date" == e4.row.dataType || "datetime" == e4.row.dataType]]), r(re, { label: "等于", value: "EQ" }), d(r(re, { label: "不大于", value: "LET" }, null, 512), [[c, "int" == e4.row.dataType || "long" == e4.row.dataType || "float" == e4.row.dataType || "double" == e4.row.dataType]]), d(r(re, { label: "不小于", value: "GET" }, null, 512), [[c, "int" == e4.row.dataType || "long" == e4.row.dataType || "float" == e4.row.dataType || "double" == e4.row.dataType]]), d(r(re, { label: "不晚于", value: "LET" }, null, 512), [[c, "date" == e4.row.dataType || "datetime" == e4.row.dataType]]), d(r(re, { label: "不早于", value: "GET" }, null, 512), [[c, "date" == e4.row.dataType || "datetime" == e4.row.dataType]]), r(re, { label: "不等于", value: "NET" }), r(re, { label: "包含", value: "CONTAIN" }), r(re, { label: "不包含", value: "NOT_CONTAIN" }), r(re, { label: "等于Null", value: "IS_NULL" }), r(re, { label: "不等于Null", value: "IS_NOT_NULL" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(ne, { prop: "propValue", label: "值(*)", width: "120" }, { default: p((e4) => [r(_, { modelValue: e4.row.propValue, objModelOptions: M.value, "onUpdate:modelValue": (l4) => Y(l4, e4.row, "propValue") }, null, 8, ["modelValue", "objModelOptions", "onUpdate:modelValue"])]), _: 1 }), r(ne, { prop: "rightBracket", label: ")", width: "80" }, { default: p((e4) => [r(de, { modelValue: e4.row.rightBracket, "onUpdate:modelValue": (l4) => e4.row.rightBracket = l4, placeholder: "请选择", clearable: "" }, { default: p(() => [r(re, { label: "", value: "" }), r(re, { label: ")", value: ")" }), r(re, { label: "))", value: "))" }), r(re, { label: ")))", value: ")))" }), r(re, { label: "))))", value: "))))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(ne, { prop: "joinSign", label: "并且/或者", width: "80" }, { default: p((e4) => [r(de, { modelValue: e4.row.joinSign, "onUpdate:modelValue": (l4) => e4.row.joinSign = l4, clearable: "", placeholder: "请选择" }, { default: p(() => [r(re, { label: "或者", value: "or" }), r(re, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(ne, { prop: "variableIsNull", label: "变量为空时", width: "100" }, { default: p((e4) => [r(de, { modelValue: e4.row.variableIsNull, "onUpdate:modelValue": (l4) => e4.row.variableIsNull = l4, clearable: "", placeholder: "请选择" }, { default: p(() => [r(re, { label: "Null", value: "null" }), r(re, { label: "忽略(1=1)", value: "ignore" }), r(re, { label: "不符合(1<>1)", value: "notequal" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(ne, { label: "操作" }, { header: p(() => [r(k2, { icon: f(w), plain: "", type: "primary", onClick: (l4) => X(null, e3) }, { default: p(() => a2[11] || (a2[11] = [s(" 添加条件 ")])), _: 2 }, 1032, ["icon", "onClick"])]), default: p((l4) => [r(ue, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px", "margin-left": "6px" }, onClick: (a3) => X(l4.row, e3) }, { default: p(() => [r(f(w))]), _: 2 }, 1032, ["onClick"]), r(ue, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (a3) => function(e4, l5) {
|
|
120
|
+
let a4 = R(e4, l5);
|
|
121
|
+
a4 > -1 && l5.conditions.splice(a4, 1);
|
|
122
|
+
}(l4.row, e3) }, { default: p(() => [r(f(T))]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1032, ["data"])]), _: 2 }, 1024))), 256))])]), _: 1 }, 8, ["modelValue", "title"]), r(ce, { "append-to-body": "", modelValue: W.value, "onUpdate:modelValue": a2[5] || (a2[5] = (e3) => W.value = e3), title: e2.title, width: "900" }, { footer: p(() => [r(k2, { type: "primary", size: "small", onClick: ae }, { default: p(() => a2[12] || (a2[12] = [s(" 确定 ")])), _: 1 }), r(k2, { size: "small", onClick: a2[4] || (a2[4] = (e3) => W.value = false) }, { default: p(() => a2[13] || (a2[13] = [s(" 取消 ")])), _: 1 })]), default: p(() => [r(z2, { modelValue: S.value, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => S.value = e3), placeholder: "筛选字段", clearable: "" }, null, 8, ["modelValue"]), n("div", L, [r(me, { modelValue: A.value, "onUpdate:modelValue": a2[3] || (a2[3] = (e3) => A.value = e3), class: "group" }, { default: p(() => [(u(true), o(i, null, m(E.value, (e3) => (u(), o("li", { key: e3.dbColumnName, class: "item" }, [r(fe, { value: e3.dbColumnName }, { default: p(() => [s(b(e3.alias), 1)]), _: 2 }, 1032, ["value"])]))), 128))]), _: 1 }, 8, ["modelValue"])])]), _: 1 }, 8, ["modelValue", "title"])], 64);
|
|
123
|
+
};
|
|
124
|
+
} });
|
|
125
|
+
export {
|
|
126
|
+
B as default
|
|
127
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as o, resolveComponent as a, createBlock as i, openBlock as n, withCtx as t, createVNode as s, createCommentVNode as u, createElementVNode as r, createElementBlock as c, Fragment as g, renderList as f, createTextVNode as p, withDirectives as m, 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";
|
|
@@ -6,63 +6,57 @@ import C from "../component/journal-set-dialog.vue.js";
|
|
|
6
6
|
import _ from "../../common/common-advanced-basic-showcondition.vue.js";
|
|
7
7
|
import { isShowOpinionSetting as k } from "../../../../utils/form-design-util.js";
|
|
8
8
|
import V from "agilebuilder-ui/src/utils/request";
|
|
9
|
-
import { getTableConfigByTableUuid as
|
|
10
|
-
import "
|
|
11
|
-
|
|
12
|
-
import "../../../../../../stores/page-store.js";
|
|
13
|
-
import "../../../../../../stores/table-store.js";
|
|
14
|
-
import "../../../../../../stores/statistics-table-store.js";
|
|
15
|
-
/* empty css */
|
|
16
|
-
/* empty css */
|
|
17
|
-
const h = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "extract-attr-advanced", props: { configure: { type: Object, default: () => {
|
|
9
|
+
import { getTableConfigByTableUuid as D } from "../../../../utils/page-table-util.js";
|
|
10
|
+
import h from "../../common/common-task-title.vue.js";
|
|
11
|
+
const w = { style: { padding: "8px 0px 0px 0px" } }, j = e({ __name: "extract-attr-advanced", props: { configure: { type: Object, default: () => {
|
|
18
12
|
} }, pageDesign: { type: Object, default: () => {
|
|
19
13
|
} } }, setup(e2) {
|
|
20
14
|
var _a;
|
|
21
|
-
const
|
|
22
|
-
function
|
|
23
|
-
|
|
15
|
+
const j2 = e2, x = l(["base"]), O = l(false), M = l([]), L = (_a = j2.pageDesign) == null ? void 0 : _a.systemVersion, R = l(D(j2.pageDesign, j2.configure));
|
|
16
|
+
function S() {
|
|
17
|
+
O.value = false;
|
|
24
18
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
19
|
+
function U(e3) {
|
|
20
|
+
j2.configure.props.base.logSetting = e3, S();
|
|
27
21
|
}
|
|
28
|
-
V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${
|
|
29
|
-
|
|
22
|
+
V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${j2.pageDesign.systemCode}/${L}`).then((e3) => {
|
|
23
|
+
M.value = e3;
|
|
30
24
|
});
|
|
31
|
-
const
|
|
32
|
-
function
|
|
33
|
-
|
|
25
|
+
const N = l(false);
|
|
26
|
+
function z() {
|
|
27
|
+
N.value = false;
|
|
34
28
|
}
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
|
|
29
|
+
const q = l(false);
|
|
30
|
+
function A() {
|
|
31
|
+
q.value = false;
|
|
38
32
|
}
|
|
39
|
-
function
|
|
40
|
-
|
|
33
|
+
function T(e3) {
|
|
34
|
+
j2.configure.props.setValueList = e3;
|
|
41
35
|
}
|
|
42
|
-
const $ =
|
|
36
|
+
const $ = l(false);
|
|
43
37
|
function E() {
|
|
44
38
|
$.value = false;
|
|
45
39
|
}
|
|
46
40
|
function F(e3) {
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
const P =
|
|
50
|
-
function
|
|
51
|
-
let
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
-
const a2 =
|
|
55
|
-
|
|
41
|
+
j2.configure.props.base.showConditions = JSON.stringify(e3);
|
|
42
|
+
}
|
|
43
|
+
const P = l(I("opinion")), W = l(I("wfRemark"));
|
|
44
|
+
function I(e3) {
|
|
45
|
+
let l2 = false;
|
|
46
|
+
const o2 = j2.configure.events.filter((e4) => "click" === e4.name && e4.eventName);
|
|
47
|
+
if (o2 && o2.length > 0) {
|
|
48
|
+
const a2 = o2[0].eventName;
|
|
49
|
+
l2 = k(a2, e3);
|
|
56
50
|
}
|
|
57
|
-
return
|
|
51
|
+
return l2;
|
|
58
52
|
}
|
|
59
|
-
return
|
|
60
|
-
P.value =
|
|
61
|
-
}, { immediate: true }), (
|
|
62
|
-
const k2 = a("el-option"), V2 = a("el-select"),
|
|
63
|
-
return
|
|
53
|
+
return o(j2.configure.events, (e3) => {
|
|
54
|
+
P.value = I("opinion"), W.value = I("wfRemark"), P.value || (j2.configure.props.base.isMustOpinion = false);
|
|
55
|
+
}, { immediate: true }), (l2, o2) => {
|
|
56
|
+
const k2 = a("el-option"), V2 = a("el-select"), D2 = a("el-form-item"), j3 = a("el-button"), L2 = a("el-text"), I2 = a("el-switch"), J = a("el-collapse-item"), B = a("el-collapse"), G = a("el-form");
|
|
57
|
+
return n(), i(G, { "label-width": "80px", size: "small" }, { default: t(() => [s(B, { modelValue: x.value, "onUpdate:modelValue": o2[8] || (o2[8] = (e3) => x.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [s(J, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", w, [s(D2, { label: "成功后", class: "amb-design-attr-item" }, { default: t(() => [s(V2, { modelValue: e2.configure.props.base.successOperation, "onUpdate:modelValue": o2[0] || (o2[0] = (l3) => e2.configure.props.base.successOperation = l3), class: "ml-4" }, { default: t(() => [s(k2, { label: "无操作", value: "noOperation" }), s(k2, { label: "刷新", value: "refresh" }), s(k2, { label: "关闭窗口", value: "closeWindow" }), s(k2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(D2, { label: "转换规则", class: "amb-design-attr-item" }, { default: t(() => [s(V2, { modelValue: e2.configure.props.base.conversionCodes, "onUpdate:modelValue": o2[1] || (o2[1] = (l3) => e2.configure.props.base.conversionCodes = l3), multiple: "", class: "ml-4" }, { default: t(() => [(n(true), c(g, null, f(M.value, (e3) => (n(), i(k2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(D2, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [s(j3, { type: "primary", onClick: o2[2] || (o2[2] = (e3) => N.value = true) }, { default: t(() => o2[9] || (o2[9] = [p("编辑")])), _: 1 })]), _: 1 }), s(D2, { label: "启用条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", tableConfigure: R.value, type: "editConditions" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(D2, { label: "自动设值", class: "amb-design-attr-item" }, { default: t(() => [s(j3, { type: "primary", onClick: o2[3] || (o2[3] = (e3) => q.value = true) }, { default: t(() => o2[10] || (o2[10] = [p("编辑")])), _: 1 }), m(s(L2, { type: "success" }, { default: t(() => o2[11] || (o2[11] = [p(" 已设置条件. ")])), _: 1 }, 512), [[d, e2.configure.props && e2.configure.props.setValueList && e2.configure.props.setValueList.length > 0]])]), _: 1 }), s(D2, { label: "显示条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions", tableConfigure: R.value }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(D2, { label: "日志设置", class: "amb-design-attr-item" }, { default: t(() => [s(j3, { type: "primary", onClick: o2[4] || (o2[4] = (e3) => O.value = true) }, { default: t(() => o2[12] || (o2[12] = [p("编辑")])), _: 1 })]), _: 1 }), s(D2, { label: "主管必填", class: "amb-design-attr-item" }, { default: t(() => [s(I2, { modelValue: e2.configure.props.base.requireExtractTransactor, "onUpdate:modelValue": o2[5] || (o2[5] = (l3) => e2.configure.props.base.requireExtractTransactor = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), P.value ? (n(), i(D2, { key: 0, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [s(I2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": o2[6] || (o2[6] = (l3) => e2.configure.props.base.isMustOpinion = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustOpinion ? (n(), i(D2, { key: 1, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: R.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true), W.value ? (n(), i(D2, { key: 2, label: "备注必填", class: "amb-design-attr-item" }, { default: t(() => [s(I2, { modelValue: e2.configure.props.base.isMustRemark, "onUpdate:modelValue": o2[7] || (o2[7] = (l3) => e2.configure.props.base.isMustRemark = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustRemark ? (n(), i(D2, { key: 3, label: "备注必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_remark", configure: e2.configure, type: "mustRemarkConditions", tableConfigure: R.value, title: "办理备注必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true), s(D2, { 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 })])]), _: 1 }), N.value ? (n(), i(b, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: R.value, onClose: z }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), q.value ? (n(), i(v, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: R.value, onSave: T, onClose: A }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), $.value ? (n(), i(y, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: R.value, onSave: F, onClose: E }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : u("", true), O.value ? (n(), i(C, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: S, onSave: U }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
64
58
|
};
|
|
65
59
|
} });
|
|
66
60
|
export {
|
|
67
|
-
|
|
61
|
+
j as default
|
|
68
62
|
};
|
package/dist/es/style.css
CHANGED
|
@@ -13105,7 +13105,42 @@ fieldset.amb-design-item-selected {
|
|
|
13105
13105
|
.collapse-item-content[data-v-4cfd68dd] {
|
|
13106
13106
|
padding: 8px 0px 0px 0px;
|
|
13107
13107
|
}
|
|
13108
|
-
|
|
13108
|
+
|
|
13109
|
+
[data-v-6043ad3d] .el-card__body {
|
|
13110
|
+
padding: 10px 0px;
|
|
13111
|
+
}
|
|
13112
|
+
.group[data-v-6043ad3d] {
|
|
13113
|
+
font-size: 14px;
|
|
13114
|
+
width: 100%;
|
|
13115
|
+
}
|
|
13116
|
+
.item[data-v-6043ad3d] {
|
|
13117
|
+
float: left;
|
|
13118
|
+
list-style-type: none;
|
|
13119
|
+
width: 33.33%;
|
|
13120
|
+
margin-bottom: 18px;
|
|
13121
|
+
}
|
|
13122
|
+
.item-content[data-v-6043ad3d] {
|
|
13123
|
+
height: calc(100vh - 400px);
|
|
13124
|
+
margin-top: 10px;
|
|
13125
|
+
overflow: auto;
|
|
13126
|
+
}
|
|
13127
|
+
.card-header[data-v-6043ad3d] {
|
|
13128
|
+
width: 100%;
|
|
13129
|
+
display: flex;
|
|
13130
|
+
justify-content: space-between;
|
|
13131
|
+
align-items: center;
|
|
13132
|
+
}
|
|
13133
|
+
|
|
13134
|
+
/* 保证左侧内容在一行内靠左,右侧按钮靠右 */
|
|
13135
|
+
.title-config[data-v-6043ad3d] {
|
|
13136
|
+
display: flex;
|
|
13137
|
+
align-items: center;
|
|
13138
|
+
gap: 8px;
|
|
13139
|
+
flex: 1;
|
|
13140
|
+
}
|
|
13141
|
+
.card-remove[data-v-6043ad3d] {
|
|
13142
|
+
/* 如需微调右侧位置可加 padding/margin */
|
|
13143
|
+
}.amb-button-group-main[data-v-1320eaf4] {
|
|
13109
13144
|
min-height: 32px;
|
|
13110
13145
|
display: flex;
|
|
13111
13146
|
min-width: 100px;
|
|
@@ -18692,6 +18727,16 @@ fieldset.amb-design-item-selected {
|
|
|
18692
18727
|
.amb-design-board-main .el-tabs .amb-design-item-default.el-tabs--top {
|
|
18693
18728
|
flex-direction: column-reverse;
|
|
18694
18729
|
}
|
|
18730
|
+
.el-icon[data-v-03542500] {
|
|
18731
|
+
cursor: pointer;
|
|
18732
|
+
}
|
|
18733
|
+
.bind-variable-item[data-v-03542500] {
|
|
18734
|
+
display: flex;
|
|
18735
|
+
align-items: center;
|
|
18736
|
+
gap: 5px;
|
|
18737
|
+
margin-top: 6px;
|
|
18738
|
+
}
|
|
18739
|
+
|
|
18695
18740
|
.el-switch + .el-button[data-v-513f0eca] {
|
|
18696
18741
|
margin-left: 20px;
|
|
18697
18742
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-designer",
|
|
3
|
-
"version": "2.3.14-
|
|
3
|
+
"version": "2.3.14-sit4-design1",
|
|
4
4
|
"description": "AgileBuilder super page designer",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
30
30
|
"@vueuse/core": "^10.9.0",
|
|
31
31
|
"agilebuilder-private-libs": "1.0.26",
|
|
32
|
-
"agilebuilder-ui": "1.1.54-
|
|
32
|
+
"agilebuilder-ui": "1.1.54-sit5",
|
|
33
33
|
"echarts": "^5.5.0",
|
|
34
34
|
"element-plus": "^2.6.1",
|
|
35
35
|
"font-awesome": "^4.7.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"qrcode": "^1.5.3",
|
|
42
42
|
"quill": "^2.0.1",
|
|
43
43
|
"service-flow-designer": "2.3.12-flow1",
|
|
44
|
-
"super-page-runtime": "2.3.14-
|
|
44
|
+
"super-page-runtime": "2.3.14-sit4",
|
|
45
45
|
"uuid": "^9.0.1",
|
|
46
46
|
"vite": "^5.1.6",
|
|
47
47
|
"vite-plugin-node-stdlib-browser": "^0.2.1",
|
|
File without changes
|