super-page-designer 2.1.52 → 2.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/design/utils/assemblys-config.js +13 -22
- package/dist/es/components/design/utils/chart-design-util.js +17 -0
- package/dist/es/components/design/utils/data-table-util.js +11 -9
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +60 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-events.vue.js +22 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-events.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-style-yaxis.vue.js +89 -23
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +13 -5
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue.js +347 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +1 -4
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +77 -50
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +1 -734
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +738 -1
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +9 -2
- package/dist/es/components/design/views/assemblys/common-attr-events.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +1 -11
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +31 -5
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +5 -37
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +3 -2
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +5 -3
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +45 -1
- package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +30 -1
- package/dist/es/components/design/views/design/page-event/config.vue.js +1 -7
- package/dist/es/components/design/views/design/page-event/config.vue2.js +7 -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/view-design-display.vue.js +1 -1
- package/dist/es/style.css +35 -35
- package/package.json +5 -5
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +0 -205
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue2.js +0 -4
|
@@ -160,23 +160,6 @@ const tableIndexColumnConf = {
|
|
|
160
160
|
tittleClass: ""
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
|
-
const statisticsTableIndexColumnConf = {
|
|
164
|
-
uuid: "",
|
|
165
|
-
name: "",
|
|
166
|
-
props: {
|
|
167
|
-
base: {
|
|
168
|
-
name: "序号",
|
|
169
|
-
prop: "$index",
|
|
170
|
-
sortable: true,
|
|
171
|
-
displayOrder: 1,
|
|
172
|
-
headerAlign: "center",
|
|
173
|
-
align: "center",
|
|
174
|
-
visible: true
|
|
175
|
-
},
|
|
176
|
-
format: {}
|
|
177
|
-
},
|
|
178
|
-
style: {}
|
|
179
|
-
};
|
|
180
163
|
const tableSelectionColumnConf = {
|
|
181
164
|
uuid: "",
|
|
182
165
|
name: "",
|
|
@@ -2698,6 +2681,10 @@ const assemblyGroups = [
|
|
|
2698
2681
|
size: { fixHeight: 300, widthType: "flex", flexSpan: 24 }
|
|
2699
2682
|
},
|
|
2700
2683
|
style: { yaxisLeft: {}, yaxisRight: {} },
|
|
2684
|
+
events: [
|
|
2685
|
+
{ name: "beforeUpdateChart", label: "图表更新前" },
|
|
2686
|
+
{ name: "afterUpdateChart", label: "图表更新后", tip: "图表更新后" }
|
|
2687
|
+
],
|
|
2701
2688
|
designComponent: defineAsyncComponent(() => {
|
|
2702
2689
|
return import("../views/assemblys/chart/column-line/column-line-design.vue.js");
|
|
2703
2690
|
}),
|
|
@@ -2865,7 +2852,7 @@ const assemblyGroups = [
|
|
|
2865
2852
|
name: "statistical-table",
|
|
2866
2853
|
label: "统计表格",
|
|
2867
2854
|
icon: dataTable,
|
|
2868
|
-
items: [
|
|
2855
|
+
items: [],
|
|
2869
2856
|
modelFields: [],
|
|
2870
2857
|
props: {
|
|
2871
2858
|
base: {
|
|
@@ -3011,9 +2998,6 @@ function getTableOperateConf() {
|
|
|
3011
2998
|
function getTableIndexConf() {
|
|
3012
2999
|
return getCopyColumn(tableIndexColumnConf);
|
|
3013
3000
|
}
|
|
3014
|
-
function getStatisticsTableIndexConf() {
|
|
3015
|
-
return getCopyColumn(statisticsTableIndexColumnConf);
|
|
3016
|
-
}
|
|
3017
3001
|
function getTableSelectionConf() {
|
|
3018
3002
|
return getCopyColumn(tableSelectionColumnConf);
|
|
3019
3003
|
}
|
|
@@ -3337,6 +3321,13 @@ function getComponentEventOptions(componentName) {
|
|
|
3337
3321
|
}
|
|
3338
3322
|
}
|
|
3339
3323
|
}
|
|
3324
|
+
function getInputTypeComponentNames() {
|
|
3325
|
+
const inputComponent = [];
|
|
3326
|
+
assemblyGroups.find((item) => item.name === "form").items.forEach((item) => {
|
|
3327
|
+
inputComponent.push(item.name);
|
|
3328
|
+
});
|
|
3329
|
+
return inputComponent;
|
|
3330
|
+
}
|
|
3340
3331
|
export {
|
|
3341
3332
|
assemblyGroups,
|
|
3342
3333
|
getAttrComponentByName,
|
|
@@ -3346,10 +3337,10 @@ export {
|
|
|
3346
3337
|
getDesignEvents,
|
|
3347
3338
|
getFormComponentOptions,
|
|
3348
3339
|
getInitialInformationByName,
|
|
3340
|
+
getInputTypeComponentNames,
|
|
3349
3341
|
getListComponentOptions,
|
|
3350
3342
|
getPageConf,
|
|
3351
3343
|
getStatisticsTableColumn,
|
|
3352
|
-
getStatisticsTableIndexConf,
|
|
3353
3344
|
getTableColumnConf,
|
|
3354
3345
|
getTableIndexConf,
|
|
3355
3346
|
getTableOperateConf,
|
|
@@ -463,6 +463,22 @@ function generateYaxisJson(styleYaxis, optionYaxis) {
|
|
|
463
463
|
}
|
|
464
464
|
optionYaxis.min = styleYaxis.min;
|
|
465
465
|
optionYaxis.max = styleYaxis.max;
|
|
466
|
+
if (styleYaxis._dataMin === "auto") {
|
|
467
|
+
optionYaxis._dataMin = styleYaxis._dataMin;
|
|
468
|
+
optionYaxis.min = function(value) {
|
|
469
|
+
if (value.min) {
|
|
470
|
+
return Math.floor(value.min / 10) * 10;
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
if (styleYaxis._dataMax === "auto") {
|
|
475
|
+
optionYaxis._dataMax = styleYaxis._dataMax;
|
|
476
|
+
optionYaxis.max = function(value) {
|
|
477
|
+
if (value.max) {
|
|
478
|
+
return Math.ceil(value.max / 10) * 10;
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
}
|
|
466
482
|
if (styleYaxis.enableAxisLine != void 0) {
|
|
467
483
|
optionYaxis.splitLine.show = styleYaxis.enableAxisLine;
|
|
468
484
|
if (styleYaxis.enableAxisLine) {
|
|
@@ -1598,6 +1614,7 @@ function initComponentDataConfig(configure, headerInfo) {
|
|
|
1598
1614
|
} else {
|
|
1599
1615
|
pageDesign.initChartServiceConfigs.push(config);
|
|
1600
1616
|
}
|
|
1617
|
+
config.resultSet = dataOriginInfo.resultSet ? dataOriginInfo.resultSet : null;
|
|
1601
1618
|
return config;
|
|
1602
1619
|
} else if (existIndex > -1) {
|
|
1603
1620
|
pageDesign.initChartServiceConfigs.shift(existIndex, 1);
|
|
@@ -268,15 +268,17 @@ function getTopGroupHeaderColumnList(groupHeaders, columnItems) {
|
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
eventBus.$emit("setFieldGroup", compositeHeaderFieldGroup);
|
|
271
|
-
columnItems
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
271
|
+
if (columnItems) {
|
|
272
|
+
columnItems.forEach((item) => {
|
|
273
|
+
if (item.props.base && item.props.base.prop == "$selection") {
|
|
274
|
+
topGroupHeaderList.unshift(item);
|
|
275
|
+
} else if (item.props.base && item.props.base.prop == "$index") {
|
|
276
|
+
topGroupHeaderList.splice(1, 0, item);
|
|
277
|
+
} else if (item.props.base && item.props.base.prop == "operation") {
|
|
278
|
+
topGroupHeaderList.push(item);
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
}
|
|
280
282
|
topGroupHeaderList = topGroupHeaderList.sort((a, b) => a.displayOrder - b.displayOrder);
|
|
281
283
|
return topGroupHeaderList;
|
|
282
284
|
}
|
package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr.vue2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, createTextVNode, createBlock, createCommentVNode, withDirectives, createVNode, vShow } from "vue";
|
|
2
2
|
import _sfc_main$1 from "./column-line-attr-base.vue.js";
|
|
3
3
|
import _sfc_main$2 from "./column-line-attr-style.vue.js";
|
|
4
|
-
import _sfc_main$3 from "
|
|
4
|
+
import _sfc_main$3 from "../common/common-attr-events.vue.js";
|
|
5
5
|
import _sfc_main$4 from "./attr-advanced.vue.js";
|
|
6
6
|
const _hoisted_1 = { class: "amb-design-attr-content" };
|
|
7
7
|
const _hoisted_2 = { class: "amb-design-attr-header" };
|
|
@@ -41,15 +41,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
createElementVNode("div", _hoisted_2, [
|
|
42
42
|
createElementVNode("div", _hoisted_3, [
|
|
43
43
|
createElementVNode("label", {
|
|
44
|
-
class: normalizeClass({
|
|
44
|
+
class: normalizeClass({ selected: selAsselbyType.value == "base" }),
|
|
45
45
|
onClick: _cache[0] || (_cache[0] = ($event) => selAsselbyType.value = "base")
|
|
46
46
|
}, "属性", 2),
|
|
47
47
|
createElementVNode("label", {
|
|
48
|
-
class: normalizeClass({
|
|
48
|
+
class: normalizeClass({ selected: selAsselbyType.value == "style" }),
|
|
49
49
|
onClick: _cache[1] || (_cache[1] = ($event) => selAsselbyType.value = "style")
|
|
50
50
|
}, "样式", 2),
|
|
51
51
|
createElementVNode("label", {
|
|
52
|
-
class: normalizeClass({
|
|
52
|
+
class: normalizeClass({ selected: selAsselbyType.value == "event" }),
|
|
53
53
|
onClick: _cache[2] || (_cache[2] = ($event) => selAsselbyType.value = "event")
|
|
54
54
|
}, [
|
|
55
55
|
createTextVNode(" 事件 "),
|
|
@@ -59,7 +59,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
59
59
|
}, null, 8, ["value"])) : createCommentVNode("", true)
|
|
60
60
|
], 2),
|
|
61
61
|
createElementVNode("label", {
|
|
62
|
-
class: normalizeClass({
|
|
62
|
+
class: normalizeClass({ selected: selAsselbyType.value == "advanced" }),
|
|
63
63
|
onClick: _cache[3] || (_cache[3] = ($event) => selAsselbyType.value = "advanced")
|
|
64
64
|
}, "高级", 2)
|
|
65
65
|
])
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, unref, createElementBlock, Fragment, renderList, toDisplayString, createTextVNode, withDirectives, vShow, createCommentVNode } from "vue";
|
|
2
2
|
import _sfc_main$1 from "../../common/page-permission-select.vue.js";
|
|
3
3
|
import { usePageContextStore } from "../../../../../../stores/page-store.js";
|
|
4
|
-
import { queryServiceReturnFields } from "../../../../utils/page-service-util.js";
|
|
4
|
+
import { queryServiceReturnFields, queryServiceInfo } from "../../../../utils/page-service-util.js";
|
|
5
|
+
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
6
|
+
import { getUuidv4 } from "../../../../utils/common-util.js";
|
|
7
|
+
import { ElMessageBox, ElMessage } from "element-plus";
|
|
5
8
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
6
9
|
const _hoisted_2 = { style: { "float": "left" } };
|
|
7
10
|
const _hoisted_3 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
|
|
@@ -113,6 +116,49 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
116
|
props.configure.serviceDataField = null;
|
|
114
117
|
}
|
|
115
118
|
}
|
|
119
|
+
function fieldsDefaultValue(modelValue) {
|
|
120
|
+
props.configure.props.dataOrigin.resultSet = modelValue;
|
|
121
|
+
if (props.configure.serviceDataField && modelValue.startsWith("${page.")) {
|
|
122
|
+
queryServiceInfo(dataOriginInfo.service.simpleCode).then((result) => {
|
|
123
|
+
var _a;
|
|
124
|
+
const returnValues = result.returnValues ? JSON.parse(result.returnValues) : [];
|
|
125
|
+
const serviceDataSource = returnValues.find((item) => item.name == props.configure.serviceDataField);
|
|
126
|
+
if (serviceDataSource && serviceDataSource.type == "array") {
|
|
127
|
+
if (((_a = serviceDataSource.items[0]) == null ? void 0 : _a.type) == "object") {
|
|
128
|
+
ElMessageBox.confirm("是否需要将服务变量中的对象数组中的属性设值要页面变量中?", "提示", {
|
|
129
|
+
confirmButtonText: "添加",
|
|
130
|
+
cancelButtonText: "取消",
|
|
131
|
+
type: "info"
|
|
132
|
+
}).then(() => {
|
|
133
|
+
setServiceVarToPageVar(modelValue, serviceDataSource);
|
|
134
|
+
}).catch(() => {
|
|
135
|
+
console.log("取消");
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function setServiceVarToPageVar(modelValue, serviceFieldsSource) {
|
|
143
|
+
var _a;
|
|
144
|
+
const pageVarName = modelValue.replace("${page.", "").replace("}", "");
|
|
145
|
+
const pageVarNameIndex = pageDesign.variables.findIndex((pv) => pv.name == pageVarName);
|
|
146
|
+
const pageVar = pageDesign.variables[pageVarNameIndex];
|
|
147
|
+
if (pageVar && pageVar.type == "array" && ((_a = pageVar.items[0]) == null ? void 0 : _a.type) == "object") {
|
|
148
|
+
serviceFieldsSource.items[0].items.forEach((serviceField) => {
|
|
149
|
+
const pageVarFieldIndex = pageVar.items[0].items.findIndex((pvf) => pvf.name == serviceField.name);
|
|
150
|
+
if (pageVarFieldIndex == -1) {
|
|
151
|
+
pageVar.items[0].items.push({
|
|
152
|
+
name: serviceField.name,
|
|
153
|
+
type: serviceField.type,
|
|
154
|
+
alias: serviceField.alias,
|
|
155
|
+
code: getUuidv4()
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
ElMessage.success("添加成功");
|
|
160
|
+
}
|
|
161
|
+
}
|
|
116
162
|
setTimeout(() => {
|
|
117
163
|
getServiceReturnFields(dataOriginInfo.service.id);
|
|
118
164
|
}, 10);
|
|
@@ -191,6 +237,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
191
237
|
]),
|
|
192
238
|
_: 1
|
|
193
239
|
}),
|
|
240
|
+
createVNode(_component_el_form_item, {
|
|
241
|
+
label: "结果设值到",
|
|
242
|
+
class: "amb-design-attr-item"
|
|
243
|
+
}, {
|
|
244
|
+
default: withCtx(() => [
|
|
245
|
+
(openBlock(), createBlock(BindVariable, {
|
|
246
|
+
key: __props.configure.uuid,
|
|
247
|
+
modelValue: __props.configure.props.dataOrigin.resultSet,
|
|
248
|
+
"onUpdate:modelValue": fieldsDefaultValue
|
|
249
|
+
}, null, 8, ["modelValue"]))
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
}),
|
|
194
253
|
createVNode(_component_el_form_item, {
|
|
195
254
|
label: "立即查询",
|
|
196
255
|
class: "amb-design-attr-item"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createBlock } from "vue";
|
|
2
|
+
import AttrEvent from "../../form/common/attr-event.vue.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "common-attr-events",
|
|
5
|
+
props: {
|
|
6
|
+
configure: {
|
|
7
|
+
type: Object,
|
|
8
|
+
required: true
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return openBlock(), createBlock(AttrEvent, {
|
|
14
|
+
configure: __props.configure,
|
|
15
|
+
events: __props.configure.events
|
|
16
|
+
}, null, 8, ["configure", "events"]);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
_sfc_main as default
|
|
22
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode,
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, createCommentVNode, withDirectives, vShow, createElementBlock, Fragment, renderList } from "vue";
|
|
2
2
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "common-style-yaxis",
|
|
@@ -11,17 +11,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
name: Object
|
|
12
12
|
},
|
|
13
13
|
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
14
15
|
const fontSizes = ["8", "10", "12", "14", "16", "18", "20", "24", "28"];
|
|
15
16
|
const nameLocations = ["start", "middle", "center", "end"];
|
|
17
|
+
function yaxisMinMaxChange() {
|
|
18
|
+
if (props.yaxis._dataMin !== "fixed") {
|
|
19
|
+
delete props.yaxis.min;
|
|
20
|
+
}
|
|
21
|
+
if (props.yaxis._dataMax !== "fixed") {
|
|
22
|
+
delete props.yaxis.min;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
16
25
|
return (_ctx, _cache) => {
|
|
17
26
|
const _component_el_input = resolveComponent("el-input");
|
|
18
27
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
28
|
+
const _component_el_radio = resolveComponent("el-radio");
|
|
29
|
+
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
19
30
|
const _component_el_input_number = resolveComponent("el-input-number");
|
|
20
31
|
const _component_el_divider = resolveComponent("el-divider");
|
|
21
32
|
const _component_el_option = resolveComponent("el-option");
|
|
22
33
|
const _component_el_select = resolveComponent("el-select");
|
|
23
34
|
const _component_el_radio_button = resolveComponent("el-radio-button");
|
|
24
|
-
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
25
35
|
const _component_el_color_picker = resolveComponent("el-color-picker");
|
|
26
36
|
const _component_el_text = resolveComponent("el-text");
|
|
27
37
|
const _component_el_switch = resolveComponent("el-switch");
|
|
@@ -47,28 +57,84 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
57
|
_: 1
|
|
48
58
|
}),
|
|
49
59
|
createVNode(_component_el_form_item, {
|
|
50
|
-
label: "
|
|
60
|
+
label: "最小值设置",
|
|
51
61
|
style: { "margin-top": "-10px" }
|
|
52
62
|
}, {
|
|
53
63
|
default: withCtx(() => [
|
|
54
|
-
createVNode(
|
|
64
|
+
createVNode(_component_el_radio_group, {
|
|
65
|
+
modelValue: __props.yaxis._dataMin,
|
|
66
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.yaxis._dataMin = $event),
|
|
67
|
+
onChange: yaxisMinMaxChange
|
|
68
|
+
}, {
|
|
69
|
+
default: withCtx(() => [
|
|
70
|
+
createVNode(_component_el_radio, { value: "default" }, {
|
|
71
|
+
default: withCtx(() => [
|
|
72
|
+
createTextVNode("默认")
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}),
|
|
76
|
+
createVNode(_component_el_radio, { value: "fixed" }, {
|
|
77
|
+
default: withCtx(() => [
|
|
78
|
+
createTextVNode("固定值")
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
}),
|
|
82
|
+
createVNode(_component_el_radio, { value: "auto" }, {
|
|
83
|
+
default: withCtx(() => [
|
|
84
|
+
createTextVNode("自动计算")
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
})
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["modelValue"]),
|
|
91
|
+
__props.yaxis._dataMin === "fixed" ? (openBlock(), createBlock(_component_el_input_number, {
|
|
92
|
+
key: 0,
|
|
55
93
|
modelValue: __props.yaxis.min,
|
|
56
|
-
"onUpdate:modelValue": _cache[
|
|
94
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.yaxis.min = $event),
|
|
57
95
|
max: __props.yaxis.max
|
|
58
|
-
}, null, 8, ["modelValue", "max"])
|
|
96
|
+
}, null, 8, ["modelValue", "max"])) : createCommentVNode("", true)
|
|
59
97
|
]),
|
|
60
98
|
_: 1
|
|
61
99
|
}),
|
|
62
100
|
createVNode(_component_el_form_item, {
|
|
63
|
-
label: "
|
|
64
|
-
style: { "margin-top": "-10px" }
|
|
101
|
+
label: "最大值设置",
|
|
102
|
+
style: { "margin-top": "-10px" },
|
|
103
|
+
onChange: yaxisMinMaxChange
|
|
65
104
|
}, {
|
|
66
105
|
default: withCtx(() => [
|
|
67
|
-
createVNode(
|
|
106
|
+
createVNode(_component_el_radio_group, {
|
|
107
|
+
modelValue: __props.yaxis._dataMax,
|
|
108
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.yaxis._dataMax = $event)
|
|
109
|
+
}, {
|
|
110
|
+
default: withCtx(() => [
|
|
111
|
+
createVNode(_component_el_radio, { value: "default" }, {
|
|
112
|
+
default: withCtx(() => [
|
|
113
|
+
createTextVNode("默认")
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
}),
|
|
117
|
+
createVNode(_component_el_radio, { value: "fixed" }, {
|
|
118
|
+
default: withCtx(() => [
|
|
119
|
+
createTextVNode("固定值")
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
}),
|
|
123
|
+
createVNode(_component_el_radio, { value: "auto" }, {
|
|
124
|
+
default: withCtx(() => [
|
|
125
|
+
createTextVNode("自动计算")
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
})
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}, 8, ["modelValue"]),
|
|
132
|
+
__props.yaxis._dataMax === "fixed" ? (openBlock(), createBlock(_component_el_input_number, {
|
|
133
|
+
key: 0,
|
|
68
134
|
modelValue: __props.yaxis.max,
|
|
69
|
-
"onUpdate:modelValue": _cache[
|
|
135
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.yaxis.max = $event),
|
|
70
136
|
min: __props.yaxis.min
|
|
71
|
-
}, null, 8, ["modelValue", "min"])
|
|
137
|
+
}, null, 8, ["modelValue", "min"])) : createCommentVNode("", true)
|
|
72
138
|
]),
|
|
73
139
|
_: 1
|
|
74
140
|
}),
|
|
@@ -79,7 +145,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
145
|
default: withCtx(() => [
|
|
80
146
|
createVNode(_component_el_input_number, {
|
|
81
147
|
modelValue: __props.yaxis.offset,
|
|
82
|
-
"onUpdate:modelValue": _cache[
|
|
148
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.yaxis.offset = $event),
|
|
83
149
|
min: 0,
|
|
84
150
|
max: "180"
|
|
85
151
|
}, null, 8, ["modelValue"])
|
|
@@ -101,7 +167,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
167
|
default: withCtx(() => [
|
|
102
168
|
createVNode(_component_el_select, {
|
|
103
169
|
modelValue: __props.yaxis.nameLocation,
|
|
104
|
-
"onUpdate:modelValue": _cache[
|
|
170
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => __props.yaxis.nameLocation = $event),
|
|
105
171
|
placeholder: "默认",
|
|
106
172
|
clearable: ""
|
|
107
173
|
}, {
|
|
@@ -127,7 +193,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
127
193
|
default: withCtx(() => [
|
|
128
194
|
createVNode(_component_el_radio_group, {
|
|
129
195
|
modelValue: __props.yaxis.nameAlign,
|
|
130
|
-
"onUpdate:modelValue": _cache[
|
|
196
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => __props.yaxis.nameAlign = $event)
|
|
131
197
|
}, {
|
|
132
198
|
default: withCtx(() => [
|
|
133
199
|
createVNode(_component_el_radio_button, { value: "right" }, {
|
|
@@ -154,7 +220,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
154
220
|
createVNode(_component_el_radio_group, {
|
|
155
221
|
style: { "margin-top": "10px" },
|
|
156
222
|
modelValue: __props.yaxis.nameVerticalAlign,
|
|
157
|
-
"onUpdate:modelValue": _cache[
|
|
223
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => __props.yaxis.nameVerticalAlign = $event)
|
|
158
224
|
}, {
|
|
159
225
|
default: withCtx(() => [
|
|
160
226
|
createVNode(_component_el_radio_button, { value: "bottom" }, {
|
|
@@ -190,7 +256,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
190
256
|
default: withCtx(() => [
|
|
191
257
|
createVNode(_component_el_input_number, {
|
|
192
258
|
modelValue: __props.yaxis.namePadding,
|
|
193
|
-
"onUpdate:modelValue": _cache[
|
|
259
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => __props.yaxis.namePadding = $event),
|
|
194
260
|
min: "0",
|
|
195
261
|
max: "200"
|
|
196
262
|
}, null, 8, ["modelValue"])
|
|
@@ -206,7 +272,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
206
272
|
default: withCtx(() => [
|
|
207
273
|
createVNode(_component_el_color_picker, {
|
|
208
274
|
modelValue: __props.yaxis.nameColor,
|
|
209
|
-
"onUpdate:modelValue": _cache[
|
|
275
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => __props.yaxis.nameColor = $event)
|
|
210
276
|
}, null, 8, ["modelValue"])
|
|
211
277
|
]),
|
|
212
278
|
_: 1
|
|
@@ -220,7 +286,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
286
|
default: withCtx(() => [
|
|
221
287
|
createVNode(_component_el_select, {
|
|
222
288
|
modelValue: __props.yaxis.nameFontSize,
|
|
223
|
-
"onUpdate:modelValue": _cache[
|
|
289
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => __props.yaxis.nameFontSize = $event),
|
|
224
290
|
placeholder: "默认",
|
|
225
291
|
clearable: ""
|
|
226
292
|
}, {
|
|
@@ -252,7 +318,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
252
318
|
default: withCtx(() => [
|
|
253
319
|
createVNode(_component_el_input, {
|
|
254
320
|
modelValue: __props.yaxis.formatter,
|
|
255
|
-
"onUpdate:modelValue": _cache[
|
|
321
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => __props.yaxis.formatter = $event),
|
|
256
322
|
rows: 2,
|
|
257
323
|
type: "textarea",
|
|
258
324
|
placeholder: ""
|
|
@@ -276,7 +342,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
276
342
|
default: withCtx(() => [
|
|
277
343
|
createVNode(_component_el_color_picker, {
|
|
278
344
|
modelValue: __props.yaxis.labelColor,
|
|
279
|
-
"onUpdate:modelValue": _cache[
|
|
345
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => __props.yaxis.labelColor = $event)
|
|
280
346
|
}, null, 8, ["modelValue"])
|
|
281
347
|
]),
|
|
282
348
|
_: 1
|
|
@@ -288,7 +354,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
288
354
|
default: withCtx(() => [
|
|
289
355
|
createVNode(_component_el_select, {
|
|
290
356
|
modelValue: __props.yaxis.labelFontSize,
|
|
291
|
-
"onUpdate:modelValue": _cache[
|
|
357
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => __props.yaxis.labelFontSize = $event),
|
|
292
358
|
placeholder: "默认",
|
|
293
359
|
clearable: ""
|
|
294
360
|
}, {
|
|
@@ -312,7 +378,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
312
378
|
default: withCtx(() => [
|
|
313
379
|
createVNode(_component_el_switch, {
|
|
314
380
|
modelValue: __props.yaxis.enableAxisLine,
|
|
315
|
-
"onUpdate:modelValue": _cache[
|
|
381
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => __props.yaxis.enableAxisLine = $event)
|
|
316
382
|
}, null, 8, ["modelValue"])
|
|
317
383
|
]),
|
|
318
384
|
_: 1
|
|
@@ -324,7 +390,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
324
390
|
default: withCtx(() => [
|
|
325
391
|
createVNode(_component_el_input_number, {
|
|
326
392
|
modelValue: __props.yaxis.splitNumber,
|
|
327
|
-
"onUpdate:modelValue": _cache[
|
|
393
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => __props.yaxis.splitNumber = $event),
|
|
328
394
|
min: "0",
|
|
329
395
|
max: "100"
|
|
330
396
|
}, null, 8, ["modelValue"])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./data-origin.vue2.js";
|
|
2
2
|
import "./data-origin.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const DataOrigin = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const DataOrigin = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a62867e0"]]);
|
|
5
5
|
export {
|
|
6
6
|
DataOrigin as default
|
|
7
7
|
};
|
|
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
default: () => []
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
emits: ["serviceFieldChange"],
|
|
39
|
+
emits: ["serviceFieldChange", "bindVariableChange"],
|
|
40
40
|
setup(__props, { emit: __emit }) {
|
|
41
41
|
const emit = __emit;
|
|
42
42
|
const props = __props;
|
|
@@ -62,6 +62,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
}
|
|
63
63
|
if (props.configure.props.dataOrigin.dataSource === "service") {
|
|
64
64
|
getServiceReturnFields();
|
|
65
|
+
} else if (props.configure.props.dataOrigin.dataSource === "variable") {
|
|
66
|
+
emit("bindVariableChange", dataOriginInfo.variable);
|
|
65
67
|
}
|
|
66
68
|
const serviceFields = ref([]);
|
|
67
69
|
const showFields = computed(() => {
|
|
@@ -101,6 +103,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
103
|
});
|
|
102
104
|
}
|
|
103
105
|
}
|
|
106
|
+
function dataSourceChange() {
|
|
107
|
+
if (dataOriginInfo.dataSource === "variable") {
|
|
108
|
+
emit("serviceFieldChange", []);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
104
111
|
function addSortField() {
|
|
105
112
|
props.configure.props.dataOrigin.columnToRow.transColumns.push({});
|
|
106
113
|
atPresentSortIndex.value = "";
|
|
@@ -110,6 +117,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
110
117
|
}
|
|
111
118
|
function afterBindDefaultValue(modelValue) {
|
|
112
119
|
props.configure.props.dataOrigin.variable = modelValue;
|
|
120
|
+
emit("bindVariableChange", modelValue);
|
|
113
121
|
}
|
|
114
122
|
function fieldsDefaultValue(modelValue) {
|
|
115
123
|
props.configure.props.dataOrigin.fields = modelValue;
|
|
@@ -151,7 +159,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
151
159
|
default: withCtx(() => [
|
|
152
160
|
createVNode(_component_el_radio_group, {
|
|
153
161
|
modelValue: __props.configure.props.dataOrigin.dataSource,
|
|
154
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.props.dataOrigin.dataSource = $event)
|
|
162
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.props.dataOrigin.dataSource = $event),
|
|
163
|
+
onChange: dataSourceChange
|
|
155
164
|
}, {
|
|
156
165
|
default: withCtx(() => [
|
|
157
166
|
createVNode(_component_el_radio, { value: "variable" }, {
|
|
@@ -408,8 +417,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
408
417
|
default: withCtx(() => [
|
|
409
418
|
createVNode(_component_el_table_column, {
|
|
410
419
|
"header-align": "center",
|
|
411
|
-
align: "center"
|
|
412
|
-
width: "60"
|
|
420
|
+
align: "center"
|
|
413
421
|
}, {
|
|
414
422
|
default: withCtx((scope) => [
|
|
415
423
|
createVNode(_component_el_icon, {
|
|
@@ -665,7 +673,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
665
673
|
]),
|
|
666
674
|
_: 1
|
|
667
675
|
}),
|
|
668
|
-
__props.configure.props.dataOrigin.
|
|
676
|
+
__props.configure.props.dataOrigin.dataSource === "service" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
669
677
|
key: 9,
|
|
670
678
|
label: "设置到变量",
|
|
671
679
|
class: "amb-design-attr-item"
|
|
@@ -41,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
const props = __props;
|
|
42
42
|
const emit = __emit;
|
|
43
43
|
const tableData = ref([]);
|
|
44
|
-
if (props.data) {
|
|
44
|
+
if (props.data && Array.isArray(props.data)) {
|
|
45
45
|
tableData.value = props.data;
|
|
46
46
|
}
|
|
47
47
|
if (!tableData.value || tableData.value.length == 0) {
|