super-page-designer 2.1.52 → 2.1.58
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 -1
- package/dist/es/components/design/utils/data-table-util.js +11 -9
- package/dist/es/components/design/utils/form-design-util.js +5 -0
- package/dist/es/components/design/utils/page-explore-util.js +0 -1
- 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/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +45 -15
- 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-base.vue2.js +1 -1
- 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 +2 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +152 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +1 -152
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +4 -3
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +11 -1
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/object-design.vue.js +14 -13
- 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/assemblys/workflow/component/combination.vue.js +3 -3
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +53 -14
- package/dist/es/style.css +82 -82
- package/package.json +6 -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
|
@@ -295,6 +295,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
295
295
|
}
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
|
+
function inputFormatter(value) {
|
|
299
|
+
if (value) {
|
|
300
|
+
return `${props.rowObj.name}:${value}`;
|
|
301
|
+
} else {
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
298
305
|
return (_ctx, _cache) => {
|
|
299
306
|
const _component_el_icon = resolveComponent("el-icon");
|
|
300
307
|
const _component_el_input = resolveComponent("el-input");
|
|
@@ -328,7 +335,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
328
335
|
size: "small",
|
|
329
336
|
onClick: showPopover,
|
|
330
337
|
title: __props.rowObj.name + "(" + __props.rowObj.simpleCode + ")",
|
|
331
|
-
formatter:
|
|
338
|
+
formatter: inputFormatter,
|
|
332
339
|
modelValue: dynamicFieldValue.value,
|
|
333
340
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicFieldValue.value = $event),
|
|
334
341
|
placeholder: "请选择"
|
|
@@ -347,7 +354,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
347
354
|
])
|
|
348
355
|
]),
|
|
349
356
|
_: 1
|
|
350
|
-
}, 8, ["title", "
|
|
357
|
+
}, 8, ["title", "modelValue"])
|
|
351
358
|
]),
|
|
352
359
|
default: withCtx(() => [
|
|
353
360
|
createVNode(_component_el_row, {
|
|
@@ -29,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
const _component_el_row = resolveComponent("el-row");
|
|
30
30
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
31
31
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.events, (eventItem, eventIndex) => {
|
|
32
|
-
return openBlock(), createBlock(_component_el_row, { style: { "border-bottom": "2px dashed #
|
|
32
|
+
return openBlock(), createBlock(_component_el_row, { style: { "border-bottom": "2px dashed #f5f6f8", "padding-top": "5px", "padding-bottom": "5px" } }, {
|
|
33
33
|
default: withCtx(() => [
|
|
34
34
|
createVNode(_component_el_col, {
|
|
35
35
|
style: { "overflow": "hidden" },
|
|
@@ -50,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
50
|
default: withCtx(() => [
|
|
51
51
|
eventItem.selLogicCode ? (openBlock(), createBlock(_component_el_icon, {
|
|
52
52
|
key: 0,
|
|
53
|
-
style: { "cursor": "pointer", "color": "#
|
|
53
|
+
style: { "cursor": "pointer", "color": "#5893ef", "margin-right": "6px" },
|
|
54
54
|
title: "编辑逻辑",
|
|
55
55
|
onClick: _cache[0] || (_cache[0] = ($event) => editLogic("{{eventItem.selLogicCode}}"))
|
|
56
56
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, watch,
|
|
1
|
+
import { defineComponent, ref, watch, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, Fragment, renderList, createCommentVNode, createElementVNode, toDisplayString, createVNode, reactive } from "vue";
|
|
2
2
|
import { ElTabs, ElTabPane } from "element-plus";
|
|
3
3
|
import { SuperIcon } from "agilebuilder-ui";
|
|
4
4
|
import { VueDraggable } from "vue-draggable-plus";
|
|
@@ -42,16 +42,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
watch(props.configure.style, () => {
|
|
43
43
|
caculateThisStyle();
|
|
44
44
|
});
|
|
45
|
-
const tempData = computed(() => [...props.configure.items]);
|
|
46
|
-
watch(tempData, (newVal, oldVal) => {
|
|
47
|
-
newVal.forEach((every) => {
|
|
48
|
-
oldVal.forEach((oblEvery) => {
|
|
49
|
-
if (every.items.length > oblEvery.items.length) {
|
|
50
|
-
onSelectWidget(props.indexObj.index, every.items[every.items.length - 1]);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
}, { important: true, deep: true });
|
|
55
45
|
function caculateThisStyle() {
|
|
56
46
|
caculateComponentStyle(props.configure, designStyle, designClass, designHeaderStyle);
|
|
57
47
|
props.configure.runtime.style = designStyle.value;
|
|
@@ -5,6 +5,7 @@ import { deepCopy, getUuidv4 } from "../../../../utils/common-util.js";
|
|
|
5
5
|
import { caculateComponentStyle } from "../../../../utils/container-design-util.js";
|
|
6
6
|
import "element-plus";
|
|
7
7
|
import { deleteDesignItem } from "../../../../utils/page-design-util.js";
|
|
8
|
+
import { getInputTypeComponentNames } from "../../../../utils/assemblys-config.js";
|
|
8
9
|
const _hoisted_1 = {
|
|
9
10
|
class: "amb-widget-tools-parent amb-design-item-default",
|
|
10
11
|
style: { "width": "99.5%" }
|
|
@@ -40,12 +41,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
41
|
watch(props.configure.props, () => {
|
|
41
42
|
caculateToolsStyle();
|
|
42
43
|
});
|
|
44
|
+
const inputTypeComponentNames = getInputTypeComponentNames();
|
|
43
45
|
const tempData = computed(() => [...props.configure.items]);
|
|
44
|
-
watch(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
watch(
|
|
47
|
+
tempData,
|
|
48
|
+
(newVal, oldVal) => {
|
|
49
|
+
if (newVal.length > oldVal.length) {
|
|
50
|
+
onSelectWidget(props.indexObj.index, newVal[newVal.length - 1]);
|
|
51
|
+
}
|
|
52
|
+
if (props.pageDesign.pageType === "list") {
|
|
53
|
+
props.pageDesign.toolsInputComponents = [];
|
|
54
|
+
pushToolsInputComponents(newVal);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{ important: true, deep: true }
|
|
58
|
+
);
|
|
59
|
+
function pushToolsInputComponents(items) {
|
|
60
|
+
items.forEach((toolsItem) => {
|
|
61
|
+
var _a, _b, _c, _d;
|
|
62
|
+
if (toolsItem.items && toolsItem.items.length > 0) {
|
|
63
|
+
pushToolsInputComponents(toolsItem.items);
|
|
64
|
+
}
|
|
65
|
+
if (inputTypeComponentNames.includes(toolsItem.name)) {
|
|
66
|
+
const tmp = {
|
|
67
|
+
uuid: toolsItem.uuid,
|
|
68
|
+
defaultValue: (_b = (_a = toolsItem.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.defaultValue,
|
|
69
|
+
prop: (_d = (_c = toolsItem.runtime) == null ? void 0 : _c.props) == null ? void 0 : _d.prop
|
|
70
|
+
};
|
|
71
|
+
props.pageDesign.toolsInputComponents.push(tmp);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
49
75
|
const thisRef = ref(null);
|
|
50
76
|
useDraggable(thisRef, props.configure.items, {
|
|
51
77
|
group: "amb-assembly-item",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./composite-header.vue2.js";
|
|
2
2
|
import "./composite-header.vue3.js";
|
|
3
3
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const CompositeHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const CompositeHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4fd4369c"]]);
|
|
5
5
|
export {
|
|
6
6
|
CompositeHeader as default
|
|
7
7
|
};
|
|
@@ -27,11 +27,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
configure: {
|
|
28
28
|
type: Object,
|
|
29
29
|
default: () => ({ props: {} })
|
|
30
|
-
},
|
|
31
|
-
// 是否是在统计表格中配置
|
|
32
|
-
isStatistical: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: false
|
|
35
30
|
}
|
|
36
31
|
},
|
|
37
32
|
setup(__props) {
|
|
@@ -45,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
40
|
const notChooseListColumns = ref([]);
|
|
46
41
|
const selectColumnVisible = ref(false);
|
|
47
42
|
const treeData = ref([]);
|
|
48
|
-
|
|
43
|
+
ref(null);
|
|
49
44
|
const checkList = ref([]);
|
|
50
45
|
const selectNode = ref({});
|
|
51
46
|
const isSearch = ref(false);
|
|
@@ -120,7 +115,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
115
|
dialogVisible.value = false;
|
|
121
116
|
} else {
|
|
122
117
|
form.value.uuid = getUuidv4();
|
|
123
|
-
form.value.topLevel = true;
|
|
124
118
|
if (form.value.displayOrder === void 0 || form.value.displayOrder === null) {
|
|
125
119
|
setGroupHeaderDataDisplayOrder(form.value.parentUuid, form.value, groupHeaders.value);
|
|
126
120
|
}
|
|
@@ -131,10 +125,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
131
125
|
if (!form.value.parentUuid) {
|
|
132
126
|
treeData.value = getTopGroupHeaderList(groupHeaders.value);
|
|
133
127
|
} else {
|
|
134
|
-
|
|
135
|
-
selectNode.value.loaded = false;
|
|
136
|
-
selectNode.value.expand();
|
|
137
|
-
}
|
|
128
|
+
groupTreeRef.value.append(form.value, selectNode.value);
|
|
138
129
|
}
|
|
139
130
|
if (isSearch.value) {
|
|
140
131
|
searchResult();
|
|
@@ -215,21 +206,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
215
206
|
mobileOff.value = false;
|
|
216
207
|
}
|
|
217
208
|
}
|
|
218
|
-
function loadFun(node, resolve) {
|
|
219
|
-
menuVisible.value = false;
|
|
220
|
-
if (!node.data || node.data.columnUuid) {
|
|
221
|
-
resolve([]);
|
|
222
|
-
} else {
|
|
223
|
-
selectResolv.value = resolve;
|
|
224
|
-
node.data.uuid;
|
|
225
|
-
if (node.data.children && node.data.children.length > 0) {
|
|
226
|
-
resolve(node.data.children);
|
|
227
|
-
} else {
|
|
228
|
-
const topHeaders = getTopGroupHeaderList(groupHeaders.value);
|
|
229
|
-
resolve(topHeaders);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
209
|
function openChoiceColumn() {
|
|
234
210
|
filterNotChooseListColumns();
|
|
235
211
|
checkList.value = [];
|
|
@@ -383,9 +359,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
383
359
|
dragNode.value = draggingNode;
|
|
384
360
|
}
|
|
385
361
|
function hadleAllowDrop(draggingNode, dropNode, type) {
|
|
386
|
-
let canDrop =
|
|
387
|
-
if (dropNode.data.
|
|
388
|
-
canDrop =
|
|
362
|
+
let canDrop = true;
|
|
363
|
+
if (dropNode.data.columnUuid && type === "inner") {
|
|
364
|
+
canDrop = false;
|
|
389
365
|
}
|
|
390
366
|
return canDrop;
|
|
391
367
|
}
|
|
@@ -489,11 +465,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
489
465
|
setGroupHeaderDataDisplayOrder(parentUuid, draggingGroupData, groupHeaders.value);
|
|
490
466
|
watchChangeGroupHeader();
|
|
491
467
|
}
|
|
492
|
-
const handleDragEnd = (draggingNode, dropNode, dropType, ev) => {
|
|
493
|
-
if (props.isStatistical) {
|
|
494
|
-
props.configure.props.groupHeaders = treeData.value;
|
|
495
|
-
}
|
|
496
|
-
};
|
|
497
468
|
return (_ctx, _cache) => {
|
|
498
469
|
const _component_el_switch = resolveComponent("el-switch");
|
|
499
470
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -555,14 +526,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
555
526
|
style: { "max-width": "600px" },
|
|
556
527
|
data: treeData.value,
|
|
557
528
|
draggable: !isSearch.value,
|
|
558
|
-
load: loadFun,
|
|
559
529
|
props: { isLeaf: "isLeaf", children: "children", label: "titleText" },
|
|
560
530
|
"node-key": "uuid",
|
|
561
|
-
lazy: "",
|
|
562
531
|
onNodeClick: handleNodeClick,
|
|
563
532
|
onNodeContextmenu: nodeContextmenu,
|
|
564
533
|
onNodeDrop: handleDrop,
|
|
565
|
-
onNodeDragEnd: handleDragEnd,
|
|
566
534
|
onNodeDragStart: hadleDragStart,
|
|
567
535
|
"allow-drop": hadleAllowDrop
|
|
568
536
|
}, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, unref, createCommentVNode, withDirectives, vShow, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, renderSlot } from "vue";
|
|
2
|
-
import _sfc_main$1 from "../../form/common/dataorigin-input-table.
|
|
2
|
+
import _sfc_main$1 from "../../form/common/dataorigin-input-table.vue.js";
|
|
3
3
|
import { Codemirror } from "vue-codemirror";
|
|
4
4
|
import _sfc_main$6 from "../../workflow/component/combination.vue.js";
|
|
5
5
|
import _sfc_main$5 from "./return-set-table.vue.js";
|
|
@@ -205,7 +205,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
205
205
|
default: withCtx(() => [
|
|
206
206
|
createVNode(_component_el_collapse, {
|
|
207
207
|
modelValue: openCollapseItems.value,
|
|
208
|
-
"onUpdate:modelValue": _cache[
|
|
208
|
+
"onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => openCollapseItems.value = $event),
|
|
209
209
|
style: { "margin-top": "6px" }
|
|
210
210
|
}, {
|
|
211
211
|
default: withCtx(() => [
|
|
@@ -522,7 +522,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
522
522
|
})
|
|
523
523
|
]),
|
|
524
524
|
_: 1
|
|
525
|
-
}, 8, ["data"])
|
|
525
|
+
}, 8, ["data"]),
|
|
526
|
+
createVNode(_component_el_form_item, {
|
|
527
|
+
label: "逻辑删除",
|
|
528
|
+
title: "是否逻辑删除",
|
|
529
|
+
class: "amb-design-attr-item"
|
|
530
|
+
}, {
|
|
531
|
+
default: withCtx(() => [
|
|
532
|
+
createVNode(_component_el_radio_group, {
|
|
533
|
+
modelValue: __props.configure.props.base.isSafeDelete,
|
|
534
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => __props.configure.props.base.isSafeDelete = $event),
|
|
535
|
+
class: "ml-4"
|
|
536
|
+
}, {
|
|
537
|
+
default: withCtx(() => [
|
|
538
|
+
createVNode(_component_el_radio, { value: true }, {
|
|
539
|
+
default: withCtx(() => [
|
|
540
|
+
createTextVNode("是")
|
|
541
|
+
]),
|
|
542
|
+
_: 1
|
|
543
|
+
}),
|
|
544
|
+
createVNode(_component_el_radio, { value: false }, {
|
|
545
|
+
default: withCtx(() => [
|
|
546
|
+
createTextVNode("否")
|
|
547
|
+
]),
|
|
548
|
+
_: 1
|
|
549
|
+
})
|
|
550
|
+
]),
|
|
551
|
+
_: 1
|
|
552
|
+
}, 8, ["modelValue"])
|
|
553
|
+
]),
|
|
554
|
+
_: 1
|
|
555
|
+
})
|
|
526
556
|
])
|
|
527
557
|
]),
|
|
528
558
|
_: 1
|
|
@@ -541,7 +571,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
541
571
|
default: withCtx(() => [
|
|
542
572
|
createVNode(_component_el_radio_group, {
|
|
543
573
|
modelValue: __props.configure.props.importSetting.listViewImportDuplicate,
|
|
544
|
-
"onUpdate:modelValue": _cache[
|
|
574
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => __props.configure.props.importSetting.listViewImportDuplicate = $event),
|
|
545
575
|
class: "ml-4"
|
|
546
576
|
}, {
|
|
547
577
|
default: withCtx(() => [
|
|
@@ -609,7 +639,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
609
639
|
default: withCtx(() => [
|
|
610
640
|
createVNode(_component_el_checkbox_group, {
|
|
611
641
|
modelValue: __props.configure.props.otherSettings.timeToInitializeSubTable,
|
|
612
|
-
"onUpdate:modelValue": _cache[
|
|
642
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => __props.configure.props.otherSettings.timeToInitializeSubTable = $event)
|
|
613
643
|
}, {
|
|
614
644
|
default: withCtx(() => [
|
|
615
645
|
createVNode(_component_el_checkbox, {
|
|
@@ -634,7 +664,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
634
664
|
default: withCtx(() => [
|
|
635
665
|
createVNode(_component_el_input, {
|
|
636
666
|
modelValue: __props.configure.props.otherSettings.mobileLineTitle,
|
|
637
|
-
"onUpdate:modelValue": _cache[
|
|
667
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => __props.configure.props.otherSettings.mobileLineTitle = $event)
|
|
638
668
|
}, null, 8, ["modelValue"])
|
|
639
669
|
]),
|
|
640
670
|
_: 1
|
|
@@ -647,7 +677,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
647
677
|
default: withCtx(() => [
|
|
648
678
|
createVNode(_component_el_select, {
|
|
649
679
|
modelValue: __props.configure.props.otherSettings.dataSources,
|
|
650
|
-
"onUpdate:modelValue": _cache[
|
|
680
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => __props.configure.props.otherSettings.dataSources = $event),
|
|
651
681
|
clearable: ""
|
|
652
682
|
}, {
|
|
653
683
|
default: withCtx(() => [
|
|
@@ -778,7 +808,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
778
808
|
default: withCtx(() => [
|
|
779
809
|
createVNode(_component_el_input, {
|
|
780
810
|
modelValue: __props.configure.props.otherSettings.sourceDataTable,
|
|
781
|
-
"onUpdate:modelValue": _cache[
|
|
811
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => __props.configure.props.otherSettings.sourceDataTable = $event),
|
|
782
812
|
title: __props.configure.props.otherSettings.sourceDataTable,
|
|
783
813
|
clearable: "",
|
|
784
814
|
readonly: "true"
|
|
@@ -810,7 +840,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
810
840
|
createElementVNode("div", _hoisted_11, [
|
|
811
841
|
createVNode(_component_el_select, {
|
|
812
842
|
modelValue: __props.configure.props.otherSettings.sourceDataTableSortColumn,
|
|
813
|
-
"onUpdate:modelValue": _cache[
|
|
843
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => __props.configure.props.otherSettings.sourceDataTableSortColumn = $event),
|
|
814
844
|
clearable: "",
|
|
815
845
|
filterable: ""
|
|
816
846
|
}, {
|
|
@@ -827,7 +857,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
827
857
|
}, 8, ["modelValue"]),
|
|
828
858
|
createVNode(_component_el_select, {
|
|
829
859
|
modelValue: __props.configure.props.otherSettings.sourceDataTableSortOrder,
|
|
830
|
-
"onUpdate:modelValue": _cache[
|
|
860
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => __props.configure.props.otherSettings.sourceDataTableSortOrder = $event),
|
|
831
861
|
style: { "width": "120px", "margin-left": "10px" },
|
|
832
862
|
clearable: ""
|
|
833
863
|
}, {
|
|
@@ -853,7 +883,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
853
883
|
}, {
|
|
854
884
|
default: withCtx(() => [
|
|
855
885
|
createVNode(StateButton, {
|
|
856
|
-
onClick: _cache[
|
|
886
|
+
onClick: _cache[18] || (_cache[18] = ($event) => combinationVisible.value = true),
|
|
857
887
|
conditionData: JSON.parse(__props.configure.props.otherSettings.sourceQueryTableData)
|
|
858
888
|
}, null, 8, ["conditionData"])
|
|
859
889
|
]),
|
|
@@ -873,7 +903,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
873
903
|
default: withCtx(() => [
|
|
874
904
|
createVNode(_component_el_radio_group, {
|
|
875
905
|
modelValue: __props.configure.props.otherSettings.isRealTimeChange,
|
|
876
|
-
"onUpdate:modelValue": _cache[
|
|
906
|
+
"onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => __props.configure.props.otherSettings.isRealTimeChange = $event),
|
|
877
907
|
class: "ml-4",
|
|
878
908
|
onChange: realTimeChange
|
|
879
909
|
}, {
|
|
@@ -1020,7 +1050,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1020
1050
|
default: withCtx(() => [
|
|
1021
1051
|
createVNode(_component_el_radio_group, {
|
|
1022
1052
|
modelValue: __props.configure.props.otherSettings.isWithDataPermission,
|
|
1023
|
-
"onUpdate:modelValue": _cache[
|
|
1053
|
+
"onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => __props.configure.props.otherSettings.isWithDataPermission = $event),
|
|
1024
1054
|
class: "ml-4"
|
|
1025
1055
|
}, {
|
|
1026
1056
|
default: withCtx(() => [
|
|
@@ -1050,7 +1080,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1050
1080
|
default: withCtx(() => [
|
|
1051
1081
|
createVNode(_component_el_input_number, {
|
|
1052
1082
|
modelValue: __props.configure.props.otherSettings.tableRecordMaxNum,
|
|
1053
|
-
"onUpdate:modelValue": _cache[
|
|
1083
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => __props.configure.props.otherSettings.tableRecordMaxNum = $event)
|
|
1054
1084
|
}, null, 8, ["modelValue"])
|
|
1055
1085
|
]),
|
|
1056
1086
|
_: 1
|
|
@@ -1081,13 +1111,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1081
1111
|
}, 8, ["modelValue"]),
|
|
1082
1112
|
createVNode(_component_el_dialog, {
|
|
1083
1113
|
modelValue: codemirrorVisible.value,
|
|
1084
|
-
"onUpdate:modelValue": _cache[
|
|
1114
|
+
"onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => codemirrorVisible.value = $event),
|
|
1085
1115
|
fullscreen: ""
|
|
1086
1116
|
}, {
|
|
1087
1117
|
default: withCtx(() => [
|
|
1088
1118
|
createVNode(unref(Codemirror), {
|
|
1089
1119
|
modelValue: __props.configure.props.dataOrigin.unfoldConent,
|
|
1090
|
-
"onUpdate:modelValue": _cache[
|
|
1120
|
+
"onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => __props.configure.props.dataOrigin.unfoldConent = $event),
|
|
1091
1121
|
options: cmOptions,
|
|
1092
1122
|
placeholder: "请输入"
|
|
1093
1123
|
}, null, 8, ["modelValue"])
|
|
@@ -9,7 +9,7 @@ import "uuid";
|
|
|
9
9
|
import "../../../../../../stores/page-store.js";
|
|
10
10
|
import "../../../../../../stores/table-store.js";
|
|
11
11
|
import "../../../../../../stores/statistics-table-store.js";
|
|
12
|
-
import "../../common/common-variable-bind.
|
|
12
|
+
import "../../common/common-variable-bind.vue2.js";
|
|
13
13
|
import "../../../../utils/eventBus.js";
|
|
14
14
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
15
15
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
@@ -60,8 +60,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
60
|
]),
|
|
61
61
|
withDirectives(createVNode(_sfc_main$1, {
|
|
62
62
|
configure: columnData.value,
|
|
63
|
-
pageDesign: __props.pageDesign
|
|
64
|
-
|
|
63
|
+
pageDesign: __props.pageDesign,
|
|
64
|
+
tableConfigure: __props.configure
|
|
65
|
+
}, null, 8, ["configure", "pageDesign", "tableConfigure"]), [
|
|
65
66
|
[vShow, unref(currentConfigType) === "style"]
|
|
66
67
|
]),
|
|
67
68
|
withDirectives(createVNode(_sfc_main$2, { configure: columnData.value }, null, 8, ["configure"]), [
|
|
@@ -10,11 +10,11 @@ import eventBus from "../../../../utils/eventBus.js";
|
|
|
10
10
|
import _sfc_main$1 from "../component/variate-select.vue.js";
|
|
11
11
|
import "@element-plus/icons";
|
|
12
12
|
import "agilebuilder-ui/src/utils/request";
|
|
13
|
+
import { queryTableFields, tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
13
14
|
import _sfc_main$2 from "../../common/common-i18n-key-input.vue.js";
|
|
14
15
|
import _sfc_main$5 from "../../form/common/hyperlink-mult-config.vue.js";
|
|
15
16
|
import _sfc_main$3 from "../../common/common-function-code.vue.js";
|
|
16
17
|
import _sfc_main$8 from "../../common/common-select-table.vue.js";
|
|
17
|
-
import { queryTableFields, tableResetConfigIndo } from "../../../../utils/page-table-util.js";
|
|
18
18
|
import { usePageContextStore } from "../../../../../../stores/page-store.js";
|
|
19
19
|
import _sfc_main$6 from "../component/formatting-icon-label.vue.js";
|
|
20
20
|
import _sfc_main$4 from "./tablecolumn-dynamic-column.vue.js";
|
|
@@ -7,7 +7,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7
7
|
props: {
|
|
8
8
|
configure: Object,
|
|
9
9
|
// 页面信息
|
|
10
|
-
pageDesign: Object
|
|
10
|
+
pageDesign: Object,
|
|
11
|
+
// 表格配置
|
|
12
|
+
tableConfigure: Object
|
|
11
13
|
},
|
|
12
14
|
setup(__props) {
|
|
13
15
|
const props = __props;
|
|
@@ -36,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
38
|
}, {
|
|
37
39
|
default: withCtx(() => [
|
|
38
40
|
createVNode(_sfc_main$1, {
|
|
39
|
-
configure: __props.
|
|
41
|
+
configure: __props.tableConfigure,
|
|
40
42
|
showField: false,
|
|
41
43
|
data: __props.configure.style.titleStyle,
|
|
42
44
|
pageDesign: __props.pageDesign,
|
|
@@ -53,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
55
|
default: withCtx(() => [
|
|
54
56
|
createVNode(_sfc_main$1, {
|
|
55
57
|
paramTypes: ["data", "task", "page", "request", "row"],
|
|
56
|
-
configure: __props.
|
|
58
|
+
configure: __props.tableConfigure,
|
|
57
59
|
showCondition: true,
|
|
58
60
|
data: __props.configure.style.cellStyle,
|
|
59
61
|
pageDesign: __props.pageDesign,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, unref, createCommentVNode, withDirectives, createTextVNode, createElementBlock, Fragment, renderList, vShow, normalizeClass } from "vue";
|
|
2
|
-
import _sfc_main$3 from "./dataorigin-input-table.
|
|
2
|
+
import _sfc_main$3 from "./dataorigin-input-table.vue.js";
|
|
3
3
|
import _sfc_main$2 from "./condition.vue.js";
|
|
4
4
|
import _sfc_main$1 from "./row-ul-li.vue.js";
|
|
5
5
|
import "uuid";
|
|
@@ -8,7 +8,7 @@ import http from "agilebuilder-ui/src/utils/request";
|
|
|
8
8
|
import { usePageContextStore } from "../../../../../../stores/page-store.js";
|
|
9
9
|
import "../../../../../../stores/table-store.js";
|
|
10
10
|
import "../../../../../../stores/statistics-table-store.js";
|
|
11
|
-
import "../../common/common-variable-bind.
|
|
11
|
+
import "../../common/common-variable-bind.vue2.js";
|
|
12
12
|
import _sfc_main$4 from "./data-origin-service-in.vue.js";
|
|
13
13
|
import { queryTableFields } from "../../../../utils/page-table-util.js";
|
|
14
14
|
import { getCustomFuncs } from "../../../../utils/page-event-util.js";
|
|
@@ -1,4 +1,155 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, createTextVNode } from "vue";
|
|
2
|
+
import { Search } from "@element-plus/icons-vue";
|
|
3
|
+
const _hoisted_1 = { class: "dialog-footer" };
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "dataorigin-input-table",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: ""
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(__props, { emit: __emit }) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const inputValue = ref(props.modelValue);
|
|
16
|
+
const emit = __emit;
|
|
17
|
+
const tableData = [
|
|
18
|
+
{
|
|
19
|
+
id: 1,
|
|
20
|
+
date: "2016-05-03",
|
|
21
|
+
name: "Tom",
|
|
22
|
+
address: "No. 189, Grove St, Los Angeles"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: 2,
|
|
26
|
+
date: "2016-05-02",
|
|
27
|
+
name: "Tom",
|
|
28
|
+
address: "No. 189, Grove St, Los Angeles"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 3,
|
|
32
|
+
date: "2016-05-04",
|
|
33
|
+
name: "Tom",
|
|
34
|
+
address: "No. 189, Grove St, Los Angeles"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 4,
|
|
38
|
+
date: "2016-05-01",
|
|
39
|
+
name: "Tom",
|
|
40
|
+
address: "No. 189, Grove St, Los Angeles"
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
const dialogVisible = ref(false);
|
|
44
|
+
const selectData = ref([]);
|
|
45
|
+
watch(() => props.modelValue, (newVal) => {
|
|
46
|
+
inputValue.value = newVal;
|
|
47
|
+
});
|
|
48
|
+
function confirm() {
|
|
49
|
+
if (selectData.value.length > 0) {
|
|
50
|
+
let str = "";
|
|
51
|
+
selectData.value.forEach((item) => {
|
|
52
|
+
str = str + item.name + ",";
|
|
53
|
+
});
|
|
54
|
+
str = str.substring(0, str.length - 1);
|
|
55
|
+
emit("update:modelValue", str);
|
|
56
|
+
dialogVisible.value = false;
|
|
57
|
+
} else {
|
|
58
|
+
dialogVisible.value = false;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function handleSelectionChange(selection) {
|
|
62
|
+
selectData.value = selection;
|
|
63
|
+
}
|
|
64
|
+
function inputClick() {
|
|
65
|
+
dialogVisible.value = true;
|
|
66
|
+
}
|
|
67
|
+
return (_ctx, _cache) => {
|
|
68
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
69
|
+
const _component_el_input = resolveComponent("el-input");
|
|
70
|
+
const _component_el_table_column = resolveComponent("el-table-column");
|
|
71
|
+
const _component_el_table = resolveComponent("el-table");
|
|
72
|
+
const _component_el_button = resolveComponent("el-button");
|
|
73
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
74
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
75
|
+
createVNode(_component_el_input, {
|
|
76
|
+
modelValue: inputValue.value,
|
|
77
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
78
|
+
placeholder: "请选择",
|
|
79
|
+
onClick: inputClick
|
|
80
|
+
}, {
|
|
81
|
+
suffix: withCtx(() => [
|
|
82
|
+
createVNode(_component_el_icon, { onClick: inputClick }, {
|
|
83
|
+
default: withCtx(() => [
|
|
84
|
+
createVNode(unref(Search))
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
})
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["modelValue"]),
|
|
91
|
+
createVNode(_component_el_dialog, {
|
|
92
|
+
modelValue: dialogVisible.value,
|
|
93
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dialogVisible.value = $event),
|
|
94
|
+
title: "Tips",
|
|
95
|
+
width: "500"
|
|
96
|
+
}, {
|
|
97
|
+
footer: withCtx(() => [
|
|
98
|
+
createElementVNode("div", _hoisted_1, [
|
|
99
|
+
createVNode(_component_el_button, {
|
|
100
|
+
onClick: _cache[1] || (_cache[1] = ($event) => dialogVisible.value = false)
|
|
101
|
+
}, {
|
|
102
|
+
default: withCtx(() => [
|
|
103
|
+
createTextVNode("取消")
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}),
|
|
107
|
+
createVNode(_component_el_button, {
|
|
108
|
+
type: "primary",
|
|
109
|
+
onClick: confirm
|
|
110
|
+
}, {
|
|
111
|
+
default: withCtx(() => [
|
|
112
|
+
createTextVNode(" 确定 ")
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
})
|
|
116
|
+
])
|
|
117
|
+
]),
|
|
118
|
+
default: withCtx(() => [
|
|
119
|
+
createVNode(_component_el_table, {
|
|
120
|
+
data: tableData,
|
|
121
|
+
style: { "width": "100%" },
|
|
122
|
+
onSelectionChange: handleSelectionChange
|
|
123
|
+
}, {
|
|
124
|
+
default: withCtx(() => [
|
|
125
|
+
createVNode(_component_el_table_column, {
|
|
126
|
+
type: "selection",
|
|
127
|
+
width: "55"
|
|
128
|
+
}),
|
|
129
|
+
createVNode(_component_el_table_column, {
|
|
130
|
+
prop: "date",
|
|
131
|
+
label: "Date",
|
|
132
|
+
width: "180"
|
|
133
|
+
}),
|
|
134
|
+
createVNode(_component_el_table_column, {
|
|
135
|
+
prop: "name",
|
|
136
|
+
label: "Name",
|
|
137
|
+
width: "180"
|
|
138
|
+
}),
|
|
139
|
+
createVNode(_component_el_table_column, {
|
|
140
|
+
prop: "address",
|
|
141
|
+
label: "Address"
|
|
142
|
+
})
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
})
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["modelValue"])
|
|
149
|
+
], 64);
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
});
|
|
2
153
|
export {
|
|
3
154
|
_sfc_main as default
|
|
4
155
|
};
|