super-page-designer 2.3.12-rc3-design1 → 2.3.12-rc3-design2
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.
|
@@ -8,14 +8,6 @@ import { Component, PageDesign } from './interfaces/page-design-types';
|
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
10
|
export declare function queryTableFields(systemCode: string, systemVersion: number, tableName: string): Promise<any>;
|
|
11
|
-
/**
|
|
12
|
-
* 查询表字的字段和字段map
|
|
13
|
-
* @param systemCode
|
|
14
|
-
* @param systemVersion
|
|
15
|
-
* @param tableName
|
|
16
|
-
* @returns
|
|
17
|
-
*/
|
|
18
|
-
export declare function queryTableFieldsOrMap(systemVersion: number, tableName: string): Promise<any>;
|
|
19
11
|
/**
|
|
20
12
|
* 查询子表
|
|
21
13
|
* @param systemCode
|
|
@@ -23,7 +15,7 @@ export declare function queryTableFieldsOrMap(systemVersion: number, tableName:
|
|
|
23
15
|
* @param publishVersion 页面版本
|
|
24
16
|
* @returns
|
|
25
17
|
*/
|
|
26
|
-
export declare function querySublist(
|
|
18
|
+
export declare function querySublist(tableName: string): Promise<any>;
|
|
27
19
|
/**
|
|
28
20
|
* 设置tableRuntimes
|
|
29
21
|
*/
|
|
@@ -6,11 +6,10 @@ import { findDesignItemByUuid as o } from "./common-util.js";
|
|
|
6
6
|
import { getComponentOptionConfigsBase as i } from "super-page-runtime";
|
|
7
7
|
function n(t2, r2, a2) {
|
|
8
8
|
let o2 = window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/table-columns";
|
|
9
|
-
return o2 += "?
|
|
9
|
+
return o2 += "?tableName=" + (a2 || ""), e.get(o2);
|
|
10
10
|
}
|
|
11
|
-
function s(t2
|
|
12
|
-
|
|
13
|
-
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/list-view-children/forms", o2);
|
|
11
|
+
function s(t2) {
|
|
12
|
+
if (t2) return e.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/sub-data-tables/tables/" + t2);
|
|
14
13
|
}
|
|
15
14
|
function p(e2, r2) {
|
|
16
15
|
const o2 = JSON.stringify(e2), i2 = JSON.parse(o2);
|
|
@@ -1,82 +1,81 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l,
|
|
2
|
-
import { Codemirror as
|
|
3
|
-
import { Plus as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { querySublist as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { Search as
|
|
11
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, createBlock as o, openBlock as i, withCtx as r, createVNode as u, createCommentVNode as n, createElementVNode as d, createElementBlock as s, Fragment as p, renderList as g, createTextVNode as m, unref as c } from "vue";
|
|
2
|
+
import { Codemirror as f } from "vue-codemirror";
|
|
3
|
+
import { Plus as b, Remove as V, Delete as h } from "@element-plus/icons-vue";
|
|
4
|
+
import _ from "../component/variate-select.vue.js";
|
|
5
|
+
import v from "../component/composite-header.vue.js";
|
|
6
|
+
import S from "../component/import-header.vue.js";
|
|
7
|
+
import { querySublist as y, queryTableFields as x, changeFeieldToMap as D } from "../../../../utils/page-table-util.js";
|
|
8
|
+
import T from "../../workflow/component/combination.vue.js";
|
|
9
|
+
import C from "../../common/common-select-table.vue.js";
|
|
10
|
+
import { Search as w, Close as O } from "@element-plus/icons";
|
|
11
|
+
import U from "../../common/state-button.vue.js";
|
|
12
12
|
import "super-page-runtime";
|
|
13
|
-
const
|
|
13
|
+
const k = { style: { padding: "8px 0px 0px 0px" } }, N = { style: { padding: "8px 0px 0px 0px" } }, z = { style: { padding: "8px 0px 0px 0px" } }, L = { 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" } }, $ = { key: 0 }, Q = { key: 1 }, E = { style: { display: "flex", width: "100%" } }, K = { style: { padding: "8px 0px 0px 0px" } }, M = e({ __name: "table-attr-advanced", props: { configure: { type: Object, default: () => ({ props: {} }) }, pageDesign: { type: Object, default: () => {
|
|
14
14
|
} } }, setup(e2) {
|
|
15
|
-
|
|
15
|
+
var _a, _b, _c;
|
|
16
|
+
const M2 = e2, R = l(false), W = { tabSize: 4, lineNumbers: true, mode: "HTML", theme: "default", line: true, styleActiveLine: true, matchBrackets: true }, I = l(["compositeHeader", "initialConfig", "otherSettings"]);
|
|
16
17
|
l([]);
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
|
|
18
|
+
const J = l([]), A = l(null), G = l(false), H = l([]), q = l({});
|
|
19
|
+
function B() {
|
|
20
|
+
A.value.openDialog();
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
22
|
+
function X() {
|
|
23
|
+
M2.configure.props.otherSettings.sourceDataTable = "", M2.configure.props.otherSettings.alias = "", H.value = [], q.value = {};
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
-
let l2 =
|
|
26
|
-
l2 += "_", l2 +=
|
|
25
|
+
function Y(e3) {
|
|
26
|
+
let l2 = M2.configure.tableSysCode ? M2.configure.tableSysCode : "";
|
|
27
|
+
l2 += "_", l2 += M2.configure.tableSysVersion ? M2.configure.tableSysVersion : "", l2 += "_", l2 += M2.configure.tableName ? M2.configure.tableName : "";
|
|
27
28
|
let a2 = e3.systemCode ? e3.systemCode : "";
|
|
28
29
|
if (a2 += "_", a2 += e3.systemVersion ? e3.systemVersion : "", a2 += "_", a2 += e3.name ? e3.name : "", a2 != l2) {
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
M2.configure.props.otherSettings.tableSysCode = e3.systemCode, M2.configure.props.otherSettings.tableSysVersion = e3.systemVersion, M2.configure.props.otherSettings.sourceDataTable = e3.name, M2.configure.props.otherSettings.alias = e3.alias;
|
|
31
|
+
Z(e3.systemCode ? e3.systemCode : M2.pageDesign.systemCode, e3.systemVersion ? e3.systemVersion : M2.pageDesign.version, e3.name);
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
function Z(e3, l2, a2) {
|
|
35
|
+
x(e3, l2, a2).then((e4) => {
|
|
36
|
+
H.value = e4, q.value = D(q.value, e4);
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
|
|
39
|
+
function ee() {
|
|
40
|
+
M2.configure.props.deleteLogicSetting.push({ secondTable: "" });
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
-
|
|
42
|
+
function le(e3) {
|
|
43
|
+
M2.configure.props.otherSettings.sourceQueryTableData = JSON.stringify(e3), ae();
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
-
const e3 =
|
|
45
|
+
function ae() {
|
|
46
|
+
const e3 = M2.configure.props.otherSettings.sourceQueryTableData ? JSON.parse(M2.configure.props.otherSettings.sourceQueryTableData) : [];
|
|
46
47
|
let l2 = null;
|
|
47
|
-
|
|
48
|
+
M2.configure.props.otherSettings.isRealTimeChange && e3 && e3.length > 0 && (l2 = [], e3.forEach((e4) => {
|
|
48
49
|
e4 && e4.propValue && (e4.propValue.indexOf("${data.") >= 0 || e4.propValue.indexOf("${page.") >= 0) && l2.push(e4.propValue);
|
|
49
|
-
})),
|
|
50
|
+
})), M2.pageDesign.subTableWatchProps || (M2.pageDesign.subTableWatchProps = {}), M2.pageDesign.subTableWatchProps[M2.configure.uuid] = l2;
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
-
|
|
52
|
+
function te() {
|
|
53
|
+
G.value = false;
|
|
53
54
|
}
|
|
54
|
-
return
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
const e3 = R2.configure.props.otherSettings;
|
|
62
|
-
e3.tableSysCode && e3.sourceDataTable && ee(e3.tableSysCode, e3.tableSysVersion, e3.sourceDataTable);
|
|
55
|
+
return y((_c = (_b = (_a = M2.configure) == null ? void 0 : _a.props) == null ? void 0 : _b.dataOrigin) == null ? void 0 : _c.tableName).then((e3) => {
|
|
56
|
+
J.value = e3;
|
|
57
|
+
}), a(() => {
|
|
58
|
+
var _a2;
|
|
59
|
+
if ("otherDataTable" === ((_a2 = M2.configure.props.otherSettings) == null ? void 0 : _a2.dataSources)) {
|
|
60
|
+
const e3 = M2.configure.props.otherSettings;
|
|
61
|
+
e3.tableSysCode && e3.sourceDataTable && Z(e3.tableSysCode, e3.tableSysVersion, e3.sourceDataTable);
|
|
63
62
|
} else {
|
|
64
|
-
|
|
63
|
+
Z(M2.pageDesign.systemCode, M2.pageDesign.systemVersion, M2.configure.props.dataOrigin.tableName);
|
|
65
64
|
}
|
|
66
|
-
}),
|
|
67
|
-
const
|
|
68
|
-
return
|
|
69
|
-
return a3 = e3.$index, void (1 ===
|
|
65
|
+
}), M2.configure.props.otherSettings.fillTableData || (M2.configure.props.otherSettings.fillTableData = [{}]), M2.configure.props.otherSettings.fixedValueTableData || (M2.configure.props.otherSettings.fixedValueTableData = [{}]), (l2, a2) => {
|
|
66
|
+
const y2 = t("el-collapse-item"), x2 = t("el-form-item"), D2 = t("el-option"), Z2 = t("el-select"), oe = t("el-button"), ie = t("el-radio"), re = t("el-radio-group"), ue = t("el-input"), ne = t("el-icon"), de = t("el-table-column"), se = t("el-table"), pe = t("el-col"), ge = t("el-row"), me = t("el-checkbox"), ce = t("el-checkbox-group"), fe = t("el-divider"), be = t("el-input-number"), Ve = t("el-collapse"), he = t("el-dialog"), _e = t("el-form");
|
|
67
|
+
return i(), o(_e, { "label-width": "80px", size: "small" }, { default: r(() => [u(Ve, { modelValue: I.value, "onUpdate:modelValue": a2[23] || (a2[23] = (e3) => I.value = e3), style: { "margin-top": "6px" } }, { default: r(() => [u(y2, { title: "组合表头", name: "compositeHeader", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", k, [u(v, { configure: e2.configure }, null, 8, ["configure"])])]), _: 1 }), u(y2, { title: "合并设置", name: "amalgamated", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", N, [u(x2, { label: "相同值时合并字段", class: "amb-design-attr-item-linefeed-two" }, { default: r(() => [u(_, { 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 }), u(x2, { label: "自定义合并", class: "amb-design-attr-item" }, { default: r(() => [u(Z2, { modelValue: e2.configure.props.highOrder.mergeDefined, "onUpdate:modelValue": a2[1] || (a2[1] = (l3) => e2.configure.props.highOrder.mergeDefined = l3), placeholder: "请选择" }, { default: r(() => [(i(true), s(p, null, g(e2.configure.events, (e3, l3) => (i(), o(D2, { key: l3, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), u(y2, { title: "展开行内容", name: "unfoldConent", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", z, [u(x2, { label: "展开内容", class: "amb-design-attr-item" }, { default: r(() => [u(oe, { type: "primary", onClick: a2[2] || (a2[2] = (e3) => R.value = true) }, { default: r(() => a2[26] || (a2[26] = [m("全屏编辑")])), _: 1 })]), _: 1 }), u(c(f), { modelValue: e2.configure.props.dataOrigin.unfoldConent, "onUpdate:modelValue": a2[3] || (a2[3] = (l3) => e2.configure.props.dataOrigin.unfoldConent = l3), options: W, placeholder: "请输入" }, null, 8, ["modelValue"]), u(x2, { label: "默认展开", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.dataOrigin.defaultExpand, "onUpdate:modelValue": a2[4] || (a2[4] = (l3) => e2.configure.props.dataOrigin.defaultExpand = l3), class: "ml-4" }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[27] || (a2[27] = [m("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[28] || (a2[28] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), u(y2, { title: "树表格", name: "treeTable", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", L, [u(x2, { label: "启用树表格", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.dataOrigin.treeTable, "onUpdate:modelValue": a2[5] || (a2[5] = (l3) => e2.configure.props.dataOrigin.treeTable = l3), class: "ml-4" }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[29] || (a2[29] = [m("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[30] || (a2[30] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { required: "", label: "父级字段", class: "amb-design-attr-item" }, { default: r(() => [u(_, { 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 ? (i(), o(x2, { key: 0, label: "懒加载", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.dataOrigin.lazy, "onUpdate:modelValue": a2[7] || (a2[7] = (l3) => e2.configure.props.dataOrigin.lazy = l3), class: "ml-4" }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[31] || (a2[31] = [m("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[32] || (a2[32] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : n("", true), e2.configure.props.dataOrigin.rowKey && !e2.configure.props.dataOrigin.lazy ? (i(), o(x2, { key: 1, label: "展开子节点", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.dataOrigin.defaultExpandAll, "onUpdate:modelValue": a2[8] || (a2[8] = (l3) => e2.configure.props.dataOrigin.defaultExpandAll = l3), class: "ml-4" }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[33] || (a2[33] = [m("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[34] || (a2[34] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : n("", true), e2.configure.props.dataOrigin.rowKey ? (i(), o(x2, { key: 2, label: "树节点缩减", class: "amb-design-attr-item" }, { default: r(() => [u(ue, { modelValue: e2.configure.props.dataOrigin.indent, "onUpdate:modelValue": a2[9] || (a2[9] = (l3) => e2.configure.props.dataOrigin.indent = l3) }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), e2.configure.props.dataOrigin.treeTable ? (i(), o(x2, { key: 3, label: "关联父子节点选中状态", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.dataOrigin.checkStrictly, "onUpdate:modelValue": a2[10] || (a2[10] = (l3) => e2.configure.props.dataOrigin.checkStrictly = l3), class: "ml-4" }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[35] || (a2[35] = [m("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[36] || (a2[36] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : n("", true)])]), _: 1 }), u(y2, { title: "删除逻辑控制", name: "deleteLogic", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", P, [a2[39] || (a2[39] = d("span", null, "以下子表有记录时不能执行删除", -1)), u(se, { data: e2.configure.props.deleteLogicSetting, border: "", fit: "", "highlight-current-row": "" }, { default: r(() => [u(de, { label: "操作", align: "center", width: "50" }, { default: r((e3) => [u(ne, { onClick: ee }, { default: r(() => [u(c(b))]), _: 1 }), u(ne, { style: { "margin-left": "5px" }, onClick: (l3) => {
|
|
68
|
+
return a3 = e3.$index, void (1 === M2.configure.props.deleteLogicSetting.length ? M2.configure.props.deleteLogicSetting[0].secondTable = "" : M2.configure.props.deleteLogicSetting = M2.configure.props.deleteLogicSetting.filter((e4, l4) => l4 != a3));
|
|
70
69
|
var a3;
|
|
71
|
-
} }, { default:
|
|
72
|
-
return e3.row, a3 = e3.$index, void (1 ==
|
|
70
|
+
} }, { default: r(() => [u(c(V))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), u(de, { label: "子表配置" }, { default: r((e3) => [u(Z2, { modelValue: e3.row.secondTable, "onUpdate:modelValue": (l3) => e3.row.secondTable = l3, clearable: "", size: "default" }, { default: r(() => [(i(true), s(p, null, g(J.value, (e4) => (i(), o(D2, { key: e4, label: e4, value: e4 }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"]), u(x2, { label: "逻辑删除", title: "是否逻辑删除", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.base.isSafeDelete, "onUpdate:modelValue": a2[11] || (a2[11] = (l3) => e2.configure.props.base.isSafeDelete = l3), class: "ml-4" }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[37] || (a2[37] = [m("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[38] || (a2[38] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), u(y2, { title: "导入配置", name: "importSetting", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", j, [u(x2, { label: "重复处理", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.importSetting.listViewImportDuplicate, "onUpdate:modelValue": a2[12] || (a2[12] = (l3) => e2.configure.props.importSetting.listViewImportDuplicate = l3), class: "ml-4" }, { default: r(() => [u(ge, null, { default: r(() => [u(pe, { span: 12 }, { default: r(() => [u(ie, { value: "update" }, { default: r(() => a2[40] || (a2[40] = [m("更新数据")])), _: 1 })]), _: 1 }), u(pe, { span: 12 }, { default: r(() => [u(ie, { value: "skip" }, { default: r(() => a2[41] || (a2[41] = [m("跳过")])), _: 1 })]), _: 1 }), u(pe, { span: 12 }, { default: r(() => [u(ie, { value: "termination" }, { default: r(() => a2[42] || (a2[42] = [m("中止导入")])), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(S, { configure: e2.configure }, null, 8, ["configure"])])]), _: 1 }), u(y2, { title: "初始化配置", name: "initialConfig", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", F, [u(x2, { label: "初始化子表", title: "初始化子表", class: "amb-design-attr-item" }, { default: r(() => [u(ce, { modelValue: e2.configure.props.otherSettings.timeToInitializeSubTable, "onUpdate:modelValue": a2[13] || (a2[13] = (l3) => e2.configure.props.otherSettings.timeToInitializeSubTable = l3) }, { default: r(() => [u(me, { label: "新建表单时", value: "create" }), u(me, { label: "子表无项目时", value: "noData" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "移动端标题", title: "移动端行标题", class: "amb-design-attr-item" }, { default: r(() => [u(ue, { modelValue: e2.configure.props.otherSettings.mobileLineTitle, "onUpdate:modelValue": a2[14] || (a2[14] = (l3) => e2.configure.props.otherSettings.mobileLineTitle = l3) }, null, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "数据来源", title: "子表内容数据来源", class: "amb-design-attr-item" }, { default: r(() => [u(Z2, { modelValue: e2.configure.props.otherSettings.dataSources, "onUpdate:modelValue": a2[15] || (a2[15] = (l3) => e2.configure.props.otherSettings.dataSources = l3), clearable: "" }, { default: r(() => [u(D2, { label: "子表内容从其他数据表填充", value: "otherDataTable" }), u(D2, { label: "固定值", value: "fixedValue" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "fixedValue" === e2.configure.props.otherSettings.dataSources ? (i(), s("div", $, [u(fe, null, { default: r(() => a2[43] || (a2[43] = [m(" 固定值 ")])), _: 1 }), u(se, { data: e2.configure.props.otherSettings.fixedValueTableData, style: { width: "100%" } }, { default: r(() => [u(de, { width: "60", align: "center" }, { default: r((e3) => [u(ne, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => (e3.row, e3.$index, void M2.configure.props.otherSettings.fixedValueTableData.push({})) }, { default: r(() => [u(c(b))]), _: 2 }, 1032, ["onClick"]), u(ne, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => {
|
|
71
|
+
return e3.row, a3 = e3.$index, void (1 == M2.configure.props.otherSettings.fixedValueTableData.length ? (M2.configure.props.otherSettings.fixedValueTableData[0].sourcePropName = "", M2.configure.props.otherSettings.fixedValueTableData[0].optionGroupCode = "", M2.configure.props.otherSettings.fixedValueTableData[0].fixedValue = "") : M2.configure.props.otherSettings.fixedValueTableData.splice(a3, 1));
|
|
73
72
|
var a3;
|
|
74
|
-
} }, { default:
|
|
75
|
-
return e3.row, a3 = e3.$index, void (1 ==
|
|
73
|
+
} }, { default: r(() => [u(c(h))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), u(de, { prop: "label", label: "子表字段", width: "90", align: "center" }, { default: r((l3) => [u(Z2, { modelValue: l3.row.sourcePropName, "onUpdate:modelValue": (e3) => l3.row.sourcePropName = e3, placeholder: "请选择" }, { default: r(() => [(i(true), s(p, null, g(e2.configure.modelFields, (e3, l4) => (i(), o(D2, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(de, { prop: "value", label: "选项组编码", width: "90", align: "center" }, { default: r((e3) => [u(ue, { modelValue: e3.row.optionGroupCode, "onUpdate:modelValue": (l3) => e3.row.optionGroupCode = l3, size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(de, { prop: "value", label: "固定值", width: "90", align: "center" }, { default: r((e3) => [u(ue, { modelValue: e3.row.fixedValue, "onUpdate:modelValue": (l3) => e3.row.fixedValue = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])])) : (i(), s("div", Q, [u(fe, null, { default: r(() => a2[44] || (a2[44] = [m(" 来源 ")])), _: 1 }), u(x2, { label: "数据表", title: "数据表", class: "amb-design-attr-item" }, { default: r(() => [u(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: r(() => [u(oe, { type: "default", icon: c(w), onClick: B, size: "small" }, null, 8, ["icon"]), u(oe, { type: "default", icon: c(O), onClick: X, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }), u(x2, { label: "排序", title: "排序", class: "amb-design-attr-item" }, { default: r(() => [d("div", E, [u(Z2, { modelValue: e2.configure.props.otherSettings.sourceDataTableSortColumn, "onUpdate:modelValue": a2[17] || (a2[17] = (l3) => e2.configure.props.otherSettings.sourceDataTableSortColumn = l3), clearable: "", filterable: "" }, { default: r(() => [(i(true), s(p, null, g(H.value, (e3) => (i(), o(D2, { key: e3, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), u(Z2, { 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: r(() => [u(D2, { label: "升序", value: "asc" }), u(D2, { label: "降序", value: "desc" })]), _: 1 }, 8, ["modelValue"])])]), _: 1 }), u(x2, { label: "条件", class: "amb-design-attr-item" }, { default: r(() => [u(U, { onClick: a2[19] || (a2[19] = (e3) => G.value = true), conditionData: JSON.parse(e2.configure.props.otherSettings.sourceQueryTableData) }, null, 8, ["conditionData"])]), _: 1 }), u(fe, null, { default: r(() => a2[45] || (a2[45] = [m(" 填充至 ")])), _: 1 }), u(x2, { label: "来源过滤", title: "来源过滤条件中对象变化时加载", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.otherSettings.isRealTimeChange, "onUpdate:modelValue": a2[20] || (a2[20] = (l3) => e2.configure.props.otherSettings.isRealTimeChange = l3), class: "ml-4", onChange: ae }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[46] || (a2[46] = [m("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[47] || (a2[47] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(se, { data: e2.configure.props.otherSettings.fillTableData, style: { width: "100%" } }, { default: r(() => [u(de, { width: "60", align: "center" }, { default: r((e3) => [u(ne, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => (e3.row, e3.$index, void M2.configure.props.otherSettings.fillTableData.push({})) }, { default: r(() => [u(c(b))]), _: 2 }, 1032, ["onClick"]), u(ne, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => {
|
|
74
|
+
return e3.row, a3 = e3.$index, void (1 == M2.configure.props.otherSettings.fillTableData.length ? (M2.configure.props.otherSettings.fillTableData[0].sourcePropName = "", M2.configure.props.otherSettings.fillTableData[0].childPropName = "", M2.configure.props.otherSettings.fillTableData[0].defaultValue = "") : M2.configure.props.otherSettings.fillTableData.splice(a3, 1));
|
|
76
75
|
var a3;
|
|
77
|
-
} }, { default:
|
|
76
|
+
} }, { default: r(() => [u(c(h))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), u(de, { prop: "label", label: "来源字段", width: "90", align: "center" }, { default: r((e3) => [u(Z2, { modelValue: e3.row.sourcePropName, "onUpdate:modelValue": (l3) => e3.row.sourcePropName = l3, clearable: "", filterable: "" }, { default: r(() => [(i(true), s(p, null, g(H.value, (e4) => (i(), o(D2, { key: e4, label: e4.alias, value: e4.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(de, { prop: "value", label: "子表字段", width: "90", align: "center" }, { default: r((l3) => [u(Z2, { modelValue: l3.row.childPropName, "onUpdate:modelValue": (e3) => l3.row.childPropName = e3, placeholder: "请选择" }, { default: r(() => [(i(true), s(p, null, g(e2.configure.modelFields, (e3, l4) => (i(), o(D2, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(de, { prop: "value", label: "默认值", width: "90", align: "center" }, { default: r((e3) => [u(ue, { modelValue: e3.row.defaultValue, "onUpdate:modelValue": (l3) => e3.row.defaultValue = l3, size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])]))])]), _: 1 }), u(y2, { title: "其他", name: "otherSettings", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", K, [u(x2, { label: "数据权限", title: "数据权限限制", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.otherSettings.isWithDataPermission, "onUpdate:modelValue": a2[21] || (a2[21] = (l3) => e2.configure.props.otherSettings.isWithDataPermission = l3), class: "ml-4" }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[48] || (a2[48] = [m("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[49] || (a2[49] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "记录最大数", title: "表格记录最大数量", class: "amb-design-attr-item" }, { default: r(() => [u(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 }), u(C, { ref_key: "selectTableDialog", ref: A, onSelectTable: Y, systemCode: e2.pageDesign.systemCode, systemVersion: e2.pageDesign.systemVersion }, null, 8, ["systemCode", "systemVersion"]), G.value ? (i(), o(T, { key: 0, list: e2.configure.props.otherSettings.sourceQueryTableData ? JSON.parse(e2.configure.props.otherSettings.sourceQueryTableData) : null, fieldNameList: H.value, fieldMap: q.value, dataFieldNameList: e2.pageDesign.modelFields, paramTypes: ["data", "page", "task", "context", "system", "request", "fixed"], onSave: le, onClose: te }, null, 8, ["list", "fieldNameList", "fieldMap", "dataFieldNameList"])) : n("", true)]), _: 1 }, 8, ["modelValue"]), u(he, { "append-to-body": "", modelValue: R.value, "onUpdate:modelValue": a2[25] || (a2[25] = (e3) => R.value = e3), fullscreen: "" }, { default: r(() => [u(c(f), { modelValue: e2.configure.props.dataOrigin.unfoldConent, "onUpdate:modelValue": a2[24] || (a2[24] = (l3) => e2.configure.props.dataOrigin.unfoldConent = l3), options: W, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
78
77
|
};
|
|
79
78
|
} });
|
|
80
79
|
export {
|
|
81
|
-
|
|
80
|
+
M as default
|
|
82
81
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-designer",
|
|
3
|
-
"version": "2.3.12-rc3-
|
|
3
|
+
"version": "2.3.12-rc3-design2",
|
|
4
4
|
"description": "AgileBuilder super page designer",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"pinia": "^2.1.7",
|
|
41
41
|
"qrcode": "^1.5.3",
|
|
42
42
|
"quill": "^2.0.1",
|
|
43
|
-
"service-flow-designer": "2.3.
|
|
43
|
+
"service-flow-designer": "2.3.12-rc3-flow1",
|
|
44
44
|
"super-page-runtime": "2.3.12-rc3",
|
|
45
45
|
"uuid": "^9.0.1",
|
|
46
46
|
"vite": "^5.1.6",
|
|
@@ -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.70-up"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@codemirror/autocomplete": "^6.16.0",
|