service-flow-designer 2.3.20-sit1-flow2 → 2.3.20
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/designer/common/components/datatable-select.vue.js +1 -1
- package/dist/es/designer/common/components/datatable-select.vue2.js +5 -5
- package/dist/es/designer/common/components/file-upload.vue2.js +1 -1
- package/dist/es/designer/common/components/json-view/json-view.vue.js +1 -1
- package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +16 -16
- package/dist/es/designer/common/components/value-set-input/option.js +1 -1
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +3 -3
- package/dist/es/designer/desginer-index.vue.js +1 -1
- package/dist/es/designer/desginer-index.vue2.js +12 -12
- package/dist/es/designer/service-components/base/end-node/index.vue2.js +1 -1
- package/dist/es/designer/service-components/base/start-node/index.vue2.js +1 -1
- package/dist/es/designer/service-components/computation/sort/config.vue2.js +2 -2
- package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +1 -1
- package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue.js +1 -1
- package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.js +2 -2
- package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue.js +1 -1
- package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.js +1 -1
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +1 -1
- package/dist/es/designer/service-components/database/regular-query/config.vue2.js +1 -1
- package/dist/es/designer/service-components/index.d.ts +2 -1
- package/dist/es/designer/service-components/service/common/cookie-data.vue.js +2 -2
- package/dist/es/designer/service-components/service/common/form-data.vue.js +2 -2
- package/dist/es/designer/service-components/service/common/header-data.vue.js +2 -2
- package/dist/es/designer/service-components/service/common/json-data.vue2.js +2 -2
- package/dist/es/designer/service-components/service/common/param-config.vue2.js +1 -1
- package/dist/es/designer/service-components/service/common/query-params.vue.js +2 -2
- package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +1 -1
- package/dist/es/designer/service-components/service/http-service/config.vue2.js +1 -1
- package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +6 -6
- package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +6 -6
- package/dist/es/designer/service-flow-view/flow-util.js +7 -4
- package/dist/es/designer/service-flow-view/service-node-config.vue2.js +1 -1
- package/dist/es/designer/service-flow-view/service-params.vue.js +4 -4
- package/dist/es/designer/service-flow-view/service-result.vue.js +4 -4
- package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +4 -4
- package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +5 -2
- package/dist/es/designer/service-flow-view/service-update-log.vue2.js +1 -1
- package/dist/es/designer/service-flow-view/view-index.vue.js +1 -1
- package/dist/es/designer/service-flow-view/view-index.vue2.js +15 -14
- package/dist/es/designer/service-panel/component-panel.vue.d.ts +3 -15
- package/dist/es/designer/service-panel/component-panel.vue.js +1 -1
- package/dist/es/designer/service-panel/component-panel.vue2.js +10 -16
- package/dist/es/designer/service-panel/service-list.vue2.js +10 -10
- package/dist/es/designer/service-panel/service-panel.vue.d.ts +0 -9
- package/dist/es/designer/service-panel/service-panel.vue.js +1 -1
- package/dist/es/designer/service-panel/service-panel.vue2.js +13 -13
- package/dist/es/style.css +43 -43
- package/dist/es/utils/common-util.js +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./datatable-select.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = t(e, [["__scopeId", "data-v-
|
|
4
|
+
const a = t(e, [["__scopeId", "data-v-f557a3ca"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -32,7 +32,7 @@ const k = { class: "dialog-footer" }, _ = p({ name: "DatatableSelect", inheritAt
|
|
|
32
32
|
const l2 = { code: "MMS_MODULE_PAGE", pagination: { currentPage: E.value.currentPage, pageSize: E.value.pageSize, showTotal: true }, searchForm: [], dynamicColumnInfo: [] };
|
|
33
33
|
I.value.searchCode && l2.searchForm.push({ leftBracket: "", rightBracket: "", joinSign: "and", propName: "name", operator: "CONTAIN", dataType: "TEXT", propValue: I.value.searchCode }), I.value.searchName && l2.searchForm.push({ leftBracket: "", rightBracket: "", joinSign: "and", propName: "alias", operator: "CONTAIN", dataType: "TEXT", propValue: I.value.searchName });
|
|
34
34
|
const a2 = e2.code || P.systemCode;
|
|
35
|
-
N.post(window.$vueApp.config.globalProperties.baseAPI + "/
|
|
35
|
+
N.post(window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/list/" + a2 + "/0/" + e2.publishVersion, l2).then((e3) => {
|
|
36
36
|
U.value = e3.data, E.value.pageSize = e3.size, E.value.total = e3.total;
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -57,15 +57,15 @@ const k = { class: "dialog-footer" }, _ = p({ name: "DatatableSelect", inheritAt
|
|
|
57
57
|
e3 && e3.forEach((e4) => {
|
|
58
58
|
e4.name = e4.name + "(" + e4.publishVersion + ")";
|
|
59
59
|
});
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
const l2 = e3.findIndex((e4) => e4.code === P.systemCode);
|
|
61
|
+
$.value = JSON.parse(JSON.stringify(e3[l2])), A.value = e3, O.value = e3, J($.value);
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
return (p3, c2) => {
|
|
65
65
|
const m2 = o, N2 = t, V2 = s, _3 = n, T2 = a, P2 = i, O2 = u, B2 = r, X2 = l, G = e;
|
|
66
|
-
return v(), d(G, { "append-to-body": "", "destroy-on-close": "", modelValue: x.value, "onUpdate:modelValue": c2[8] || (c2[8] = (e2) => x.value = e2), title: "选择数据表", width: "60%", "before-close": q }, { footer: f(() => [z("div", k, [g(_3, { type: "default", size: "small", onClick: c2[7] || (c2[7] = (e2) => x.value = false) }, { default: f(() => c2[11] || (c2[11] = [w("返回")])), _: 1 }), g(_3, { size: "small", type: "primary", onClick: R }, { default: f(() => c2[12] || (c2[12] = [w(" 确定 ")])), _: 1 })])]), default: f(() => [g(X2, { style: { height: "400px" } }, { default: f(() => [g(T2, { style: { padding: "0", height: "50px" } }, { default: f(() => [g(N2, { modelValue: $.value.code, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => $.value.code = e2), onChange: D, "filter-method": M, "value-key": "code", size: "small", filterable: "", style: { width: "240px" } }, { default: f(() => [(v(true), h(y, null, b(A.value, (e2) => (v(), d(m2, { key: e2.code, label: e2.name, value: e2.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), g(V2, { size: "small", clearable: "", modelValue: I.value.searchCode, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => I.value.searchCode = e2), placeholder: "编码", style: { width: "100px" } }, null, 8, ["modelValue"]), g(V2, { size: "small", clearable: "", modelValue: I.value.searchName, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => I.value.searchName = e2), placeholder: "名称", style: { width: "100px" } }, null, 8, ["modelValue"]), g(_3, { type: "primary", size: "small", icon: C(S), onClick: c2[3] || (c2[3] = (e2) => {
|
|
66
|
+
return v(), d(G, { "append-to-body": "", "destroy-on-close": "", modelValue: x.value, "onUpdate:modelValue": c2[8] || (c2[8] = (e2) => x.value = e2), title: "选择数据表", width: "60%", "before-close": q }, { footer: f(() => [z("div", k, [g(_3, { type: "default", size: "small", onClick: c2[7] || (c2[7] = (e2) => x.value = false) }, { default: f(() => [...c2[11] || (c2[11] = [w("返回", -1)])]), _: 1 }), g(_3, { size: "small", type: "primary", onClick: R }, { default: f(() => [...c2[12] || (c2[12] = [w(" 确定 ", -1)])]), _: 1 })])]), default: f(() => [g(X2, { style: { height: "400px" } }, { default: f(() => [g(T2, { style: { padding: "0", height: "50px" } }, { default: f(() => [g(N2, { modelValue: $.value.code, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => $.value.code = e2), onChange: D, "filter-method": M, "value-key": "code", size: "small", filterable: "", style: { width: "240px" } }, { default: f(() => [(v(true), h(y, null, b(A.value, (e2) => (v(), d(m2, { key: e2.code, label: e2.name, value: e2.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), g(V2, { size: "small", clearable: "", modelValue: I.value.searchCode, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => I.value.searchCode = e2), placeholder: "编码", style: { width: "100px" } }, null, 8, ["modelValue"]), g(V2, { size: "small", clearable: "", modelValue: I.value.searchName, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => I.value.searchName = e2), placeholder: "名称", style: { width: "100px" } }, null, 8, ["modelValue"]), g(_3, { type: "primary", size: "small", icon: C(S), onClick: c2[3] || (c2[3] = (e2) => {
|
|
67
67
|
J($.value);
|
|
68
|
-
}) }, { default: f(() => c2[9] || (c2[9] = [w("查询")])), _: 1 }, 8, ["icon"]), g(_3, { size: "small", icon: C(S), onClick: c2[4] || (c2[4] = (e2) => (I.value = { searchCode: "", searchName: "" }, void J($.value))) }, { default: f(() => c2[10] || (c2[10] = [w("重置")])), _: 1 }, 8, ["icon"])]), _: 1 }), g(O2, { ref_key: "tableRef", ref: L, "current-row-key": "code", "row-key": "code", onRowClick: j, data: U.value, "highlight-current-row": "", style: { width: "100%" } }, { default: f(() => [g(P2, { type: "index", width: "50" }), g(P2, { prop: "name", label: "编码" }), g(P2, { prop: "alias", label: "名称" }), g(P2, { prop: "modifierName", label: "修改人" }), g(P2, { prop: "modifiedTime", formatter: (e2) => ((e3) => {
|
|
68
|
+
}) }, { default: f(() => [...c2[9] || (c2[9] = [w("查询", -1)])]), _: 1 }, 8, ["icon"]), g(_3, { size: "small", icon: C(S), onClick: c2[4] || (c2[4] = (e2) => (I.value = { searchCode: "", searchName: "" }, void J($.value))) }, { default: f(() => [...c2[10] || (c2[10] = [w("重置", -1)])]), _: 1 }, 8, ["icon"])]), _: 1 }), g(O2, { ref_key: "tableRef", ref: L, "current-row-key": "code", "row-key": "code", onRowClick: j, data: U.value, "highlight-current-row": "", style: { width: "100%" } }, { default: f(() => [g(P2, { type: "index", width: "50" }), g(P2, { prop: "name", label: "编码" }), g(P2, { prop: "alias", label: "名称" }), g(P2, { prop: "modifierName", label: "修改人" }), g(P2, { prop: "modifiedTime", formatter: (e2) => ((e3) => {
|
|
69
69
|
let l2 = new Date(e3);
|
|
70
70
|
return `${l2.getFullYear()}-${("0" + (l2.getMonth() + 1)).slice(-2)}-${("0" + l2.getDate()).slice(-2)} ${("0" + l2.getHours()).slice(-2)}:${("0" + l2.getMinutes()).slice(-2)}:${("0" + l2.getSeconds()).slice(-2)}`;
|
|
71
71
|
})(e2.modifiedTime), label: "修改时间" }, null, 8, ["formatter"])]), _: 1 }, 8, ["data"]), g(B2, { "current-page": E.value.currentPage, "onUpdate:currentPage": c2[5] || (c2[5] = (e2) => E.value.currentPage = e2), "page-size": E.value.pageSize, "onUpdate:pageSize": c2[6] || (c2[6] = (e2) => E.value.pageSize = e2), "page-sizes": [20, 30, 50, 100], small: "", background: "", layout: "total, sizes, prev, pager, next, jumper", total: E.value.total, onSizeChange: F, onCurrentChange: F }, null, 8, ["current-page", "page-size", "total"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]);
|
|
@@ -25,7 +25,7 @@ const V = t({ __name: "file-upload", props: { modelValue: { type: Object, defaul
|
|
|
25
25
|
};
|
|
26
26
|
return V2({}), (t3, s2) => {
|
|
27
27
|
const d2 = o, c2 = l, f2 = e;
|
|
28
|
-
return a(), u(f2, { ref_key: "upload", ref: _, name: "file", data: { systemCode: g.value, isExport: true }, "auto-upload": true, action: U, headers: x, limit: 1, "on-change": A, "on-exceed": P, "on-remove": C, "on-success": w, "file-list": j.value }, { default: m(() => [n(c2, { type: "default" }, { default: m(() => [s2[0] || (s2[0] = i(" 上传附件")), n(d2, { class: "el-icon--right" }, { default: m(() => [n(p(r))]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["data", "file-list"]);
|
|
28
|
+
return a(), u(f2, { ref_key: "upload", ref: _, name: "file", data: { systemCode: g.value, isExport: true }, "auto-upload": true, action: U, headers: x, limit: 1, "on-change": A, "on-exceed": P, "on-remove": C, "on-success": w, "file-list": j.value }, { default: m(() => [n(c2, { type: "default" }, { default: m(() => [s2[0] || (s2[0] = i(" 上传附件", -1)), n(d2, { class: "el-icon--right" }, { default: m(() => [n(p(r))]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["data", "file-list"]);
|
|
29
29
|
};
|
|
30
30
|
} });
|
|
31
31
|
export {
|
|
@@ -12,7 +12,7 @@ const w = e({ name: "JsonView", inheritAttrs: false, __name: "json-view", props:
|
|
|
12
12
|
if (w2.height) x.value = w2.height + "px";
|
|
13
13
|
else if (b.value) {
|
|
14
14
|
const e4 = b.value.getBoundingClientRect();
|
|
15
|
-
(e4.y || 0 === e4.y) && (x.value = window.innerHeight - e4.y - 100 + "px");
|
|
15
|
+
(e4.y || 0 === e4.y) && (window.innerHeight, e4.y, x.value = window.innerHeight - e4.y - 100 + "px");
|
|
16
16
|
}
|
|
17
17
|
const t2 = function(e4) {
|
|
18
18
|
const t3 = function() {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as i, watch as o, createElementBlock as r, openBlock as l } from "vue";
|
|
2
2
|
import { EditorView as u, basicSetup as m } from "codemirror";
|
|
3
3
|
import { sql as s } from "@codemirror/lang-sql";
|
|
4
4
|
import { Facet as a, EditorState as c } from "@codemirror/state";
|
|
5
5
|
const f = e({ name: "SqlView", inheritAttrs: false, __name: "sql-view", props: { sql: { type: String, default: null }, height: { type: Number, default: 0 }, theme: { type: String, default: null } }, setup(e2) {
|
|
6
|
-
const f2 = e2, d = t(null),
|
|
7
|
-
function
|
|
8
|
-
if (d.value && d.value.destroy(), f2.height)
|
|
9
|
-
else if (
|
|
10
|
-
const e4 =
|
|
11
|
-
(e4.y || 0 === e4.y) && (
|
|
6
|
+
const f2 = e2, d = t(null), h = t(), p = t("400px");
|
|
7
|
+
function g() {
|
|
8
|
+
if (d.value && d.value.destroy(), f2.height) p.value = f2.height + "px";
|
|
9
|
+
else if (h.value) {
|
|
10
|
+
const e4 = h.value.getBoundingClientRect();
|
|
11
|
+
(e4.y || 0 === e4.y) && (window.innerHeight, e4.y, p.value = window.innerHeight - e4.y - 100 + "px");
|
|
12
12
|
}
|
|
13
13
|
const e3 = function() {
|
|
14
|
-
const e4 = u.theme({}), t3 = u.theme({ ".cm-content, .cm-gutter": { minHeight:
|
|
15
|
-
return c.create({ doc: f2.sql, extensions: [c.tabSize.of(16), m, s(), e4, t3,
|
|
14
|
+
const e4 = u.theme({}), t3 = u.theme({ ".cm-content, .cm-gutter": { minHeight: p.value }, "&": { height: p.value, maxHeight: p.value, fontSize: "12px" } });
|
|
15
|
+
return c.create({ doc: f2.sql, extensions: [c.tabSize.of(16), m, s(), e4, t3, v.of(true), u.updateListener.of(function(e5) {
|
|
16
16
|
})] });
|
|
17
17
|
}();
|
|
18
18
|
let t2 = document.getElementById("cf-codemirror-view-json");
|
|
19
19
|
t2 && (d.value = new u({ state: e3, parent: t2 }));
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
n(() => {
|
|
22
|
+
i(() => {
|
|
23
|
+
g();
|
|
24
24
|
});
|
|
25
|
-
}),
|
|
26
|
-
|
|
25
|
+
}), o(() => f2.sql, () => {
|
|
26
|
+
g();
|
|
27
27
|
});
|
|
28
|
-
const
|
|
29
|
-
return (e3, t2) => (l(), r("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref:
|
|
28
|
+
const v = a.define({ combine: (e3) => e3.some((e4) => e4) });
|
|
29
|
+
return (e3, t2) => (l(), r("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref: h, id: "cf-codemirror-view-json" }, null, 512));
|
|
30
30
|
} });
|
|
31
31
|
export {
|
|
32
32
|
f as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = [{ value: "request", label: "请求参数" }, { value: "data", label: "数据模型" }, { value: "task", label: "
|
|
1
|
+
const e = [{ value: "request", label: "请求参数" }, { value: "data", label: "数据模型" }, { value: "task", label: "流程变量" }, { value: "service", label: "服务变量" }, { value: "system", label: "系统变量" }, { value: "context", label: "环境变量" }, { value: "fixed", label: "固定值" }], a = [{ value: "currentTime", label: "当前时间" }, { value: "currentDate", label: "当前日期" }, { value: "currentTransactorId", label: "当前用户id" }, { value: "currentTransactor", label: "当前用户登录名" }, { value: "currentTransactorName", label: "当前用户姓名" }, { value: "currentTransactorMainDepartmentId", label: "当前用户部门id" }, { value: "currentTransactorMainDepartmentCode", label: "当前用户部门编码" }, { value: "currentTransactorMainDepartment", label: "当前用户部门名称" }], l = [{ value: "transactor", label: "当前办理人" }, { value: "nodeId", label: "环节名称" }, { value: "nodeCode", label: "环节编码" }, { value: "assigner", label: "当前指派人" }, { value: "trustor", label: "当前委托人" }];
|
|
2
2
|
function r(a2) {
|
|
3
3
|
return a2 && a2.length > 0 ? e.filter((e2) => a2.includes(e2.value)) : e;
|
|
4
4
|
}
|
|
@@ -87,7 +87,7 @@ const B = { key: 0 }, K = { style: { "margin-top": "10px", "font-size": "10px",
|
|
|
87
87
|
const l2 = { code: L(), level: 1, name: re.value, alias: re.value, type: X.autoCreateFieldType ? X.autoCreateFieldType : "string", defaultValue: "", items: [] };
|
|
88
88
|
"array" == l2.type && l2.items.push({ level: l2.level + 1, code: L(), name: "items", isArrayElement: true, alias: "", type: "object", defaultValue: "", items: [] }), Q.currentService.variables || (Q.currentService.variables = []), Q.currentService.variables.push(l2), ne.value.serviceVarOptions = Q.getServiceVarOptions(), Ve(se.value), ie.value = re.value, Z.value = "${" + se.value + "." + re.value + "}", W("update:modelValue", Z.value), pe.value.hide();
|
|
89
89
|
}
|
|
90
|
-
!se.value && ee.value.length > 0 && (se.value = ee.value[0].value, he(se.value));
|
|
90
|
+
!se.value && ee.value.length > 0 && (se.value = ee.value[0].value, he(se.value), se.value);
|
|
91
91
|
const xe = v();
|
|
92
92
|
const be = () => {
|
|
93
93
|
ce(), me(), se.value && Ve(se.value), _(() => {
|
|
@@ -117,13 +117,13 @@ const B = { key: 0 }, K = { style: { "margin-top": "10px", "font-size": "10px",
|
|
|
117
117
|
}
|
|
118
118
|
return J2({ setSelectOptions: me }), (v2, c2) => {
|
|
119
119
|
const _2 = i, L2 = s, T2 = t, A2 = a, F2 = u, $2 = o, M2 = r, R2 = n, J3 = l, N2 = e;
|
|
120
|
-
return p2.showLabel ? (f(), d("span", B, y(te.value), 1)) : (f(), m(N2, { key: 1, ref_key: "popoverRef", ref: pe, trigger: "click", width: 450 }, { reference: h(() => [V(L2, { style: g({ width: p2.width ? p2.width : "" }), readonly: "", size: p2.inputSize, onClick: be, formatter: ye, class: "input-with-select", "prefix-icon": b(q), modelValue: Z.value, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => Z.value = e2), placeholder: p2.placeholder }, { append: h(() => [V(_2, { type: "default", size: p2.inputSize, icon: b(I), onClick: S(ke, ["stop"]) }, null, 8, ["size", "icon"])]), _: 1 }, 8, ["style", "size", "prefix-icon", "modelValue", "placeholder"])]), default: h(() => [V(J3, null, { default: h(() => [V(A2, { span: 8 }, { default: h(() => [V(T2, { modelValue: se.value, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => se.value = e2), onChange: he, props: { emitPath: false }, size: "small", style: g({ width: "fit-content", height: Y.value + "px", overflow: "auto" }), options: ee.value }, null, 8, ["modelValue", "style", "options"])]), _: 1 }), se.value ? "input" === le.value ? (f(), m(A2, { key: 1, span: 16 }, { default: h(() => [V(L2, { style: { width: "88%" }, size: "small", modelValue: ie.value, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => ie.value = e2), placeholder: "请手动输入" }, null, 8, ["modelValue"]), V(_2, { style: { float: "right" }, onClick: ge, size: "small", type: "primary", icon: b(U), circle: "" }, null, 8, ["icon"]), w("div", K, [V($2, null, { default: h(() => [V(b(j))]), _: 1 }), c2[5] || (c2[5] = w("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))]), x(w("div", { style: g({ fontSize: "10px", lineHeight: "30px", height: Y.value - 50 + "px", overflow: "auto" }) }, [c2[6] || (c2[6] = k(" 可用参数: ")), (f(true), d(z, null, C(ue.value, (e2) => (f(), m(_2, { type: "primary", size: "small", onClick: (l2) => {
|
|
120
|
+
return p2.showLabel ? (f(), d("span", B, y(te.value), 1)) : (f(), m(N2, { key: 1, ref_key: "popoverRef", ref: pe, trigger: "click", width: 450 }, { reference: h(() => [V(L2, { style: g({ width: p2.width ? p2.width : "" }), readonly: "", size: p2.inputSize, onClick: be, formatter: ye, class: "input-with-select", "prefix-icon": b(q), modelValue: Z.value, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => Z.value = e2), placeholder: p2.placeholder }, { append: h(() => [V(_2, { type: "default", size: p2.inputSize, icon: b(I), onClick: S(ke, ["stop"]) }, null, 8, ["size", "icon"])]), _: 1 }, 8, ["style", "size", "prefix-icon", "modelValue", "placeholder"])]), default: h(() => [V(J3, null, { default: h(() => [V(A2, { span: 8 }, { default: h(() => [V(T2, { modelValue: se.value, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => se.value = e2), onChange: he, props: { emitPath: false }, size: "small", style: g({ width: "fit-content", height: Y.value + "px", overflow: "auto" }), options: ee.value }, null, 8, ["modelValue", "style", "options"])]), _: 1 }), se.value ? "input" === le.value ? (f(), m(A2, { key: 1, span: 16 }, { default: h(() => [V(L2, { style: { width: "88%" }, size: "small", modelValue: ie.value, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => ie.value = e2), placeholder: "请手动输入" }, null, 8, ["modelValue"]), V(_2, { style: { float: "right" }, onClick: ge, size: "small", type: "primary", icon: b(U), circle: "" }, null, 8, ["icon"]), w("div", K, [V($2, null, { default: h(() => [V(b(j))]), _: 1 }), c2[5] || (c2[5] = w("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))]), x(w("div", { style: g({ fontSize: "10px", lineHeight: "30px", height: Y.value - 50 + "px", overflow: "auto" }) }, [c2[6] || (c2[6] = k(" 可用参数: ", -1)), (f(true), d(z, null, C(ue.value, (e2) => (f(), m(_2, { type: "primary", size: "small", onClick: (l2) => {
|
|
121
121
|
return a2 = e2.value, ie.value = a2, void ge();
|
|
122
122
|
var a2;
|
|
123
123
|
} }, { default: h(() => [k(y(e2.label), 1)]), _: 2 }, 1032, ["onClick"]))), 256))], 4), [[O, "request" == se.value]])]), _: 1 })) : "file" === le.value ? (f(), m(A2, { key: 2, span: 16 }, { default: h(() => [V(E, { modelValue: ae.value, "onUpdate:modelValue": c2[3] || (c2[3] = (e2) => ae.value = e2), onOnSuccess: ze }, null, 8, ["modelValue"])]), _: 1 })) : (f(), m(A2, { key: 3, span: 16 }, { default: h(() => [w("div", H, [w("div", P, [V(L2, { size: "small", modelValue: re.value, "onUpdate:modelValue": c2[4] || (c2[4] = (e2) => re.value = e2), placeholder: "搜索", "suffix-icon": b(q), style: { width: "90%" } }, null, 8, ["modelValue", "suffix-icon"]), x(V(_2, { style: { float: "right" }, onClick: we, size: "small", type: "primary", icon: b(U), circle: "" }, null, 8, ["icon"]), [[O, "service" == se.value]]), x(w("div", D, [V($2, null, { default: h(() => [V(b(j))]), _: 1 }), c2[7] || (c2[7] = w("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))], 512), [[O, "service" == se.value]])]), V(R2, { ref_key: "tableRef", ref: xe, height: Y.value - 80, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "tree-props": { children: "items" }, "highlight-current-row": true, data: de.value, class: "flex-table" }, { default: h(() => [V(M2, { fixed: true, width: "service" === se.value ? "" : 70 }, { default: h((e2) => [V(_2, { type: "default", size: "small", onClick: (l2) => {
|
|
124
124
|
return a2 = e2.row, ie.value = a2.value, Z.value = "${" + se.value + "." + a2.value + "}", W("update:modelValue", Z.value), void pe.value.hide();
|
|
125
125
|
var a2;
|
|
126
|
-
} }, { default: h(() => c2[8] || (c2[8] = [k(" 选择 ")])), _:
|
|
126
|
+
} }, { default: h(() => [...c2[8] || (c2[8] = [k(" 选择 ", -1)])]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["width"]), V(M2, { prop: "label" })]), _: 1 }, 8, ["height", "data"]), w("div", G, "总计:" + y(de.value.length), 1)])]), _: 1 })) : (f(), m(A2, { key: 0, span: 16 }, { default: h(() => [V(F2, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 })]), _: 1 }, 512));
|
|
127
127
|
};
|
|
128
128
|
} });
|
|
129
129
|
export {
|
|
@@ -3,33 +3,33 @@ import "element-plus/es/components/base/style/css";
|
|
|
3
3
|
import "element-plus/es/components/container/style/css";
|
|
4
4
|
import "element-plus/es/components/main/style/css";
|
|
5
5
|
import "element-plus/es/components/aside/style/css";
|
|
6
|
-
import { defineComponent as
|
|
6
|
+
import { defineComponent as s, ref as n, onMounted as l, createBlock as a, openBlock as r, withCtx as i, createVNode as c, normalizeStyle as p } from "vue";
|
|
7
7
|
import u from "./service-panel/service-panel.vue.js";
|
|
8
8
|
import m from "./service-flow-view/view-index.vue.js";
|
|
9
9
|
import "./service-components/index.js";
|
|
10
10
|
import { useServiceFlowStore as v } from "../stores/page-store.js";
|
|
11
11
|
import g from "agilebuilder-ui/src/utils/request";
|
|
12
|
-
const d =
|
|
13
|
-
const d2 =
|
|
12
|
+
const d = s({ __name: "desginer-index", props: { pageContext: { type: Object, default: () => ({}) } }, setup(s2) {
|
|
13
|
+
const d2 = s2, f = n([]);
|
|
14
14
|
v().setPageContext(d2.pageContext);
|
|
15
|
-
const w =
|
|
15
|
+
const w = n(null), y = n(), C = () => {
|
|
16
16
|
g.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow/tree/" + d2.pageContext.systemCode + "/" + d2.pageContext.systemVersion).then((e2) => {
|
|
17
17
|
e2 && (f.value = e2.children);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
l(() => {
|
|
21
|
+
C();
|
|
22
22
|
});
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const x = (e2) => {
|
|
24
|
+
y.value.onDragNode(e2);
|
|
25
25
|
}, F = (e2) => {
|
|
26
|
-
|
|
26
|
+
y.value.onServiceClick(e2);
|
|
27
27
|
}, D = () => {
|
|
28
|
-
|
|
28
|
+
y.value.clearFlowCanvas(), w.value = null;
|
|
29
29
|
};
|
|
30
|
-
return (
|
|
30
|
+
return (n2, l2) => {
|
|
31
31
|
const v2 = t, g2 = o, d3 = e;
|
|
32
|
-
return r(),
|
|
32
|
+
return r(), a(d3, { class: "amb-container" }, { default: i(() => [c(v2, { class: "serviceflow-container-left" }, { default: i(() => [c(u, { logicFlowInstance: w.value, "onUpdate:logicFlowInstance": l2[0] || (l2[0] = (e2) => w.value = e2), serviceTreeData: f.value, onServiceClick: F, onClearFlowCanvas: D, onLoadTreeData: C, onDragNode: x, style: p(n2.containerHeightStyle) }, null, 8, ["logicFlowInstance", "serviceTreeData", "style"])]), _: 1 }), c(g2, { class: "serviceflow-container-main", style: p(n2.containerHeightStyle) }, { default: i(() => [c(m, { logicFlowInstance: w.value, "onUpdate:logicFlowInstance": l2[1] || (l2[1] = (e2) => w.value = e2), serviceTreeData: f.value, pageContext: s2.pageContext, onLoadTreeData: C, ref_key: "serviceFlowViewRef", ref: y }, null, 8, ["logicFlowInstance", "serviceTreeData", "pageContext"])]), _: 1 }, 8, ["style"])]), _: 1 });
|
|
33
33
|
};
|
|
34
34
|
} });
|
|
35
35
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, createElementBlock as s, openBlock as t, createElementVNode as p } from "vue";
|
|
2
2
|
import i from "../../../../assets/icon/end.svg.js";
|
|
3
|
-
const n = { style: { padding: "10px" } }, d = e({ __name: "index", props: { graphModel: Object, properties: Object }, setup: (e2) => (e3, d2) => (t(), s("div", n, d2[0] || (d2[0] = [p("div", { class: "node-content" }, [p("div", { style: { padding: "8px 27px", display: "flex", "align-items": "center" } }, [p("img", { src: i, style: { height: "28px" } }), p("span", { class: "content" }, "结束")])], -1)]))) });
|
|
3
|
+
const n = { style: { padding: "10px" } }, d = e({ __name: "index", props: { graphModel: Object, properties: Object }, setup: (e2) => (e3, d2) => (t(), s("div", n, [...d2[0] || (d2[0] = [p("div", { class: "node-content" }, [p("div", { style: { padding: "8px 27px", display: "flex", "align-items": "center" } }, [p("img", { src: i, style: { height: "28px" } }), p("span", { class: "content" }, "结束")])], -1)])])) });
|
|
4
4
|
export {
|
|
5
5
|
d as default
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, createElementBlock as t, openBlock as s, createElementVNode as p } from "vue";
|
|
2
2
|
import i from "../../../../assets/icon/start.png.js";
|
|
3
|
-
const n = { style: { padding: "10px" } }, a = e({ __name: "index", props: { graphModel: Object, properties: Object }, setup: (e2) => (e3, a2) => (s(), t("div", n, a2[0] || (a2[0] = [p("div", { class: "node-content" }, [p("div", { style: { padding: "8px 27px", display: "flex", "align-items": "center" } }, [p("img", { src: i, style: { height: "28px" } }), p("span", { class: "content" }, "开始")])], -1)]))) });
|
|
3
|
+
const n = { style: { padding: "10px" } }, a = e({ __name: "index", props: { graphModel: Object, properties: Object }, setup: (e2) => (e3, a2) => (s(), t("div", n, [...a2[0] || (a2[0] = [p("div", { class: "node-content" }, [p("div", { style: { padding: "8px 27px", display: "flex", "align-items": "center" } }, [p("img", { src: i, style: { height: "28px" } }), p("span", { class: "content" }, "开始")])], -1)])])) });
|
|
4
4
|
export {
|
|
5
5
|
a as default
|
|
6
6
|
};
|
|
@@ -41,12 +41,12 @@ const C = { style: { position: "absolute", right: "10px" } }, $ = { key: 0 }, E
|
|
|
41
41
|
};
|
|
42
42
|
return j2({}), (u2, c2) => {
|
|
43
43
|
const j3 = l, F2 = s, I = a, J = t, K = r, L = o, M = i, N = p, P = n, Q = e;
|
|
44
|
-
return f(), d(Q, { "label-width": "auto", "label-position": "left" }, { default: v(() => [y(z, { properties: m2.properties }, null, 8, ["properties"]), y(j3), y(J, { label: "数据源:" }, { default: v(() => [y(I, { modelValue: m2.properties.dataSource, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => m2.properties.dataSource = e2), "value-key": "name", onChange: B }, { default: v(() => [(f(true), b(h, null, k(R.value, (e2) => (f(), d(F2, { key: e2.code, label: e2.name, value: e2.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(L, { type: "info", size: "small", closable: false }, { title: v(() => [c2[3] || (c2[3] = g(" 排序条件 ")), w("span", C, [-1 === A.value.indexOf(m2.properties.dataSource) ? (f(), d(K, { key: 0, size: "small", type: "primary", onClick: H }, { default: v(() => c2[2] || (c2[2] = [g("添加")])), _: 1 })) : _("", true)])]), _: 1 }), y(P, { data: m2.properties.sorts, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: G, size: "small", border: "", "default-expand-all": "" }, { default: v(() => [y(M, { type: "index", width: "50", label: "序号" }), y(M, { prop: "name", label: "字段名" }, { default: v((e2) => [A.value.indexOf(m2.properties.dataSource) > -1 ? (f(), b("span", $, "item")) : e2.row.$editing ? (f(), d(I, { key: 2, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, onChange: (l2) => {
|
|
44
|
+
return f(), d(Q, { "label-width": "auto", "label-position": "left" }, { default: v(() => [y(z, { properties: m2.properties }, null, 8, ["properties"]), y(j3), y(J, { label: "数据源:" }, { default: v(() => [y(I, { modelValue: m2.properties.dataSource, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => m2.properties.dataSource = e2), "value-key": "name", onChange: B }, { default: v(() => [(f(true), b(h, null, k(R.value, (e2) => (f(), d(F2, { key: e2.code, label: e2.name, value: e2.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(L, { type: "info", size: "small", closable: false }, { title: v(() => [c2[3] || (c2[3] = g(" 排序条件 ", -1)), w("span", C, [-1 === A.value.indexOf(m2.properties.dataSource) ? (f(), d(K, { key: 0, size: "small", type: "primary", onClick: H }, { default: v(() => [...c2[2] || (c2[2] = [g("添加", -1)])]), _: 1 })) : _("", true)])]), _: 1 }), y(P, { data: m2.properties.sorts, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: G, size: "small", border: "", "default-expand-all": "" }, { default: v(() => [y(M, { type: "index", width: "50", label: "序号" }), y(M, { prop: "name", label: "字段名" }, { default: v((e2) => [A.value.indexOf(m2.properties.dataSource) > -1 ? (f(), b("span", $, "item")) : e2.row.$editing ? (f(), d(I, { key: 2, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, onChange: (l2) => {
|
|
45
45
|
return t2 = l2, (a2 = e2.row).alias = "", void q.value.forEach((e3) => {
|
|
46
46
|
e3.name === t2 && (a2.alias = e3.alias);
|
|
47
47
|
});
|
|
48
48
|
var t2, a2;
|
|
49
|
-
}, "value-key": "name", size: "small" }, { default: v(() => [(f(true), b(h, null, k(q.value, (e3) => (f(), d(F2, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _:
|
|
49
|
+
}, "value-key": "name", size: "small" }, { default: v(() => [(f(true), b(h, null, k(q.value, (e3) => (f(), d(F2, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (f(), b("span", E, x(e2.row.alias), 1))]), _: 1 }), y(M, { prop: "order", label: "排序方式" }, { default: v((e2) => [e2.row.$editing ? (f(), d(I, { key: 1, size: "small", modelValue: e2.row.order, "onUpdate:modelValue": (l2) => e2.row.order = l2, placeholder: "" }, { default: v(() => [y(F2, { label: "升序", value: "asc" }), y(F2, { label: "降序", value: "desc" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (f(), b("span", U, x(e2.row.order), 1))]), _: 1 }), y(M, { align: "right" }, { header: v(() => [y(N, { effect: "dark", content: "添加", placement: "top" }, { default: v(() => [-1 === A.value.indexOf(m2.properties.dataSource) ? (f(), d(K, { key: 0, type: "primary", size: "small", icon: V(S), circle: "", onClick: c2[1] || (c2[1] = (e2) => H()) }, null, 8, ["icon"])) : _("", true)]), _: 1 })]), default: v((e2) => [w("span", null, [y(N, { effect: "dark", content: "删除", placement: "top" }, { default: v(() => [-1 === A.value.indexOf(m2.properties.dataSource) ? (f(), d(K, { key: 0, type: "danger", size: "small", icon: V(O), circle: "", onClick: (l2) => {
|
|
50
50
|
return t2 = e2.$index, e2.row, void D.properties.sorts.splice(t2, 1);
|
|
51
51
|
var t2;
|
|
52
52
|
} }, null, 8, ["icon", "onClick"])) : _("", true)]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 });
|
|
@@ -92,7 +92,7 @@ const D = { style: { position: "absolute", right: "0" } }, E = { style: { displa
|
|
|
92
92
|
}
|
|
93
93
|
return J2({}), (i2, m2) => {
|
|
94
94
|
const u2 = o, j2 = s, h2 = t, w2 = l, _2 = a, N2 = p, q2 = r, I2 = e;
|
|
95
|
-
return d(), c("div", null, [y(I2, { "label-width": "100", "label-position": "left", size: "small" }, { default: b(() => [y(z, { properties: n2.properties }, null, 8, ["properties"]), y(h2, { label: "选择数据表" }, { default: b(() => [y(j2, { modelValue: n2.properties.dataTable, "onUpdate:modelValue": m2[1] || (m2[1] = (e2) => n2.properties.dataTable = e2), readonly: "", style: { width: "85%" } }, { append: b(() => [y(u2, { type: "default", icon: f(T), onClick: m2[0] || (m2[0] = (e2) => G.value = !G.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue"]), v("span", D, [y(u2, { type: "primary", icon: f(C), onClick: oe }, { default: b(() => m2[7] || (m2[7] = [g("预览sql")])), _: 1 }, 8, ["icon"])]), y(V, { visible: G.value, "onUpdate:visible": m2[2] || (m2[2] = (e2) => G.value = e2), modelValue: n2.properties.dataTable, "onUpdate:modelValue": m2[3] || (m2[3] = (e2) => n2.properties.dataTable = e2), systemCode: H.value, systemVersion: K.value, onSelect: $ }, null, 8, ["visible", "modelValue", "systemCode", "systemVersion"])]), _: 1 }), y(w2, { title: "统计维度", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(k, { properties: n2.properties, dataTableColumns: P.value, onChange: ee, style: { "margin-bottom": "10 px" } }, null, 8, ["properties", "dataTableColumns"]), y(_2, { style: { "margin-top": "10px", "margin-bottom": "10px", display: "block" }, type: "success" }, { default: b(() => m2[8] || (m2[8] = [g("说明:1.支持自定义日期格式,同SimpleDateFormat,yyyy表示年,MM表示2位月..."), v("br", null, null, -1), g(" 2.未指定新字段名时,输出字段名同选择的字段名"), v("br", null, null, -1), g(" 3.动态维度值有填写时需要匹配才会执行此分组")])), _: 1 }), y(w2, { title: "统计公式", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(F, { properties: n2.properties, dataTableColumns: L.value, onChange: ee }, null, 8, ["properties", "dataTableColumns"]), y(_2, { style: { "margin-top": "10px", "margin-bottom": "10px", display: "block" }, type: "success" }, { default: b(() => m2[9] || (m2[9] = [g("说明:1.支持自定义统计公式,如sum(字段1+字段2)")])), _: 1 }), y(w2, { title: "过滤条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(O, { properties: n2.properties, dataTableColumns: L.value }, null, 8, ["properties", "dataTableColumns"]), y(w2, { title: "排序条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(U, { properties: n2.properties, dataTableColumns: Q.value }, null, 8, ["properties", "dataTableColumns"]), y(w2, { title: "结果设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(h2, { label: "", "label-width": "0", style: { width: "100%" } }, { default: b(() => [y(q2, { modelValue: n2.properties.result.valueSetScope, "onUpdate:modelValue": m2[4] || (m2[4] = (e2) => n2.properties.result.valueSetScope = e2), onChange: Y, class: "ml-4" }, { default: b(() => [y(N2, { value: "first" }, { default: b(() => m2[10] || (m2[10] = [g("仅第一条")])), _: 1 }), y(N2, { value: "all" }, { default: b(() => m2[11] || (m2[11] = [g(" 全部 ")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(h2, { label: "设置到:", style: { width: "100%" } }, { default: b(() => [v("div", E, [y(f(x), { width: "260", paramTypes: ["service"], modelValue: n2.properties.result.setTo, "onUpdate:modelValue": m2[5] || (m2[5] = (e2) => n2.properties.result.setTo = e2), autoCreateFieldType: R.value }, null, 8, ["modelValue", "autoCreateFieldType"]), y(u2, { icon: f(S), type: "primary", onClick: te, style: { "margin-left": "10px" } }, { default: b(() => m2[12] || (m2[12] = [g(" 更新服务变量 ")])), _: 1 }, 8, ["icon"]), y(u2, { icon: f(S), type: "primary", onClick: se, style: { "margin-left": "10px" } }, { default: b(() => m2[13] || (m2[13] = [g(" 设置为返回值 ")])), _: 1 }, 8, ["icon"])])]), _: 1 })]), _: 1 }), y(f(M), { sql: X.value, "model-value": W.value, "onUpdate:modelValue": m2[6] || (m2[6] = (e2) => W.value = e2) }, null, 8, ["sql", "model-value"])]);
|
|
95
|
+
return d(), c("div", null, [y(I2, { "label-width": "100", "label-position": "left", size: "small" }, { default: b(() => [y(z, { properties: n2.properties }, null, 8, ["properties"]), y(h2, { label: "选择数据表" }, { default: b(() => [y(j2, { modelValue: n2.properties.dataTable, "onUpdate:modelValue": m2[1] || (m2[1] = (e2) => n2.properties.dataTable = e2), readonly: "", style: { width: "85%" } }, { append: b(() => [y(u2, { type: "default", icon: f(T), onClick: m2[0] || (m2[0] = (e2) => G.value = !G.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue"]), v("span", D, [y(u2, { type: "primary", icon: f(C), onClick: oe }, { default: b(() => [...m2[7] || (m2[7] = [g("预览sql", -1)])]), _: 1 }, 8, ["icon"])]), y(V, { visible: G.value, "onUpdate:visible": m2[2] || (m2[2] = (e2) => G.value = e2), modelValue: n2.properties.dataTable, "onUpdate:modelValue": m2[3] || (m2[3] = (e2) => n2.properties.dataTable = e2), systemCode: H.value, systemVersion: K.value, onSelect: $ }, null, 8, ["visible", "modelValue", "systemCode", "systemVersion"])]), _: 1 }), y(w2, { title: "统计维度", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(k, { properties: n2.properties, dataTableColumns: P.value, onChange: ee, style: { "margin-bottom": "10 px" } }, null, 8, ["properties", "dataTableColumns"]), y(_2, { style: { "margin-top": "10px", "margin-bottom": "10px", display: "block" }, type: "success" }, { default: b(() => [...m2[8] || (m2[8] = [g("说明:1.支持自定义日期格式,同SimpleDateFormat,yyyy表示年,MM表示2位月...", -1), v("br", null, null, -1), g(" 2.未指定新字段名时,输出字段名同选择的字段名", -1), v("br", null, null, -1), g(" 3.动态维度值有填写时需要匹配才会执行此分组", -1)])]), _: 1 }), y(w2, { title: "统计公式", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(F, { properties: n2.properties, dataTableColumns: L.value, onChange: ee }, null, 8, ["properties", "dataTableColumns"]), y(_2, { style: { "margin-top": "10px", "margin-bottom": "10px", display: "block" }, type: "success" }, { default: b(() => [...m2[9] || (m2[9] = [g("说明:1.支持自定义统计公式,如sum(字段1+字段2)", -1)])]), _: 1 }), y(w2, { title: "过滤条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(O, { properties: n2.properties, dataTableColumns: L.value }, null, 8, ["properties", "dataTableColumns"]), y(w2, { title: "排序条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(U, { properties: n2.properties, dataTableColumns: Q.value }, null, 8, ["properties", "dataTableColumns"]), y(w2, { title: "结果设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(h2, { label: "", "label-width": "0", style: { width: "100%" } }, { default: b(() => [y(q2, { modelValue: n2.properties.result.valueSetScope, "onUpdate:modelValue": m2[4] || (m2[4] = (e2) => n2.properties.result.valueSetScope = e2), onChange: Y, class: "ml-4" }, { default: b(() => [y(N2, { value: "first" }, { default: b(() => [...m2[10] || (m2[10] = [g("仅第一条", -1)])]), _: 1 }), y(N2, { value: "all" }, { default: b(() => [...m2[11] || (m2[11] = [g(" 全部 ", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(h2, { label: "设置到:", style: { width: "100%" } }, { default: b(() => [v("div", E, [y(f(x), { width: "260", paramTypes: ["service"], modelValue: n2.properties.result.setTo, "onUpdate:modelValue": m2[5] || (m2[5] = (e2) => n2.properties.result.setTo = e2), autoCreateFieldType: R.value }, null, 8, ["modelValue", "autoCreateFieldType"]), y(u2, { icon: f(S), type: "primary", onClick: te, style: { "margin-left": "10px" } }, { default: b(() => [...m2[12] || (m2[12] = [g(" 更新服务变量 ", -1)])]), _: 1 }, 8, ["icon"]), y(u2, { icon: f(S), type: "primary", onClick: se, style: { "margin-left": "10px" } }, { default: b(() => [...m2[13] || (m2[13] = [g(" 设置为返回值 ", -1)])]), _: 1 }, 8, ["icon"])])]), _: 1 })]), _: 1 }), y(f(M), { sql: X.value, "model-value": W.value, "onUpdate:modelValue": m2[6] || (m2[6] = (e2) => W.value = e2) }, null, 8, ["sql", "model-value"])]);
|
|
96
96
|
};
|
|
97
97
|
} });
|
|
98
98
|
export {
|
package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue.js
CHANGED
|
@@ -22,7 +22,7 @@ const k = { key: 0 }, C = { key: 0 }, T = { key: 0 }, _ = { key: 0 }, v = m({ __
|
|
|
22
22
|
};
|
|
23
23
|
return (v3, x) => {
|
|
24
24
|
const E = l, F = t, A = a, D = o, j = s, I = n, M = e;
|
|
25
|
-
return p(), i(M, { data: m2.properties.statistics, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: z, size: "small", border: "", "default-expand-all": "" }, { default: d(() => [r(E, { type: "index", width: "50", label: "序号", align: "center" }), r(E, { prop: "name", label: "字段名" }, { default: d((e2) => [e2.row.$editing ? (p(), i(A, { key: 1, onChange: (l2) => $(l2, e2.row), modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small", filterable: "" }, { default: d(() => [(p(true), u(y, null, w(m2.dataTableColumns, (e3) => (p(), i(F, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _:
|
|
25
|
+
return p(), i(M, { data: m2.properties.statistics, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: z, size: "small", border: "", "default-expand-all": "" }, { default: d(() => [r(E, { type: "index", width: "50", label: "序号", align: "center" }), r(E, { prop: "name", label: "字段名" }, { default: d((e2) => [e2.row.$editing ? (p(), i(A, { key: 1, onChange: (l2) => $(l2, e2.row), modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small", filterable: "" }, { default: d(() => [(p(true), u(y, null, w(m2.dataTableColumns, (e3) => (p(), i(F, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["onChange", "modelValue", "onUpdate:modelValue"])) : (p(), u("span", k, c(e2.row.name), 1))]), _: 1 }), r(E, { prop: "name", label: "日期格式化", width: "120" }, { default: d((e2) => [e2.row.$editing ? (p(), i(A, { key: 1, disabled: "DATE" !== e2.row.dataType && "TIME" !== e2.row.dataType, filterable: true, "allow-create": true, modelValue: e2.row.dateFormat, "onUpdate:modelValue": (l2) => e2.row.dateFormat = l2, placeholder: "", size: "small" }, { default: d(() => [(p(true), u(y, null, w(b(h), (e3) => (p(), i(F, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (p(), u("span", C, c(e2.row.dateFormat), 1))]), _: 1 }), r(E, { prop: "newName", label: "新字段名", width: "160" }, { default: d((e2) => [e2.row.$editing ? (p(), i(D, { key: 1, modelValue: e2.row.newName, "onUpdate:modelValue": (l2) => e2.row.newName = l2, size: "small", onChange: (l2) => U("change", e2.row) }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (p(), u("span", T, c(e2.row.newName), 1))]), _: 1 }), r(E, { prop: "dynamicValue", label: "动态维度值" }, { default: d((e2) => [e2.row.$editing ? (p(), i(D, { key: 1, modelValue: e2.row.dynamicValue, "onUpdate:modelValue": (l2) => e2.row.dynamicValue = l2, size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (p(), u("span", _, c(e2.row.dynamicValue), 1))]), _: 1 }), r(E, { align: "center", width: "80" }, { header: d(() => [r(I, { effect: "dark", content: "添加", placement: "top" }, { default: d(() => [r(j, { type: "primary", size: "small", icon: b(g), circle: "", onClick: x[0] || (x[0] = (e2) => (N.properties.statistics || (N.properties.statistics = []), void N.properties.statistics.push({ $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: d((e2) => [f("span", null, [r(I, { effect: "dark", content: "删除", placement: "top" }, { default: d(() => [r(j, { type: "danger", size: "small", icon: b(V), circle: "", onClick: (l2) => {
|
|
26
26
|
return a2 = e2.$index, e2.row, N.properties.statistics.splice(a2, 1), void $("", null);
|
|
27
27
|
var a2;
|
|
28
28
|
} }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]);
|
package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.js
CHANGED
|
@@ -20,11 +20,11 @@ const L = { key: 0 }, _ = { key: 0 }, h = { key: 0 }, g = { key: 0 }, C = { key:
|
|
|
20
20
|
}
|
|
21
21
|
return (A, B) => {
|
|
22
22
|
const z = l, R = o, $ = a, D = r, x = t, X = e;
|
|
23
|
-
return u(), n(X, { data: p2.properties.filterConditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowClick: U, size: "small", border: "", "default-expand-all": "" }, { default: d(() => [i(z, { type: "index", width: "50", label: "序号", align: "center" }), i(z, { prop: "leftBracket", label: "((((", width: "60" }, { default: d((e2) => [e2.row.$editing ? (u(), n($, { key: 1, size: "small", modelValue: e2.row.leftBracket, "onUpdate:modelValue": (l2) => e2.row.leftBracket = l2, placeholder: "", clearable: "" }, { default: d(() => [i(R, { label: "(", value: "(" }), i(R, { label: "((", value: "((" }), i(R, { label: "(((", value: "(((" }), i(R, { label: "((((", value: "((((" })]), _:
|
|
23
|
+
return u(), n(X, { data: p2.properties.filterConditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowClick: U, size: "small", border: "", "default-expand-all": "" }, { default: d(() => [i(z, { type: "index", width: "50", label: "序号", align: "center" }), i(z, { prop: "leftBracket", label: "((((", width: "60" }, { default: d((e2) => [e2.row.$editing ? (u(), n($, { key: 1, size: "small", modelValue: e2.row.leftBracket, "onUpdate:modelValue": (l2) => e2.row.leftBracket = l2, placeholder: "", clearable: "" }, { default: d(() => [i(R, { label: "(", value: "(" }), i(R, { label: "((", value: "((" }), i(R, { label: "(((", value: "(((" }), i(R, { label: "((((", value: "((((" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (u(), s("span", L, m(e2.row.leftBracket), 1))]), _: 1 }), i(z, { prop: "name", label: "字段名" }, { default: d((e2) => [e2.row.$editing ? (u(), n($, { key: 1, modelValue: e2.row.propName, "onUpdate:modelValue": (l2) => e2.row.propName = l2, placeholder: "", filterable: true, "allow-create": true, size: "small", onChange: (l2) => function(e3, l3) {
|
|
24
24
|
if (!l3 || !O2.dataTableColumns) return;
|
|
25
25
|
const a2 = O2.dataTableColumns.filter((e4) => e4.name == l3.propName || e4.dbColumnName == l3.propName), o2 = l3.dataType;
|
|
26
26
|
a2 && a2.length > 0 ? l3.dataType = a2[0].dataType : l3.dataType = "TEXT", o2 != l3.dataType && (l3.operator = null);
|
|
27
|
-
}(A.val, e2.row), title: e2.row.propName }, { default: d(() => [(u(true), s(T, null, c(p2.dataTableColumns, (e3) => (u(), n(R, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _:
|
|
27
|
+
}(A.val, e2.row), title: e2.row.propName }, { default: d(() => [(u(true), s(T, null, c(p2.dataTableColumns, (e3) => (u(), n(R, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onChange", "title"])) : (u(), s("span", _, m(e2.row.propName), 1))]), _: 1 }), i(z, { prop: "operator", label: "操作符", width: "100" }, { default: d((e2) => [e2.row.$editing ? (u(), n($, { key: 1, modelValue: e2.row.operator, "onUpdate:modelValue": (l2) => e2.row.operator = l2, placeholder: "", size: "small", title: e2.row.operator }, { default: d(() => [w(i(R, { label: "大于", value: "GT" }, null, 512), [[y, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i(R, { label: "小于", value: "LT" }, null, 512), [[y, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i(R, { label: "大于", value: "GT" }, null, 512), [[y, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), w(i(R, { label: "小于", value: "LT" }, null, 512), [[y, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), i(R, { label: "等于", value: "EQ" }), w(i(R, { label: "小于等于", value: "LET" }, null, 512), [[y, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i(R, { label: "大于等于", value: "GET" }, null, 512), [[y, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i(R, { label: "小于等于", value: "LET" }, null, 512), [[y, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), w(i(R, { label: "大于等于", value: "GET" }, null, 512), [[y, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), i(R, { label: "不等于", value: "NET" }), w(i(R, { label: "包含", value: "CONTAIN" }, null, 512), [[y, "TEXT" == e2.row.dataType]]), w(i(R, { label: "左匹配", value: "LEFT_LIKE" }, null, 512), [[y, "TEXT" == e2.row.dataType]]), w(i(R, { label: "右匹配", value: "RIGHT_LIKE" }, null, 512), [[y, "TEXT" == e2.row.dataType]]), w(i(R, { label: "不包含", value: "NOT_CONTAIN" }, null, 512), [[y, "TEXT" == e2.row.dataType]]), w(i(R, { label: "IN", value: "RANGE_QUERY" }, null, 512), [[y, "TEXT" == e2.row.dataType || "LONG" == e2.row.dataType || "INTEGER" == e2.row.dataType]]), i(R, { label: "等于Null", value: "IS_NULL" }), i(R, { label: "不等于Null", value: "IS_NOT_NULL" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])) : (u(), s("span", h, m(e2.row.operator), 1))]), _: 1 }), i(z, { prop: "propValue", label: "值" }, { default: d((e2) => [i(b(V), { showLabel: !e2.row.$editing, size: "small", paramTypes: ["system", "context", "service", "request", "fixed"], modelValue: e2.row.propValue, "onUpdate:modelValue": (l2) => e2.row.propValue = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 }), i(z, { prop: "rightBracket", label: "))))", width: "60" }, { default: d((e2) => [e2.row.$editing ? (u(), n($, { key: 1, size: "small", modelValue: e2.row.rightBracket, "onUpdate:modelValue": (l2) => e2.row.rightBracket = l2, placeholder: "", clearable: "" }, { default: d(() => [i(R, { label: ")", value: ")" }), i(R, { label: "))", value: "))" }), i(R, { label: ")))", value: ")))" }), i(R, { label: "))))", value: "))))" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (u(), s("span", g, m(e2.row.rightBracket), 1))]), _: 1 }), i(z, { prop: "joinSign", label: "连接符", width: "70" }, { default: d((e2) => [e2.row.$editing ? (u(), n($, { key: 1, modelValue: e2.row.logicOperator, "onUpdate:modelValue": (l2) => e2.row.logicOperator = l2, clearable: "", placeholder: "", size: "small" }, { default: d(() => [(u(true), s(T, null, c(b(k), (e3) => (u(), n(R, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (u(), s("span", C, m(e2.row.logicOperator), 1))]), _: 1 }), i(z, { prop: "variableIsNull", label: "变量为空时", width: "120" }, { default: d((e2) => [e2.row.$editing ? (u(), n($, { key: 1, modelValue: e2.row.variableIsNull, "onUpdate:modelValue": (l2) => e2.row.variableIsNull = l2, clearable: "", placeholder: "请选择" }, { default: d(() => [i(R, { label: "Null", value: "null" }), i(R, { label: "忽略(1=1)", value: "ignore" }), i(R, { label: "不符合(1<>1)", value: "notequal" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (u(), s("span", I, m(e2.row.variableIsNull), 1))]), _: 1 }), i(z, { align: "center", width: "60" }, { header: d(() => [i(x, { effect: "dark", content: "添加", placement: "top" }, { default: d(() => [i(D, { type: "primary", size: "small", icon: b(E), circle: "", onClick: B[0] || (B[0] = (e2) => (() => {
|
|
28
28
|
O2.properties.filterConditions || (O2.properties.filterConditions = []);
|
|
29
29
|
const e3 = { code: N() };
|
|
30
30
|
O2.properties.filterConditions.push(e3), G(e3);
|
|
@@ -14,7 +14,7 @@ const C = { key: 0 }, _ = { key: 0 }, v = { key: 0 }, g = r({ __name: "sort-cond
|
|
|
14
14
|
};
|
|
15
15
|
return (z, U) => {
|
|
16
16
|
const x = l, $ = t, S = o, T = n, j = a, A = s, D = e;
|
|
17
|
-
return i(), p(D, { data: r2.properties.sortConditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: h, size: "small", border: "", "default-expand-all": "" }, { default: m(() => [d(x, { type: "index", width: "50", label: "序号", align: "center" }), d(x, { prop: "name", label: "字段名" }, { default: m((e2) => [e2.row.$editing ? (i(), p(S, { key: 1, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small" }, { default: m(() => [(i(true), u(y, null, f(r2.dataTableColumns, (e3) => (i(), p($, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _:
|
|
17
|
+
return i(), p(D, { data: r2.properties.sortConditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowDblclick: h, size: "small", border: "", "default-expand-all": "" }, { default: m(() => [d(x, { type: "index", width: "50", label: "序号", align: "center" }), d(x, { prop: "name", label: "字段名" }, { default: m((e2) => [e2.row.$editing ? (i(), p(S, { key: 1, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small" }, { default: m(() => [(i(true), u(y, null, f(r2.dataTableColumns, (e3) => (i(), p($, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (i(), u("span", C, c(e2.row.name), 1))]), _: 1 }), d(x, { prop: "order", label: "排序方式" }, { default: m((e2) => [e2.row.$editing ? (i(), p(S, { key: 1, size: "small", modelValue: e2.row.order, "onUpdate:modelValue": (l2) => e2.row.order = l2, placeholder: "" }, { default: m(() => [d($, { label: "升序", value: "asc" }), d($, { label: "降序", value: "desc" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (i(), u("span", _, c(e2.row.order), 1))]), _: 1 }), d(x, { prop: "name", label: "动态排序值" }, { default: m((e2) => [e2.row.$editing ? (i(), p(T, { key: 1, modelValue: e2.row.dynamicSortValue, "onUpdate:modelValue": (l2) => e2.row.dynamicSortValue = l2, size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (i(), u("span", v, c(e2.row.dynamicSortValue), 1))]), _: 1 }), d(x, { align: "center", width: "90" }, { header: m(() => [d(A, { effect: "dark", content: "添加", placement: "top" }, { default: m(() => [d(j, { type: "primary", size: "small", icon: w(k), circle: "", onClick: U[0] || (U[0] = (e2) => (g2.properties.sortConditions || (g2.properties.sortConditions = []), void g2.properties.sortConditions.push({ $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: m((e2) => [b("span", null, [d(A, { effect: "dark", content: "删除", placement: "top" }, { default: m(() => [d(j, { type: "danger", size: "small", icon: w(V), circle: "", onClick: (l2) => {
|
|
18
18
|
return o2 = e2.$index, e2.row, void g2.properties.sortConditions.splice(o2, 1);
|
|
19
19
|
var o2;
|
|
20
20
|
} }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]);
|
package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.js
CHANGED
|
@@ -15,7 +15,7 @@ const V = { key: 0 }, v = { key: 0 }, C = { key: 0 }, _ = m({ __name: "statistic
|
|
|
15
15
|
};
|
|
16
16
|
return (_3, U) => {
|
|
17
17
|
const $ = l, x = t, j = a, T = o, A = n, D = s, O = e;
|
|
18
|
-
return p(), r(O, { data: m2.properties.statisticalFormulas, "row-key": "name", onRowDblclick: F, size: "small", border: "", "default-expand-all": "" }, { default: i(() => [u($, { type: "index", width: "50", label: "序号" }), u($, { prop: "name", label: "字段名" }, { default: i((e2) => [e2.row.$editing ? (p(), r(j, { key: 1, filterable: true, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small", onChange: U[0] || (U[0] = (e3) => z("change")) }, { default: i(() => [(p(true), c(f, null, y(m2.dataTableColumns, (e3) => (p(), r(x, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _:
|
|
18
|
+
return p(), r(O, { data: m2.properties.statisticalFormulas, "row-key": "name", onRowDblclick: F, size: "small", border: "", "default-expand-all": "" }, { default: i(() => [u($, { type: "index", width: "50", label: "序号" }), u($, { prop: "name", label: "字段名" }, { default: i((e2) => [e2.row.$editing ? (p(), r(j, { key: 1, filterable: true, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small", onChange: U[0] || (U[0] = (e3) => z("change")) }, { default: i(() => [(p(true), c(f, null, y(m2.dataTableColumns, (e3) => (p(), r(x, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (p(), c("span", V, d(e2.row.name), 1))]), _: 1 }), u($, { prop: "formula", label: "公式" }, { default: i((e2) => [e2.row.$editing ? (p(), r(j, { key: 1, filterable: true, "allow-create": true, modelValue: e2.row.formula, "onUpdate:modelValue": (l2) => e2.row.formula = l2, placeholder: "", size: "small", onChange: U[1] || (U[1] = (e3) => z("change")) }, { default: i(() => [(p(true), c(f, null, y(b(g), (e3) => (p(), r(x, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (p(), c("span", v, d(e2.row.formula), 1))]), _: 1 }), u($, { prop: "newName", label: "新字段名", width: "160" }, { default: i((e2) => [e2.row.$editing ? (p(), r(T, { key: 1, modelValue: e2.row.newName, "onUpdate:modelValue": (l2) => e2.row.newName = l2, placeholder: "", size: "small", onChange: U[2] || (U[2] = (e3) => z("change")) }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (p(), c("span", C, d(e2.row.newName), 1))]), _: 1 }), u($, { align: "center", width: "80" }, { header: i(() => [u(D, { effect: "dark", content: "添加", placement: "top" }, { default: i(() => [u(A, { type: "primary", size: "small", icon: b(k), circle: "", onClick: U[3] || (U[3] = (e2) => (N.properties.statisticalFormulas || (N.properties.statisticalFormulas = []), void N.properties.statisticalFormulas.push({ $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: i((e2) => [w("span", null, [u(D, { effect: "dark", content: "删除", placement: "top" }, { default: i(() => [u(A, { type: "danger", size: "small", icon: b(h), circle: "", onClick: (l2) => {
|
|
19
19
|
return a2 = e2.$index, e2.row, void N.properties.statisticalFormulas.splice(a2, 1);
|
|
20
20
|
var a2;
|
|
21
21
|
} }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]);
|
|
@@ -94,7 +94,7 @@ const R = { style: {} }, Y = { style: { padding: "8px 16px", margin: "10px 0px",
|
|
|
94
94
|
};
|
|
95
95
|
return $2({}), (v2, b2) => {
|
|
96
96
|
const C2 = t, T2 = l, q2 = a, E2 = s, G2 = o, W2 = n, X2 = i, B2 = p, J2 = u, N2 = r, Q2 = m, A2 = d, F2 = c, K2 = e;
|
|
97
|
-
return y(), h("div", R, [g(K2, { "label-width": "auto", "label-position": "left" }, { default: x(() => [g(H, { properties: f2.properties }, null, 8, ["properties"]), g(C2), g(T2), S("div", Y, [b2[5] || (b2[5] = S("span", { style: { color: "#909399", "font-size": "14px" } }, "SQL窗口", -1)), S("span", Z, [g(G2, { effect: "dark", content: "切换主题", placement: "top" }, { default: x(() => [g(E2, { class: "editorOption", onChange: ie, modelValue: ne.value.theme, "onUpdate:modelValue": b2[0] || (b2[0] = (e2) => ne.value.theme = e2), placeholder: "", size: "small", style: { width: "120px" } }, { default: x(() => [g(q2, { label: "默认", value: "default" }), g(q2, { label: "VScodeDark", value: "vscodeDark" }), g(q2, { label: "Dracula", value: "dracula" }), g(q2, { label: "GithubLight", value: "githubLight" }), g(q2, { label: "GithubDark", value: "githubDark" }), g(q2, { label: "Eclipse", value: "eclipse" }), g(q2, { label: "XcodeLight", value: "xcodeLight" }), g(q2, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), g(G2, { effect: "dark", content: "切换字体大小", placement: "top" }, { default: x(() => [g(E2, { class: "editorOption", modelValue: ne.value.fontSize, "onUpdate:modelValue": b2[1] || (b2[1] = (e2) => ne.value.fontSize = e2), placeholder: "", onChange: ie, size: "small", style: { width: "80px" } }, { default: x(() => [g(q2, { label: "12", value: 12 }), g(q2, { label: "14", value: 14 }), g(q2, { label: "16", value: 16 }), g(q2, { label: "18", value: 18 }), g(q2, { label: "20", value: 20 }), g(q2, { label: "22", value: 22 }), g(q2, { label: "24", value: 24 }), g(q2, { label: "26", value: 26 }), g(q2, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), g(G2, { effect: "dark", content: "打开搜索", placement: "top" }, { default: x(() => [g(W2, { class: "editorOption", onClick: de }, { default: x(() => [g(k(O))]), _: 1 })]), _: 1 }), g(G2, { effect: "dark", content: ae.value ? "退出全屏" : "全屏", placement: "top" }, { default: x(() => [g(W2, { style: { cursor: "pointer" }, onClick: ue }, { default: x(() => [g(k(j))]), _: 1 })]), _: 1 }, 8, ["content"]), g(W2, { style: { cursor: "pointer" }, onClick: fe, size: 25 }, { default: x(() => [g(k(U))]), _: 1 })]), b2[8] || (b2[8] = S("div", { style: { minHeight: "400px", maxHeight: "400px", backgroundColor: "#fff", color: "#333", outline: "1px dotted #212121" }, id: "cf-codemirror" }, null, -1)), _(g(N2, { modelValue: se.value, "onUpdate:modelValue": b2[2] || (b2[2] = (e2) => se.value = e2), type: "border-card", style: { "margin-top": "10px" } }, { default: x(() => [(y(true), h(V, null, z(oe.value, (e2, t2) => (y(), w(J2, { label: "结果" + (t2 + 1), name: "index" + t2 }, { default: x(() => [g(B2, { data: e2, style: { width: "100%" } }, { default: x(() => [(y(true), h(V, null, z(e2[0], (e3, t3) => (y(), w(X2, { prop: t3 + "", label: t3 }, null, 8, ["prop", "label"]))), 256))]), _: 2 }, 1032, ["data"])]), _: 2 }, 1032, ["label", "name"]))), 256))]), _: 1 }, 8, ["modelValue"]), [[D, oe.value && oe.value.lenght > 0]]), g(Q2, { title: "结果设置", type: "info", size: "small", closable: false, style: { margin: "20px 0" } }), g(T2, { label: "", "label-width": "0", style: { width: "100%" } }, { default: x(() => [g(F2, { modelValue: f2.properties.result.valueSetScope, "onUpdate:modelValue": b2[3] || (b2[3] = (e2) => f2.properties.result.valueSetScope = e2), class: "ml-4" }, { default: x(() => [g(A2, { value: "first" }, { default: x(() => b2[6] || (b2[6] = [L("仅第一条")])), _: 1 }), g(A2, { value: "all" }, { default: x(() => b2[7] || (b2[7] = [L(" 全部 ")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), g(T2, { label: "设置到:", style: { width: "100%" } }, { default: x(() => [g(k(I), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: f2.properties.result.setTo, "onUpdate:modelValue": b2[4] || (b2[4] = (e2) => f2.properties.result.setTo = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]);
|
|
97
|
+
return y(), h("div", R, [g(K2, { "label-width": "auto", "label-position": "left" }, { default: x(() => [g(H, { properties: f2.properties }, null, 8, ["properties"]), g(C2), g(T2), S("div", Y, [b2[5] || (b2[5] = S("span", { style: { color: "#909399", "font-size": "14px" } }, "SQL窗口", -1)), S("span", Z, [g(G2, { effect: "dark", content: "切换主题", placement: "top" }, { default: x(() => [g(E2, { class: "editorOption", onChange: ie, modelValue: ne.value.theme, "onUpdate:modelValue": b2[0] || (b2[0] = (e2) => ne.value.theme = e2), placeholder: "", size: "small", style: { width: "120px" } }, { default: x(() => [g(q2, { label: "默认", value: "default" }), g(q2, { label: "VScodeDark", value: "vscodeDark" }), g(q2, { label: "Dracula", value: "dracula" }), g(q2, { label: "GithubLight", value: "githubLight" }), g(q2, { label: "GithubDark", value: "githubDark" }), g(q2, { label: "Eclipse", value: "eclipse" }), g(q2, { label: "XcodeLight", value: "xcodeLight" }), g(q2, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), g(G2, { effect: "dark", content: "切换字体大小", placement: "top" }, { default: x(() => [g(E2, { class: "editorOption", modelValue: ne.value.fontSize, "onUpdate:modelValue": b2[1] || (b2[1] = (e2) => ne.value.fontSize = e2), placeholder: "", onChange: ie, size: "small", style: { width: "80px" } }, { default: x(() => [g(q2, { label: "12", value: 12 }), g(q2, { label: "14", value: 14 }), g(q2, { label: "16", value: 16 }), g(q2, { label: "18", value: 18 }), g(q2, { label: "20", value: 20 }), g(q2, { label: "22", value: 22 }), g(q2, { label: "24", value: 24 }), g(q2, { label: "26", value: 26 }), g(q2, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), g(G2, { effect: "dark", content: "打开搜索", placement: "top" }, { default: x(() => [g(W2, { class: "editorOption", onClick: de }, { default: x(() => [g(k(O))]), _: 1 })]), _: 1 }), g(G2, { effect: "dark", content: ae.value ? "退出全屏" : "全屏", placement: "top" }, { default: x(() => [g(W2, { style: { cursor: "pointer" }, onClick: ue }, { default: x(() => [g(k(j))]), _: 1 })]), _: 1 }, 8, ["content"]), g(W2, { style: { cursor: "pointer" }, onClick: fe, size: 25 }, { default: x(() => [g(k(U))]), _: 1 })]), b2[8] || (b2[8] = S("div", { style: { minHeight: "400px", maxHeight: "400px", backgroundColor: "#fff", color: "#333", outline: "1px dotted #212121" }, id: "cf-codemirror" }, null, -1)), _(g(N2, { modelValue: se.value, "onUpdate:modelValue": b2[2] || (b2[2] = (e2) => se.value = e2), type: "border-card", style: { "margin-top": "10px" } }, { default: x(() => [(y(true), h(V, null, z(oe.value, (e2, t2) => (y(), w(J2, { label: "结果" + (t2 + 1), name: "index" + t2 }, { default: x(() => [g(B2, { data: e2, style: { width: "100%" } }, { default: x(() => [(y(true), h(V, null, z(e2[0], (e3, t3) => (y(), w(X2, { prop: t3 + "", label: t3 }, null, 8, ["prop", "label"]))), 256))]), _: 2 }, 1032, ["data"])]), _: 2 }, 1032, ["label", "name"]))), 256))]), _: 1 }, 8, ["modelValue"]), [[D, oe.value && oe.value.lenght > 0]]), g(Q2, { title: "结果设置", type: "info", size: "small", closable: false, style: { margin: "20px 0" } }), g(T2, { label: "", "label-width": "0", style: { width: "100%" } }, { default: x(() => [g(F2, { modelValue: f2.properties.result.valueSetScope, "onUpdate:modelValue": b2[3] || (b2[3] = (e2) => f2.properties.result.valueSetScope = e2), class: "ml-4" }, { default: x(() => [g(A2, { value: "first" }, { default: x(() => [...b2[6] || (b2[6] = [L("仅第一条", -1)])]), _: 1 }), g(A2, { value: "all" }, { default: x(() => [...b2[7] || (b2[7] = [L(" 全部 ", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), g(T2, { label: "设置到:", style: { width: "100%" } }, { default: x(() => [g(k(I), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: f2.properties.result.setTo, "onUpdate:modelValue": b2[4] || (b2[4] = (e2) => f2.properties.result.setTo = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]);
|
|
98
98
|
};
|
|
99
99
|
} });
|
|
100
100
|
export {
|
|
@@ -69,7 +69,7 @@ const R = { style: { position: "absolute", right: "0" } }, G = { key: 0 }, H = {
|
|
|
69
69
|
e2.$editing && delete e2.$editing;
|
|
70
70
|
}), le.properties) }), (e2, f2) => {
|
|
71
71
|
const V2 = s, N2 = o, A2 = t, P2 = a, L2 = r, Z3 = i, ee2 = d, ce = n, be = u, ye = p, fe = c, Ve = m, ve = b, he = l;
|
|
72
|
-
return h(), v("div", null, [w(he, { "label-width": "auto", "label-position": "left", size: "small" }, { default: g(() => [w(M, { properties: y2.properties }, null, 8, ["properties"]), w(P2, { label: "" }, { label: g((e3) => [w(V2, { onChange: ue, modelValue: y2.properties.specifyDataTable, "onUpdate:modelValue": f2[0] || (f2[0] = (e4) => y2.properties.specifyDataTable = e4), label: "指定数据表", style: { width: "100px" } }, null, 8, ["modelValue"])]), default: g(() => [w(A2, { disabled: !y2.properties.specifyDataTable, modelValue: y2.properties.dataTable, "onUpdate:modelValue": f2[2] || (f2[2] = (e3) => y2.properties.dataTable = e3), readonly: "", style: { width: "85%" } }, { append: g(() => [w(N2, { type: "default", icon: _(D), onClick: f2[1] || (f2[1] = (e3) => oe.value = !oe.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["disabled", "modelValue"]), k("span", R, [w(N2, { type: "primary", icon: _(S), onClick: me }, { default: g(() => f2[19] || (f2[19] = [U("预览sql")])), _: 1 }, 8, ["icon"])]), w(F, { visible: oe.value, "onUpdate:visible": f2[3] || (f2[3] = (e3) => oe.value = e3), modelValue: y2.properties.dataTable, "onUpdate:modelValue": f2[4] || (f2[4] = (e3) => y2.properties.dataTable = e3), systemCode: re.value, systemVersion: pe.value, onSelect: de }, null, 8, ["visible", "modelValue", "systemCode", "systemVersion"])]), _: 1 }), w(L2, { title: "查询条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), w(ye, { data: y2.properties.search.conditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: ie, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [w(Z3, { type: "index", width: "50", label: "序" }), w(Z3, { prop: "name", label: "(((" }, { default: g((e3) => [e3.row.$editing ? (h(), x(ce, { key: 1, size: "small", modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l2) => e3.row.leftBracket = l2, placeholder: "" }, { default: g(() => [w(ee2, { label: "", value: "" }), w(ee2, { label: "(", value: "(" }), w(ee2, { label: "((", value: "((" }), w(ee2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), v("span", G, T(e3.row.leftBracket), 1))]), _: 1 }), w(Z3, { prop: "name", label: "字段名" }, { default: g((e3) => [e3.row.$editing ? (h(), x(ce, { key: 1, modelValue: e3.row.name, "onUpdate:modelValue": (l2) => e3.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(h(true), v(z, null, C(se.value, (e4) => (h(), x(ee2, { key: e4.name, label: e4.alias, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), v("span", H, T(e3.row.name), 1))]), _: 1 }), w(Z3, { prop: "type", label: "比较" }, { default: g((e3) => [e3.row.$editing ? (h(), x(ce, { key: 1, modelValue: e3.row.operator, "onUpdate:modelValue": (l2) => e3.row.operator = l2, placeholder: "", size: "small" }, { default: g(() => [(h(true), v(z, null, C(_(I), (e4) => (h(), x(ee2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), v("span", K, T(_(O)(e3.row.operator, _(I))), 1))]), _: 1 }), w(Z3, { prop: "value", label: "值", width: "150" }, { default: g((e3) => [w(_(B), { customInputTypes: ["data"], showLabel: !e3.row.$editing, size: "small", modelValue: e3.row.value, "onUpdate:modelValue": (l2) => e3.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 }), w(Z3, { prop: "rightBracket", label: ")))" }, { default: g((e3) => [e3.row.$editing ? (h(), x(ce, { key: 1, size: "small", modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l2) => e3.row.rightBracket = l2, placeholder: "" }, { default: g(() => [w(ee2, { label: "", value: "" }), w(ee2, { label: ")", value: ")" }), w(ee2, { label: "))", value: "))" }), w(ee2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), v("span", Q, T(e3.row.rightBracket), 1))]), _: 1 }), w(Z3, { prop: "logicOperator", label: "连接符" }, { default: g((e3) => [e3.row.$editing ? (h(), x(ce, { key: 1, modelValue: e3.row.logicOperator, "onUpdate:modelValue": (l2) => e3.row.logicOperator = l2, placeholder: "", size: "small" }, { default: g(() => [(h(true), v(z, null, C(_(q), (e4) => (h(), x(ee2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), v("span", W, T(_(O)(e3.row.logicOperator, _(q))), 1))]), _: 1 }), w(Z3, { align: "center" }, { header: g(() => [w(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [w(N2, { type: "primary", size: "small", icon: _(E), circle: "", onClick: f2[5] || (f2[5] = (e3) => (le.properties.search.conditions || (le.properties.search.conditions = []), void le.properties.search.conditions.push({ prop: "", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e3) => [k("span", null, [w(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [w(N2, { type: "danger", size: "small", icon: _(j), circle: "", onClick: (l2) => ne(e3.$index, e3.row, "search") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), w(P2, { label: "", style: { width: "100%" } }, { label: g((e3) => [w(V2, { modelValue: y2.properties.search.pageEnable, "onUpdate:modelValue": f2[6] || (f2[6] = (e4) => y2.properties.search.pageEnable = e4), label: "分页(offset)" }, null, 8, ["modelValue"])]), default: g(() => [y2.properties.search.pageEnable ? (h(), x(_(B), { key: 0, modelValue: y2.properties.search.page, "onUpdate:modelValue": f2[7] || (f2[7] = (e3) => y2.properties.search.page = e3), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页信息" }, null, 8, ["modelValue"])) : $("", true)]), _: 1 }), w(P2, { label: "", style: { width: "100%" } }, { label: g((e3) => [w(V2, { modelValue: y2.properties.search.limitEnable, "onUpdate:modelValue": f2[8] || (f2[8] = (e4) => y2.properties.search.limitEnable = e4), label: "限制数量(limit)" }, null, 8, ["modelValue"])]), default: g(() => [y2.properties.search.limitEnable ? (h(), x(_(B), { key: 0, modelValue: y2.properties.search.limit, "onUpdate:modelValue": f2[9] || (f2[9] = (e3) => y2.properties.search.limit = e3), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页大小" }, null, 8, ["modelValue"])) : $("", true)]), _: 1 }), w(P2, { label: "", style: { width: "100%" } }, { label: g((e3) => [w(V2, { modelValue: y2.properties.search.totalEnable, "onUpdate:modelValue": f2[10] || (f2[10] = (e4) => y2.properties.search.totalEnable = e4), label: "设置总条数到变量" }, null, 8, ["modelValue"])]), default: g(() => [y2.properties.search.totalEnable ? (h(), x(_(B), { key: 0, customInputTypes: ["data"], size: "small", modelValue: y2.properties.search.total, "onUpdate:modelValue": f2[11] || (f2[11] = (e3) => y2.properties.search.total = e3) }, null, 8, ["modelValue"])) : $("", true)]), _: 1 }), w(L2, { title: "排序设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), w(ye, { data: y2.properties.sort, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: ie, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [w(Z3, { type: "index", width: "50", label: "序" }), w(Z3, { prop: "name", label: "字段名" }, { default: g((e3) => [e3.row.$editing ? (h(), x(ce, { key: 1, modelValue: e3.row.name, "onUpdate:modelValue": (l2) => e3.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(h(true), v(z, null, C(se.value, (e4) => (h(), x(ee2, { key: e4.name, label: e4.alias, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), v("span", X, T(e3.row.name), 1))]), _: 1 }), w(Z3, { prop: "order", label: "排序方式" }, { default: g((e3) => [e3.row.$editing ? (h(), x(ce, { key: 1, size: "small", modelValue: e3.row.order, "onUpdate:modelValue": (l2) => e3.row.order = l2, placeholder: "" }, { default: g(() => [w(ee2, { label: "升序", value: "asc" }), w(ee2, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), v("span", Y, T(e3.row.order), 1))]), _: 1 }), w(Z3, { align: "center" }, { header: g(() => [w(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [w(N2, { type: "primary", size: "small", icon: _(E), circle: "", onClick: f2[12] || (f2[12] = (e3) => (le.properties.sort || (le.properties.sort = []), void le.properties.sort.push({ prop: "", order: "asc", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e3) => [k("span", null, [w(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [w(N2, { type: "danger", size: "small", icon: _(j), circle: "", onClick: (l2) => ne(e3.$index, e3.row, "sort") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), w(L2, { title: "查询结果设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), w(P2, { label: "", style: { width: "100%" } }, { default: g(() => [w(Ve, { modelValue: y2.properties.result.valueSetScope, "onUpdate:modelValue": f2[13] || (f2[13] = (e3) => y2.properties.result.valueSetScope = e3), class: "ml-4" }, { default: g(() => [w(fe, { value: "first" }, { default: g(() => f2[20] || (f2[20] = [U("仅第一条")])), _: 1 }), w(fe, { value: "all" }, { default: g(() => f2[21] || (f2[21] = [U(" 全部 ")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), w(P2, { label: "设置到:", style: { width: "100%" } }, { default: g(() => [w(_(B), { paramTypes: ["task", "data", "service"], size: "small", inputSize: "default", modelValue: y2.properties.result.setTo, "onUpdate:modelValue": f2[14] || (f2[14] = (e3) => y2.properties.result.setTo = e3) }, null, 8, ["modelValue"])]), _: 1 }), w(L2, { title: "对象不存在时", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), w(P2, { label: "", style: { width: "100%" } }, { default: g(() => [w(fe, { modelValue: y2.properties.noData.action, "onUpdate:modelValue": f2[15] || (f2[15] = (e3) => y2.properties.noData.action = e3), value: " ", style: { width: "150px" } }, { default: g(() => f2[22] || (f2[22] = [U(" 继续 ")])), _: 1 }, 8, ["modelValue"])]), _: 1 }), w(P2, { label: "", style: { width: "100%" } }, { label: g((e3) => [w(fe, { modelValue: y2.properties.noData.action, "onUpdate:modelValue": f2[16] || (f2[16] = (e4) => y2.properties.noData.action = e4), value: "throwException", label: "无数据时抛异常" }, null, 8, ["modelValue"])]), default: g(() => [w(A2, { disabled: "throwException" !== y2.properties.noData.action, modelValue: y2.properties.noData.exceptionMessage, "onUpdate:modelValue": f2[17] || (f2[17] = (e3) => y2.properties.noData.exceptionMessage = e3), placeholder: "自定义异常消息" }, null, 8, ["disabled", "modelValue"])]), _: 1 }), w(ve)]), _: 1 }), w(_(J), { sql: te.value, "model-value": ae.value, "onUpdate:modelValue": f2[18] || (f2[18] = (e3) => ae.value = e3) }, null, 8, ["sql", "model-value"])]);
|
|
72
|
+
return h(), v("div", null, [w(he, { "label-width": "auto", "label-position": "left", size: "small" }, { default: g(() => [w(M, { properties: y2.properties }, null, 8, ["properties"]), w(P2, { label: "" }, { label: g((e3) => [w(V2, { onChange: ue, modelValue: y2.properties.specifyDataTable, "onUpdate:modelValue": f2[0] || (f2[0] = (e4) => y2.properties.specifyDataTable = e4), label: "指定数据表", style: { width: "100px" } }, null, 8, ["modelValue"])]), default: g(() => [w(A2, { disabled: !y2.properties.specifyDataTable, modelValue: y2.properties.dataTable, "onUpdate:modelValue": f2[2] || (f2[2] = (e3) => y2.properties.dataTable = e3), readonly: "", style: { width: "85%" } }, { append: g(() => [w(N2, { type: "default", icon: _(D), onClick: f2[1] || (f2[1] = (e3) => oe.value = !oe.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["disabled", "modelValue"]), k("span", R, [w(N2, { type: "primary", icon: _(S), onClick: me }, { default: g(() => [...f2[19] || (f2[19] = [U("预览sql", -1)])]), _: 1 }, 8, ["icon"])]), w(F, { visible: oe.value, "onUpdate:visible": f2[3] || (f2[3] = (e3) => oe.value = e3), modelValue: y2.properties.dataTable, "onUpdate:modelValue": f2[4] || (f2[4] = (e3) => y2.properties.dataTable = e3), systemCode: re.value, systemVersion: pe.value, onSelect: de }, null, 8, ["visible", "modelValue", "systemCode", "systemVersion"])]), _: 1 }), w(L2, { title: "查询条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), w(ye, { data: y2.properties.search.conditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: ie, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [w(Z3, { type: "index", width: "50", label: "序" }), w(Z3, { prop: "name", label: "(((" }, { default: g((e3) => [e3.row.$editing ? (h(), x(ce, { key: 1, size: "small", modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l2) => e3.row.leftBracket = l2, placeholder: "" }, { default: g(() => [w(ee2, { label: "", value: "" }), w(ee2, { label: "(", value: "(" }), w(ee2, { label: "((", value: "((" }), w(ee2, { label: "(((", value: "(((" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (h(), v("span", G, T(e3.row.leftBracket), 1))]), _: 1 }), w(Z3, { prop: "name", label: "字段名" }, { default: g((e3) => [e3.row.$editing ? (h(), x(ce, { key: 1, modelValue: e3.row.name, "onUpdate:modelValue": (l2) => e3.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(h(true), v(z, null, C(se.value, (e4) => (h(), x(ee2, { key: e4.name, label: e4.alias, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (h(), v("span", H, T(e3.row.name), 1))]), _: 1 }), w(Z3, { prop: "type", label: "比较" }, { default: g((e3) => [e3.row.$editing ? (h(), x(ce, { key: 1, modelValue: e3.row.operator, "onUpdate:modelValue": (l2) => e3.row.operator = l2, placeholder: "", size: "small" }, { default: g(() => [(h(true), v(z, null, C(_(I), (e4) => (h(), x(ee2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (h(), v("span", K, T(_(O)(e3.row.operator, _(I))), 1))]), _: 1 }), w(Z3, { prop: "value", label: "值", width: "150" }, { default: g((e3) => [w(_(B), { customInputTypes: ["data"], showLabel: !e3.row.$editing, size: "small", modelValue: e3.row.value, "onUpdate:modelValue": (l2) => e3.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 }), w(Z3, { prop: "rightBracket", label: ")))" }, { default: g((e3) => [e3.row.$editing ? (h(), x(ce, { key: 1, size: "small", modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l2) => e3.row.rightBracket = l2, placeholder: "" }, { default: g(() => [w(ee2, { label: "", value: "" }), w(ee2, { label: ")", value: ")" }), w(ee2, { label: "))", value: "))" }), w(ee2, { label: ")))", value: ")))" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (h(), v("span", Q, T(e3.row.rightBracket), 1))]), _: 1 }), w(Z3, { prop: "logicOperator", label: "连接符" }, { default: g((e3) => [e3.row.$editing ? (h(), x(ce, { key: 1, modelValue: e3.row.logicOperator, "onUpdate:modelValue": (l2) => e3.row.logicOperator = l2, placeholder: "", size: "small" }, { default: g(() => [(h(true), v(z, null, C(_(q), (e4) => (h(), x(ee2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (h(), v("span", W, T(_(O)(e3.row.logicOperator, _(q))), 1))]), _: 1 }), w(Z3, { align: "center" }, { header: g(() => [w(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [w(N2, { type: "primary", size: "small", icon: _(E), circle: "", onClick: f2[5] || (f2[5] = (e3) => (le.properties.search.conditions || (le.properties.search.conditions = []), void le.properties.search.conditions.push({ prop: "", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e3) => [k("span", null, [w(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [w(N2, { type: "danger", size: "small", icon: _(j), circle: "", onClick: (l2) => ne(e3.$index, e3.row, "search") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), w(P2, { label: "", style: { width: "100%" } }, { label: g((e3) => [w(V2, { modelValue: y2.properties.search.pageEnable, "onUpdate:modelValue": f2[6] || (f2[6] = (e4) => y2.properties.search.pageEnable = e4), label: "分页(offset)" }, null, 8, ["modelValue"])]), default: g(() => [y2.properties.search.pageEnable ? (h(), x(_(B), { key: 0, modelValue: y2.properties.search.page, "onUpdate:modelValue": f2[7] || (f2[7] = (e3) => y2.properties.search.page = e3), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页信息" }, null, 8, ["modelValue"])) : $("", true)]), _: 1 }), w(P2, { label: "", style: { width: "100%" } }, { label: g((e3) => [w(V2, { modelValue: y2.properties.search.limitEnable, "onUpdate:modelValue": f2[8] || (f2[8] = (e4) => y2.properties.search.limitEnable = e4), label: "限制数量(limit)" }, null, 8, ["modelValue"])]), default: g(() => [y2.properties.search.limitEnable ? (h(), x(_(B), { key: 0, modelValue: y2.properties.search.limit, "onUpdate:modelValue": f2[9] || (f2[9] = (e3) => y2.properties.search.limit = e3), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页大小" }, null, 8, ["modelValue"])) : $("", true)]), _: 1 }), w(P2, { label: "", style: { width: "100%" } }, { label: g((e3) => [w(V2, { modelValue: y2.properties.search.totalEnable, "onUpdate:modelValue": f2[10] || (f2[10] = (e4) => y2.properties.search.totalEnable = e4), label: "设置总条数到变量" }, null, 8, ["modelValue"])]), default: g(() => [y2.properties.search.totalEnable ? (h(), x(_(B), { key: 0, customInputTypes: ["data"], size: "small", modelValue: y2.properties.search.total, "onUpdate:modelValue": f2[11] || (f2[11] = (e3) => y2.properties.search.total = e3) }, null, 8, ["modelValue"])) : $("", true)]), _: 1 }), w(L2, { title: "排序设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), w(ye, { data: y2.properties.sort, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: ie, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [w(Z3, { type: "index", width: "50", label: "序" }), w(Z3, { prop: "name", label: "字段名" }, { default: g((e3) => [e3.row.$editing ? (h(), x(ce, { key: 1, modelValue: e3.row.name, "onUpdate:modelValue": (l2) => e3.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(h(true), v(z, null, C(se.value, (e4) => (h(), x(ee2, { key: e4.name, label: e4.alias, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (h(), v("span", X, T(e3.row.name), 1))]), _: 1 }), w(Z3, { prop: "order", label: "排序方式" }, { default: g((e3) => [e3.row.$editing ? (h(), x(ce, { key: 1, size: "small", modelValue: e3.row.order, "onUpdate:modelValue": (l2) => e3.row.order = l2, placeholder: "" }, { default: g(() => [w(ee2, { label: "升序", value: "asc" }), w(ee2, { label: "降序", value: "desc" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])) : (h(), v("span", Y, T(e3.row.order), 1))]), _: 1 }), w(Z3, { align: "center" }, { header: g(() => [w(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [w(N2, { type: "primary", size: "small", icon: _(E), circle: "", onClick: f2[12] || (f2[12] = (e3) => (le.properties.sort || (le.properties.sort = []), void le.properties.sort.push({ prop: "", order: "asc", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e3) => [k("span", null, [w(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [w(N2, { type: "danger", size: "small", icon: _(j), circle: "", onClick: (l2) => ne(e3.$index, e3.row, "sort") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), w(L2, { title: "查询结果设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), w(P2, { label: "", style: { width: "100%" } }, { default: g(() => [w(Ve, { modelValue: y2.properties.result.valueSetScope, "onUpdate:modelValue": f2[13] || (f2[13] = (e3) => y2.properties.result.valueSetScope = e3), class: "ml-4" }, { default: g(() => [w(fe, { value: "first" }, { default: g(() => [...f2[20] || (f2[20] = [U("仅第一条", -1)])]), _: 1 }), w(fe, { value: "all" }, { default: g(() => [...f2[21] || (f2[21] = [U(" 全部 ", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), w(P2, { label: "设置到:", style: { width: "100%" } }, { default: g(() => [w(_(B), { paramTypes: ["task", "data", "service"], size: "small", inputSize: "default", modelValue: y2.properties.result.setTo, "onUpdate:modelValue": f2[14] || (f2[14] = (e3) => y2.properties.result.setTo = e3) }, null, 8, ["modelValue"])]), _: 1 }), w(L2, { title: "对象不存在时", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), w(P2, { label: "", style: { width: "100%" } }, { default: g(() => [w(fe, { modelValue: y2.properties.noData.action, "onUpdate:modelValue": f2[15] || (f2[15] = (e3) => y2.properties.noData.action = e3), value: " ", style: { width: "150px" } }, { default: g(() => [...f2[22] || (f2[22] = [U(" 继续 ", -1)])]), _: 1 }, 8, ["modelValue"])]), _: 1 }), w(P2, { label: "", style: { width: "100%" } }, { label: g((e3) => [w(fe, { modelValue: y2.properties.noData.action, "onUpdate:modelValue": f2[16] || (f2[16] = (e4) => y2.properties.noData.action = e4), value: "throwException", label: "无数据时抛异常" }, null, 8, ["modelValue"])]), default: g(() => [w(A2, { disabled: "throwException" !== y2.properties.noData.action, modelValue: y2.properties.noData.exceptionMessage, "onUpdate:modelValue": f2[17] || (f2[17] = (e3) => y2.properties.noData.exceptionMessage = e3), placeholder: "自定义异常消息" }, null, 8, ["disabled", "modelValue"])]), _: 1 }), w(ve)]), _: 1 }), w(_(J), { sql: te.value, "model-value": ae.value, "onUpdate:modelValue": f2[18] || (f2[18] = (e3) => ae.value = e3) }, null, 8, ["sql", "model-value"])]);
|
|
73
73
|
};
|
|
74
74
|
} });
|
|
75
75
|
export {
|
|
@@ -6,7 +6,7 @@ export interface NodeType<T extends any> {
|
|
|
6
6
|
icon: string | undefined;
|
|
7
7
|
[otherProp: string]: any;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
type NodeGroup = {
|
|
10
10
|
name: string;
|
|
11
11
|
label: string;
|
|
12
12
|
items: NodeType<any>[];
|
|
@@ -16,3 +16,4 @@ export declare const initNodes: NodeType<any>[];
|
|
|
16
16
|
export declare const serviceComponentGroups: NodeGroup[];
|
|
17
17
|
export declare function getServiceNodeByType(type: string): NodeType<any>;
|
|
18
18
|
export declare function getConfigByType(type: string): NodeType<any>;
|
|
19
|
+
export {};
|