super-page-designer 2.2.31 → 2.2.34
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/page-table-util.js +13 -7
- package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/data/component/variate-select.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +10 -10
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +26 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +2 -26
- package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue.js} +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +4 -5
- package/dist/es/style.css +7 -7
- package/package.json +5 -5
- /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +0 -0
|
@@ -204,7 +204,13 @@ function y(e2) {
|
|
|
204
204
|
return e2.props.base.prop && "dynamicColumnSelect" === e2.props.base.prop ? JSON.stringify(e2.props.dynamicColumnData) : null;
|
|
205
205
|
}
|
|
206
206
|
function S(e2) {
|
|
207
|
-
|
|
207
|
+
if (Array.isArray(e2) && e2.length > 0) {
|
|
208
|
+
const t2 = [];
|
|
209
|
+
return e2.forEach((e3) => {
|
|
210
|
+
"int" === e3 ? t2.push("integer") : t2.push(e3);
|
|
211
|
+
}), JSON.stringify(t2);
|
|
212
|
+
}
|
|
213
|
+
return Array.isArray(e2) && 0 === e2.length ? null : e2;
|
|
208
214
|
}
|
|
209
215
|
function C(e2, t2) {
|
|
210
216
|
let a2 = { uuid: e2.uuid, base: e2.props.base, dataOrigin: e2.props.dataOrigin, dynamicColumnData: e2.props.dynamicColumnData, editLine: e2.props.editLine, format: e2.props.format, verification: e2.props.verification, definition: e2.props.definition, size: e2.props.size };
|
|
@@ -215,17 +221,17 @@ function O(e2, t2) {
|
|
|
215
221
|
e2[t3.dbColumnName] = t3;
|
|
216
222
|
}), e2;
|
|
217
223
|
}
|
|
218
|
-
function
|
|
224
|
+
function h(e2, t2) {
|
|
219
225
|
let r2, a2 = e2.tableName;
|
|
220
226
|
return a2 || (e2.tableRuntimes && t2 && e2.tableRuntimes[t2] && e2.pageType && "list" === e2.pageType && (r2 = JSON.parse(e2.tableRuntimes[t2].configure)), r2 && r2.props && r2.props.dataOrigin ? r2.props.dataOrigin.tableName : null);
|
|
221
227
|
}
|
|
222
|
-
function
|
|
228
|
+
function T(e2) {
|
|
223
229
|
let t2 = [];
|
|
224
230
|
return e2 && e2.forEach((e3) => {
|
|
225
231
|
t2.push({ value: e3.dbColumnName, label: e3.alias, alias: e3.alias, dataType: e3.dataType });
|
|
226
232
|
}), t2;
|
|
227
233
|
}
|
|
228
|
-
function
|
|
234
|
+
function N(e2, t2) {
|
|
229
235
|
var _a;
|
|
230
236
|
const r2 = e2 ? e2.pageType : null;
|
|
231
237
|
let a2, s2;
|
|
@@ -233,9 +239,9 @@ function h(e2, t2) {
|
|
|
233
239
|
}
|
|
234
240
|
export {
|
|
235
241
|
O as changeFeieldToMap,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
242
|
+
T as getModelOptionsByFields,
|
|
243
|
+
N as getTableConfigByTableUuid,
|
|
244
|
+
h as getTableNameByTableUuid,
|
|
239
245
|
n as querySublist,
|
|
240
246
|
s as queryTableFields,
|
|
241
247
|
o as setTableRuntimesFromConfigure,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { defineComponent as e, computed as l, resolveComponent as a, createBlock as t, openBlock as i, withCtx as d, createElementVNode as u, createVNode as o, createCommentVNode as s, createTextVNode as m, createElementBlock as n, Fragment as p, renderList as r } from "vue";
|
|
2
|
-
import { PageDimensions as
|
|
3
|
-
import { usePageContextStore as
|
|
2
|
+
import { PageDimensions as c } from "../../../utils/interfaces/page-design-types.js";
|
|
3
|
+
import { usePageContextStore as f } from "../../../../../stores/page-store.js";
|
|
4
4
|
const g = { style: { padding: "8px 0px 0px 0px" } }, h = e({ __name: "common-attr-size", props: { size: { type: Object, required: true }, showMaxHeight: { type: Boolean, default: false }, showCalcHeight: { type: Boolean, default: false } }, setup(e2) {
|
|
5
|
-
const h2 = e2, b = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 24], v =
|
|
5
|
+
const h2 = e2, b = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 24], v = f(), x = v.pageContext ? v.pageContext : {}, V = l(() => {
|
|
6
6
|
let e3 = x.dimensions;
|
|
7
|
-
e3 || (e3 =
|
|
7
|
+
e3 || (e3 = c.PC);
|
|
8
8
|
let l2 = h2.size[e3];
|
|
9
9
|
if (!l2) {
|
|
10
|
-
if (l2 = {}, e3 !==
|
|
11
|
-
const e4 = h2.size[
|
|
10
|
+
if (l2 = {}, e3 !== c.PC) {
|
|
11
|
+
const e4 = h2.size[c.PC];
|
|
12
12
|
e4 && Object.assign(l2, e4);
|
|
13
13
|
}
|
|
14
14
|
h2.size[e3] = l2;
|
|
15
15
|
}
|
|
16
16
|
return h2.size[e3];
|
|
17
17
|
});
|
|
18
|
-
return (l2,
|
|
19
|
-
const
|
|
20
|
-
return i(), t(H, { title: "尺寸", name: "attrSize", class: "amb-design-attr-group-header" }, { default: d(() => [u("div", g, [o(v2, { label: "宽度", class: "amb-design-attr-item" }, { default: d(() => [o(h3, { modelValue: V.value.widthType, "onUpdate:modelValue":
|
|
18
|
+
return (l2, c2) => {
|
|
19
|
+
const f2 = a("el-radio-button"), h3 = a("el-radio-group"), v2 = a("el-form-item"), x2 = a("el-option"), y = a("el-select"), _ = a("el-input"), C = a("el-switch"), H = a("el-collapse-item");
|
|
20
|
+
return i(), t(H, { title: "尺寸", name: "attrSize", class: "amb-design-attr-group-header" }, { default: d(() => [u("div", g, [o(v2, { label: "宽度", class: "amb-design-attr-item" }, { default: d(() => [o(h3, { modelValue: V.value.widthType, "onUpdate:modelValue": c2[0] || (c2[0] = (e3) => V.value.widthType = e3) }, { default: d(() => [o(f2, { value: "flex" }, { default: d(() => c2[6] || (c2[6] = [m("24格")])), _: 1 }), o(f2, { value: "fix" }, { default: d(() => c2[7] || (c2[7] = [m("自定义")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "fix" != V.value.widthType ? (i(), t(v2, { key: 0, class: "amb-design-attr-item", label: "栏数" }, { default: d(() => [o(y, { modelValue: V.value.flexSpan, "onUpdate:modelValue": c2[1] || (c2[1] = (e3) => V.value.flexSpan = e3), placeholder: "默认", clearable: "" }, { default: d(() => [(i(), n(p, null, r(b, (e3) => o(x2, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "fix" == e2.size.widthType ? (i(), t(v2, { key: 1, class: "amb-design-attr-item", label: "宽度", title: "未设置时自动宽度,可设置百分比" }, { default: d(() => [o(_, { modelValue: V.value.fixWidth, "onUpdate:modelValue": c2[2] || (c2[2] = (e3) => V.value.fixWidth = e3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), e2.showCalcHeight ? (i(), t(v2, { key: 2, class: "amb-design-attr-item", label: "高度自适应" }, { default: d(() => [o(C, { modelValue: V.value.isCalcHeight, "onUpdate:modelValue": c2[3] || (c2[3] = (e3) => V.value.isCalcHeight = e3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), o(v2, { label: "高度", class: "amb-design-attr-item", title: "未设置时自动高度,可设置百分比" }, { default: d(() => [o(_, { disabled: V.value.isCalcHeight, clearable: "", modelValue: V.value.fixHeight, "onUpdate:modelValue": c2[4] || (c2[4] = (e3) => V.value.fixHeight = e3), placeholder: "请输入" }, null, 8, ["disabled", "modelValue"])]), _: 1 }), o(v2, { label: "最大高度", title: "未设置时自动高度,可设置百分比", class: "amb-design-attr-item" }, { default: d(() => [o(_, { disabled: V.value.isCalcHeight, clearable: "", modelValue: V.value.maxHeight, "onUpdate:modelValue": c2[5] || (c2[5] = (e3) => V.value.maxHeight = e3), placeholder: "请输入" }, null, 8, ["disabled", "modelValue"])]), _: 1 })])]), _: 1 });
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./data-origin.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = r(o, [["__scopeId", "data-v-
|
|
4
|
+
const t = r(o, [["__scopeId", "data-v-f4fba280"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
|
2
|
-
import O from "../../form/common/dataorigin-input-table.
|
|
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.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";
|
|
@@ -40,10 +40,10 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, G = ["onClick"], Q = { styl
|
|
|
40
40
|
function ge() {
|
|
41
41
|
Y.value.openDialog();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function me() {
|
|
44
44
|
H2.configure.props.dataOrigin.tableName = "", H2.configure.props.dataOrigin.alias = "", H2.configure.modelFields = [];
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function fe(e3) {
|
|
47
47
|
let a2 = H2.configure.tableSysCode ? H2.configure.tableSysCode : "";
|
|
48
48
|
a2 += "_", a2 += H2.configure.tableSysVersion ? H2.configure.tableSysVersion : "", a2 += "_", a2 += H2.configure.props.dataOrigin.tableName ? H2.configure.props.dataOrigin.tableName : "";
|
|
49
49
|
let l2 = e3.systemCode ? e3.systemCode : "";
|
|
@@ -77,7 +77,7 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, G = ["onClick"], Q = { styl
|
|
|
77
77
|
}();
|
|
78
78
|
}
|
|
79
79
|
!function() {
|
|
80
|
-
const e3 = H2.pageDesign.systemCode, a2 = H2.pageDesign.
|
|
80
|
+
const e3 = H2.pageDesign.systemCode, a2 = H2.pageDesign.systemVersion, l2 = { name: H2.configure.props.dataOrigin.tableName };
|
|
81
81
|
N(e3, a2, l2.name).then((e4) => {
|
|
82
82
|
ue.value = e4, J.addFieldList(e4);
|
|
83
83
|
});
|
|
@@ -106,14 +106,14 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, G = ["onClick"], Q = { styl
|
|
|
106
106
|
}
|
|
107
107
|
return (a2, l2) => {
|
|
108
108
|
const h2 = i("el-radio"), U2 = i("el-radio-group"), z2 = i("el-form-item"), M2 = i("el-button"), J2 = i("el-input"), ie2 = i("el-option"), oe2 = i("el-select"), pe2 = i("el-collapse-item");
|
|
109
|
-
return t(), o(pe2, { title: "数据", name: "dataOrigin", class: "amb-design-attr-group-header" }, { default: n(() => [r("div", w, [s(z2, { label: "初始化查询", class: "amb-design-attr-item" }, { default: n(() => [s(U2, { modelValue: e2.configure.props.dataOrigin.initializationQuery, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.props.dataOrigin.initializationQuery = a3), class: "ml-4" }, { default: n(() => [s(h2, { value: true }, { default: n(() => l2[17] || (l2[17] = [c("是")])), _: 1 }), s(h2, { value: false }, { default: n(() => l2[18] || (l2[18] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(z2, { label: "数据来源", class: "amb-design-attr-item" }, { default: n(() => [s(U2, { modelValue: e2.configure.props.dataOrigin.optionValueSetType, "onUpdate:modelValue": l2[1] || (l2[1] = (a3) => e2.configure.props.dataOrigin.optionValueSetType = a3) }, { default: n(() => [s(h2, { value: "dataTable" }, { default: n(() => l2[19] || (l2[19] = [c("数据表/视图")])), _: 1 }), s(h2, { value: "service" }, { default: n(() => l2[20] || (l2[20] = [c("服务")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "static" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(g(_), { key: 0, modelValue: e2.configure.props.dataOrigin.json, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.props.dataOrigin.json = a3), options: K, style: { "margin-bottom": "8px" }, placeholder: "请输入" }, null, 8, ["modelValue"])) : u("", true), d(s(z2, { label: "选项组名", class: "amb-design-attr-item" }, { default: n(() => [s(O, { modelValue: e2.configure.props.dataOrigin.optionGroup, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.dataOrigin.optionGroup = a3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[
|
|
110
|
-
const e4 = H2.configure.tableSysCode ? H2.configure.tableSysCode : H2.pageDesign.systemCode, a3 = H2.configure.tableSysVersion ? H2.configure.tableSysVersion : H2.pageDesign.
|
|
109
|
+
return t(), o(pe2, { title: "数据", name: "dataOrigin", class: "amb-design-attr-group-header" }, { default: n(() => [r("div", w, [s(z2, { label: "初始化查询", class: "amb-design-attr-item" }, { default: n(() => [s(U2, { modelValue: e2.configure.props.dataOrigin.initializationQuery, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.props.dataOrigin.initializationQuery = a3), class: "ml-4" }, { default: n(() => [s(h2, { value: true }, { default: n(() => l2[17] || (l2[17] = [c("是")])), _: 1 }), s(h2, { value: false }, { default: n(() => l2[18] || (l2[18] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(z2, { label: "数据来源", class: "amb-design-attr-item" }, { default: n(() => [s(U2, { modelValue: e2.configure.props.dataOrigin.optionValueSetType, "onUpdate:modelValue": l2[1] || (l2[1] = (a3) => e2.configure.props.dataOrigin.optionValueSetType = a3) }, { default: n(() => [s(h2, { value: "dataTable" }, { default: n(() => l2[19] || (l2[19] = [c("数据表/视图")])), _: 1 }), s(h2, { value: "service" }, { default: n(() => l2[20] || (l2[20] = [c("服务")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "static" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(g(_), { key: 0, modelValue: e2.configure.props.dataOrigin.json, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.props.dataOrigin.json = a3), options: K, style: { "margin-bottom": "8px" }, placeholder: "请输入" }, null, 8, ["modelValue"])) : u("", true), d(s(z2, { label: "选项组名", class: "amb-design-attr-item" }, { default: n(() => [s(O, { modelValue: e2.configure.props.dataOrigin.optionGroup, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.dataOrigin.optionGroup = a3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[m, "optionGroup" === e2.configure.props.dataOrigin.optionValueSetType]]), d(s(z2, { label: "选项值绑定", class: "amb-design-attr-item" }, { default: n(() => [s(O, { modelValue: e2.configure.props.dataOrigin.optionValue, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.dataOrigin.optionValue = a3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[m, "optionGroup" === e2.configure.props.dataOrigin.optionValueSetType]]), d(s(z2, { label: "选项名绑定", class: "amb-design-attr-item" }, { default: n(() => [s(O, { modelValue: e2.configure.props.dataOrigin.optionName, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.dataOrigin.optionName = a3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[m, "optionGroup" === e2.configure.props.dataOrigin.optionValueSetType]]), d(s(z2, { label: "数据表视图", class: "amb-design-attr-item" }, { default: n(() => [s(J2, { modelValue: e2.configure.props.dataOrigin.tableName, "onUpdate:modelValue": l2[6] || (l2[6] = (a3) => e2.configure.props.dataOrigin.tableName = a3), title: e2.configure.props.dataOrigin.tableName, onClick: ge, clearable: "", readonly: "true" }, { prepend: n(() => [s(M2, { icon: g(D), onClick: ge, size: "small" }, null, 8, ["icon"])]), append: n(() => [s(M2, { icon: g(F), onClick: me, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }, 512), [[m, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), "dataTable" === e2.configure.props.dataOrigin.optionValueSetType && e2.configure.props.dataOrigin.tableName ? (t(), o(z2, { key: 1, label: "快捷设置", class: "amb-design-attr-item" }, { default: n(() => [s(M2, { type: "primary", onClick: l2[7] || (l2[7] = (e3) => function() {
|
|
110
|
+
const e4 = H2.configure.tableSysCode ? H2.configure.tableSysCode : H2.pageDesign.systemCode, a3 = H2.configure.tableSysVersion ? H2.configure.tableSysVersion : H2.pageDesign.systemVersion, l3 = H2.configure.props.dataOrigin.tableName;
|
|
111
111
|
N(e4, a3, l3).then((e5) => {
|
|
112
112
|
ue.value = e5, P.value = true;
|
|
113
113
|
});
|
|
114
|
-
}()) }, { default: n(() => l2[21] || (l2[21] = [c("编辑")])), _: 1 })]), _: 1 })) : u("", true), "dataTable" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 2, label: "编辑排序", class: "amb-design-attr-item" }, { default: n(() => [s(M2, { type: "primary", onClick: Se }, { default: n(() => l2[22] || (l2[22] = [c("添加")])), _: 1 }), s(M2, { onClick: ke }, { default: n(() => l2[23] || (l2[23] = [c("删除")])), _: 1 }), (t(true),
|
|
114
|
+
}()) }, { default: n(() => l2[21] || (l2[21] = [c("编辑")])), _: 1 })]), _: 1 })) : u("", true), "dataTable" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 2, label: "编辑排序", class: "amb-design-attr-item" }, { default: n(() => [s(M2, { type: "primary", onClick: Se }, { default: n(() => l2[22] || (l2[22] = [c("添加")])), _: 1 }), s(M2, { onClick: ke }, { default: n(() => l2[23] || (l2[23] = [c("删除")])), _: 1 }), (t(true), f(v, null, b(e2.configure.props.dataOrigin.sortField, (a3, l3) => (t(), f("div", { key: l3, onClick: (e3) => function(e4) {
|
|
115
115
|
Z.value = e4;
|
|
116
|
-
}(l3), style: { "margin-top": "10px" }, class: y(Z.value === l3 ? "amb-design-attr-item-inline seleteSort" : "amb-design-attr-item-inline") }, [s(oe2, { modelValue: a3.name, "onUpdate:modelValue": (e3) => a3.name = e3, placeholder: "请选择" }, { default: n(() => [(t(true),
|
|
116
|
+
}(l3), style: { "margin-top": "10px" }, class: y(Z.value === l3 ? "amb-design-attr-item-inline seleteSort" : "amb-design-attr-item-inline") }, [s(oe2, { modelValue: a3.name, "onUpdate:modelValue": (e3) => a3.name = e3, placeholder: "请选择" }, { default: n(() => [(t(true), f(v, null, b(e2.configure.modelFields, (e3, a4) => (t(), o(ie2, { key: a4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), s(oe2, { modelValue: a3.type, "onUpdate:modelValue": (e3) => a3.type = e3, style: { "margin-left": "10px" }, placeholder: "请选择" }, { default: n(() => [s(ie2, { label: "升序", value: "asc" }), s(ie2, { label: "降序", value: "des" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])], 10, G))), 128))]), _: 1 })) : u("", true), d(s(z2, { label: "服务名", class: "amb-design-attr-item" }, { default: n(() => [s(x, { pageDesign: e2.pageDesign, rowObj: g(le).service, onlyService: "", "onUpdate:modelValue": l2[8] || (l2[8] = (e3, a3, l3, i2) => ve(0, a3, l3, i2)) }, null, 8, ["pageDesign", "rowObj"])]), _: 1 }, 512), [[m, "service" === e2.configure.props.dataOrigin.optionValueSetType]]), "service" === e2.configure.props.dataOrigin.optionValueSetType && e2.configure.props.dataOrigin.serveName ? (t(), o(z2, { key: 3, label: "快捷设置", class: "amb-design-attr-item" }, { default: n(() => [s(M2, { type: "primary", onClick: l2[9] || (l2[9] = (e3) => P.value = true) }, { default: n(() => l2[24] || (l2[24] = [c("编辑")])), _: 1 })]), _: 1 })) : u("", true), d(s(z2, { label: "模糊查询", class: "amb-design-attr-item" }, { default: n(() => [s(U2, { modelValue: e2.configure.props.dataOrigin.remote, "onUpdate:modelValue": l2[10] || (l2[10] = (a3) => e2.configure.props.dataOrigin.remote = a3), class: "ml-4" }, { default: n(() => [s(h2, { value: false }, { default: n(() => l2[25] || (l2[25] = [c("否")])), _: 1 }), s(h2, { value: true }, { default: n(() => l2[26] || (l2[26] = [c("是")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[m, e2.remote && ("dataTable" === e2.configure.props.dataOrigin.optionValueSetType || "service" === e2.configure.props.dataOrigin.optionValueSetType)]]), "service" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 4, label: "datas", class: "amb-design-attr-item" }, { default: n(() => [s(oe2, { modelValue: e2.configure.props.dataOrigin.service.datas, "onUpdate:modelValue": l2[11] || (l2[11] = (a3) => e2.configure.props.dataOrigin.service.datas = a3), filterable: "", clearable: "", placeholder: "请选择" }, { default: n(() => [(t(true), f(v, null, b(te.value, (e3, a3) => (t(), o(ie2, { key: a3, label: e3.label, value: e3.value }, { default: n(() => [r("span", Q, V(e3.label), 1), r("span", q, V(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : u("", true), "service" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 5, label: "总页数", class: "amb-design-attr-item" }, { default: n(() => [s(oe2, { modelValue: e2.configure.props.dataOrigin.service.pageCount, "onUpdate:modelValue": l2[12] || (l2[12] = (a3) => e2.configure.props.dataOrigin.service.pageCount = a3), filterable: "", clearable: "", placeholder: "请选择" }, { default: n(() => [(t(true), f(v, null, b(te.value, (e3, a3) => (t(), o(ie2, { key: a3, label: e3.label, value: e3.value }, { default: n(() => [r("span", B, V(e3.label), 1), r("span", R, V(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : u("", true), "service" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 6, label: "总条数", class: "amb-design-attr-item" }, { default: n(() => [s(oe2, { modelValue: e2.configure.props.dataOrigin.service.total, "onUpdate:modelValue": l2[13] || (l2[13] = (a3) => e2.configure.props.dataOrigin.service.total = a3), filterable: "", clearable: "", placeholder: "请选择" }, { default: n(() => [(t(true), f(v, null, b(te.value, (e3, a3) => (t(), o(ie2, { key: a3, label: e3.label, value: e3.value }, { default: n(() => [r("span", $, V(e3.label), 1), r("span", A, V(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : u("", true), "service" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 7, label: "页码", class: "amb-design-attr-item" }, { default: n(() => [s(oe2, { modelValue: e2.configure.props.dataOrigin.service.pager, "onUpdate:modelValue": l2[14] || (l2[14] = (a3) => e2.configure.props.dataOrigin.service.pager = a3), filterable: "", clearable: "", placeholder: "请选择" }, { default: n(() => [(t(true), f(v, null, b(te.value, (e3, a3) => (t(), o(ie2, { key: a3, label: e3.label, value: e3.value }, { default: n(() => [r("span", I, V(e3.label), 1), r("span", E, V(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : u("", true), "dataTable" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 8, label: "查询条件", class: "amb-design-attr-item" }, { default: n(() => [s(j, { onClick: l2[15] || (l2[15] = (e3) => ee.value = true), conditionData: e2.configure.props.dataOrigin.defaultQueryCriteria }, null, 8, ["conditionData"])]), _: 1 })) : u("", true), "dataTable" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 9, label: "过滤条件", class: "amb-design-attr-item" }, { default: n(() => [s(j, { onClick: l2[16] || (l2[16] = (e3) => W.value = true), conditionData: e2.configure.props.dataOrigin.sqlFilterCondition }, null, 8, ["conditionData"])]), _: 1 })) : u("", true), p(a2.$slots, "bottom", { row: e2.configure.props.dataOrigin }, void 0, true), d(s(L, { ref: "dataOriginServiceInRef", dataOrigin: g(le) }, null, 8, ["dataOrigin"]), [[m, "service" == e2.configure.props.dataOrigin.optionValueSetType]])]), s(T, { ref_key: "selectTableDialog", ref: Y, onSelectTable: fe, systemCode: e2.pageDesign.systemCode, systemVersion: e2.pageDesign.systemVersion }, null, 8, ["systemCode", "systemVersion"]), X.value ? (t(), o(S, { key: 0, returnSetList: e2.configure.props.dataOrigin.returnSetList, onSave: ye, onClose: Ve, onRemove: Oe }, null, 8, ["returnSetList"])) : u("", true), W.value ? (t(), o(C, { key: 1, list: e2.configure.props.dataOrigin.sqlFilterCondition, fieldNameList: e2.configure.modelFields, fieldMap: e2.configure.modelFieldsMap, dataFieldNameList: ae.value, onSave: ne, onClose: Ce }, null, 8, ["list", "fieldNameList", "fieldMap", "dataFieldNameList"])) : u("", true), ee.value ? (t(), o(C, { key: 2, list: e2.configure.props.dataOrigin.defaultQueryCriteria, fieldNameList: e2.configure.modelFields, fieldMap: e2.configure.modelFieldsMap, dataFieldNameList: ae.value, onClose: re, onSave: se }, null, 8, ["list", "fieldNameList", "fieldMap", "dataFieldNameList"])) : u("", true), P.value ? (t(), o(k, { key: 3, configure: e2.configure, modelFields: g(ue), pageDesign: e2.pageDesign, isChangeTable: g(de), onSetConfigure: ce, onClose: _e }, null, 8, ["configure", "modelFields", "pageDesign", "isChangeTable"])) : u("", true)]), _: 3 });
|
|
117
117
|
};
|
|
118
118
|
} });
|
|
119
119
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as p, createElementBlock as u, createCommentVNode as n, Fragment as r, renderList as d } from "vue";
|
|
2
|
-
const m = e({ __name: "variate-select", props: { prop: { type: String, default: "" }, propType: { type: String, default: "" }, tableConfigure: { type: Object, default: () => ({ props: {} }) }, showDynamicColumn: { type: Boolean, default: false }, showPlaceholder: { type: Boolean, default: false } }, emits: ["update:prop", "update:propType"], setup(e2, { emit: m2 }) {
|
|
2
|
+
const m = e({ __name: "variate-select", props: { prop: { type: String, default: "" }, propType: { type: String, default: "" }, tableConfigure: { type: Object, default: () => ({ props: {} }) }, showDynamicColumn: { type: Boolean, default: false }, showPlaceholder: { type: Boolean, default: false }, multiple: { type: Boolean, default: false } }, emits: ["update:prop", "update:propType"], setup(e2, { emit: m2 }) {
|
|
3
3
|
const i = e2, c = m2, s = l("");
|
|
4
4
|
function y() {
|
|
5
5
|
c("update:prop", s), "dynamicColumnSelect" !== s && null !== s && "" != i.propType && i.tableConfigure.modelFields.forEach((e3) => {
|
|
@@ -8,7 +8,7 @@ const m = e({ __name: "variate-select", props: { prop: { type: String, default:
|
|
|
8
8
|
}
|
|
9
9
|
return i.prop && (s.value = i.prop), (l2, m3) => {
|
|
10
10
|
const i2 = a("el-option"), c2 = a("el-select");
|
|
11
|
-
return t(), o(c2, { modelValue: s.value, "onUpdate:modelValue": m3[0] || (m3[0] = (e3) => s.value = e3), clearable: "", filterable: "", "allow-create": "", "default-first-option": "", onChange: y }, { default: p(() => [(t(true), u(r, null, d(e2.tableConfigure.modelFields, (e3, l3) => (t(), o(i2, { key: l3, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128)), e2.showDynamicColumn ? (t(), o(i2, { key: 0, label: "动态列", value: "dynamicColumnSelect" })) : n("", true), e2.showPlaceholder ? (t(), o(i2, { key: 1, label: "占位符", value: null })) : n("", true)]), _: 1 }, 8, ["modelValue"]);
|
|
11
|
+
return t(), o(c2, { modelValue: s.value, "onUpdate:modelValue": m3[0] || (m3[0] = (e3) => s.value = e3), multiple: e2.multiple, clearable: "", filterable: "", "allow-create": "", "default-first-option": "", onChange: y }, { default: p(() => [(t(true), u(r, null, d(e2.tableConfigure.modelFields, (e3, l3) => (t(), o(i2, { key: l3, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128)), e2.showDynamicColumn ? (t(), o(i2, { key: 0, label: "动态列", value: "dynamicColumnSelect" })) : n("", true), e2.showPlaceholder ? (t(), o(i2, { key: 1, label: "占位符", value: null })) : n("", true)]), _: 1 }, 8, ["modelValue", "multiple"]);
|
|
12
12
|
};
|
|
13
13
|
} });
|
|
14
14
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as a, onMounted as t, resolveComponent as o, createBlock as i, openBlock as r, withCtx as u, createVNode as n, createCommentVNode as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as a, onMounted as t, resolveComponent as o, createBlock as i, openBlock as r, withCtx as u, createVNode as n, createCommentVNode as d, createElementVNode as s, createElementBlock as p, Fragment as g, renderList as m, createTextVNode as c, unref as f } from "vue";
|
|
2
2
|
import { Codemirror as b } from "vue-codemirror";
|
|
3
3
|
import { Plus as V, Remove as h, Delete as _ } from "@element-plus/icons-vue";
|
|
4
4
|
import v from "../component/variate-select.vue.js";
|
|
@@ -7,8 +7,8 @@ import y from "../component/import-header.vue.js";
|
|
|
7
7
|
import { querySublist as x, queryTableFields as D, changeFeieldToMap as T } from "../../../../utils/page-table-util.js";
|
|
8
8
|
import C from "../../workflow/component/combination.vue.js";
|
|
9
9
|
import w from "../../common/common-select-table.vue.js";
|
|
10
|
-
import { Search as
|
|
11
|
-
import
|
|
10
|
+
import { Search as O, Close as U } from "@element-plus/icons";
|
|
11
|
+
import k from "../../common/state-button.vue.js";
|
|
12
12
|
import "super-page-runtime";
|
|
13
13
|
const N = { style: { padding: "8px 0px 0px 0px" } }, L = { style: { padding: "8px 0px 0px 0px" } }, z = { style: { padding: "8px 0px 0px 0px" } }, P = { style: { padding: "8px 0px 0px 0px" } }, j = { style: { padding: "8px 0px 0px 0px" } }, F = { style: { padding: "8px 0px 0px 0px" } }, $ = { style: { padding: "8px 0px 0px 0px" } }, Q = { key: 0 }, E = { key: 1 }, K = { style: { display: "flex", width: "100%" } }, M = { style: { padding: "8px 0px 0px 0px" } }, R = e({ __name: "table-attr-advanced", props: { configure: { type: Object, default: () => ({ props: {} }) }, pageDesign: { type: Object, default: () => {
|
|
14
14
|
} } }, setup(e2) {
|
|
@@ -56,19 +56,19 @@ const N = { style: { padding: "8px 0px 0px 0px" } }, L = { style: { padding: "8p
|
|
|
56
56
|
A.value = e4;
|
|
57
57
|
});
|
|
58
58
|
}), t(() => {
|
|
59
|
-
ee(R2.
|
|
59
|
+
ee(R2.pageDesign.systemCode, R2.pageDesign.systemVersion, R2.configure.props.dataOrigin.tableName);
|
|
60
60
|
}), R2.configure.props.otherSettings.fillTableData || (R2.configure.props.otherSettings.fillTableData = [{}]), R2.configure.props.otherSettings.fixedValueTableData || (R2.configure.props.otherSettings.fixedValueTableData = [{}]), (l2, a2) => {
|
|
61
|
-
const t2 = o("el-collapse-item"), x2 = o("el-form-item"), D2 = o("el-option"), T2 = o("el-select"), ee2 = o("el-button"), ie = o("el-radio"), re = o("el-radio-group"), ue = o("el-input"), ne = o("el-icon"),
|
|
62
|
-
return r(), i(_e, { "label-width": "80px", size: "small" }, { default: u(() => [n(Ve, { modelValue: J.value, "onUpdate:modelValue": a2[23] || (a2[23] = (e3) => J.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [n(t2, { title: "组合表头", name: "compositeHeader", class: "amb-design-attr-group-header" }, { default: u(() => [
|
|
61
|
+
const t2 = o("el-collapse-item"), x2 = o("el-form-item"), D2 = o("el-option"), T2 = o("el-select"), ee2 = o("el-button"), ie = o("el-radio"), re = o("el-radio-group"), ue = o("el-input"), ne = o("el-icon"), de = o("el-table-column"), se = o("el-table"), pe = o("el-col"), ge = o("el-row"), me = o("el-checkbox"), ce = o("el-checkbox-group"), fe = o("el-divider"), be = o("el-input-number"), Ve = o("el-collapse"), he = o("el-dialog"), _e = o("el-form");
|
|
62
|
+
return r(), i(_e, { "label-width": "80px", size: "small" }, { default: u(() => [n(Ve, { modelValue: J.value, "onUpdate:modelValue": a2[23] || (a2[23] = (e3) => J.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [n(t2, { title: "组合表头", name: "compositeHeader", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", N, [n(S, { configure: e2.configure }, null, 8, ["configure"])])]), _: 1 }), n(t2, { title: "合并设置", name: "amalgamated", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", L, [n(x2, { label: "相同值时合并字段", class: "amb-design-attr-item-linefeed-two" }, { default: u(() => [n(v, { modelValue: e2.configure.props.highOrder.mergeFields, "onUpdate:modelValue": a2[0] || (a2[0] = (l3) => e2.configure.props.highOrder.mergeFields = l3), multiple: true, tableConfigure: e2.configure }, null, 8, ["modelValue", "tableConfigure"])]), _: 1 }), n(x2, { label: "自定义合并", class: "amb-design-attr-item" }, { default: u(() => [n(T2, { modelValue: e2.configure.props.highOrder.mergeDefined, "onUpdate:modelValue": a2[1] || (a2[1] = (l3) => e2.configure.props.highOrder.mergeDefined = l3), placeholder: "请选择" }, { default: u(() => [(r(true), p(g, null, m(e2.configure.events, (e3, l3) => (r(), i(D2, { key: l3, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), n(t2, { title: "展开行内容", name: "unfoldConent", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", z, [n(x2, { label: "展开内容", class: "amb-design-attr-item" }, { default: u(() => [n(ee2, { type: "primary", onClick: a2[2] || (a2[2] = (e3) => W.value = true) }, { default: u(() => a2[26] || (a2[26] = [c("全屏编辑")])), _: 1 })]), _: 1 }), n(f(b), { modelValue: e2.configure.props.dataOrigin.unfoldConent, "onUpdate:modelValue": a2[3] || (a2[3] = (l3) => e2.configure.props.dataOrigin.unfoldConent = l3), options: I, placeholder: "请输入" }, null, 8, ["modelValue"]), n(x2, { label: "默认展开", class: "amb-design-attr-item" }, { default: u(() => [n(re, { modelValue: e2.configure.props.dataOrigin.defaultExpand, "onUpdate:modelValue": a2[4] || (a2[4] = (l3) => e2.configure.props.dataOrigin.defaultExpand = l3), class: "ml-4" }, { default: u(() => [n(ie, { value: true }, { default: u(() => a2[27] || (a2[27] = [c("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[28] || (a2[28] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), n(t2, { title: "树表格", name: "treeTable", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", P, [n(x2, { label: "启用树表格", class: "amb-design-attr-item" }, { default: u(() => [n(re, { modelValue: e2.configure.props.dataOrigin.treeTable, "onUpdate:modelValue": a2[5] || (a2[5] = (l3) => e2.configure.props.dataOrigin.treeTable = l3), class: "ml-4" }, { default: u(() => [n(ie, { value: true }, { default: u(() => a2[29] || (a2[29] = [c("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[30] || (a2[30] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(x2, { required: "", label: "父级字段", class: "amb-design-attr-item" }, { default: u(() => [n(v, { modelValue: e2.configure.props.dataOrigin.rowKey, "onUpdate:modelValue": a2[6] || (a2[6] = (l3) => e2.configure.props.dataOrigin.rowKey = l3), tableConfigure: e2.configure }, null, 8, ["modelValue", "tableConfigure"])]), _: 1 }), e2.configure.props.dataOrigin.rowKey ? (r(), i(x2, { key: 0, label: "懒加载", class: "amb-design-attr-item" }, { default: u(() => [n(re, { modelValue: e2.configure.props.dataOrigin.lazy, "onUpdate:modelValue": a2[7] || (a2[7] = (l3) => e2.configure.props.dataOrigin.lazy = l3), class: "ml-4" }, { default: u(() => [n(ie, { value: true }, { default: u(() => a2[31] || (a2[31] = [c("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[32] || (a2[32] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true), e2.configure.props.dataOrigin.rowKey && !e2.configure.props.dataOrigin.lazy ? (r(), i(x2, { key: 1, label: "展开子节点", class: "amb-design-attr-item" }, { default: u(() => [n(re, { modelValue: e2.configure.props.dataOrigin.defaultExpandAll, "onUpdate:modelValue": a2[8] || (a2[8] = (l3) => e2.configure.props.dataOrigin.defaultExpandAll = l3), class: "ml-4" }, { default: u(() => [n(ie, { value: true }, { default: u(() => a2[33] || (a2[33] = [c("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[34] || (a2[34] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true), e2.configure.props.dataOrigin.rowKey ? (r(), i(x2, { key: 2, label: "树节点缩减", class: "amb-design-attr-item" }, { default: u(() => [n(ue, { modelValue: e2.configure.props.dataOrigin.indent, "onUpdate:modelValue": a2[9] || (a2[9] = (l3) => e2.configure.props.dataOrigin.indent = l3) }, null, 8, ["modelValue"])]), _: 1 })) : d("", true), e2.configure.props.dataOrigin.treeTable ? (r(), i(x2, { key: 3, label: "关联父子节点选中状态", class: "amb-design-attr-item" }, { default: u(() => [n(re, { modelValue: e2.configure.props.dataOrigin.checkStrictly, "onUpdate:modelValue": a2[10] || (a2[10] = (l3) => e2.configure.props.dataOrigin.checkStrictly = l3), class: "ml-4" }, { default: u(() => [n(ie, { value: true }, { default: u(() => a2[35] || (a2[35] = [c("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[36] || (a2[36] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true)])]), _: 1 }), n(t2, { title: "删除逻辑控制", name: "deleteLogic", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", j, [a2[39] || (a2[39] = s("span", null, "以下子表有记录时不能执行删除", -1)), n(se, { data: e2.configure.props.deleteLogicSetting, border: "", fit: "", "highlight-current-row": "" }, { default: u(() => [n(de, { label: "操作", align: "center", width: "50" }, { default: u((e3) => [n(ne, { onClick: le }, { default: u(() => [n(f(V))]), _: 1 }), n(ne, { style: { "margin-left": "5px" }, onClick: (l3) => {
|
|
63
63
|
return a3 = e3.$index, void (1 === R2.configure.props.deleteLogicSetting.length ? R2.configure.props.deleteLogicSetting[0].secondTable = "" : R2.configure.props.deleteLogicSetting = R2.configure.props.deleteLogicSetting.filter((e4, l4) => l4 != a3));
|
|
64
64
|
var a3;
|
|
65
|
-
} }, { default: u(() => [n(
|
|
65
|
+
} }, { default: u(() => [n(f(h))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), n(de, { label: "子表配置" }, { default: u((e3) => [n(T2, { modelValue: e3.row.secondTable, "onUpdate:modelValue": (l3) => e3.row.secondTable = l3, clearable: "", size: "default" }, { default: u(() => [(r(true), p(g, null, m(A.value, (e4) => (r(), i(D2, { key: e4, label: e4, value: e4 }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"]), n(x2, { label: "逻辑删除", title: "是否逻辑删除", class: "amb-design-attr-item" }, { default: u(() => [n(re, { modelValue: e2.configure.props.base.isSafeDelete, "onUpdate:modelValue": a2[11] || (a2[11] = (l3) => e2.configure.props.base.isSafeDelete = l3), class: "ml-4" }, { default: u(() => [n(ie, { value: true }, { default: u(() => a2[37] || (a2[37] = [c("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[38] || (a2[38] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), n(t2, { title: "导入配置", name: "importSetting", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", F, [n(x2, { label: "重复处理", class: "amb-design-attr-item" }, { default: u(() => [n(re, { modelValue: e2.configure.props.importSetting.listViewImportDuplicate, "onUpdate:modelValue": a2[12] || (a2[12] = (l3) => e2.configure.props.importSetting.listViewImportDuplicate = l3), class: "ml-4" }, { default: u(() => [n(ge, null, { default: u(() => [n(pe, { span: 12 }, { default: u(() => [n(ie, { value: "update" }, { default: u(() => a2[40] || (a2[40] = [c("更新数据")])), _: 1 })]), _: 1 }), n(pe, { span: 12 }, { default: u(() => [n(ie, { value: "skip" }, { default: u(() => a2[41] || (a2[41] = [c("跳过")])), _: 1 })]), _: 1 }), n(pe, { span: 12 }, { default: u(() => [n(ie, { value: "termination" }, { default: u(() => a2[42] || (a2[42] = [c("中止导入")])), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(y, { configure: e2.configure }, null, 8, ["configure"])])]), _: 1 }), n(t2, { title: "初始化配置", name: "initialConfig", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", $, [n(x2, { label: "初始化子表", title: "初始化子表", class: "amb-design-attr-item" }, { default: u(() => [n(ce, { modelValue: e2.configure.props.otherSettings.timeToInitializeSubTable, "onUpdate:modelValue": a2[13] || (a2[13] = (l3) => e2.configure.props.otherSettings.timeToInitializeSubTable = l3) }, { default: u(() => [n(me, { label: "新建表单时", value: "create" }), n(me, { label: "子表无项目时", value: "noData" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(x2, { label: "移动端标题", title: "移动端行标题", class: "amb-design-attr-item" }, { default: u(() => [n(ue, { modelValue: e2.configure.props.otherSettings.mobileLineTitle, "onUpdate:modelValue": a2[14] || (a2[14] = (l3) => e2.configure.props.otherSettings.mobileLineTitle = l3) }, null, 8, ["modelValue"])]), _: 1 }), n(x2, { label: "数据来源", title: "子表内容数据来源", class: "amb-design-attr-item" }, { default: u(() => [n(T2, { modelValue: e2.configure.props.otherSettings.dataSources, "onUpdate:modelValue": a2[15] || (a2[15] = (l3) => e2.configure.props.otherSettings.dataSources = l3), clearable: "" }, { default: u(() => [n(D2, { label: "子表内容从其他数据表填充", value: "otherDataTable" }), n(D2, { label: "固定值", value: "fixedValue" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "fixedValue" === e2.configure.props.otherSettings.dataSources ? (r(), p("div", Q, [n(fe, null, { default: u(() => a2[43] || (a2[43] = [c(" 固定值 ")])), _: 1 }), n(se, { data: e2.configure.props.otherSettings.fixedValueTableData, style: { width: "100%" } }, { default: u(() => [n(de, { width: "60", align: "center" }, { default: u((e3) => [n(ne, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => (e3.row, e3.$index, void R2.configure.props.otherSettings.fixedValueTableData.push({})) }, { default: u(() => [n(f(V))]), _: 2 }, 1032, ["onClick"]), n(ne, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => {
|
|
66
66
|
return e3.row, a3 = e3.$index, void (1 == R2.configure.props.otherSettings.fixedValueTableData.length ? (R2.configure.props.otherSettings.fixedValueTableData[0].sourcePropName = "", R2.configure.props.otherSettings.fixedValueTableData[0].optionGroupCode = "", R2.configure.props.otherSettings.fixedValueTableData[0].fixedValue = "") : R2.configure.props.otherSettings.fixedValueTableData.splice(a3, 1));
|
|
67
67
|
var a3;
|
|
68
|
-
} }, { default: u(() => [n(
|
|
68
|
+
} }, { default: u(() => [n(f(_))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), n(de, { prop: "label", label: "子表字段", width: "90", align: "center" }, { default: u((l3) => [n(T2, { modelValue: l3.row.sourcePropName, "onUpdate:modelValue": (e3) => l3.row.sourcePropName = e3, placeholder: "请选择" }, { default: u(() => [(r(true), p(g, null, m(e2.configure.modelFields, (e3, l4) => (r(), i(D2, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(de, { prop: "value", label: "选项组编码", width: "90", align: "center" }, { default: u((e3) => [n(ue, { modelValue: e3.row.optionGroupCode, "onUpdate:modelValue": (l3) => e3.row.optionGroupCode = l3, size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(de, { prop: "value", label: "固定值", width: "90", align: "center" }, { default: u((e3) => [n(ue, { modelValue: e3.row.fixedValue, "onUpdate:modelValue": (l3) => e3.row.fixedValue = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])])) : (r(), p("div", E, [n(fe, null, { default: u(() => a2[44] || (a2[44] = [c(" 来源 ")])), _: 1 }), n(x2, { label: "数据表", title: "数据表", class: "amb-design-attr-item" }, { default: u(() => [n(ue, { modelValue: e2.configure.props.otherSettings.sourceDataTable, "onUpdate:modelValue": a2[16] || (a2[16] = (l3) => e2.configure.props.otherSettings.sourceDataTable = l3), title: e2.configure.props.otherSettings.sourceDataTable, clearable: "", readonly: "true" }, { append: u(() => [n(ee2, { icon: f(O), onClick: X, size: "small" }, null, 8, ["icon"]), n(ee2, { icon: f(U), onClick: Y, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }), n(x2, { label: "排序", title: "排序", class: "amb-design-attr-item" }, { default: u(() => [s("div", K, [n(T2, { modelValue: e2.configure.props.otherSettings.sourceDataTableSortColumn, "onUpdate:modelValue": a2[17] || (a2[17] = (l3) => e2.configure.props.otherSettings.sourceDataTableSortColumn = l3), clearable: "", filterable: "" }, { default: u(() => [(r(true), p(g, null, m(q.value, (e3) => (r(), i(D2, { key: e3, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), n(T2, { modelValue: e2.configure.props.otherSettings.sourceDataTableSortOrder, "onUpdate:modelValue": a2[18] || (a2[18] = (l3) => e2.configure.props.otherSettings.sourceDataTableSortOrder = l3), style: { width: "120px", "margin-left": "10px" }, clearable: "" }, { default: u(() => [n(D2, { label: "升序", value: "asc" }), n(D2, { label: "降序", value: "desc" })]), _: 1 }, 8, ["modelValue"])])]), _: 1 }), n(x2, { label: "条件", class: "amb-design-attr-item" }, { default: u(() => [n(k, { onClick: a2[19] || (a2[19] = (e3) => H.value = true), conditionData: JSON.parse(e2.configure.props.otherSettings.sourceQueryTableData) }, null, 8, ["conditionData"])]), _: 1 }), n(fe, null, { default: u(() => a2[45] || (a2[45] = [c(" 填充至 ")])), _: 1 }), n(x2, { label: "来源过滤", title: "来源过滤条件中对象变化时加载", class: "amb-design-attr-item" }, { default: u(() => [n(re, { modelValue: e2.configure.props.otherSettings.isRealTimeChange, "onUpdate:modelValue": a2[20] || (a2[20] = (l3) => e2.configure.props.otherSettings.isRealTimeChange = l3), class: "ml-4", onChange: te }, { default: u(() => [n(ie, { value: true }, { default: u(() => a2[46] || (a2[46] = [c("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[47] || (a2[47] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(se, { data: e2.configure.props.otherSettings.fillTableData, style: { width: "100%" } }, { default: u(() => [n(de, { width: "60", align: "center" }, { default: u((e3) => [n(ne, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => (e3.row, e3.$index, void R2.configure.props.otherSettings.fillTableData.push({})) }, { default: u(() => [n(f(V))]), _: 2 }, 1032, ["onClick"]), n(ne, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => {
|
|
69
69
|
return e3.row, a3 = e3.$index, void (1 == R2.configure.props.otherSettings.fillTableData.length ? (R2.configure.props.otherSettings.fillTableData[0].sourcePropName = "", R2.configure.props.otherSettings.fillTableData[0].childPropName = "", R2.configure.props.otherSettings.fillTableData[0].defaultValue = "") : R2.configure.props.otherSettings.fillTableData.splice(a3, 1));
|
|
70
70
|
var a3;
|
|
71
|
-
} }, { default: u(() => [n(
|
|
71
|
+
} }, { default: u(() => [n(f(_))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), n(de, { prop: "label", label: "来源字段", width: "90", align: "center" }, { default: u((e3) => [n(T2, { modelValue: e3.row.sourcePropName, "onUpdate:modelValue": (l3) => e3.row.sourcePropName = l3, clearable: "", filterable: "" }, { default: u(() => [(r(true), p(g, null, m(q.value, (e4) => (r(), i(D2, { key: e4, label: e4.alias, value: e4.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(de, { prop: "value", label: "子表字段", width: "90", align: "center" }, { default: u((l3) => [n(T2, { modelValue: l3.row.childPropName, "onUpdate:modelValue": (e3) => l3.row.childPropName = e3, placeholder: "请选择" }, { default: u(() => [(r(true), p(g, null, m(e2.configure.modelFields, (e3, l4) => (r(), i(D2, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(de, { prop: "value", label: "默认值", width: "90", align: "center" }, { default: u((e3) => [n(ue, { modelValue: e3.row.defaultValue, "onUpdate:modelValue": (l3) => e3.row.defaultValue = l3, size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])]))])]), _: 1 }), n(t2, { title: "其他", name: "otherSettings", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", M, [n(x2, { label: "数据权限", title: "数据权限限制", class: "amb-design-attr-item" }, { default: u(() => [n(re, { modelValue: e2.configure.props.otherSettings.isWithDataPermission, "onUpdate:modelValue": a2[21] || (a2[21] = (l3) => e2.configure.props.otherSettings.isWithDataPermission = l3), class: "ml-4" }, { default: u(() => [n(ie, { value: true }, { default: u(() => a2[48] || (a2[48] = [c("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[49] || (a2[49] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(x2, { label: "记录最大数", title: "表格记录最大数量", class: "amb-design-attr-item" }, { default: u(() => [n(be, { modelValue: e2.configure.props.otherSettings.tableRecordMaxNum, "onUpdate:modelValue": a2[22] || (a2[22] = (l3) => e2.configure.props.otherSettings.tableRecordMaxNum = l3) }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), n(w, { ref_key: "selectTableDialog", ref: G, onSelectTable: Z, systemCode: e2.pageDesign.systemCode, systemVersion: e2.pageDesign.systemVersion }, null, 8, ["systemCode", "systemVersion"]), H.value ? (r(), i(C, { key: 0, list: e2.configure.props.otherSettings.sourceQueryTableData ? JSON.parse(e2.configure.props.otherSettings.sourceQueryTableData) : null, fieldNameList: q.value, fieldMap: B.value, dataFieldNameList: e2.pageDesign.modelFields, paramTypes: ["data", "page", "task", "context", "system", "request", "fixed"], onSave: ae, onClose: oe }, null, 8, ["list", "fieldNameList", "fieldMap", "dataFieldNameList"])) : d("", true)]), _: 1 }, 8, ["modelValue"]), n(he, { modelValue: W.value, "onUpdate:modelValue": a2[25] || (a2[25] = (e3) => W.value = e3), fullscreen: "" }, { default: u(() => [n(f(b), { modelValue: e2.configure.props.dataOrigin.unfoldConent, "onUpdate:modelValue": a2[24] || (a2[24] = (l3) => e2.configure.props.dataOrigin.unfoldConent = l3), options: I, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
72
72
|
};
|
|
73
73
|
} });
|
|
74
74
|
export {
|
|
@@ -2,7 +2,7 @@ import e from "./table-design.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const o = t(e, [["__scopeId", "data-v-
|
|
5
|
+
const o = t(e, [["__scopeId", "data-v-b0bcae22"]]);
|
|
6
6
|
export {
|
|
7
7
|
o as default
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as n, onMounted as l, watch as o, resolveComponent as i, createElementBlock as t, openBlock as a, createVNode as u, createElementVNode as
|
|
1
|
+
import { defineComponent as e, ref as n, onMounted as l, watch as o, resolveComponent as i, createElementBlock as t, openBlock as a, createVNode as u, createElementVNode as s, withDirectives as r, createCommentVNode as c, normalizeStyle as p, normalizeClass as d, withCtx as g, Fragment as m, renderList as f, createBlock as v, createTextVNode as b, unref as y, vShow as h } from "vue";
|
|
2
2
|
import C from "../../../../utils/eventBus.js";
|
|
3
3
|
import { useDraggable as x } from "vue-draggable-plus";
|
|
4
4
|
import { caculateDetailComponentStyle as S, caculateComponentProps as j } from "../../../../utils/form-design-util.js";
|
|
@@ -15,14 +15,14 @@ import "@vueuse/core";
|
|
|
15
15
|
import E from "../component/table-children-column.vue.js";
|
|
16
16
|
import { queryTableFields as M, changeFeieldToMap as T } from "../../../../utils/page-table-util.js";
|
|
17
17
|
const W = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, _ = { key: 0, style: { width: "100%", display: "flex", "justify-content": "center", "padding-top": "20px" } }, B = e({ __name: "table-design", props: { pageDesign: {}, configure: {}, selectWidget: {}, indexObj: {} }, emits: ["selectColumn", "onSelectWidget"], setup(e2, { emit: B2 }) {
|
|
18
|
-
const P = e2, $ = B2, N = n([{}]), G = n(1),
|
|
18
|
+
const P = e2, $ = B2, N = n([{}]), G = n(1), V = n(1), F = n({}), K = n(""), L = n({}), U = n({}), I = n(false);
|
|
19
19
|
P.configure.props.groupHeaders;
|
|
20
20
|
const R = n([]), q = n(), X = n([]);
|
|
21
21
|
function Y(e3, n2) {
|
|
22
22
|
$("onSelectWidget", e3, n2);
|
|
23
23
|
}
|
|
24
24
|
P.configure && function() {
|
|
25
|
-
const e3 = P.configure.tableSysCode ? P.configure.tableSysCode : P.pageDesign.systemCode, n2 = P.configure.tableSysVersion ? P.configure.tableSysVersion : P.pageDesign.
|
|
25
|
+
const e3 = P.configure.tableSysCode ? P.configure.tableSysCode : P.pageDesign.systemCode, n2 = P.configure.tableSysVersion ? P.configure.tableSysVersion : P.pageDesign.systemVersion, l2 = P.configure.props.dataOrigin.tableName;
|
|
26
26
|
M(e3, n2, l2).then((e4) => {
|
|
27
27
|
P.configure.modelFieldsMap = T(P.configure.modelFieldsMap, e4), P.configure.modelFields = e4;
|
|
28
28
|
});
|
|
@@ -31,14 +31,14 @@ const W = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, _
|
|
|
31
31
|
}), C.$on("setHiddenColumsUuid", (e3) => {
|
|
32
32
|
e3.value ? X.value = X.value.filter((n2) => n2 != e3.uuid) : X.value.push(e3.uuid);
|
|
33
33
|
}), o(P.configure.style, () => {
|
|
34
|
-
S(P.configure, K, L
|
|
34
|
+
S(P.configure, F, K, L), P.configure.runtime.style = F.value, P.configure.runtime.class = K.value, P.configure.runtime.headerStyle = L.value;
|
|
35
35
|
}, { immediate: true }), o(P.configure.props, () => {
|
|
36
|
-
j(P.configure,
|
|
36
|
+
j(P.configure, U), function() {
|
|
37
37
|
let e3 = P.configure.props;
|
|
38
38
|
if (!e3.base) return;
|
|
39
39
|
const n2 = {};
|
|
40
|
-
if (e3.base.subPaging && (n2.subPaging = e3.base.subPaging), e3.base.layout && (n2.layout = e3.base.layout.join(",")), e3.base.pageSizes && (n2.pageSizes = e3.base.pageSizes.split(",")), e3.base.alignTitle && (n2.alignTitle = e3.base.alignTitle), e3.base.alignContent && (n2.alignContent = e3.base.alignContent), n2 != {}) for (const e4 in n2)
|
|
41
|
-
}(), P.configure.runtime.props =
|
|
40
|
+
if (e3.base.subPaging && (n2.subPaging = e3.base.subPaging), e3.base.layout && (n2.layout = e3.base.layout.join(",")), e3.base.pageSizes && (n2.pageSizes = e3.base.pageSizes.split(",")), e3.base.alignTitle && (n2.alignTitle = e3.base.alignTitle), e3.base.alignContent && (n2.alignContent = e3.base.alignContent), n2 != {}) for (const e4 in n2) U.value[e4] = n2[e4];
|
|
41
|
+
}(), P.configure.runtime.props = U.value;
|
|
42
42
|
}, { immediate: true }), o(() => P.configure.props.isChangeGroupHeader, () => {
|
|
43
43
|
P.configure.props.isChangeGroupHeader && (R.value = w(P.configure), q.value && q.value.doLayout());
|
|
44
44
|
}), C.$on("reloadTable-" + P.configure.uuid, (e3) => {
|
|
@@ -98,16 +98,16 @@ const W = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, _
|
|
|
98
98
|
function ue(e3) {
|
|
99
99
|
A.value = e3.uuid;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function se(e3, n2) {
|
|
102
102
|
for (var l2 = document.getElementsByClassName(n2.id), o2 = 0; o2 < l2.length; o2++) l2[o2].style.backgroundColor = "rgba(88, 147, 239,.1)";
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function re(e3, n2) {
|
|
105
105
|
for (var l2 = document.getElementsByClassName(n2.id), o2 = 0; o2 < l2.length; o2++) l2[o2].style.backgroundColor = "";
|
|
106
106
|
}
|
|
107
107
|
return x(".el-table__header-wrapper tr", P.configure.items, { animation: 150, ghostClass: "ghost", onStart(e3) {
|
|
108
108
|
} }), (e3, n2) => {
|
|
109
109
|
const l2 = i("el-table"), o2 = i("el-icon"), C2 = i("el-pagination");
|
|
110
|
-
return a(), t("div", null, [u(l2, { ref_key: "tableRef", ref: q, "cell-class-name": ae, "header-cell-class-name": ae, border: "", class: d(
|
|
110
|
+
return a(), t("div", null, [u(l2, { ref_key: "tableRef", ref: q, "cell-class-name": ae, "header-cell-class-name": ae, border: "", class: d(K.value), data: N.value, onHeaderDragend: ie, onHeaderContextmenu: Q, onRowClick: J, onCellMouseEnter: se, onCellMouseLeave: re, style: p(F.value) }, { default: g(() => [(a(true), t(m, null, f(R.value, (n3) => (a(), v(E, { key: n3, listColumns: n3, designProperty: U.value, configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, onSetClickColumn: ue, onOnSelectWidget: Y, onSetColumnData: oe, onCloseMenuVisible: Z, selectWidget: e3.selectWidget }, null, 8, ["listColumns", "designProperty", "configure", "pageDesign", "indexObj", "selectWidget"]))), 128))]), _: 1 }, 8, ["class", "data", "style"]), s("div", { onClick: J, style: { width: "100%", height: "30px" } }), r(s("div", null, [s("ul", W, [s("li", { tabindex: "-1", onClick: n2[0] || (n2[0] = () => ee("createCombinedHeader")) }, [u(o2, null, { default: g(() => [u(y(k))]), _: 1 }), n2[4] || (n2[4] = b(" 创建 "))]), ne.value.props && ne.value.props.base && "$selection" !== ne.value.props.base.prop && "$index" !== ne.value.props.base.prop ? (a(), t("li", { key: 0, tabindex: "-1", onClick: n2[1] || (n2[1] = () => ee("deleteNode")) }, [u(o2, null, { default: g(() => [u(y(H))]), _: 1 }), n2[5] || (n2[5] = b(" 删除 "))])) : c("", true)], 512)], 512), [[h, I.value]]), U.value.subPaging ? (a(), t("div", _, [u(C2, { "current-page": G.value, "onUpdate:currentPage": n2[2] || (n2[2] = (e4) => G.value = e4), "page-size": V.value, "onUpdate:pageSize": n2[3] || (n2[3] = (e4) => V.value = e4), "page-sizes": U.value.pageSizes, layout: U.value.layout, total: 400 }, null, 8, ["current-page", "page-size", "page-sizes", "layout"])])) : c("", true)]);
|
|
111
111
|
};
|
|
112
112
|
} });
|
|
113
113
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, createBlock as o, openBlock as u, withCtx as i, createElementVNode as n, createVNode as s, createCommentVNode as d, withDirectives as r, unref as m, createElementBlock as p, Fragment as c, renderList as b, createTextVNode as f, vShow as v, normalizeClass as y } from "vue";
|
|
2
|
-
import V from "./dataorigin-input-table.
|
|
2
|
+
import V from "./dataorigin-input-table.vue.js";
|
|
3
3
|
import g from "./condition.vue.js";
|
|
4
4
|
import S from "./row-ul-li.vue.js";
|
|
5
5
|
import "uuid";
|
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
import t from "
|
|
1
|
+
import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
|
|
2
|
+
import { Search as p } from "@element-plus/icons-vue";
|
|
3
|
+
const v = { class: "dialog-footer" }, c = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: c2 }) {
|
|
4
|
+
const f = e2, g = l(f.modelValue), V = c2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
|
|
5
|
+
function S() {
|
|
6
|
+
if (_.value.length > 0) {
|
|
7
|
+
let e3 = "";
|
|
8
|
+
_.value.forEach((l2) => {
|
|
9
|
+
e3 = e3 + l2.name + ",";
|
|
10
|
+
}), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
|
|
11
|
+
} else b.value = false;
|
|
12
|
+
}
|
|
13
|
+
function w(e3) {
|
|
14
|
+
_.value = e3;
|
|
15
|
+
}
|
|
16
|
+
function y() {
|
|
17
|
+
b.value = true;
|
|
18
|
+
}
|
|
19
|
+
return a(() => f.modelValue, (e3) => {
|
|
20
|
+
g.value = e3;
|
|
21
|
+
}), (e3, l2) => {
|
|
22
|
+
const a2 = t("el-icon"), c3 = t("el-input"), f2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
+
return d(), o(u, null, [n(c3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: y }, { suffix: i(() => [n(a2, { onClick: y }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", v, [n(_2, { onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: S }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: w }, { default: i(() => [n(f2, { type: "selection", width: "55" }), n(f2, { prop: "date", label: "Date", width: "180" }), n(f2, { prop: "name", label: "Name", width: "180" }), n(f2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
|
|
24
|
+
};
|
|
25
|
+
} });
|
|
2
26
|
export {
|
|
3
|
-
|
|
27
|
+
c as default
|
|
4
28
|
};
|
package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Search as p } from "@element-plus/icons-vue";
|
|
3
|
-
const v = { class: "dialog-footer" }, c = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: c2 }) {
|
|
4
|
-
const f = e2, g = l(f.modelValue), V = c2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
|
|
5
|
-
function S() {
|
|
6
|
-
if (_.value.length > 0) {
|
|
7
|
-
let e3 = "";
|
|
8
|
-
_.value.forEach((l2) => {
|
|
9
|
-
e3 = e3 + l2.name + ",";
|
|
10
|
-
}), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
|
|
11
|
-
} else b.value = false;
|
|
12
|
-
}
|
|
13
|
-
function w(e3) {
|
|
14
|
-
_.value = e3;
|
|
15
|
-
}
|
|
16
|
-
function y() {
|
|
17
|
-
b.value = true;
|
|
18
|
-
}
|
|
19
|
-
return a(() => f.modelValue, (e3) => {
|
|
20
|
-
g.value = e3;
|
|
21
|
-
}), (e3, l2) => {
|
|
22
|
-
const a2 = t("el-icon"), c3 = t("el-input"), f2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
-
return d(), o(u, null, [n(c3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: y }, { suffix: i(() => [n(a2, { onClick: y }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", v, [n(_2, { onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: S }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: w }, { default: i(() => [n(f2, { type: "selection", width: "55" }), n(f2, { prop: "date", label: "Date", width: "180" }), n(f2, { prop: "name", label: "Name", width: "180" }), n(f2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
|
|
24
|
-
};
|
|
25
|
-
} });
|
|
1
|
+
import t from "./dataorigin-input-table.vue.js";
|
|
26
2
|
export {
|
|
27
|
-
|
|
3
|
+
t as default
|
|
28
4
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch as l, resolveComponent as u, createElementBlock as o, openBlock as s, createElementVNode as i, createVNode as r, withDirectives as c, withCtx as m, vShow as d, unref as v, createTextVNode as f, toDisplayString as p, Fragment as g, renderList as b, createBlock as y } from "vue";
|
|
2
2
|
import { ElMessageBox as x, ElMessage as h } from "element-plus";
|
|
3
|
-
import C from "./config.
|
|
3
|
+
import C from "./config.vue.js";
|
|
4
4
|
import { standardButtonOperations as E } from "../../../utils/assemblys-config.js";
|
|
5
5
|
import { findDesignItemByUuid as S, getUuidv4 as _, deepCopy as V } from "../../../utils/common-util.js";
|
|
6
6
|
import { usePageContextStore as k } from "../../../../../stores/page-store.js";
|
|
@@ -16,7 +16,7 @@ import "@codemirror/autocomplete";
|
|
|
16
16
|
import "@codemirror/language";
|
|
17
17
|
import "@codemirror/search";
|
|
18
18
|
import "js-beautify";
|
|
19
|
-
/* empty css
|
|
19
|
+
/* empty css */
|
|
20
20
|
import "../../../utils/assemblys-config.js";
|
|
21
21
|
import "../../../../../stores/page-store.js";
|
|
22
22
|
import "../../../../../stores/event-undo-redo-store.js";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, computed as s, resolveComponent as i, createBlock as n, openBlock as t, withCtx as
|
|
2
|
-
import "@element-plus/icons";
|
|
1
|
+
import { defineComponent as e, computed as s, resolveComponent as i, createBlock as n, openBlock as t, withCtx as r, createVNode as o, unref as l, normalizeStyle as p } from "vue";
|
|
3
2
|
import { SuperPageNew as a } from "super-page-runtime";
|
|
4
3
|
import { PageDimensions as g } from "../../../utils/interfaces/page-design-types.js";
|
|
5
4
|
const u = e({ __name: "view-design-preview", props: { pageDesign: {} }, emits: ["close"], setup(e2, { emit: u2 }) {
|
|
6
|
-
const
|
|
7
|
-
const e3 =
|
|
5
|
+
const d = e2, m = s(() => "预览【" + d.pageDesign.label + "】"), c = u2, f = s(() => {
|
|
6
|
+
const e3 = d.pageDesign.dimensions, s2 = {};
|
|
8
7
|
let i2 = null;
|
|
9
8
|
if (g.IPAD === e3) i2 = 768;
|
|
10
9
|
else {
|
|
@@ -15,7 +14,7 @@ const u = e({ __name: "view-design-preview", props: { pageDesign: {} }, emits: [
|
|
|
15
14
|
});
|
|
16
15
|
return (e3, s2) => {
|
|
17
16
|
const g2 = i("el-dialog");
|
|
18
|
-
return t(), n(g2, { fullscreen: "", "close-on-press-escape": false, title:
|
|
17
|
+
return t(), n(g2, { fullscreen: "", "close-on-press-escape": false, title: m.value, onClose: s2[0] || (s2[0] = (e4) => c("close")) }, { default: r(() => [o(l(a), { style: p([{ margin: "0 auto" }, f.value]), pageDesign: e3.pageDesign, publishVersion: e3.pageDesign.systemVersion, dimensions: e3.pageDesign.dimensions, isTest: true }, null, 8, ["style", "pageDesign", "publishVersion", "dimensions"])]), _: 1 }, 8, ["title"]);
|
|
19
18
|
};
|
|
20
19
|
} });
|
|
21
20
|
export {
|
package/dist/es/style.css
CHANGED
|
@@ -9012,10 +9012,10 @@ fieldset.amb-design-item-selected {
|
|
|
9012
9012
|
background: #c8ebfb;
|
|
9013
9013
|
}
|
|
9014
9014
|
|
|
9015
|
-
li[data-v-
|
|
9015
|
+
li[data-v-b0bcae22] {
|
|
9016
9016
|
color: #333;
|
|
9017
9017
|
}
|
|
9018
|
-
.context-menu[data-v-
|
|
9018
|
+
.context-menu[data-v-b0bcae22] {
|
|
9019
9019
|
position: fixed;
|
|
9020
9020
|
background: #fff;
|
|
9021
9021
|
z-index: 999;
|
|
@@ -9023,7 +9023,7 @@ li[data-v-4dfe90c9] {
|
|
|
9023
9023
|
margin: 0;
|
|
9024
9024
|
margin-top: 30px;
|
|
9025
9025
|
}
|
|
9026
|
-
.context-menu li[data-v-
|
|
9026
|
+
.context-menu li[data-v-b0bcae22] {
|
|
9027
9027
|
min-width: 75px;
|
|
9028
9028
|
height: 28px;
|
|
9029
9029
|
line-height: 28px;
|
|
@@ -9031,16 +9031,16 @@ li[data-v-4dfe90c9] {
|
|
|
9031
9031
|
color: #1a1a1a;
|
|
9032
9032
|
cursor: pointer;
|
|
9033
9033
|
}
|
|
9034
|
-
.context-menu li[data-v-
|
|
9034
|
+
.context-menu li[data-v-b0bcae22]:hover {
|
|
9035
9035
|
background: #5893ef;
|
|
9036
9036
|
color: #fff;
|
|
9037
9037
|
}
|
|
9038
|
-
.context-menu[data-v-
|
|
9038
|
+
.context-menu[data-v-b0bcae22] {
|
|
9039
9039
|
border: 1px solid #eee;
|
|
9040
9040
|
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
9041
9041
|
border-radius: 5px;
|
|
9042
9042
|
}
|
|
9043
|
-
li[data-v-
|
|
9043
|
+
li[data-v-b0bcae22] {
|
|
9044
9044
|
list-style-type: none;
|
|
9045
9045
|
}
|
|
9046
9046
|
|
|
@@ -9052,7 +9052,7 @@ li[data-v-4dfe90c9] {
|
|
|
9052
9052
|
color: #7b7b7b;
|
|
9053
9053
|
}
|
|
9054
9054
|
|
|
9055
|
-
.seleteSort[data-v-
|
|
9055
|
+
.seleteSort[data-v-f4fba280] {
|
|
9056
9056
|
border-radius: 5px;
|
|
9057
9057
|
border: 1px solid rgba(88, 147, 239);
|
|
9058
9058
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-designer",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.34",
|
|
4
4
|
"description": "AgileBuilder super page designer",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
30
30
|
"@vueuse/core": "^10.9.0",
|
|
31
31
|
"agilebuilder-private-libs": "1.0.26",
|
|
32
|
-
"agilebuilder-ui": "1.1.
|
|
32
|
+
"agilebuilder-ui": "1.1.13",
|
|
33
33
|
"echarts": "^5.5.0",
|
|
34
34
|
"element-plus": "^2.6.1",
|
|
35
35
|
"font-awesome": "^4.7.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"pinia": "^2.1.7",
|
|
41
41
|
"qrcode": "^1.5.3",
|
|
42
42
|
"quill": "^2.0.1",
|
|
43
|
-
"service-flow-designer": "2.2.
|
|
44
|
-
"super-page-runtime": "2.2.
|
|
43
|
+
"service-flow-designer": "2.2.33",
|
|
44
|
+
"super-page-runtime": "2.2.32",
|
|
45
45
|
"uuid": "^9.0.1",
|
|
46
46
|
"vite": "^5.1.6",
|
|
47
47
|
"vite-plugin-node-stdlib-browser": "^0.2.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"vue-echarts": "^6.6.9",
|
|
53
53
|
"vue-router": "^4.3.0",
|
|
54
54
|
"vuex": "^4.1.0",
|
|
55
|
-
"workflow-editor": "0.0.
|
|
55
|
+
"workflow-editor": "0.0.54-up"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@codemirror/autocomplete": "^6.16.0",
|