super-page-designer 2.2.57 → 2.2.61

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.
Files changed (82) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +1 -1
  2. package/dist/es/components/design/utils/common-util.js +0 -3
  3. package/dist/es/components/design/utils/form-design-util.js +5 -5
  4. package/dist/es/components/design/utils/page-table-util.d.ts +1 -1
  5. package/dist/es/components/design/utils/page-table-util.js +4 -4
  6. package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +37 -37
  7. package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +1 -1
  9. package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue2.js +1 -1
  10. package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +22 -22
  11. package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +1 -1
  12. package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +1 -1
  13. package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +1 -1
  14. package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +1 -1
  15. package/dist/es/components/design/views/assemblys/chart/common/common-attr-sortby.vue.js +1 -1
  16. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +1 -1
  17. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +1 -1
  18. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue.js +1 -1
  19. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +12 -12
  20. package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +1 -1
  21. package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +10 -10
  22. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +5 -137
  23. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +139 -0
  24. package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -4
  25. package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +9 -9
  26. package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +6 -6
  27. package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +1 -1
  28. package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue.js +1 -1
  29. package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue2.js +55 -55
  30. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
  31. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
  32. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1 -1
  33. package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +16 -32
  34. package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +4 -4
  35. package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +1 -1
  36. package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +1 -1
  37. package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +1 -1
  38. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +2 -2
  39. package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +1 -1
  40. package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +1 -1
  41. package/dist/es/components/design/views/assemblys/form/common/data-origin-service-in.vue.js +1 -1
  42. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +26 -2
  43. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +2 -26
  44. package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +1 -1
  45. package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +1 -1
  46. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +1 -1
  47. package/dist/es/components/design/views/assemblys/form/common/title-suffix.vue.js +1 -1
  48. package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +1 -1
  49. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +1 -1
  50. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +1 -1
  51. package/dist/es/components/design/views/assemblys/form/divider/divider-attr-base.vue.js +1 -1
  52. package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +1 -1
  53. package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +1 -1
  54. package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +1 -1
  55. package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +1 -1
  56. package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +1 -1
  57. package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +1 -1
  58. package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +1 -1
  59. package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +1 -1
  60. package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +1 -1
  61. package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +1 -1
  62. package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +1 -1
  63. package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +1 -1
  64. package/dist/es/components/design/views/design/page-design.vue2.js +1 -1
  65. package/dist/es/components/design/views/design/page-design.vue3.js +1 -1
  66. package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +1 -1
  67. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +2 -2
  68. package/dist/es/components/design/views/design/view/assemblys-container.vue.js +20 -13
  69. package/dist/es/components/design/views/design/view/attr-container.vue.js +29 -22
  70. package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +1 -1
  71. package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +1 -1
  72. package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
  73. package/dist/es/components/design/views/design/view/page-switch.vue2.js +8 -8
  74. package/dist/es/components/design/views/design/view/view-design-display.vue.js +154 -5
  75. package/dist/es/components/design/views/design/view/view-design-display.vue2.js +2 -148
  76. package/dist/es/components/design/views/design/view/view-design-preview.vue.js +20 -5
  77. package/dist/es/components/design/views/design/view/view-design-preview.vue2.js +2 -20
  78. package/dist/es/style.css +821 -884
  79. package/package.json +4 -4
  80. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +0 -7
  81. package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue.js +0 -37
  82. package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue2.js +0 -4
@@ -0,0 +1,139 @@
1
+ import { defineComponent as e, ref as l, onMounted as a, onUnmounted as t, computed as u, watch as o, resolveComponent as n, createElementBlock as s, createBlock as i, openBlock as r, toDisplayString as p, withCtx as v, createVNode as d, createElementVNode as m, withDirectives as f, unref as c, createTextVNode as y, vShow as g, normalizeStyle as b, createCommentVNode as h, withModifiers as w, nextTick as V } from "vue";
2
+ import { Plus as x, InfoFilled as O, Search as k, CircleClose as C } from "@element-plus/icons-vue";
3
+ import M from "agilebuilder-ui/src/utils/request";
4
+ import { deepCopy as _, getUuidv4 as z } from "../../../utils/common-util.js";
5
+ import { getTypeOptions as j, contextVarOptions as U, taskVarOptions as L } from "./common-variable-bind-option.js";
6
+ import { usePageContextStore as N } from "../../../../../stores/page-store.js";
7
+ import { tableField as A } from "../../../../../stores/table-store.js";
8
+ import { statisticsTable as E } from "../../../../../stores/statistics-table-store.js";
9
+ const R = { key: 0 }, T = { style: { "margin-top": "10px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, q = { style: { "font-size": "10px", "line-height": "40px" } }, D = { style: { "margin-top": "4px", "margin-bottom": "8px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, P = { key: 0, style: { display: "flex" } }, $ = ["title"], B = ["title"], S = { class: "totalStyle" }, I = e({ name: "ValueSetInput", inheritAttrs: false, __name: "common-variable-bind", props: { modelValue: { type: [String], default: null }, paramTypes: { type: Array, default: () => [] }, size: { type: String, default: "small" }, showLabel: { type: Boolean, default: false }, needParams: { type: Boolean, default: false }, isRange: { type: Boolean, default: false }, isTable: { type: Boolean, default: false }, dataModelOptions: { type: Array, default: null }, objModelOptions: { type: Array, default: null }, needData: { type: Boolean, default: false }, placeholder: { type: String, default: "请选择" } }, emits: ["update:modelValue"], setup(e2, { emit: I2 }) {
10
+ const K = N(), W = I2, F = e2, G = l(false), H = l(""), J = l(null), Q = l(null), X = l([]), Y = l(false), Z = l(""), ee = l(""), le = l(""), ae = l([]), te = l({}), ue = l(""), oe = l(null), ne = ["context", "system", "task", "data", "page", "row"], se = A(), ie = E();
11
+ a(() => {
12
+ window.addEventListener("click", pe);
13
+ const e3 = K.pageContext;
14
+ let l2 = false, a2 = F.needData;
15
+ a2 || (F.isTable || e3 && (!e3.pageType || "form" == e3.pageType) && e3.tableName) && (a2 = true), e3 && e3.workflowCode && a2 && (l2 = true);
16
+ let t2 = j(F.paramTypes, F.needParams);
17
+ if (a2 || (t2 = t2.filter((e4) => "data" != e4.value)), l2 || (t2 = t2.filter((e4) => "task" != e4.value)), X.value = t2, be(), F.modelValue) {
18
+ const [e4, l3] = F.modelValue.slice(0, F.modelValue.length - 1).slice(2).split(".");
19
+ ee.value = e4, le.value = l3, ne.includes(e4) && (Y.value = false), xe(ee.value), Z.value = he(), H.value = F.modelValue;
20
+ }
21
+ ee.value || (ee.value = t2.length > 0 ? t2[0].value : "", xe(ee.value));
22
+ }), t(() => {
23
+ window.removeEventListener("click", pe);
24
+ });
25
+ let re = null;
26
+ function pe(e3) {
27
+ if (!G.value) return;
28
+ if (we) return void (we = false);
29
+ let l2 = null;
30
+ if (Q.value && (l2 = Q.value.$el.parentNode), !e3.target || !l2) return;
31
+ if (e3.target === re) return;
32
+ const a2 = J.value ? J.value.input : null;
33
+ a2 && (e3.target === a2 || a2.contains(e3.target)) || (e3.target === l2 || l2.contains(e3.target) ? re = e3.target : (Q.value.$el, G.value && de()));
34
+ }
35
+ const ve = l([{ label: "天", value: "d" }, { label: "周", value: "w" }, { label: "月", value: "m" }, { label: "年", value: "y" }]);
36
+ function de(e3) {
37
+ G.value = false;
38
+ }
39
+ const me = u(() => ae.value.filter((e3) => !ue.value || "system" == ee.value || e3.label.toLowerCase().includes(ue.value.toLowerCase()) || e3.value.toLowerCase().includes(ue.value.toLowerCase())));
40
+ o(ue, () => {
41
+ "system" == ee.value && ce();
42
+ });
43
+ let fe = null;
44
+ function ce() {
45
+ if (fe == ue.value) return;
46
+ const e3 = { query: ue.value };
47
+ fe = ue.value, M.post(window.$vueApp.config.globalProperties.baseAPI + "/component/system-params/query", e3).then((e4) => {
48
+ const l2 = [];
49
+ for (let a2 of e4) l2.push({ value: a2.propKey, label: a2.propKey + " (" + a2.propValue + ")" });
50
+ te.value.systemVarOptions = l2, "system" == ee.value && xe(ee.value);
51
+ });
52
+ }
53
+ const ye = u(() => {
54
+ let e3 = 185;
55
+ return "page" == ee.value && (e3 = 170), e3;
56
+ }), ge = u(() => {
57
+ const e3 = {};
58
+ return "page" == ee.value && (e3.width = "210px"), e3;
59
+ });
60
+ function be() {
61
+ F.dataModelOptions && F.dataModelOptions.length > 0 ? te.value.dataModelOptions = F.dataModelOptions : F.isTable ? te.value.dataModelOptions = se.fieldList : te.value.dataModelOptions = K.pageContextVarOptions.dataOptions, F.objModelOptions && F.objModelOptions.length > 0 && (te.value.objModelOptions = F.objModelOptions), te.value.pageVarOptions = K.pageContextVarOptions.pageVarOptions;
62
+ }
63
+ function he() {
64
+ return F.modelValue ? ee.value + "." + function(e3, l2) {
65
+ if (ne.includes(e3)) {
66
+ if ("context" === e3 && l2 && l2.startsWith("currentDate") && l2.length > 11) {
67
+ const e4 = l2.substring(11), a3 = e4.substring(0, 1);
68
+ return e4.substring(1, e4.length - 1) + ((e5) => {
69
+ const l3 = ve.value.filter((l4) => l4.value == e5);
70
+ return l3.length > 0 ? l3[0].label : "";
71
+ })(e4.substring(e4.length - 1)) + ("+" === a3 ? "后" : "前");
72
+ }
73
+ const a2 = ae.value.find((e4) => e4.value === l2);
74
+ if (a2) return a2.label;
75
+ }
76
+ return l2;
77
+ }(ee.value, le.value) : F.modelValue;
78
+ }
79
+ let we = false;
80
+ function Ve(e3) {
81
+ e3 && Array.isArray(e3) && e3.length > 0 && (e3 = e3[0]), ee.value = e3, le.value = "", ne.includes(e3) ? (Y.value = false, xe(e3)) : Y.value = true, "system" == ee.value && ce(), we = true;
82
+ }
83
+ function xe(e3) {
84
+ if ("context" === e3) {
85
+ let e4 = U;
86
+ if (F.isRange) {
87
+ e4 = _(e4);
88
+ for (let l2 = 0; l2 < e4.length; l2++) {
89
+ if ("currentDate" == e4[l2].value) {
90
+ e4.splice(l2 + 1, 0, { value: "currentDate", symbolUnit: "d", symbol: "-", type: "range" });
91
+ break;
92
+ }
93
+ }
94
+ }
95
+ ae.value = e4;
96
+ } else "system" === e3 ? ae.value = te.value.systemVarOptions || [] : "task" === e3 ? ae.value = L : "data" === e3 ? ae.value = te.value.dataModelOptions || [] : "row" === e3 ? ae.value = te.value.objModelOptions && te.value.objModelOptions.length > 0 ? te.value.objModelOptions : ie.columnList ? ie.columnList : te.value.dataModelOptions ? te.value.dataModelOptions : [] : "params" === e3 ? ae.value = te.value.paramsVarOptions || [] : "page" === e3 && (ae.value = te.value.pageVarOptions || []);
97
+ }
98
+ function Oe() {
99
+ H.value = "", W("update:modelValue", H.value), oe.value.hide();
100
+ }
101
+ function ke() {
102
+ le.value ? (H.value = "${" + ee.value + "." + le.value + "}", W("update:modelValue", H.value), de()) : ElMessage.warning("请输入参数名");
103
+ }
104
+ function Ce() {
105
+ if (ue.value = ue.value.trim(), !ue.value) return void ElMessage.warning("请输入参数名");
106
+ const e3 = te.value.pageVarOptions || [];
107
+ for (let l3 of e3) if (l3.value === ue.value) return void ElMessage.warning("该变量已存在!");
108
+ const l2 = { code: z(), name: ue.value, alias: ue.value, type: "string", defaultValue: "" };
109
+ K.pageContext.variables || (K.pageContext.variables = []), K.pageContext.variables.push(l2), K.setPageContext(K.pageContext), te.value.pageVarOptions = K.pageContextVarOptions.pageVarOptions, ae.value = te.value.pageVarOptions || [], le.value = ue.value, H.value = "${" + ee.value + "." + ue.value + "}", ue.value = "", W("update:modelValue", H.value), de();
110
+ }
111
+ const Me = l();
112
+ function _e() {
113
+ G.value = true, V(() => {
114
+ be(), ee.value && (ne.includes(ee.value) ? (Y.value = false, xe(ee.value)) : Y.value = true, "system" == ee.value && ce()), function() {
115
+ if (!F.showLabel && !Y.value) {
116
+ const e3 = me.value.findIndex((e4) => e4.value === le.value);
117
+ e3 > -1 && Me.value.setCurrentRow(me.value[e3]);
118
+ }
119
+ }();
120
+ });
121
+ }
122
+ return (l2, a2) => {
123
+ const t2 = n("el-icon"), u2 = n("el-input"), o2 = n("el-cascader-panel"), V2 = n("el-col"), M2 = n("el-empty"), _2 = n("el-button"), z2 = n("el-table-column"), j2 = n("el-option"), U2 = n("el-select"), L2 = n("el-table"), N2 = n("el-row"), A2 = n("el-popover");
124
+ return e2.showLabel ? (r(), s("span", R, p(H.value), 1)) : (r(), i(A2, { key: 1, ref_key: "popoverRef", ref: oe, visible: G.value, width: 400 }, { reference: v(() => [d(u2, { readonly: "", size: e2.size, title: H.value, ref_key: "inputRef", ref: J, onClick: _e, formatter: he, modelValue: H.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => H.value = e3), placeholder: e2.placeholder }, { suffix: v(() => [f(d(t2, { style: { cursor: "pointer" }, onClick: w(Oe, ["stop"]) }, { default: v(() => [d(c(C))]), _: 1 }, 512), [[g, H.value]])]), _: 1 }, 8, ["size", "title", "modelValue", "placeholder"])]), default: v(() => [d(N2, { ref_key: "contentRef", ref: Q }, { default: v(() => [d(V2, { span: 8 }, { default: v(() => [d(o2, { modelValue: ee.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => ee.value = e3), onChange: Ve, props: { emitPath: true }, size: "small", options: X.value, style: { height: "240px", width: "100%" } }, null, 8, ["modelValue", "options"])]), _: 1 }), ee.value ? Y.value ? (r(), i(V2, { key: 1, span: 16, style: { "padding-left": "10px" } }, { default: v(() => [d(u2, { style: { width: "210px" }, size: "small", modelValue: le.value, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => le.value = e3), placeholder: "请手动输入" }, null, 8, ["modelValue"]), d(_2, { style: { float: "right" }, onClick: ke, size: "small", type: "primary", icon: c(x), circle: "" }, null, 8, ["icon"]), m("div", T, [d(t2, null, { default: v(() => [d(c(O))]), _: 1 }), a2[5] || (a2[5] = m("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))]), f(m("div", q, [a2[7] || (a2[7] = y(" 常用参数: ")), d(_2, { type: "primary", size: "small", onClick: a2[3] || (a2[3] = (e3) => {
125
+ return l3 = "query", le.value = l3, void ke();
126
+ var l3;
127
+ }) }, { default: v(() => a2[6] || (a2[6] = [y("query")])), _: 1 })], 512), [[g, "request" == ee.value]])]), _: 1 })) : (r(), i(V2, { key: 2, span: 16, style: { "padding-left": "10px" } }, { default: v(() => [d(u2, { size: "small", modelValue: ue.value, "onUpdate:modelValue": a2[4] || (a2[4] = (e3) => ue.value = e3), placeholder: "搜索", "suffix-icon": c(k), style: b([{ "margin-bottom": "5px", height: "25px" }, ge.value]) }, null, 8, ["modelValue", "suffix-icon", "style"]), f(d(_2, { style: { float: "right" }, onClick: Ce, size: "small", type: "primary", icon: c(x), circle: "" }, null, 8, ["icon"]), [[g, "page" == ee.value]]), f(m("div", D, [d(t2, null, { default: v(() => [d(c(O))]), _: 1 }), a2[8] || (a2[8] = m("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))], 512), [[g, "page" == ee.value]]), d(L2, { ref_key: "tableRef", ref: Me, height: ye.value, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "tree-props": { children: "items" }, "highlight-current-row": true, data: me.value }, { default: v(() => [d(z2, { width: "65" }, { default: v((e3) => [d(_2, { size: "small", onClick: (l3) => function(e4) {
128
+ if ("range" == e4.type) {
129
+ if ("" === e4.symbolNum) return void ElMessage.warning("周期不能为空!");
130
+ if (isNaN(e4.symbolNum)) return void ElMessage.warning("周期为无效的数字!");
131
+ "0" != e4.symbolNum ? le.value = e4.value + e4.symbol + e4.symbolNum + e4.symbolUnit : le.value = e4.value;
132
+ } else le.value = e4.value;
133
+ H.value = "${" + ee.value + "." + le.value + "}", W("update:modelValue", H.value, e4.alias), de();
134
+ }(e3.row) }, { default: v(() => a2[9] || (a2[9] = [y(" 选择 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), d(z2, { label: "Date", prop: "label" }, { default: v((e3) => ["context" == ee.value && "range" == e3.row.type ? (r(), s("div", P, [d(u2, { size: "small", modelValue: e3.row.symbolNum, "onUpdate:modelValue": (l3) => e3.row.symbolNum = l3, placeholder: "", style: { width: "35px", "margin-left": "4px" } }, null, 8, ["modelValue", "onUpdate:modelValue"]), d(U2, { size: "small", style: { "margin-left": "4px", width: "50px" }, modelValue: e3.row.symbolUnit, "onUpdate:modelValue": (l3) => e3.row.symbolUnit = l3, placeholder: "" }, { default: v(() => [d(j2, { label: "天", value: "d" }), d(j2, { label: "周", value: "w" }), d(j2, { label: "月", value: "m" }), d(j2, { label: "年", value: "y" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), d(U2, { size: "small", style: { "margin-left": "4px", width: "50px" }, modelValue: e3.row.symbol, "onUpdate:modelValue": (l3) => e3.row.symbol = l3, placeholder: "" }, { default: v(() => [d(j2, { label: "前", value: "-" }), d(j2, { label: "后", value: "+" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])])) : h("", true), "data" == ee.value || "obj" == ee.value || "row" == ee.value ? (r(), s("span", { key: 1, title: e3.row.label + " " + e3.row.value }, p(e3.row.label + " " + e3.row.value), 9, $)) : (r(), s("span", { key: 2, title: e3.row.label }, p(e3.row.label), 9, B))]), _: 1 })]), _: 1 }, 8, ["height", "data"]), m("div", S, "总计:" + p(me.value.length), 1)]), _: 1 })) : (r(), i(V2, { key: 0, span: 16 }, { default: v(() => [d(M2, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 }, 512)]), _: 1 }, 8, ["visible"]));
135
+ };
136
+ } });
137
+ export {
138
+ I as default
139
+ };
@@ -1,7 +1,4 @@
1
1
  import e from "./tabs-design.vue2.js";
2
- /* empty css */
3
- import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = t(e, [["__scopeId", "data-v-1e1bb163"]]);
5
2
  export {
6
- s as default
3
+ e as default
7
4
  };
@@ -12,18 +12,18 @@ const D = e({ __name: "tabs-design", props: { pageDesign: {}, configure: {}, ind
12
12
  const k = t(1);
13
13
  C.configure.runtime || (C.configure.runtime = {});
14
14
  const S = t({}), A = t(""), U = t({});
15
- function w() {
15
+ function F() {
16
16
  h(C.configure, S, A, U), C.configure.runtime.style = S.value, C.configure.runtime.class = A.value, C.configure.runtime.headerStyle = U.value;
17
17
  }
18
- w(), i(C.configure.style, () => {
19
- w();
18
+ F(), i(C.configure.style, () => {
19
+ F();
20
20
  });
21
- const F = D2;
22
- function P(e3, t2) {
23
- F("onSelectWidget", e3, t2);
24
- }
21
+ const P = D2;
25
22
  function q(e3, t2) {
26
- F("onCustomAttrWidget", e3, t2);
23
+ P("onSelectWidget", e3, t2);
24
+ }
25
+ function w(e3, t2) {
26
+ P("onCustomAttrWidget", e3, t2);
27
27
  }
28
28
  function z(e3) {
29
29
  let t2 = C.configure.items;
@@ -38,7 +38,7 @@ const D = e({ __name: "tabs-design", props: { pageDesign: {}, configure: {}, ind
38
38
  }
39
39
  }
40
40
  }
41
- return (e3, t2) => (l(), n(o(y), { modelValue: k.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => k.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, class: a(["amb-design-item-default runtime-page-container-tabs-view", A.value]), style: s(S.value) }, { default: u(() => [(l(true), m(r, null, c(e3.configure.items, (t3, i2) => (l(), n(o(v), { label: t3.label, name: t3.index }, { label: u(() => [t3.iconType && t3.iconValue ? (l(), n(o(x), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : d("", true), f("span", { style: s(U.value) }, p(t3.label), 5)]), default: u(() => [g(o(O), { tag: "div", class: "amb-design-item-default", style: { "padding-bottom": "40px" }, group: "amb-assembly-item", "force-fallback": true, modelValue: t3.items, "onUpdate:modelValue": (e4) => t3.items = e4, sort: true, filter: ".el-scrollbar__bar", preventOnFilter: false, animation: 300, "ghost-class": "amb-item-ghost", fallbackClass: true }, { default: u(() => [(l(true), m(r, null, c(t3.items, (i3, o2) => (l(), n(V, { key: i3, pageDesign: e3.pageDesign, configure: i3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: P, onOnCustomAttrWidget: q, onOnCopy: z, onOnDelete: (e4) => function(e5, t4) {
41
+ return (e3, t2) => (l(), n(o(y), { modelValue: k.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => k.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, class: a(["amb-design-item-default", A.value]), style: s(S.value) }, { default: u(() => [(l(true), m(r, null, c(e3.configure.items, (t3, i2) => (l(), n(o(v), { label: t3.label, name: t3.index }, { label: u(() => [t3.iconType && t3.iconValue ? (l(), n(o(x), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : d("", true), f("span", { style: s(U.value) }, p(t3.label), 5)]), default: u(() => [g(o(O), { tag: "div", class: "amb-design-item-default", style: { "padding-bottom": "40px" }, group: "amb-assembly-item", "force-fallback": true, modelValue: t3.items, "onUpdate:modelValue": (e4) => t3.items = e4, sort: true, filter: ".el-scrollbar__bar", preventOnFilter: false, animation: 300, "ghost-class": "amb-item-ghost", fallbackClass: true }, { default: u(() => [(l(true), m(r, null, c(t3.items, (i3, o2) => (l(), n(V, { key: i3, pageDesign: e3.pageDesign, configure: i3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: q, onOnCustomAttrWidget: w, onOnCopy: z, onOnDelete: (e4) => function(e5, t4) {
42
42
  const i4 = e5.items;
43
43
  _(i4, t4, t4.items && t4.items.length > 0, true);
44
44
  }(t3, e4) }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj", "onOnDelete"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1032, ["label", "name"]))), 256))]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class"]));
@@ -6,12 +6,12 @@ import { caculateComponentStyle as j } from "../../../../utils/container-design-
6
6
  import "element-plus";
7
7
  import { copyHandleEvents as x, deleteDesignItem as h } from "../../../../utils/page-design-util.js";
8
8
  import { getInputTypeComponentNames as O } from "../../../../utils/assemblys-config.js";
9
- const W = { class: "amb-widget-tools-parent amb-design-item-default" }, D = e({ __name: "tools-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: D2 }) {
9
+ const W = { class: "amb-widget-tools-parent amb-design-item-default", style: { width: "99.5%" } }, D = e({ __name: "tools-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: D2 }) {
10
10
  const C = e2;
11
11
  C.configure.items || (C.configure.items = []), null == C.configure.style && (C.configure.style = {}), C.configure.props = { isAffix: true, position: "top", ...C.configure.props ?? {} }, C.configure.runtime || (C.configure.runtime = {});
12
- const A = t({}), w = t(""), k = n(() => {
12
+ const w = t({}), A = t(""), k = n(() => {
13
13
  const { gap: e3 } = C.configure.props ?? {};
14
- return { ...e3 ? { gap: `${e3}px` } : {}, ...A.value ?? {} };
14
+ return { ...e3 ? { gap: `${e3}px` } : {}, ...w.value ?? {} };
15
15
  });
16
16
  i(C.configure.style, () => {
17
17
  R();
@@ -33,9 +33,9 @@ const W = { class: "amb-widget-tools-parent amb-design-item-default" }, D = e({
33
33
  }, { important: true, deep: true });
34
34
  const N = t(null);
35
35
  function R() {
36
- j(C.configure, A, w, null);
36
+ j(C.configure, w, A, null);
37
37
  const e3 = C.configure.props;
38
- "flex-end" == e3.align ? A.value["justify-content"] = "right" : "center" == e3.align && (A.value["justify-content"] = "center"), C.configure.runtime.style = A.value, C.configure.runtime.class = w.value;
38
+ "flex-end" == e3.align ? w.value["justify-content"] = "right" : "center" == e3.align && (w.value["justify-content"] = "center"), C.configure.runtime.style = w.value, C.configure.runtime.class = A.value;
39
39
  }
40
40
  d(N, C.configure.items, { group: "amb-assembly-item", animation: 300, ghostClass: "amb-item-ghost", forceFallback: true, onAdd: function(e3) {
41
41
  if (C.configure && C.configure.items) {
@@ -69,7 +69,7 @@ const W = { class: "amb-widget-tools-parent amb-design-item-default" }, D = e({
69
69
  let t2 = C.configure.items;
70
70
  h(t2, e3, e3.items && e3.items.length > 0, true);
71
71
  }
72
- return (e3, t2) => (r(), u("div", W, [l("div", { class: c(["amb-widget-tools", w.value]), style: g([k.value, { display: "flex" }]), ref_key: "thisRef", ref: N }, [(r(true), u(f, null, p(e3.configure.items, (t3, n2) => (r(), m(b, { key: t3, pageDesign: e3.pageDesign, configure: t3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: z, onOnCustomAttrWidget: E, onOnCopy: F, onOnDelete: T }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"]))), 128))], 6)]));
72
+ return (e3, t2) => (r(), u("div", W, [l("div", { class: c(["amb-widget-tools", A.value]), style: g([k.value, { display: "flex" }]), ref_key: "thisRef", ref: N }, [(r(true), u(f, null, p(e3.configure.items, (t3, n2) => (r(), m(b, { key: t3, pageDesign: e3.pageDesign, configure: t3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: z, onOnCustomAttrWidget: E, onOnCopy: F, onOnDelete: T }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"]))), 128))], 6)]));
73
73
  } });
74
74
  export {
75
75
  D as default
@@ -2,7 +2,7 @@ import { defineComponent as e, ref as l, onMounted as a, resolveComponent as o,
2
2
  import { getFormComponentOptions as f } from "../../../../utils/assemblys-config.js";
3
3
  import g from "../../common/common-attr-size.vue.js";
4
4
  import "@element-plus/icons-vue";
5
- import v from "../../common/common-variable-bind.vue.js";
5
+ import v from "../../common/common-variable-bind.vue2.js";
6
6
  import V from "agilebuilder-ui/src/utils/request";
7
7
  const _ = { style: { padding: "8px 0px 0px 0px" } }, y = e({ __name: "barcode-attr-base", props: { configure: Object, default: () => ({ props: {} }) }, setup(e2) {
8
8
  const y2 = e2, C = l([]);
@@ -1,7 +1,7 @@
1
1
  import e from "./data-origin-tree.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = r(e, [["__scopeId", "data-v-c07fe584"]]);
4
+ const t = r(e, [["__scopeId", "data-v-1fd3d630"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,80 +1,80 @@
1
- import { defineComponent as e, ref as a, onMounted as l, resolveComponent as t, createBlock as o, openBlock as i, withCtx as n, createElementVNode as r, createVNode as u, renderSlot as d, createCommentVNode as s, withDirectives as p, createTextVNode as m, vShow as c, unref as g, createElementBlock as f, Fragment as b, renderList as y, normalizeClass as V } from "vue";
2
- import v from "../../form/common/condition.vue.js";
1
+ import { defineComponent as e, ref as a, onMounted as l, resolveComponent as t, createBlock as o, openBlock as i, withCtx as n, createElementVNode as r, createVNode as u, withDirectives as d, createCommentVNode as s, createTextVNode as p, vShow as m, unref as c, createElementBlock as f, Fragment as g, renderList as b, normalizeClass as y } from "vue";
2
+ import V from "../../form/common/condition.vue.js";
3
3
  import "@element-plus/icons-vue";
4
4
  import "uuid";
5
- import { usePageContextStore as O } from "../../../../../../stores/page-store.js";
6
- import S from "../../form/common/data-origin-autoset.vue.js";
7
- import _ from "../../form/common/data-origin-service-in.vue.js";
8
- import { queryTableFields as T } from "../../../../utils/page-table-util.js";
9
- import C from "../../common/common-select-table.vue.js";
10
- import { Search as h, Close as F } from "@element-plus/icons";
11
- import k from "agilebuilder-ui/src/utils/request";
12
- import N from "../../common/page-permission-select.vue.js";
13
- import { Codemirror as D } from "vue-codemirror";
14
- const U = { style: { padding: "8px 0px 0px 0px" } }, j = ["onClick"], x = e({ __name: "data-origin-tree", props: { configure: { type: Object, default: {} }, remote: { type: Boolean, default: true } }, setup(e2) {
15
- const x2 = e2, w = O(), L = w.pageContext, A = { tabSize: 4, lineNumbers: true, mode: "application/json", theme: "default", line: true, styleActiveLine: true, matchBrackets: true };
16
- x2.configure.props.dataOrigin || (x2.configure.props.dataOrigin = {});
17
- const q = x2.configure.props.dataOrigin;
18
- q.service || (q.service = {}), q.filterList || (q.filterList = []);
19
- const z = a(null), R = a(null), $ = a(""), B = a(null);
20
- x2.configure.props.dataOrigin.optionValueSetType && 0 !== x2.configure.props.dataOrigin.optionValueSetType.length || (x2.configure.props.dataOrigin.optionValueSetType = "static");
21
- const I = a(false), E = a([]);
22
- function G(e3) {
5
+ import { usePageContextStore as v } from "../../../../../../stores/page-store.js";
6
+ import O from "../../form/common/data-origin-autoset.vue.js";
7
+ import S from "../../form/common/data-origin-service-in.vue.js";
8
+ import { queryTableFields as _ } from "../../../../utils/page-table-util.js";
9
+ import T from "../../common/common-select-table.vue.js";
10
+ import { Search as C, Close as h } from "@element-plus/icons";
11
+ import F from "agilebuilder-ui/src/utils/request";
12
+ import k from "../../common/page-permission-select.vue.js";
13
+ import { Codemirror as N } from "vue-codemirror";
14
+ const D = { style: { padding: "8px 0px 0px 0px" } }, U = ["onClick"], j = e({ __name: "data-origin-tree", props: { configure: { type: Object, default: {} }, remote: { type: Boolean, default: true } }, setup(e2) {
15
+ const j2 = e2, x = v(), w = x.pageContext, L = { tabSize: 4, lineNumbers: true, mode: "application/json", theme: "default", line: true, styleActiveLine: true, matchBrackets: true };
16
+ j2.configure.props.dataOrigin || (j2.configure.props.dataOrigin = {});
17
+ const A = j2.configure.props.dataOrigin;
18
+ A.service || (A.service = {}), A.filterList || (A.filterList = []);
19
+ const q = a(null), z = a(null), R = a(""), B = a(null);
20
+ j2.configure.props.dataOrigin.optionValueSetType && 0 !== j2.configure.props.dataOrigin.optionValueSetType.length || (j2.configure.props.dataOrigin.optionValueSetType = "static");
21
+ const $ = a(false), I = a([]);
22
+ function E(e3) {
23
23
  if (e3) {
24
- I.value = true;
24
+ $.value = true;
25
25
  const a2 = { query: e3 };
26
- k.post("/component/dynamic-options/query", a2).then((e4) => {
27
- I.value = false, E.value = e4;
26
+ F.post("/component/dynamic-options/query", a2).then((e4) => {
27
+ $.value = false, I.value = e4;
28
28
  }).catch((e4) => {
29
- I.value = false;
29
+ $.value = false;
30
30
  });
31
- } else E.value = [], I.value = false;
31
+ } else I.value = [], $.value = false;
32
+ }
33
+ function G(e3) {
34
+ const a2 = I.value.find((a3) => a3.code === e3);
35
+ A.dynamicDataSourceFields = a2 ? a2.outFields : [], H();
32
36
  }
33
- function H(e3) {
34
- const a2 = E.value.find((a3) => a3.code === e3);
35
- q.dynamicDataSourceFields = a2 ? a2.outFields : [], J();
37
+ function H() {
38
+ const e3 = A.optionValueSetType;
39
+ B.value && ("dynamicData" == e3 ? B.value.updateSourceFields(A.dynamicDataSourceFields) : "dataTable" == e3 && (B.value.updateSourceFields(P.value), q.value.changeTableFields(P.value)));
36
40
  }
37
41
  function J() {
38
- const e3 = q.optionValueSetType;
39
- B.value && ("dynamicData" == e3 ? B.value.updateSourceFields(q.dynamicDataSourceFields) : "dataTable" == e3 && (B.value.updateSourceFields(Q.value), z.value.changeTableFields(Q.value)));
42
+ z.value.openDialog();
40
43
  }
41
44
  function K() {
42
- R.value.openDialog();
43
- }
44
- function M() {
45
- q.tableName = "", q.tableAlias = "", q.tableSysCode = null, q.tableSysVersion = null, Q.value = [];
45
+ A.tableName = "", A.tableAlias = "", A.tableSysCode = null, A.tableSysVersion = null, P.value = [];
46
46
  }
47
- function P(e3) {
48
- let a2 = q.tableSysCode ? q.tableSysCode : "";
49
- a2 += "_", a2 += q.tableSysVersion ? q.tableSysVersion : "", a2 += "_", a2 += q.tableName ? q.tableName : "";
47
+ function M(e3) {
48
+ let a2 = A.tableSysCode ? A.tableSysCode : "";
49
+ a2 += "_", a2 += A.tableSysVersion ? A.tableSysVersion : "", a2 += "_", a2 += A.tableName ? A.tableName : "";
50
50
  let l2 = e3.systemCode ? e3.systemCode : "";
51
- l2 += "_", l2 += e3.systemVersion ? e3.systemVersion : "", l2 += "_", l2 += e3.name ? e3.name : "", l2 != a2 && (q.tableSysCode = e3.systemCode, q.tableSysVersion = e3.systemVersion, q.tableName = e3.name, q.tableAlias = e3.alias, W());
51
+ l2 += "_", l2 += e3.systemVersion ? e3.systemVersion : "", l2 += "_", l2 += e3.name ? e3.name : "", l2 != a2 && (A.tableSysCode = e3.systemCode, A.tableSysVersion = e3.systemVersion, A.tableName = e3.name, A.tableAlias = e3.alias, Q());
52
52
  }
53
- let Q = a([]);
54
- function W() {
55
- const e3 = q.tableSysCode ? q.tableSysCode : w.pageContext.systemCode, a2 = q.tableSysVersion ? q.tableSysVersion : w.pageContext.systemVersion, l2 = q.tableName;
56
- l2 && T(e3, a2, l2).then((e4) => {
57
- Q.value = e4, J();
53
+ let P = a([]);
54
+ function Q() {
55
+ const e3 = A.tableSysCode ? A.tableSysCode : x.pageContext.systemCode, a2 = A.tableSysVersion ? A.tableSysVersion : x.pageContext.systemVersion, l2 = A.tableName;
56
+ l2 && _(e3, a2, l2).then((e4) => {
57
+ P.value = e4, H();
58
58
  }).catch((e4) => {
59
59
  });
60
60
  }
61
- function X() {
62
- q.sortFields || (q.sortFields = []), q.sortFields.push({ name: "", type: "" }), $.value = "";
61
+ function W() {
62
+ A.sortFields || (A.sortFields = []), A.sortFields.push({ name: "", type: "" }), R.value = "";
63
63
  }
64
- function Y() {
65
- q.sortFields.length > 0 && q.sortFields.splice(q.sortFields.length - 1, 1);
64
+ function X() {
65
+ A.sortFields.length > 0 && A.sortFields.splice(A.sortFields.length - 1, 1);
66
66
  }
67
67
  return l(() => {
68
- J(), W();
68
+ H(), Q();
69
69
  }), (a2, l2) => {
70
- const O2 = t("el-radio"), T2 = t("el-radio-group"), k2 = t("el-form-item"), x3 = t("el-radio-button"), w2 = t("el-option"), W2 = t("el-select"), Z = t("el-button"), ee = t("el-input"), ae = t("el-collapse-item");
71
- return i(), o(ae, { title: "数据源", name: "dataOrigin", class: "amb-design-attr-group-header" }, { default: n(() => [r("div", U, [u(k2, { label: "数据来源", class: "amb-design-attr-item" }, { default: n(() => [u(T2, { modelValue: e2.configure.props.dataOrigin.optionValueSetType, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.props.dataOrigin.optionValueSetType = a3), onChange: J }, { default: n(() => [u(O2, { value: "static" }, { default: n(() => l2[12] || (l2[12] = [m("静态数据")])), _: 1 }), u(O2, { value: "beanName" }, { default: n(() => l2[13] || (l2[13] = [m("后台bean")])), _: 1 }), u(O2, { value: "dynamicData" }, { default: n(() => l2[14] || (l2[14] = [m("动态数据源")])), _: 1 }), u(O2, { value: "dataTable" }, { default: n(() => l2[15] || (l2[15] = [m("数据表/视图")])), _: 1 }), u(O2, { value: "service" }, { default: n(() => l2[16] || (l2[16] = [m("服务")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "beanName" === e2.configure.props.dataOrigin.optionValueSetType ? d(a2.$slots, "beanName", { key: 0 }, void 0, true) : s("", true), p(u(k2, { label: "可搜索", class: "amb-design-attr-item" }, { default: n(() => [u(T2, { modelValue: e2.configure.props.dataOrigin.filterType, "onUpdate:modelValue": l2[1] || (l2[1] = (a3) => e2.configure.props.dataOrigin.filterType = a3), class: "ml-4" }, { default: n(() => [u(x3, { value: "normal" }, { default: n(() => l2[17] || (l2[17] = [m("普通")])), _: 1 }), p(u(x3, { value: "remote" }, { default: n(() => l2[18] || (l2[18] = [m("远程")])), _: 1 }, 512), [[c, "dataTable" == e2.configure.props.dataOrigin.optionValueSetType || "dynamicData" == e2.configure.props.dataOrigin.optionValueSetType || "service" == e2.configure.props.dataOrigin.optionValueSetType]]), u(x3, { value: "none" }, { default: n(() => l2[19] || (l2[19] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "select" == e2.configure.name]]), "static" === e2.configure.props.dataOrigin.optionValueSetType ? (i(), o(g(D), { key: 1, modelValue: e2.configure.props.dataOrigin.staticData, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.props.dataOrigin.staticData = a3), options: A, placeholder: "请输入" }, null, 8, ["modelValue"])) : s("", true), "dynamicData" === e2.configure.props.dataOrigin.optionValueSetType ? (i(), o(k2, { key: 2, label: "动态数据源", class: "amb-design-attr-item" }, { default: n(() => [u(W2, { modelValue: e2.configure.props.dataOrigin.dynamicDataSourceCode, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.dataOrigin.dynamicDataSourceCode = a3), filterable: "", remote: "", "reserve-keyword": "", clearable: "", placeholder: "请选择", "remote-show-suffix": "", "remote-method": G, loading: I.value, onChange: H }, { default: n(() => [(i(true), f(b, null, y(E.value, (e3) => (i(), o(w2, { key: e3.code, label: e3.name + "(" + e3.code + ")", value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "loading"])]), _: 1 })) : s("", true), p(u(k2, { label: "数据表视图", class: "amb-design-attr-item" }, { default: n(() => [u(ee, { modelValue: e2.configure.props.dataOrigin.tableName, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.dataOrigin.tableName = a3), title: e2.configure.props.dataOrigin.tableName, clearable: "", readonly: "true" }, { append: n(() => [u(Z, { icon: g(h), onClick: K, size: "small" }, null, 8, ["icon"]), u(Z, { icon: g(F), onClick: M, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), p(u(k2, { label: "主键字段", class: "amb-design-attr-item" }, { default: n(() => [u(W2, { modelValue: e2.configure.props.dataOrigin.principalField, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.dataOrigin.principalField = a3), "allow-create": "", filterable: "", "reserve-keyword": "", clearable: "", placeholder: "请选择", "remote-show-suffix": "" }, { default: n(() => [(i(true), f(b, null, y(g(Q), (e3) => (i(), o(w2, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: "${obj." + e3.dbColumnName + "}" }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), p(u(k2, { label: "父级字段", class: "amb-design-attr-item" }, { default: n(() => [u(W2, { modelValue: e2.configure.props.dataOrigin.parentField, "onUpdate:modelValue": l2[6] || (l2[6] = (a3) => e2.configure.props.dataOrigin.parentField = a3), "allow-create": "", filterable: "", "reserve-keyword": "", clearable: "", placeholder: "请选择", "remote-show-suffix": "" }, { default: n(() => [(i(true), f(b, null, y(g(Q), (e3) => (i(), o(w2, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: "${obj." + e3.dbColumnName + "}" }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), "dataTable" === e2.configure.props.dataOrigin.optionValueSetType ? (i(), o(k2, { key: 3, label: "排序", class: "amb-design-attr-item" }, { default: n(() => [u(Z, { type: "primary", onClick: X }, { default: n(() => l2[20] || (l2[20] = [m("添加")])), _: 1 }), u(Z, { onClick: Y }, { default: n(() => l2[21] || (l2[21] = [m("删除")])), _: 1 }), (i(true), f(b, null, y(g(q).sortFields, (e3, a3) => (i(), f("div", { key: a3, onClick: (e4) => function(e5) {
72
- $.value = e5;
73
- }(a3), style: { "margin-top": "6px" }, class: V($.value === a3 ? "amb-design-attr-item-inline seleteSort" : "amb-design-attr-item-inline") }, [u(W2, { modelValue: e3.name, "onUpdate:modelValue": (a4) => e3.name = a4, filterable: "", clearable: "", placeholder: "请选择" }, { default: n(() => [(i(true), f(b, null, y(g(Q), (e4, a4) => (i(), o(w2, { key: a4, label: e4.alias + "(" + e4.dbColumnName + ")", value: e4.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), u(W2, { modelValue: e3.type, "onUpdate:modelValue": (a4) => e3.type = a4, style: { "margin-left": "10px" }, placeholder: "请选择" }, { default: n(() => [u(w2, { label: "升序", value: "asc" }), u(w2, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])], 10, j))), 128))]), _: 1 })) : s("", true), p(u(k2, { label: "同级节点数", class: "amb-design-attr-item" }, { default: n(() => [u(ee, { modelValue: e2.configure.props.dataOrigin.nodeNumber, "onUpdate:modelValue": l2[7] || (l2[7] = (a3) => e2.configure.props.dataOrigin.nodeNumber = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), p(u(k2, { label: "过滤条件", class: "amb-design-attr-item" }, { default: n(() => [u(v, { title: "过滤条件", list: e2.configure.props.dataOrigin.filterList, ref_key: "conditionRef", ref: z }, null, 8, ["list"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), p(u(k2, { label: "服务名", class: "amb-design-attr-item" }, { default: n(() => [u(N, { pageDesign: g(L), rowObj: g(q).service, onlyService: "", "onUpdate:modelValue": l2[8] || (l2[8] = (e3, a3, l3) => function(e4, a4, l4) {
74
- q.service.simpleCode = a4, q.service.name = l4;
75
- }(0, a3, l3)) }, null, 8, ["pageDesign", "rowObj"])]), _: 1 }, 512), [[c, "service" === e2.configure.props.dataOrigin.optionValueSetType]]), p(u(k2, { label: "数据集字段", class: "amb-design-attr-item" }, { default: n(() => [u(W2, { modelValue: g(q).serviceDataSetField, "onUpdate:modelValue": l2[9] || (l2[9] = (e3) => g(q).serviceDataSetField = e3), placeholder: "请选择" }, { default: n(() => [u(w2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "service" == g(q).optionValueSetType]]), p(u(k2, { label: "选项值字段", class: "amb-design-attr-item" }, { default: n(() => [u(W2, { modelValue: g(q).serviceValueField, "onUpdate:modelValue": l2[10] || (l2[10] = (e3) => g(q).serviceValueField = e3), placeholder: "请选择" }, { default: n(() => [u(w2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "service" == g(q).optionValueSetType]]), p(u(k2, { label: "选项名字段", class: "amb-design-attr-item" }, { default: n(() => [u(W2, { modelValue: g(q).serviceLabelField, "onUpdate:modelValue": l2[11] || (l2[11] = (e3) => g(q).serviceLabelField = e3), placeholder: "请选择" }, { default: n(() => [u(w2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "service" == g(q).optionValueSetType]]), p(u(_, { ref: "dataOriginServiceInRef", dataOrigin: g(q) }, null, 8, ["dataOrigin"]), [[c, "service" == e2.configure.props.dataOrigin.optionValueSetType]]), p(u(S, { ref_key: "dataOriginAutosetRef", ref: B, dataOrigin: g(q) }, null, 8, ["dataOrigin"]), [[c, "dataTable" == e2.configure.props.dataOrigin.optionValueSetType || "dynamicData" == e2.configure.props.dataOrigin.optionValueSetType || "service" == e2.configure.props.dataOrigin.optionValueSetType]])]), u(C, { ref_key: "selectTableDialog", ref: R, onSelectTable: P, systemCode: e2.configure.systemCode, systemVersion: e2.configure.systemVersion }, null, 8, ["systemCode", "systemVersion"])]), _: 3 });
70
+ const v2 = t("el-radio"), _2 = t("el-radio-group"), F2 = t("el-form-item"), j3 = t("el-radio-button"), x2 = t("el-option"), Q2 = t("el-select"), Y = t("el-button"), Z = t("el-input"), ee = t("el-collapse-item");
71
+ return i(), o(ee, { title: "数据源", name: "dataOrigin", class: "amb-design-attr-group-header" }, { default: n(() => [r("div", D, [u(F2, { label: "数据来源", class: "amb-design-attr-item" }, { default: n(() => [u(_2, { modelValue: e2.configure.props.dataOrigin.optionValueSetType, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.props.dataOrigin.optionValueSetType = a3), onChange: H }, { default: n(() => [u(v2, { value: "static" }, { default: n(() => l2[12] || (l2[12] = [p("静态数据")])), _: 1 }), u(v2, { value: "beanName" }, { default: n(() => l2[13] || (l2[13] = [p("后台bean")])), _: 1 }), u(v2, { value: "dynamicData" }, { default: n(() => l2[14] || (l2[14] = [p("动态数据源")])), _: 1 }), u(v2, { value: "dataTable" }, { default: n(() => l2[15] || (l2[15] = [p("数据表/视图")])), _: 1 }), u(v2, { value: "service" }, { default: n(() => l2[16] || (l2[16] = [p("服务")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), d(u(F2, { label: "可搜索", class: "amb-design-attr-item" }, { default: n(() => [u(_2, { modelValue: e2.configure.props.dataOrigin.filterType, "onUpdate:modelValue": l2[1] || (l2[1] = (a3) => e2.configure.props.dataOrigin.filterType = a3), class: "ml-4" }, { default: n(() => [u(j3, { value: "normal" }, { default: n(() => l2[17] || (l2[17] = [p("普通")])), _: 1 }), d(u(j3, { value: "remote" }, { default: n(() => l2[18] || (l2[18] = [p("远程")])), _: 1 }, 512), [[m, "dataTable" == e2.configure.props.dataOrigin.optionValueSetType || "dynamicData" == e2.configure.props.dataOrigin.optionValueSetType || "service" == e2.configure.props.dataOrigin.optionValueSetType]]), u(j3, { value: "none" }, { default: n(() => l2[19] || (l2[19] = [p("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[m, "select" == e2.configure.name]]), "static" === e2.configure.props.dataOrigin.optionValueSetType ? (i(), o(c(N), { key: 0, modelValue: e2.configure.props.dataOrigin.staticData, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.props.dataOrigin.staticData = a3), options: L, placeholder: "请输入" }, null, 8, ["modelValue"])) : s("", true), "dynamicData" === e2.configure.props.dataOrigin.optionValueSetType ? (i(), o(F2, { key: 1, label: "动态数据源", class: "amb-design-attr-item" }, { default: n(() => [u(Q2, { modelValue: e2.configure.props.dataOrigin.dynamicDataSourceCode, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.dataOrigin.dynamicDataSourceCode = a3), filterable: "", remote: "", "reserve-keyword": "", clearable: "", placeholder: "请选择", "remote-show-suffix": "", "remote-method": E, loading: $.value, onChange: G }, { default: n(() => [(i(true), f(g, null, b(I.value, (e3) => (i(), o(x2, { key: e3.code, label: e3.name + "(" + e3.code + ")", value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "loading"])]), _: 1 })) : s("", true), d(u(F2, { label: "数据表视图", class: "amb-design-attr-item" }, { default: n(() => [u(Z, { modelValue: e2.configure.props.dataOrigin.tableName, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.dataOrigin.tableName = a3), title: e2.configure.props.dataOrigin.tableName, clearable: "", readonly: "true" }, { append: n(() => [u(Y, { icon: c(C), onClick: J, size: "small" }, null, 8, ["icon"]), u(Y, { icon: c(h), onClick: K, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }, 512), [[m, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), d(u(F2, { label: "主键字段", class: "amb-design-attr-item" }, { default: n(() => [u(Q2, { modelValue: e2.configure.props.dataOrigin.principalField, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.dataOrigin.principalField = a3), "allow-create": "", filterable: "", "reserve-keyword": "", clearable: "", placeholder: "请选择", "remote-show-suffix": "" }, { default: n(() => [(i(true), f(g, null, b(c(P), (e3) => (i(), o(x2, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: "${obj." + e3.dbColumnName + "}" }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[m, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), d(u(F2, { label: "父级字段", class: "amb-design-attr-item" }, { default: n(() => [u(Q2, { modelValue: e2.configure.props.dataOrigin.parentField, "onUpdate:modelValue": l2[6] || (l2[6] = (a3) => e2.configure.props.dataOrigin.parentField = a3), "allow-create": "", filterable: "", "reserve-keyword": "", clearable: "", placeholder: "请选择", "remote-show-suffix": "" }, { default: n(() => [(i(true), f(g, null, b(c(P), (e3) => (i(), o(x2, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: "${obj." + e3.dbColumnName + "}" }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[m, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), "dataTable" === e2.configure.props.dataOrigin.optionValueSetType ? (i(), o(F2, { key: 2, label: "排序", class: "amb-design-attr-item" }, { default: n(() => [u(Y, { type: "primary", onClick: W }, { default: n(() => l2[20] || (l2[20] = [p("添加")])), _: 1 }), u(Y, { onClick: X }, { default: n(() => l2[21] || (l2[21] = [p("删除")])), _: 1 }), (i(true), f(g, null, b(c(A).sortFields, (e3, a3) => (i(), f("div", { key: a3, onClick: (e4) => function(e5) {
72
+ R.value = e5;
73
+ }(a3), style: { "margin-top": "6px" }, class: y(R.value === a3 ? "amb-design-attr-item-inline seleteSort" : "amb-design-attr-item-inline") }, [u(Q2, { modelValue: e3.name, "onUpdate:modelValue": (a4) => e3.name = a4, filterable: "", clearable: "", placeholder: "请选择" }, { default: n(() => [(i(true), f(g, null, b(c(P), (e4, a4) => (i(), o(x2, { key: a4, label: e4.alias + "(" + e4.dbColumnName + ")", value: e4.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), u(Q2, { modelValue: e3.type, "onUpdate:modelValue": (a4) => e3.type = a4, style: { "margin-left": "10px" }, placeholder: "请选择" }, { default: n(() => [u(x2, { label: "升序", value: "asc" }), u(x2, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])], 10, U))), 128))]), _: 1 })) : s("", true), d(u(F2, { label: "同级节点数", class: "amb-design-attr-item" }, { default: n(() => [u(Z, { modelValue: e2.configure.props.dataOrigin.nodeNumber, "onUpdate:modelValue": l2[7] || (l2[7] = (a3) => e2.configure.props.dataOrigin.nodeNumber = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[m, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), d(u(F2, { label: "过滤条件", class: "amb-design-attr-item" }, { default: n(() => [u(V, { title: "过滤条件", list: e2.configure.props.dataOrigin.filterList, ref_key: "conditionRef", ref: q }, null, 8, ["list"])]), _: 1 }, 512), [[m, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), d(u(F2, { label: "服务名", class: "amb-design-attr-item" }, { default: n(() => [u(k, { pageDesign: c(w), rowObj: c(A).service, onlyService: "", "onUpdate:modelValue": l2[8] || (l2[8] = (e3, a3, l3) => function(e4, a4, l4) {
74
+ A.service.simpleCode = a4, A.service.name = l4;
75
+ }(0, a3, l3)) }, null, 8, ["pageDesign", "rowObj"])]), _: 1 }, 512), [[m, "service" === e2.configure.props.dataOrigin.optionValueSetType]]), d(u(F2, { label: "数据集字段", class: "amb-design-attr-item" }, { default: n(() => [u(Q2, { modelValue: c(A).serviceDataSetField, "onUpdate:modelValue": l2[9] || (l2[9] = (e3) => c(A).serviceDataSetField = e3), placeholder: "请选择" }, { default: n(() => [u(x2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[m, "service" == c(A).optionValueSetType]]), d(u(F2, { label: "选项值字段", class: "amb-design-attr-item" }, { default: n(() => [u(Q2, { modelValue: c(A).serviceValueField, "onUpdate:modelValue": l2[10] || (l2[10] = (e3) => c(A).serviceValueField = e3), placeholder: "请选择" }, { default: n(() => [u(x2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[m, "service" == c(A).optionValueSetType]]), d(u(F2, { label: "选项名字段", class: "amb-design-attr-item" }, { default: n(() => [u(Q2, { modelValue: c(A).serviceLabelField, "onUpdate:modelValue": l2[11] || (l2[11] = (e3) => c(A).serviceLabelField = e3), placeholder: "请选择" }, { default: n(() => [u(x2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[m, "service" == c(A).optionValueSetType]]), d(u(S, { ref: "dataOriginServiceInRef", dataOrigin: c(A) }, null, 8, ["dataOrigin"]), [[m, "service" == e2.configure.props.dataOrigin.optionValueSetType]]), d(u(O, { ref_key: "dataOriginAutosetRef", ref: B, dataOrigin: c(A) }, null, 8, ["dataOrigin"]), [[m, "dataTable" == e2.configure.props.dataOrigin.optionValueSetType || "dynamicData" == e2.configure.props.dataOrigin.optionValueSetType || "service" == e2.configure.props.dataOrigin.optionValueSetType]])]), u(T, { ref_key: "selectTableDialog", ref: z, onSelectTable: M, systemCode: e2.configure.systemCode, systemVersion: e2.configure.systemVersion }, null, 8, ["systemCode", "systemVersion"])]), _: 1 });
76
76
  };
77
77
  } });
78
78
  export {
79
- x as default
79
+ j as default
80
80
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, ref as a, computed as l, resolveComponent as i, createBlock as o, openBlock as t, withCtx as n, createElementVNode as r, createVNode as s, createCommentVNode as u, withDirectives as d, renderSlot as p, createTextVNode as c, unref as g, vShow as m, createElementBlock as f, Fragment as v, renderList as b, normalizeClass as y, toDisplayString as V } from "vue";
2
- import O from "../../form/common/dataorigin-input-table.vue2.js";
2
+ import O from "../../form/common/dataorigin-input-table.vue.js";
3
3
  import { Codemirror as _ } from "vue-codemirror";
4
4
  import C from "../../workflow/component/combination.vue.js";
5
5
  import S from "./return-set-table.vue.js";
@@ -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
- /* empty css */
12
+ /* empty css */
13
13
  import "../../../../utils/eventBus.js";
14
14
  import U from "../../common/common-function-code.vue.js";
15
15
  import y from "../../chart/statistical-table/component/table-showcondition.vue.js";
@@ -3,7 +3,7 @@ import { Setting as y, Search as V } from "@element-plus/icons-vue";
3
3
  import { getListComponentOptions as v } from "../../../../utils/assemblys-config.js";
4
4
  import C from "../component/querySetting.vue.js";
5
5
  import _ from "../../form/common/data-origin.vue.js";
6
- import h from "../../common/common-variable-bind.vue.js";
6
+ import h from "../../common/common-variable-bind.vue2.js";
7
7
  import { setGroupHeaderDataDisplayOrder as D, deleteGroupHeaderByColumnUuid as x } from "../../../../utils/data-table-util.js";
8
8
  import { getUuidv4 as U } from "../../../../utils/common-util.js";
9
9
  import k from "../../../../utils/eventBus.js";