super-page-designer 2.3.12-design1 → 2.3.12-rc2-design1
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.d.ts +9 -1
- package/dist/es/components/design/utils/page-table-util.js +4 -3
- 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.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +56 -55
- 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/assemblys/page/page-attr-base.vue.js +52 -52
- 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/package.json +5 -5
- /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +0 -0
|
@@ -8,6 +8,14 @@ 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>;
|
|
11
19
|
/**
|
|
12
20
|
* 查询子表
|
|
13
21
|
* @param systemCode
|
|
@@ -15,7 +23,7 @@ export declare function queryTableFields(systemCode: string, systemVersion: numb
|
|
|
15
23
|
* @param publishVersion 页面版本
|
|
16
24
|
* @returns
|
|
17
25
|
*/
|
|
18
|
-
export declare function querySublist(
|
|
26
|
+
export declare function querySublist(systemCode: string, systemVersion: number, publishVersion: string): Promise<any>;
|
|
19
27
|
/**
|
|
20
28
|
* 设置tableRuntimes
|
|
21
29
|
*/
|
|
@@ -6,10 +6,11 @@ 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 += "?tableName=" + (a2 || ""), e.get(o2);
|
|
9
|
+
return o2 += "?systemCode=" + (t2 || ""), o2 += "&publishVersion=" + (r2 || ""), o2 += "&tableName=" + (a2 || ""), e.get(o2);
|
|
10
10
|
}
|
|
11
|
-
function s(t2) {
|
|
12
|
-
|
|
11
|
+
function s(t2, r2, a2) {
|
|
12
|
+
const o2 = { systemCode: t2, formVersion: r2, publishVersion: a2 };
|
|
13
|
+
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/list-view-children/forms", o2);
|
|
13
14
|
}
|
|
14
15
|
function p(e2, r2) {
|
|
15
16
|
const o2 = JSON.stringify(e2), i2 = JSON.parse(o2);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, computed as l, resolveComponent as i, createBlock as o, openBlock as t, withCtx as n, createElementVNode as r, createVNode as s, createCommentVNode as u, withDirectives as d, renderSlot as p, createTextVNode as c, unref as g, vShow as f, createElementBlock as m, Fragment as v, renderList as y, normalizeClass as b, toDisplayString as V } from "vue";
|
|
2
|
-
import O from "../../form/common/dataorigin-input-table.
|
|
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";
|
|
@@ -1,81 +1,82 @@
|
|
|
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, 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 c, createTextVNode as m, unref as f } from "vue";
|
|
2
|
+
import { Codemirror as b } from "vue-codemirror";
|
|
3
|
+
import { Plus as V, Remove as h, Delete as _ } from "@element-plus/icons-vue";
|
|
4
|
+
import v from "../component/variate-select.vue.js";
|
|
5
|
+
import S from "../component/composite-header.vue.js";
|
|
6
|
+
import y from "../component/import-header.vue.js";
|
|
7
|
+
import { querySublist as x, queryTableFields as D, changeFeieldToMap as T } from "../../../../utils/page-table-util.js";
|
|
8
|
+
import C from "../../workflow/component/combination.vue.js";
|
|
9
|
+
import w from "../../common/common-select-table.vue.js";
|
|
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
|
-
const
|
|
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) {
|
|
15
|
-
|
|
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"]);
|
|
15
|
+
const R2 = e2, W = l(false), I = { tabSize: 4, lineNumbers: true, mode: "HTML", theme: "default", line: true, styleActiveLine: true, matchBrackets: true }, J = l(["compositeHeader", "amalgamated", "unfoldConent", "treeTable", "deleteLogic", "importSetting", "initialConfig", "otherSettings"]);
|
|
17
16
|
l([]);
|
|
18
|
-
const
|
|
19
|
-
function B() {
|
|
20
|
-
A.value.openDialog();
|
|
21
|
-
}
|
|
17
|
+
const A = l([]), G = l(null), H = l(false), q = l([]), B = l({});
|
|
22
18
|
function X() {
|
|
23
|
-
|
|
19
|
+
G.value.openDialog();
|
|
20
|
+
}
|
|
21
|
+
function Y() {
|
|
22
|
+
R2.configure.props.otherSettings.sourceDataTable = "", R2.configure.props.otherSettings.alias = "", q.value = [], B.value = {};
|
|
24
23
|
}
|
|
25
|
-
function
|
|
26
|
-
let l2 =
|
|
27
|
-
l2 += "_", l2 +=
|
|
24
|
+
function Z(e3) {
|
|
25
|
+
let l2 = R2.configure.tableSysCode ? R2.configure.tableSysCode : "";
|
|
26
|
+
l2 += "_", l2 += R2.configure.tableSysVersion ? R2.configure.tableSysVersion : "", l2 += "_", l2 += R2.configure.tableName ? R2.configure.tableName : "";
|
|
28
27
|
let a2 = e3.systemCode ? e3.systemCode : "";
|
|
29
28
|
if (a2 += "_", a2 += e3.systemVersion ? e3.systemVersion : "", a2 += "_", a2 += e3.name ? e3.name : "", a2 != l2) {
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
R2.configure.props.otherSettings.tableSysCode = e3.systemCode, R2.configure.props.otherSettings.tableSysVersion = e3.systemVersion, R2.configure.props.otherSettings.sourceDataTable = e3.name, R2.configure.props.otherSettings.alias = e3.alias;
|
|
30
|
+
ee(e3.systemCode ? e3.systemCode : R2.pageDesign.systemCode, e3.systemVersion ? e3.systemVersion : R2.pageDesign.version, e3.name);
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
function ee(e3, l2, a2) {
|
|
34
|
+
D(e3, l2, a2).then((e4) => {
|
|
35
|
+
q.value = e4, B.value = T(B.value, e4);
|
|
37
36
|
});
|
|
38
37
|
}
|
|
39
|
-
function
|
|
40
|
-
|
|
38
|
+
function le() {
|
|
39
|
+
R2.configure.props.deleteLogicSetting.push({ secondTable: "" });
|
|
41
40
|
}
|
|
42
|
-
function
|
|
43
|
-
|
|
41
|
+
function ae(e3) {
|
|
42
|
+
R2.configure.props.otherSettings.sourceQueryTableData = JSON.stringify(e3), te();
|
|
44
43
|
}
|
|
45
|
-
function
|
|
46
|
-
const e3 =
|
|
44
|
+
function te() {
|
|
45
|
+
const e3 = R2.configure.props.otherSettings.sourceQueryTableData ? JSON.parse(R2.configure.props.otherSettings.sourceQueryTableData) : [];
|
|
47
46
|
let l2 = null;
|
|
48
|
-
|
|
47
|
+
R2.configure.props.otherSettings.isRealTimeChange && e3 && e3.length > 0 && (l2 = [], e3.forEach((e4) => {
|
|
49
48
|
e4 && e4.propValue && (e4.propValue.indexOf("${data.") >= 0 || e4.propValue.indexOf("${page.") >= 0) && l2.push(e4.propValue);
|
|
50
|
-
})),
|
|
49
|
+
})), R2.pageDesign.subTableWatchProps || (R2.pageDesign.subTableWatchProps = {}), R2.pageDesign.subTableWatchProps[R2.configure.uuid] = l2;
|
|
51
50
|
}
|
|
52
|
-
function
|
|
53
|
-
|
|
51
|
+
function oe() {
|
|
52
|
+
H.value = false;
|
|
54
53
|
}
|
|
55
|
-
return
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
return a(() => J.value, (e3, l2) => {
|
|
55
|
+
e3.includes("deleteLogic") && !l2.includes("deleteLogic") && x(R2.configure.tableSysCode, R2.configure.tableSysVersion, R2.pageDesign.version).then((e4) => {
|
|
56
|
+
A.value = e4;
|
|
57
|
+
});
|
|
58
|
+
}), t(() => {
|
|
59
|
+
var _a;
|
|
60
|
+
if ("otherDataTable" === ((_a = R2.configure.props.otherSettings) == null ? void 0 : _a.dataSources)) {
|
|
61
|
+
const e3 = R2.configure.props.otherSettings;
|
|
62
|
+
e3.tableSysCode && e3.sourceDataTable && ee(e3.tableSysCode, e3.tableSysVersion, e3.sourceDataTable);
|
|
62
63
|
} else {
|
|
63
|
-
|
|
64
|
+
ee(R2.pageDesign.systemCode, R2.pageDesign.systemVersion, R2.configure.props.dataOrigin.tableName);
|
|
64
65
|
}
|
|
65
|
-
}),
|
|
66
|
-
const
|
|
67
|
-
return
|
|
68
|
-
return a3 = e3.$index, void (1 ===
|
|
66
|
+
}), R2.configure.props.otherSettings.fillTableData || (R2.configure.props.otherSettings.fillTableData = [{}]), R2.configure.props.otherSettings.fixedValueTableData || (R2.configure.props.otherSettings.fixedValueTableData = [{}]), (l2, a2) => {
|
|
67
|
+
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"), ce = o("el-checkbox"), me = 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");
|
|
68
|
+
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, c(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] = [m("全屏编辑")])), _: 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] = [m("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[28] || (a2[28] = [m("否")])), _: 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] = [m("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[30] || (a2[30] = [m("否")])), _: 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] = [m("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[32] || (a2[32] = [m("否")])), _: 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] = [m("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[34] || (a2[34] = [m("否")])), _: 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] = [m("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[36] || (a2[36] = [m("否")])), _: 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) => {
|
|
69
|
+
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));
|
|
69
70
|
var a3;
|
|
70
|
-
} }, { default:
|
|
71
|
-
return e3.row, a3 = e3.$index, void (1 ==
|
|
71
|
+
} }, { 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, c(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] = [m("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[38] || (a2[38] = [m("否")])), _: 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] = [m("更新数据")])), _: 1 })]), _: 1 }), n(pe, { span: 12 }, { default: u(() => [n(ie, { value: "skip" }, { default: u(() => a2[41] || (a2[41] = [m("跳过")])), _: 1 })]), _: 1 }), n(pe, { span: 12 }, { default: u(() => [n(ie, { value: "termination" }, { default: u(() => a2[42] || (a2[42] = [m("中止导入")])), _: 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(me, { modelValue: e2.configure.props.otherSettings.timeToInitializeSubTable, "onUpdate:modelValue": a2[13] || (a2[13] = (l3) => e2.configure.props.otherSettings.timeToInitializeSubTable = l3) }, { default: u(() => [n(ce, { label: "新建表单时", value: "create" }), n(ce, { 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] = [m(" 固定值 ")])), _: 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) => {
|
|
72
|
+
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));
|
|
72
73
|
var a3;
|
|
73
|
-
} }, { default:
|
|
74
|
-
return e3.row, a3 = e3.$index, void (1 ==
|
|
74
|
+
} }, { 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, c(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] = [m(" 来源 ")])), _: 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, { type: "default", icon: f(O), onClick: X, size: "small" }, null, 8, ["icon"]), n(ee2, { type: "default", 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, c(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] = [m(" 填充至 ")])), _: 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] = [m("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[47] || (a2[47] = [m("否")])), _: 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) => {
|
|
75
|
+
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));
|
|
75
76
|
var a3;
|
|
76
|
-
} }, { default:
|
|
77
|
+
} }, { 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, c(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, c(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] = [m("是")])), _: 1 }), n(ie, { value: false }, { default: u(() => a2[49] || (a2[49] = [m("否")])), _: 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, { "append-to-body": "", 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 });
|
|
77
78
|
};
|
|
78
79
|
} });
|
|
79
80
|
export {
|
|
80
|
-
|
|
81
|
+
R as default
|
|
81
82
|
};
|
|
@@ -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 y, normalizeClass as v } 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 f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
|
|
4
|
+
const c = e2, g = l(c.modelValue), V = v2, 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 y() {
|
|
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 S(e3) {
|
|
14
|
+
_.value = e3;
|
|
15
|
+
}
|
|
16
|
+
function w() {
|
|
17
|
+
b.value = true;
|
|
18
|
+
}
|
|
19
|
+
return a(() => c.modelValue, (e3) => {
|
|
20
|
+
g.value = e3;
|
|
21
|
+
}), (e3, l2) => {
|
|
22
|
+
const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
+
return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { 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", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
|
|
24
|
+
};
|
|
25
|
+
} });
|
|
2
26
|
export {
|
|
3
|
-
|
|
27
|
+
v 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 f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
|
|
4
|
-
const c = e2, g = l(c.modelValue), V = v2, 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 y() {
|
|
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 S(e3) {
|
|
14
|
-
_.value = e3;
|
|
15
|
-
}
|
|
16
|
-
function w() {
|
|
17
|
-
b.value = true;
|
|
18
|
-
}
|
|
19
|
-
return a(() => c.modelValue, (e3) => {
|
|
20
|
-
g.value = e3;
|
|
21
|
-
}), (e3, l2) => {
|
|
22
|
-
const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
-
return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { 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", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { 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,83 +1,83 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, resolveComponent as l, createBlock as a, openBlock as r, withCtx as n, createVNode as t, createCommentVNode as i, createElementVNode as u, createTextVNode as s, toDisplayString as f, createElementBlock as p, Fragment as c, renderList as d, unref as g
|
|
2
|
-
import { Search as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { queryTableFields as
|
|
7
|
-
import { usePageContextStore as
|
|
8
|
-
import { queryWorkflowsRequest as
|
|
9
|
-
import { ElMessageBox as
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
function
|
|
15
|
-
|
|
1
|
+
import { defineComponent as e, ref as o, resolveComponent as l, createBlock as a, openBlock as r, withCtx as n, createVNode as t, createCommentVNode as i, createElementVNode as u, createTextVNode as s, toDisplayString as f, createElementBlock as p, Fragment as c, renderList as d, unref as g } from "vue";
|
|
2
|
+
import { Search as m, Close as b, Setting as y } from "@element-plus/icons";
|
|
3
|
+
import k from "../common/common-select-table.vue.js";
|
|
4
|
+
import w from "./variable-dialog.vue.js";
|
|
5
|
+
import x from "./create-workflow-dialog.vue.js";
|
|
6
|
+
import { queryTableFields as v, changeFeieldToMap as V } from "../../../utils/page-table-util.js";
|
|
7
|
+
import { usePageContextStore as _ } from "../../../../../stores/page-store.js";
|
|
8
|
+
import { queryWorkflowsRequest as C, createWorkflowRequest as h } from "../../../utils/page-design-util.js";
|
|
9
|
+
import { ElMessageBox as W } from "element-plus";
|
|
10
|
+
const S = { style: { padding: "8px 0px 0px 0px" } }, T = { style: { padding: "8px 0px 0px 0px" } }, U = { style: { padding: "8px 0px 0px 0px" } }, F = { key: 0 }, N = { style: { float: "left" } }, D = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, j = e({ __name: "page-attr-base", props: { configure: {} }, setup(e2) {
|
|
11
|
+
const j2 = _(), z = e2, A = { children: "children", label: "label" }, I = o([]);
|
|
12
|
+
I.value = Z(z.configure.variables);
|
|
13
|
+
const O = o([2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 24]), B = o(["1", "2", "3"]), G = o(null), J = o(null), M = o([]), P = z.configure.props.linkWorkflowCode ? z.configure.props.linkWorkflowCode : null, q = o(P), E = o(false), H = o(z.configure.props.activeWorkflow);
|
|
14
|
+
function K(e3) {
|
|
15
|
+
q.value = e3, e3 && e3.indexOf(":") > 0 ? (z.configure.props.linkWorkflowCode = e3.substring(0, e3.lastIndexOf(":")), z.configure.props.linkWorkflowVersion = parseInt(e3.substring(e3.lastIndexOf(":") + 1))) : (z.configure.props.linkWorkflowCode = e3, z.configure.props.linkWorkflowVersion = 1), z.configure.workflowCode = z.configure.props.linkWorkflowCode, z.configure.workflowVersion = z.configure.props.linkWorkflowVersion;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
|
|
17
|
+
function L() {
|
|
18
|
+
G.value.openDialog();
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
20
|
+
function Q() {
|
|
21
|
+
z.configure.tableAlias = "", z.configure.tableName = "", z.configure.modelFields = [];
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
let o2 =
|
|
25
|
-
o2 += "_", o2 +=
|
|
23
|
+
function R(e3) {
|
|
24
|
+
let o2 = z.configure.tableSysCode ? z.configure.tableSysCode : "";
|
|
25
|
+
o2 += "_", o2 += z.configure.tableSysVersion ? z.configure.tableSysVersion : "", o2 += "_", o2 += z.configure.tableName ? z.configure.tableName : "";
|
|
26
26
|
let l2 = e3.systemCode ? e3.systemCode : "";
|
|
27
27
|
if (l2 += "_", l2 += e3.systemVersion ? e3.systemVersion : "", l2 += "_", l2 += e3.name ? e3.name : "", l2 != o2) {
|
|
28
|
-
|
|
29
|
-
const o3 = e3.systemCode ? e3.systemCode :
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
z.configure.tableSysCode = e3.systemCode, z.configure.tableSysVersion = e3.systemVersion, z.configure.tableName = e3.name, z.configure.tableAlias = e3.alias;
|
|
29
|
+
const o3 = e3.systemCode ? e3.systemCode : z.configure.systemCode, l3 = e3.systemVersion ? e3.systemVersion : z.configure.systemVersion;
|
|
30
|
+
v(o3, l3, e3.name).then((e4) => {
|
|
31
|
+
z.configure.modelFields = e4, z.configure.modelFieldsMap = V(z.configure.modelFieldsMap, e4), j2.setPageContext(z.configure);
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
|
|
35
|
+
function X() {
|
|
36
|
+
J.value.openDialog();
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
|
|
38
|
+
function Y() {
|
|
39
|
+
I.value = Z(z.configure.variables), j2.setPageContext(z.configure);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const o2 =
|
|
41
|
+
function Z(e3) {
|
|
42
|
+
const o2 = $(e3);
|
|
43
43
|
return o2 || [{ label: "无自定义" }];
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function $(e3) {
|
|
46
46
|
if (null == e3 || 0 == e3.length) return null;
|
|
47
47
|
{
|
|
48
48
|
const o2 = [];
|
|
49
49
|
for (let l2 of e3) {
|
|
50
|
-
const e4 = { label: l2.name + (l2.alias ? "(" + l2.alias + ")" : "") }, a2 =
|
|
50
|
+
const e4 = { label: l2.name + (l2.alias ? "(" + l2.alias + ")" : "") }, a2 = $(l2.items);
|
|
51
51
|
a2 && (e4.children = a2), o2.push(e4);
|
|
52
52
|
}
|
|
53
53
|
return o2;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
e3 && "link" === e3 &&
|
|
58
|
-
|
|
56
|
+
function ee(e3) {
|
|
57
|
+
e3 && "link" === e3 && C(z.configure.tableName, z.configure.systemCode, z.configure.systemVersion).then((e4) => {
|
|
58
|
+
M.value = e4;
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
|
|
61
|
+
function oe() {
|
|
62
|
+
E.value = true;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
e3 ?
|
|
66
|
-
e4 && (
|
|
67
|
-
}) :
|
|
64
|
+
function le(e3) {
|
|
65
|
+
e3 ? h(z.configure.tableName, z.configure.systemCode, z.configure.systemVersion, e3.code, e3.name).then((e4) => {
|
|
66
|
+
e4 && (z.configure.props.createWorkflowCode = e4.code, z.configure.props.createWorkflowName = e4.name, z.configure.workflowCode = z.configure.props.createWorkflowCode, z.configure.workflowVersion = e4.definitionVersion), E.value = false;
|
|
67
|
+
}) : E.value = false;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
function ae(e3) {
|
|
70
|
+
H.value ? W.confirm("开启流程后所有字段的必填验证配置会被取消,以流程图设置中的为准,确定开启吗?", "提示", { confirmButtonText: "确认", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
71
|
+
z.configure.props.activeWorkflow = true;
|
|
72
72
|
}).catch((e4) => {
|
|
73
|
-
|
|
74
|
-
}) :
|
|
73
|
+
H.value = false, z.configure.props.activeWorkflow = false;
|
|
74
|
+
}) : z.configure.props.activeWorkflow = false;
|
|
75
75
|
}
|
|
76
|
-
return
|
|
77
|
-
const
|
|
78
|
-
return r(), a(
|
|
76
|
+
return ee(z.configure.props ? z.configure.props.workflowSource : null), (e3, o2) => {
|
|
77
|
+
const v2 = l("el-text"), V2 = l("el-form-item"), _2 = l("el-input"), C2 = l("el-radio-button"), h2 = l("el-radio-group"), W2 = l("el-switch"), j3 = l("el-option"), P2 = l("el-select"), Z2 = l("el-collapse-item"), $2 = l("el-button"), re = l("el-tree"), ne = l("el-form"), te = l("el-radio"), ie = l("el-collapse");
|
|
78
|
+
return r(), a(ne, { "label-width": "80px", size: "small" }, { default: n(() => [t(ie, { modelValue: B.value, "onUpdate:modelValue": o2[9] || (o2[9] = (e4) => B.value = e4), style: { "margin-top": "6px" } }, { default: n(() => [t(Z2, { title: "基本", name: "1", class: "amb-design-attr-group-header" }, { default: n(() => [u("div", S, [t(V2, { label: "编码" }, { default: n(() => [t(v2, null, { default: n(() => [s(f(e3.configure.code), 1)]), _: 1 })]), _: 1 }), t(V2, { label: "名称", style: { "margin-top": "-10px" } }, { default: n(() => [t(_2, { modelValue: e3.configure.label, "onUpdate:modelValue": o2[0] || (o2[0] = (o3) => e3.configure.label = o3) }, null, 8, ["modelValue"])]), _: 1 }), t(V2, { label: "页面类型", style: { "margin-top": "-10px" } }, { default: n(() => [t(h2, { modelValue: e3.configure.pageType, "onUpdate:modelValue": o2[1] || (o2[1] = (o3) => e3.configure.pageType = o3) }, { default: n(() => [t(C2, { value: "form" }, { default: n(() => o2[10] || (o2[10] = [s("表单")])), _: 1 }), t(C2, { value: "list" }, { default: n(() => o2[11] || (o2[11] = [s("台帐")])), _: 1 }), t(C2, { value: "other" }, { default: n(() => o2[12] || (o2[12] = [s("其他")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), t(V2, { label: "Flex布局", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: n(() => [t(W2, { modelValue: e3.configure.props.isFlex, "onUpdate:modelValue": o2[2] || (o2[2] = (o3) => e3.configure.props.isFlex = o3) }, null, 8, ["modelValue"])]), _: 1 }), e3.configure.props.isFlex ? (r(), a(V2, { key: 0, label: "水平对齐", style: { "margin-top": "18px", "margin-bottom": "-15px" } }, { default: n(() => [t(P2, { modelValue: e3.configure.props.flexJustify, "onUpdate:modelValue": o2[3] || (o2[3] = (o3) => e3.configure.props.flexJustify = o3), placeholder: "默认", clearable: "" }, { default: n(() => [t(j3, { label: "start", value: "start" }), t(j3, { label: "center", value: "center" }), t(j3, { label: "space-between", value: "space-between" }), t(j3, { label: "space-around", value: "space-around" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : i("", true), "2" == e3.configure.props.isFlex ? (r(), a(V2, { key: 1, label: "分栏间隔", style: { "margin-bottom": "-15px", "margin-top": "-10px" } }, { default: n(() => [t(P2, { modelValue: e3.configure.props.flexGutter, "onUpdate:modelValue": o2[4] || (o2[4] = (o3) => e3.configure.props.flexGutter = o3), placeholder: "默认", clearable: "" }, { default: n(() => [(r(true), p(c, null, d(O.value, (e4) => (r(), a(j3, { label: e4, value: e4 }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : i("", true)])]), _: 1 }), t(Z2, { title: "页面变量", name: "3", class: "amb-design-attr-group-header" }, { default: n(() => [u("div", T, [e3.configure.pageType && "form" != e3.configure.pageType ? i("", true) : (r(), a(V2, { key: 0, label: "数据模型", class: "amb-design-attr-item" }, { default: n(() => [t(_2, { modelValue: e3.configure.tableAlias, "onUpdate:modelValue": o2[5] || (o2[5] = (o3) => e3.configure.tableAlias = o3), title: e3.configure.tableAlias, clearable: "", readonly: "true" }, { append: n(() => [t($2, { type: "default", icon: g(m), onClick: L, size: "small" }, null, 8, ["icon"]), t($2, { type: "default", icon: g(b), onClick: Q, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 })), t(ne, { "label-position": "top", size: "small" }, { default: n(() => [t(V2, { "label-position": "top", class: "amb-design-attr-item" }, { label: n(() => [o2[13] || (o2[13] = s(" 自定义变量 ")), t($2, { type: "primary", round: "", icon: g(y), onClick: X, size: "small" }, null, 8, ["icon"])]), default: n(() => [t(re, { style: { border: "1px solid #f5f6f8", padding: "10px", width: "100%", "min-height": "100px" }, data: I.value, props: A, "default-expand-all": "", "expand-on-click-node": false }, null, 8, ["data"])]), _: 1 })]), _: 1 })])]), _: 1 }), e3.configure.pageType && "form" != e3.configure.pageType || !z.configure.tableName ? i("", true) : (r(), a(Z2, { key: 0, title: "工作流", name: "2", class: "amb-design-attr-group-header" }, { default: n(() => [u("div", U, [t(V2, { label: "启用", style: { "margin-bottom": "-14px" } }, { default: n(() => [t(W2, { modelValue: H.value, "onUpdate:modelValue": o2[6] || (o2[6] = (e4) => H.value = e4), onChange: ae }, null, 8, ["modelValue"])]), _: 1 }), e3.configure.props.activeWorkflow ? (r(), a(V2, { key: 0, label: "流程来源", style: { "margin-top": "14px", "margin-bottom": "-15px" } }, { default: n(() => [t(h2, { modelValue: e3.configure.props.workflowSource, "onUpdate:modelValue": o2[7] || (o2[7] = (o3) => e3.configure.props.workflowSource = o3), onChange: ee }, { default: n(() => [t(te, { value: "link" }, { default: n(() => o2[14] || (o2[14] = [s("选择引用")])), _: 1 }), t(te, { value: "create" }, { default: n(() => o2[15] || (o2[15] = [s("新增流程")])), _: 1 }), e3.configure.props.workflowSource && "create" === e3.configure.props.workflowSource ? (r(), p("span", F, [t($2, { type: "default", onClick: oe }, { default: n(() => o2[16] || (o2[16] = [s("新增")])), _: 1 })])) : i("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : i("", true), e3.configure.props.activeWorkflow && e3.configure.props.workflowSource && "link" === e3.configure.props.workflowSource ? (r(), a(V2, { key: 1, label: "选择引用", style: { "margin-top": "18px", "margin-bottom": "-12px" } }, { default: n(() => [t(P2, { modelValue: q.value, "onUpdate:modelValue": o2[8] || (o2[8] = (e4) => q.value = e4), onChange: K }, { default: n(() => [(r(true), p(c, null, d(M.value, (e4) => (r(), a(j3, { key: e4.code, label: e4.name, value: e4.code }, { default: n(() => [u("span", N, f(e4.name), 1), u("span", D, f(e4.code), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : i("", true), e3.configure.props.activeWorkflow && e3.configure.props.workflowSource && "link" === e3.configure.props.workflowSource ? (r(), a(V2, { key: 2, label: "流程编码", style: { "margin-top": "18px", "margin-bottom": "-12px" } }, { default: n(() => [s(f(e3.configure.props.linkWorkflowCode), 1)]), _: 1 })) : i("", true), e3.configure.props.activeWorkflow && e3.configure.props.workflowSource && "create" === e3.configure.props.workflowSource ? (r(), a(V2, { key: 3, label: "流程名称", style: { "margin-top": "18px", "margin-bottom": "-12px" } }, { default: n(() => [s(f(e3.configure.props.createWorkflowName), 1)]), _: 1 })) : i("", true), e3.configure.props.activeWorkflow && e3.configure.props.workflowSource && "create" === e3.configure.props.workflowSource ? (r(), a(V2, { key: 4, label: "流程编码", style: { "margin-top": "18px", "margin-bottom": "-12px" } }, { default: n(() => [s(f(e3.configure.props.createWorkflowCode), 1)]), _: 1 })) : i("", true)])]), _: 1 }))]), _: 1 }, 8, ["modelValue"]), t(k, { ref_key: "selectTableDialog", ref: G, onSelectTable: R, systemCode: e3.configure.systemCode, systemVersion: e3.configure.systemVersion }, null, 8, ["systemCode", "systemVersion"]), t(w, { ref_key: "refVariableDialog", ref: J, pageDesign: e3.configure, onClose: Y }, null, 8, ["pageDesign"]), E.value ? (r(), a(x, { key: 0, pageDesign: e3.configure, onClose: le }, null, 8, ["pageDesign"])) : i("", true)]), _: 1 });
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
export {
|
|
82
|
-
|
|
82
|
+
j as default
|
|
83
83
|
};
|
|
@@ -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 m, withCtx as c, vShow as d, unref as v, createTextVNode as p, toDisplayString as f, 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 V, deepCopy as k } from "../../../utils/common-util.js";
|
|
6
6
|
import { usePageContextStore as _ } 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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-designer",
|
|
3
|
-
"version": "2.3.12-design1",
|
|
3
|
+
"version": "2.3.12-rc2-design1",
|
|
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.50",
|
|
32
|
+
"agilebuilder-ui": "1.1.50-rc2",
|
|
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.3.
|
|
44
|
-
"super-page-runtime": "2.3.12",
|
|
43
|
+
"service-flow-designer": "2.3.7-flow1",
|
|
44
|
+
"super-page-runtime": "2.3.12-rc2",
|
|
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.67-up"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@codemirror/autocomplete": "^6.16.0",
|