service-flow-designer 2.2.4 → 2.2.12
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/_virtual/_plugin-vue_export-helper.js +1 -2
- package/dist/es/designer/common/components/database-select.vue.d.ts +5 -5
- package/dist/es/designer/common/components/database-select.vue.js +1 -1
- package/dist/es/designer/common/components/database-select.vue2.js +4 -4
- package/dist/es/designer/common/components/datatable-select.vue.d.ts +5 -5
- package/dist/es/designer/common/components/datatable-select.vue.js +2 -2
- package/dist/es/designer/common/components/datatable-select.vue2.js +7 -8
- package/dist/es/designer/common/components/file-upload.vue.d.ts +5 -5
- package/dist/es/designer/common/components/file-upload.vue.js +1 -1
- package/dist/es/designer/common/components/file-upload.vue2.js +4 -4
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue.d.ts +5 -5
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue.js +2 -2
- package/dist/es/designer/common/components/json-view/json-view.vue.d.ts +4 -4
- package/dist/es/designer/common/components/json-view/json-view.vue.js +19 -21
- package/dist/es/designer/common/components/node-base-config.vue.d.ts +4 -4
- package/dist/es/designer/common/components/node-base-config.vue.js +4 -4
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.d.ts +5 -5
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.js +2 -2
- package/dist/es/designer/common/components/sql-view/sql-view.vue.d.ts +4 -4
- package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +3 -4
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue.d.ts +6 -6
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue.js +1 -1
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +85 -95
- package/dist/es/designer/common/util/node-util.js +9 -21
- package/dist/es/designer/desginer-index.vue.d.ts +4 -4
- package/dist/es/designer/desginer-index.vue.js +1 -1
- package/dist/es/designer/desginer-index.vue2.js +4 -4
- package/dist/es/designer/flow/base/AbLogicNode.js +2 -6
- package/dist/es/designer/flow/base/AbLogicNodeModel.js +2 -6
- package/dist/es/designer/flow/base/AbLogicResizeNode.js +2 -6
- package/dist/es/designer/flow/base/AbLogicResizeNodeModel.js +1 -4
- package/dist/es/designer/flow/edge/CustomLine.js +4 -4
- package/dist/es/designer/service-components/base/custom-function/config.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/custom-function/config.vue.js +1 -1
- package/dist/es/designer/service-components/base/custom-function/config.vue2.js +45 -45
- package/dist/es/designer/service-components/base/custom-function/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/custom-function/index.vue.js +1 -1
- package/dist/es/designer/service-components/base/custom-function/index.vue2.js +6 -6
- package/dist/es/designer/service-components/base/end-node/index.js +2 -6
- package/dist/es/designer/service-components/base/end-node/index.vue.d.ts +3 -3
- package/dist/es/designer/service-components/base/end-node/index.vue.js +1 -1
- package/dist/es/designer/service-components/base/end-node/index.vue2.js +4 -4
- package/dist/es/designer/service-components/base/judge-condition/config.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/judge-condition/config.vue2.js +19 -21
- package/dist/es/designer/service-components/base/judge-condition/index.js +1 -4
- package/dist/es/designer/service-components/base/judge-condition/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/judge-condition/index.vue.js +1 -1
- package/dist/es/designer/service-components/base/judge-condition/index.vue2.js +7 -7
- package/dist/es/designer/service-components/base/loop-node/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/base/loop-node/config.vue.js +1 -1
- package/dist/es/designer/service-components/base/loop-node/config.vue2.js +4 -4
- package/dist/es/designer/service-components/base/loop-node/index.js +2 -3
- package/dist/es/designer/service-components/base/loop-node/index.vue.d.ts +3 -3
- package/dist/es/designer/service-components/base/notification/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/base/notification/config.vue2.js +13 -13
- package/dist/es/designer/service-components/base/notification/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/notification/index.vue.js +1 -1
- package/dist/es/designer/service-components/base/notification/index.vue2.js +6 -6
- package/dist/es/designer/service-components/base/notification/quill-example.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/notification/recipients-select.vue.d.ts +4 -4
- package/dist/es/designer/service-components/base/notification/recipients-select.vue.js +1 -1
- package/dist/es/designer/service-components/base/notification/recipients-select.vue2.js +4 -4
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue.js +4 -4
- package/dist/es/designer/service-components/base/start-node/index.js +2 -6
- package/dist/es/designer/service-components/base/start-node/index.vue.d.ts +3 -3
- package/dist/es/designer/service-components/base/start-node/index.vue.js +1 -1
- package/dist/es/designer/service-components/base/start-node/index.vue2.js +4 -4
- package/dist/es/designer/service-components/computation/clean/config.vue.d.ts +5 -5
- package/dist/es/designer/service-components/computation/clean/config.vue.js +1 -1
- package/dist/es/designer/service-components/computation/clean/config.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/clean/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/computation/clean/index.vue.js +1 -1
- package/dist/es/designer/service-components/computation/clean/index.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/connect/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/computation/connect/config.vue.js +1 -1
- package/dist/es/designer/service-components/computation/connect/config.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/connect/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/computation/connect/index.vue.js +1 -1
- package/dist/es/designer/service-components/computation/connect/index.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/sort/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/computation/sort/config.vue.js +1 -1
- package/dist/es/designer/service-components/computation/sort/config.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/sort/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/computation/sort/index.vue.js +1 -1
- package/dist/es/designer/service-components/computation/sort/index.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/split-joint/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/computation/split-joint/config.vue.js +1 -1
- package/dist/es/designer/service-components/computation/split-joint/config.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/split-joint/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/computation/split-joint/index.vue.js +1 -1
- package/dist/es/designer/service-components/computation/split-joint/index.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/statistics/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/computation/statistics/config.vue.js +1 -1
- package/dist/es/designer/service-components/computation/statistics/config.vue2.js +7 -7
- package/dist/es/designer/service-components/computation/statistics/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/computation/statistics/index.vue.js +1 -1
- package/dist/es/designer/service-components/computation/statistics/index.vue2.js +6 -6
- package/dist/es/designer/service-components/database/aggregate-query/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/database/aggregate-query/config.vue.js +1 -1
- package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +57 -59
- package/dist/es/designer/service-components/database/aggregate-query/dimension-additional.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue.js +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.d.ts +4 -4
- package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.js +16 -17
- package/dist/es/designer/service-components/database/aggregate-query/index.js +1 -4
- package/dist/es/designer/service-components/database/aggregate-query/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/index.vue.js +1 -1
- package/dist/es/designer/service-components/database/aggregate-query/index.vue2.js +13 -16
- package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue.d.ts +4 -4
- package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue.js +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.js +5 -5
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue.js +1 -1
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +54 -54
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue.js +1 -1
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue2.js +6 -6
- package/dist/es/designer/service-components/database/regular-query/config.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/regular-query/config.vue.js +1 -1
- package/dist/es/designer/service-components/database/regular-query/config.vue2.js +6 -7
- package/dist/es/designer/service-components/database/regular-query/index.js +1 -4
- package/dist/es/designer/service-components/database/regular-query/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/regular-query/index.vue.js +1 -1
- package/dist/es/designer/service-components/database/regular-query/index.vue2.js +13 -16
- package/dist/es/designer/service-components/index.js +2 -4
- package/dist/es/designer/service-components/service/common/cookie-data.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/common/cookie-data.vue.js +5 -5
- package/dist/es/designer/service-components/service/common/form-data.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/common/form-data.vue.js +5 -5
- package/dist/es/designer/service-components/service/common/header-data.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/common/header-data.vue.js +5 -5
- package/dist/es/designer/service-components/service/common/json-data.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/common/json-data.vue.js +1 -1
- package/dist/es/designer/service-components/service/common/json-data.vue2.js +5 -5
- package/dist/es/designer/service-components/service/common/param-config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/service/common/param-config.vue.js +1 -1
- package/dist/es/designer/service-components/service/common/param-config.vue2.js +14 -14
- package/dist/es/designer/service-components/service/common/query-params.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/common/query-params.vue.js +5 -5
- package/dist/es/designer/service-components/service/common/raw-data.vue.d.ts +6 -6
- package/dist/es/designer/service-components/service/common/raw-data.vue.js +2 -2
- package/dist/es/designer/service-components/service/common/xml-data.vue.d.ts +6 -6
- package/dist/es/designer/service-components/service/custom-bean/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +4 -4
- package/dist/es/designer/service-components/service/custom-bean/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/custom-bean/index.vue.js +1 -1
- package/dist/es/designer/service-components/service/custom-bean/index.vue2.js +6 -6
- package/dist/es/designer/service-components/service/http-service/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/service/http-service/config.vue.js +1 -1
- package/dist/es/designer/service-components/service/http-service/config.vue2.js +4 -4
- package/dist/es/designer/service-components/service/http-service/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/http-service/index.vue.js +1 -1
- package/dist/es/designer/service-components/service/http-service/index.vue2.js +6 -6
- package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +10 -12
- package/dist/es/designer/service-components/service/http-service/response-text-setting.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/http-service/response-text-setting.vue.js +4 -4
- package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +10 -12
- package/dist/es/designer/service-components/util/common-options.js +1 -2
- package/dist/es/designer/service-flow-view/flow-util.js +2 -5
- package/dist/es/designer/service-flow-view/service-flow-tool.vue.d.ts +5 -5
- package/dist/es/designer/service-flow-view/service-flow-tool.vue.js +2 -2
- package/dist/es/designer/service-flow-view/service-flow-tool.vue2.js +24 -24
- package/dist/es/designer/service-flow-view/service-node-config.vue.d.ts +6 -6
- package/dist/es/designer/service-flow-view/service-node-config.vue.js +1 -1
- package/dist/es/designer/service-flow-view/service-node-config.vue2.js +2 -2
- package/dist/es/designer/service-flow-view/service-params.vue.d.ts +4 -4
- package/dist/es/designer/service-flow-view/service-params.vue.js +10 -12
- package/dist/es/designer/service-flow-view/service-result.vue.d.ts +4 -4
- package/dist/es/designer/service-flow-view/service-result.vue.js +11 -13
- package/dist/es/designer/service-flow-view/service-test/request-params.vue.d.ts +4 -4
- package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +22 -24
- package/dist/es/designer/service-flow-view/service-test/service-test.vue.d.ts +5 -5
- package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +5 -6
- package/dist/es/designer/service-flow-view/service-update-log.vue.d.ts +6 -6
- package/dist/es/designer/service-flow-view/service-update-log.vue.js +2 -2
- package/dist/es/designer/service-flow-view/service-update-log.vue2.js +25 -27
- package/dist/es/designer/service-flow-view/view-index.vue.d.ts +6 -6
- package/dist/es/designer/service-flow-view/view-index.vue.js +1 -1
- package/dist/es/designer/service-flow-view/view-index.vue2.js +76 -79
- package/dist/es/designer/service-panel/component-panel.vue.d.ts +2 -2
- package/dist/es/designer/service-panel/component-panel.vue.js +1 -1
- package/dist/es/designer/service-panel/component-panel.vue2.js +4 -4
- package/dist/es/designer/service-panel/service-list.vue.d.ts +5 -5
- package/dist/es/designer/service-panel/service-list.vue.js +1 -1
- package/dist/es/designer/service-panel/service-list.vue2.js +62 -63
- package/dist/es/designer/service-panel/service-panel.vue.d.ts +5 -5
- package/dist/es/designer/service-panel/service-panel.vue.js +1 -1
- package/dist/es/designer/service-panel/service-panel.vue2.js +2 -2
- package/dist/es/stores/page-store.d.ts +11 -11
- package/dist/es/style.css +771 -771
- package/dist/es/utils/common-util.js +15 -30
- package/package.json +2 -2
- package/dist/es/designer/common/components/database-select.vue3.js +0 -1
- package/dist/es/designer/common/components/datatable-select.vue3.js +0 -1
- package/dist/es/designer/common/components/file-upload.vue3.js +0 -1
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue3.js +0 -1
- package/dist/es/designer/desginer-index.vue3.js +0 -1
- package/dist/es/designer/service-components/base/custom-function/config.vue3.js +0 -1
- package/dist/es/designer/service-components/base/custom-function/index.vue3.js +0 -1
- package/dist/es/designer/service-components/base/end-node/index.vue3.js +0 -1
- package/dist/es/designer/service-components/base/judge-condition/index.vue3.js +0 -1
- package/dist/es/designer/service-components/base/loop-node/config.vue3.js +0 -1
- package/dist/es/designer/service-components/base/loop-node/index.vue.js +0 -1
- package/dist/es/designer/service-components/base/notification/index.vue3.js +0 -1
- package/dist/es/designer/service-components/base/notification/recipients-select.vue3.js +0 -1
- package/dist/es/designer/service-components/base/start-node/index.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/clean/config.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/clean/index.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/connect/config.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/connect/index.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/sort/config.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/sort/index.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/split-joint/config.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/split-joint/index.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/statistics/config.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/statistics/index.vue3.js +0 -1
- package/dist/es/designer/service-components/database/aggregate-query/config.vue3.js +0 -1
- package/dist/es/designer/service-components/database/aggregate-query/index.vue3.js +0 -1
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue3.js +0 -1
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue3.js +0 -1
- package/dist/es/designer/service-components/database/regular-query/config.vue3.js +0 -1
- package/dist/es/designer/service-components/database/regular-query/index.vue3.js +0 -1
- package/dist/es/designer/service-components/service/common/json-data.vue3.js +0 -1
- package/dist/es/designer/service-components/service/common/param-config.vue3.js +0 -1
- package/dist/es/designer/service-components/service/custom-bean/index.vue3.js +0 -1
- package/dist/es/designer/service-components/service/http-service/config.vue3.js +0 -1
- package/dist/es/designer/service-components/service/http-service/index.vue3.js +0 -1
- package/dist/es/designer/service-flow-view/service-flow-tool.vue3.js +0 -1
- package/dist/es/designer/service-flow-view/service-node-config.vue3.js +0 -1
- package/dist/es/designer/service-flow-view/service-update-log.vue3.js +0 -1
- package/dist/es/designer/service-flow-view/view-index.vue3.js +0 -1
- package/dist/es/designer/service-panel/component-panel.vue3.js +0 -1
- package/dist/es/designer/service-panel/service-list.vue3.js +0 -1
- package/dist/es/designer/service-panel/service-panel.vue3.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElTable as e, ElTableColumn as l, ElSelect as o, ElOption as t, ElInput as n, ElTooltip as s, ElButton as a } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/table/style/css";
|
|
4
4
|
import "element-plus/es/components/tooltip/style/css";
|
|
@@ -7,14 +7,14 @@ import "element-plus/es/components/input/style/css";
|
|
|
7
7
|
import "element-plus/es/components/select/style/css";
|
|
8
8
|
import "element-plus/es/components/option/style/css";
|
|
9
9
|
import "element-plus/es/components/table-column/style/css";
|
|
10
|
-
import { defineComponent as r,
|
|
11
|
-
import {
|
|
10
|
+
import { defineComponent as r, createBlock as p, openBlock as i, withCtx as m, createVNode as d, createElementBlock as u, toDisplayString as c, Fragment as y, renderList as f, createElementVNode as b, unref as w } from "vue";
|
|
11
|
+
import { Minus as V, Plus as k } from "@element-plus/icons-vue";
|
|
12
12
|
const C = { key: 0 }, _ = { key: 0 }, v = { key: 0 }, g = r({ __name: "sort-conditions", props: { properties: { type: Object, default: () => ({ sortConditions: [] }) }, dataTableColumns: { type: Array, default: () => [] } }, setup(r2) {
|
|
13
13
|
const g2 = r2, h = () => {
|
|
14
14
|
};
|
|
15
15
|
return (z, U) => {
|
|
16
|
-
const x =
|
|
17
|
-
return
|
|
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))]), _: 2 }, 1032, ["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" })]), _: 2 }, 1032, ["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.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
properties: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
4
|
default: () => {
|
|
@@ -22,7 +22,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
22
22
|
};
|
|
23
23
|
default: () => any[];
|
|
24
24
|
};
|
|
25
|
-
}
|
|
25
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
26
|
change: (...args: any[]) => void;
|
|
27
27
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
28
28
|
properties: {
|
|
@@ -48,10 +48,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
48
48
|
};
|
|
49
49
|
default: () => any[];
|
|
50
50
|
};
|
|
51
|
-
}>> & {
|
|
51
|
+
}>> & Readonly<{
|
|
52
52
|
onChange?: (...args: any[]) => any;
|
|
53
|
-
}
|
|
53
|
+
}>, {
|
|
54
54
|
properties: Record<string, any>;
|
|
55
55
|
dataTableColumns: any[];
|
|
56
|
-
}, {}>;
|
|
56
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
57
57
|
export default _default;
|
package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElTable as e, ElTableColumn as l, ElSelect as a, ElOption as t, ElInput as o, ElTooltip as s, ElButton as n } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/table/style/css";
|
|
4
4
|
import "element-plus/es/components/tooltip/style/css";
|
|
@@ -7,15 +7,15 @@ import "element-plus/es/components/input/style/css";
|
|
|
7
7
|
import "element-plus/es/components/select/style/css";
|
|
8
8
|
import "element-plus/es/components/option/style/css";
|
|
9
9
|
import "element-plus/es/components/table-column/style/css";
|
|
10
|
-
import { defineComponent as m,
|
|
11
|
-
import {
|
|
10
|
+
import { defineComponent as m, createBlock as r, openBlock as p, withCtx as i, createVNode as u, createElementBlock as c, toDisplayString as d, Fragment as f, renderList as y, unref as b, createElementVNode as w } from "vue";
|
|
11
|
+
import { Minus as h, Plus as k } from "@element-plus/icons-vue";
|
|
12
12
|
import { formulas as g } from "../../util/common-options.js";
|
|
13
13
|
const V = { key: 0 }, v = { key: 0 }, C = { key: 0 }, _ = m({ __name: "statistical-formula", props: { properties: { type: Object, default: () => ({ statisticalFormulas: {} }) }, dataTableColumns: { type: Array, default: () => [] } }, emits: ["change"], setup(m2, { emit: _2 }) {
|
|
14
14
|
const N = m2, z = _2, F = () => {
|
|
15
15
|
};
|
|
16
16
|
return (_3, U) => {
|
|
17
|
-
const $ =
|
|
18
|
-
return
|
|
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))]), _: 2 }, 1032, ["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))]), _: 2 }, 1032, ["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"]);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
properties: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
4
|
default: () => {};
|
|
5
5
|
};
|
|
6
|
-
}
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
7
|
fullScreen: (...args: any[]) => void;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
9
|
properties: {
|
|
10
10
|
type: ObjectConstructor;
|
|
11
11
|
default: () => {};
|
|
12
12
|
};
|
|
13
|
-
}>> & {
|
|
13
|
+
}>> & Readonly<{
|
|
14
14
|
onFullScreen?: (...args: any[]) => any;
|
|
15
|
-
}
|
|
15
|
+
}>, {
|
|
16
16
|
properties: Record<string, any>;
|
|
17
|
-
}, {}>;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
18
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElForm as e, ElDivider as l, ElFormItem as t, ElInput as o, ElButton as a, ElCheckbox as s, ElTooltip as n, ElSelect as r, ElOption as u, ElIcon as p, ElTabs as i, ElTabPane as m, ElTable as c, ElTableColumn as d, ElAlert as f, ElRadioGroup as v, ElRadio as b } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/form/style/css";
|
|
4
4
|
import "element-plus/es/components/radio-group/style/css";
|
|
@@ -17,81 +17,81 @@ import "element-plus/es/components/button/style/css";
|
|
|
17
17
|
import "element-plus/es/components/input/style/css";
|
|
18
18
|
import "element-plus/es/components/checkbox/style/css";
|
|
19
19
|
import "element-plus/es/components/divider/style/css";
|
|
20
|
-
import { defineComponent as h, ref as y, onMounted as g,
|
|
21
|
-
import { useLocalStorage as
|
|
22
|
-
import
|
|
23
|
-
import { Search as
|
|
24
|
-
import { EditorView as
|
|
25
|
-
import { StandardSQL as
|
|
26
|
-
import { EditorState as
|
|
27
|
-
import { openSearchPanel as
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import { useServiceFlowStore as
|
|
31
|
-
import { eclipse as
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
function
|
|
38
|
-
true ===
|
|
20
|
+
import { defineComponent as h, ref as y, onMounted as g, createElementBlock as x, openBlock as V, createVNode as S, withCtx as _, createElementVNode as k, withDirectives as w, unref as z, Fragment as D, renderList as U, createBlock as L, vShow as C, createTextVNode as H } from "vue";
|
|
21
|
+
import { useLocalStorage as O } from "@vueuse/core";
|
|
22
|
+
import T from "../../../common/components/node-base-config.vue.js";
|
|
23
|
+
import { Search as j, FullScreen as E, CaretRight as G } from "@element-plus/icons-vue";
|
|
24
|
+
import { EditorView as W, basicSetup as X } from "codemirror";
|
|
25
|
+
import { StandardSQL as q, keywordCompletionSource as B, sql as I } from "@codemirror/lang-sql";
|
|
26
|
+
import { EditorState as J } from "@codemirror/state";
|
|
27
|
+
import { openSearchPanel as N } from "@codemirror/search";
|
|
28
|
+
import Q from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
29
|
+
import A from "../../../common/components/database-select.vue.js";
|
|
30
|
+
import { useServiceFlowStore as F } from "../../../../stores/page-store.js";
|
|
31
|
+
import { eclipse as K, githubDark as M, githubLight as P, dracula as R, vscodeDark as Y, xcodeDark as Z, xcodeLight as $ } from "@uiw/codemirror-themes-all";
|
|
32
|
+
const ee = { style: {} }, le = { style: { padding: "8px 16px", margin: "10px 0px", "background-color": "#f4f4f5" }, class: "pppp" }, te = { class: "editorTool" }, oe = h({ __name: "config", props: { properties: { type: Object, default: () => ({}) } }, emits: ["fullScreen"], setup(h2, { expose: oe2, emit: ae }) {
|
|
33
|
+
F();
|
|
34
|
+
const se = ae, ne = h2, re = y([]), ue = y("index0"), pe = y(false), ie = y(false), me = y({ theme: "default", fontSize: 14, searchOpen: false });
|
|
35
|
+
ne.properties.result || (ne.properties.result = {});
|
|
36
|
+
const ce = y({});
|
|
37
|
+
function de() {
|
|
38
|
+
true === ie.value ? (ie.value = false, se("fullScreen", { withHeader: true, drawerWidth: "50%" })) : (ie.value = true, se("fullScreen", { withHeader: false, drawerWidth: "100%" }));
|
|
39
39
|
}
|
|
40
40
|
g(() => {
|
|
41
|
-
let e2 =
|
|
41
|
+
let e2 = O("editorStyle", "").value;
|
|
42
42
|
if (e2) {
|
|
43
|
-
const
|
|
44
|
-
|
|
43
|
+
const l2 = JSON.parse(e2);
|
|
44
|
+
me.value.theme = l2.theme || "default", me.value.fontSize = l2.fontSize || 14;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
he();
|
|
47
47
|
});
|
|
48
|
-
const
|
|
49
|
-
function
|
|
50
|
-
|
|
48
|
+
const fe = q.language.data.of({ autocomplete: B });
|
|
49
|
+
function ve() {
|
|
50
|
+
O("editorStyle", me.value).value = me.value, ce.value && (ce.value && ce.value.destroy(), he());
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function be() {
|
|
53
53
|
const e2 = function() {
|
|
54
|
-
switch (
|
|
54
|
+
switch (me.value.theme) {
|
|
55
55
|
case "xcodeLight":
|
|
56
|
-
return
|
|
56
|
+
return $;
|
|
57
57
|
case "xcodeDark":
|
|
58
|
-
return
|
|
58
|
+
return Z;
|
|
59
59
|
case "vscodeDark":
|
|
60
|
-
return
|
|
60
|
+
return Y;
|
|
61
61
|
case "dracula":
|
|
62
|
-
return
|
|
62
|
+
return R;
|
|
63
63
|
case "githubLight":
|
|
64
|
-
return
|
|
64
|
+
return P;
|
|
65
65
|
case "githubDark":
|
|
66
|
-
return
|
|
66
|
+
return M;
|
|
67
67
|
case "eclipse":
|
|
68
|
-
return
|
|
68
|
+
return K;
|
|
69
69
|
}
|
|
70
|
-
return
|
|
71
|
-
}(),
|
|
72
|
-
return
|
|
73
|
-
|
|
70
|
+
return W.theme({});
|
|
71
|
+
}(), l2 = W.theme({ ".cm-content, .cm-gutter": { minHeight: "200px" }, "&": { height: "400px", maxHeight: "400px", fontSize: me.value.fontSize + "px" } });
|
|
72
|
+
return J.create({ doc: ne.properties.function, extensions: [J.tabSize.of(16), X, I(), fe, e2, l2, W.updateListener.of(function(e3) {
|
|
73
|
+
ne.properties.function = e3.state.doc.toString();
|
|
74
74
|
})] });
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
const e2 =
|
|
78
|
-
|
|
76
|
+
function he() {
|
|
77
|
+
const e2 = be();
|
|
78
|
+
ce.value = new W({ state: e2, parent: document.getElementById("cf-codemirror") });
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
if (
|
|
82
|
-
|
|
80
|
+
function ye() {
|
|
81
|
+
if (ce.value) {
|
|
82
|
+
ce.value.focus(), N(ce.value) && ce.value.update([]);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
},
|
|
88
|
-
|
|
85
|
+
const ge = () => {
|
|
86
|
+
ce.value.state.doc.toString(), re.value = [[{ id: "1", name: "name1" }, { id: "2", name: "name2" }], [{ id: "结果2-1", name: "name1" }, { id: "结果2-2", name: "name2" }], [{ id: "结果3-1", name: "name1" }, { id: "结果3-2", name: "name2" }]];
|
|
87
|
+
}, xe = (e2) => {
|
|
88
|
+
ne.properties.database = e2.database.name;
|
|
89
89
|
};
|
|
90
|
-
return
|
|
91
|
-
const
|
|
92
|
-
return
|
|
90
|
+
return oe2({}), (y2, g2) => {
|
|
91
|
+
const O2 = l, W2 = s, X2 = o, q2 = a, B2 = t, I2 = u, J2 = r, N2 = n, F2 = p, K2 = d, M2 = c, P2 = m, R2 = i, Y2 = f, Z2 = b, $2 = v, oe3 = e;
|
|
92
|
+
return V(), x("div", ee, [S(oe3, { "label-width": "auto", "label-position": "left" }, { default: _(() => [S(T, { properties: h2.properties }, null, 8, ["properties"]), S(O2), S(B2, null, { label: _((e2) => [S(W2, { modelValue: h2.properties.specifyDatabase, "onUpdate:modelValue": g2[0] || (g2[0] = (e3) => h2.properties.specifyDatabase = e3), label: "指定数据库" }, null, 8, ["modelValue"])]), default: _(() => [S(X2, { modelValue: h2.properties.database, "onUpdate:modelValue": g2[1] || (g2[1] = (e2) => h2.properties.database = e2), readonly: "", style: { width: "85%" } }, null, 8, ["modelValue"]), S(q2, { type: "primary", icon: z(j), onClick: g2[2] || (g2[2] = (e2) => pe.value = !pe.value), circle: "", disabled: !h2.properties.specifyDatabase, style: { position: "absolute", right: "0" } }, null, 8, ["icon", "disabled"]), S(A, { visible: pe.value, "onUpdate:visible": g2[3] || (g2[3] = (e2) => pe.value = e2), modelValue: h2.properties.dataTable, "onUpdate:modelValue": g2[4] || (g2[4] = (e2) => h2.properties.dataTable = e2), onSelect: xe }, null, 8, ["visible", "modelValue"])]), _: 1 }), k("div", le, [g2[10] || (g2[10] = k("span", { style: { color: "#909399", "font-size": "14px" } }, "SQL窗口", -1)), k("span", te, [S(N2, { effect: "dark", content: "切换主题", placement: "top" }, { default: _(() => [S(J2, { class: "editorOption", onChange: ve, modelValue: me.value.theme, "onUpdate:modelValue": g2[5] || (g2[5] = (e2) => me.value.theme = e2), placeholder: "", size: "small", style: { width: "120px" } }, { default: _(() => [S(I2, { label: "默认", value: "default" }), S(I2, { label: "VScodeDark", value: "vscodeDark" }), S(I2, { label: "Dracula", value: "dracula" }), S(I2, { label: "GithubLight", value: "githubLight" }), S(I2, { label: "GithubDark", value: "githubDark" }), S(I2, { label: "Eclipse", value: "eclipse" }), S(I2, { label: "XcodeLight", value: "xcodeLight" }), S(I2, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), S(N2, { effect: "dark", content: "切换字体大小", placement: "top" }, { default: _(() => [S(J2, { class: "editorOption", modelValue: me.value.fontSize, "onUpdate:modelValue": g2[6] || (g2[6] = (e2) => me.value.fontSize = e2), placeholder: "", onChange: ve, size: "small", style: { width: "80px" } }, { default: _(() => [S(I2, { label: "12", value: 12 }), S(I2, { label: "14", value: 14 }), S(I2, { label: "16", value: 16 }), S(I2, { label: "18", value: 18 }), S(I2, { label: "20", value: 20 }), S(I2, { label: "22", value: 22 }), S(I2, { label: "24", value: 24 }), S(I2, { label: "26", value: 26 }), S(I2, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), S(N2, { effect: "dark", content: "打开搜索", placement: "top" }, { default: _(() => [S(F2, { class: "editorOption", onClick: ye }, { default: _(() => [S(z(j))]), _: 1 })]), _: 1 }), S(N2, { effect: "dark", content: ie.value ? "退出全屏" : "全屏", placement: "top" }, { default: _(() => [S(F2, { style: { cursor: "pointer" }, onClick: de }, { default: _(() => [S(z(E))]), _: 1 })]), _: 1 }, 8, ["content"]), S(F2, { style: { cursor: "pointer" }, onClick: ge, size: 25 }, { default: _(() => [S(z(G))]), _: 1 })]), g2[13] || (g2[13] = k("div", { style: { minHeight: "400px", maxHeight: "400px", backgroundColor: "#fff", color: "#333", outline: "1px dotted #212121" }, id: "cf-codemirror" }, null, -1)), w(S(R2, { modelValue: ue.value, "onUpdate:modelValue": g2[7] || (g2[7] = (e2) => ue.value = e2), type: "border-card", style: { "margin-top": "10px" } }, { default: _(() => [(V(true), x(D, null, U(re.value, (e2, l2) => (V(), L(P2, { label: "结果" + (l2 + 1), name: "index" + l2 }, { default: _(() => [S(M2, { data: e2, style: { width: "100%" } }, { default: _(() => [(V(true), x(D, null, U(e2[0], (e3, l3) => (V(), L(K2, { prop: l3 + "", label: l3 }, null, 8, ["prop", "label"]))), 256))]), _: 2 }, 1032, ["data"])]), _: 2 }, 1032, ["label", "name"]))), 256))]), _: 1 }, 8, ["modelValue"]), [[C, re.value && re.value.lenght > 0]]), S(Y2, { title: "结果设置", type: "info", size: "small", closable: false, style: { margin: "20px 0" } }), S(B2, { label: "", "label-width": "0", style: { width: "100%" } }, { default: _(() => [S($2, { modelValue: h2.properties.result.valueSetScope, "onUpdate:modelValue": g2[8] || (g2[8] = (e2) => h2.properties.result.valueSetScope = e2), class: "ml-4" }, { default: _(() => [S(Z2, { value: "first" }, { default: _(() => g2[11] || (g2[11] = [H("仅第一条")])), _: 1 }), S(Z2, { value: "all" }, { default: _(() => g2[12] || (g2[12] = [H(" 全部 ")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), S(B2, { label: "设置到:", style: { width: "100%" } }, { default: _(() => [S(z(Q), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: h2.properties.result.setTo, "onUpdate:modelValue": g2[9] || (g2[9] = (e2) => h2.properties.result.setTo = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]);
|
|
93
93
|
};
|
|
94
94
|
} });
|
|
95
95
|
export {
|
|
96
|
-
|
|
96
|
+
oe as default
|
|
97
97
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
graphModel: ObjectConstructor;
|
|
3
3
|
properties: {
|
|
4
4
|
type: ObjectConstructor;
|
|
5
5
|
default: () => {};
|
|
6
6
|
};
|
|
7
|
-
}
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
8
|
btnClick: (...args: any[]) => void;
|
|
9
9
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
10
|
graphModel: ObjectConstructor;
|
|
@@ -12,9 +12,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
12
12
|
type: ObjectConstructor;
|
|
13
13
|
default: () => {};
|
|
14
14
|
};
|
|
15
|
-
}>> & {
|
|
15
|
+
}>> & Readonly<{
|
|
16
16
|
onBtnClick?: (...args: any[]) => any;
|
|
17
|
-
}
|
|
17
|
+
}>, {
|
|
18
18
|
properties: Record<string, any>;
|
|
19
|
-
}, {}>;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
20
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ElDivider as e } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/divider/style/css";
|
|
4
|
-
import { defineComponent as s,
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
return
|
|
4
|
+
import { defineComponent as s, createElementBlock as t, openBlock as o, createElementVNode as i, normalizeStyle as r, createVNode as l, toDisplayString as p } from "vue";
|
|
5
|
+
import n from "../../../../assets/icon/vardef-v.png.js";
|
|
6
|
+
const c = { class: "serviceflow-nodeContent" }, m = s({ __name: "index", props: { graphModel: Object, properties: { type: Object, default: () => ({}) } }, emits: ["btnClick"], setup: (s2, { emit: m2 }) => (m3, d) => {
|
|
7
|
+
const a = e;
|
|
8
|
+
return o(), t("div", null, [d[1] || (d[1] = i("img", { src: n, style: { height: "32px", position: "fixed", left: "0px", top: "0px" } }, null, -1)), i("div", { class: "serviceflow-nodeView", style: r({ backgroundColor: s2.properties.backgroundColor }) }, [d[0] || (d[0] = i("div", { class: "serviceflow-nodeTitle" }, "动态SQL", -1)), l(a), i("div", c, p(s2.properties.name), 1)], 4)]);
|
|
9
9
|
} });
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
m as default
|
|
12
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
properties: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
4
|
default: () => {
|
|
@@ -23,9 +23,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
23
23
|
type: ObjectConstructor;
|
|
24
24
|
default: () => {};
|
|
25
25
|
};
|
|
26
|
-
}
|
|
26
|
+
}>, {
|
|
27
27
|
onClose: () => Record<string, any>;
|
|
28
|
-
},
|
|
28
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
29
|
properties: {
|
|
30
30
|
type: ObjectConstructor;
|
|
31
31
|
default: () => {
|
|
@@ -50,11 +50,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
50
50
|
type: ObjectConstructor;
|
|
51
51
|
default: () => {};
|
|
52
52
|
};
|
|
53
|
-
}
|
|
53
|
+
}>> & Readonly<{}>, {
|
|
54
54
|
pageContext: Record<string, any>;
|
|
55
55
|
properties: Record<string, any>;
|
|
56
56
|
service: Record<string, any>;
|
|
57
57
|
logicFlowInstance: Record<string, any>;
|
|
58
58
|
currentNode: Record<string, any>;
|
|
59
|
-
}, {}>;
|
|
59
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
60
60
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElForm as e, ElFormItem as l, ElInput as t, ElButton as a, ElCheckbox as o, ElAlert as s, ElTable as r, ElTableColumn as p, ElSelect as i, ElOption as n, ElTooltip as d, ElRadioGroup as u, ElRadio as m, ElDivider as c } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/form/style/css";
|
|
4
4
|
import "element-plus/es/components/divider/style/css";
|
|
@@ -14,8 +14,8 @@ import "element-plus/es/components/form-item/style/css";
|
|
|
14
14
|
import "element-plus/es/components/input/style/css";
|
|
15
15
|
import "element-plus/es/components/button/style/css";
|
|
16
16
|
import "element-plus/es/components/checkbox/style/css";
|
|
17
|
-
import { defineComponent as b, ref as y, onMounted as f,
|
|
18
|
-
import { Search as $, View as D,
|
|
17
|
+
import { defineComponent as b, ref as y, onMounted as f, createElementBlock as h, openBlock as V, createVNode as v, withCtx as g, createElementVNode as w, unref as k, createTextVNode as _, createBlock as U, toDisplayString as x, Fragment as C, renderList as T, createCommentVNode as z } from "vue";
|
|
18
|
+
import { Search as $, View as D, Minus as j, Plus as E } from "@element-plus/icons-vue";
|
|
19
19
|
import { getLabel as O, sqlOperators as S, logicOperators as B } from "../../util/common-options.js";
|
|
20
20
|
import I from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
21
21
|
import { getBaseUrl as q } from "../../../../utils/common-util.js";
|
|
@@ -38,8 +38,7 @@ const L = { style: { position: "absolute", right: "0" } }, R = { key: 0 }, G = {
|
|
|
38
38
|
oe.value = e3;
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
|
-
} else
|
|
42
|
-
oe.value = Z.pageContext.modelFields;
|
|
41
|
+
} else oe.value = Z.pageContext.modelFields;
|
|
43
42
|
});
|
|
44
43
|
const pe = (e2, l2, t2) => {
|
|
45
44
|
e2.$editing = true;
|
|
@@ -66,8 +65,8 @@ const L = { style: { position: "absolute", right: "0" } }, R = { key: 0 }, G = {
|
|
|
66
65
|
}), ee.properties.sort && ee.properties.sort.forEach((e2) => {
|
|
67
66
|
e2.$editing && delete e2.$editing;
|
|
68
67
|
}), ee.properties) }), (y2, f2) => {
|
|
69
|
-
const q2 =
|
|
70
|
-
return h(), V("div", null, [v(ve, { "label-width": "auto", "label-position": "left", size: "small" }, { default: g(() => [v(F, { properties: b2.properties }, null, 8, ["properties"]), v(J2, { label: "" }, { label: g((e2) => [v(q2, { onChange: de, modelValue: b2.properties.specifyDataTable, "onUpdate:modelValue": f2[0] || (f2[0] = (e3) => b2.properties.specifyDataTable = e3), label: "指定数据表", style: { width: "100px" } }, null, 8, ["modelValue"])]), default: g(() => [v(A2, { disabled: !b2.properties.specifyDataTable, modelValue: b2.properties.dataTable, "onUpdate:modelValue": f2[2] || (f2[2] = (e2) => b2.properties.dataTable = e2), readonly: "", style: { width: "85%" } }, { append: g(() => [v(N2, { icon: w($), onClick: f2[1] || (f2[1] = (e2) => ae.value = !ae.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["disabled", "modelValue"]), k("span", L, [v(N2, { type: "primary", icon: w(D), onClick: ue }, { default: g(() => [_("预览sql")]), _: 1 }, 8, ["icon"])]), v(P, { visible: ae.value, "onUpdate:visible": f2[3] || (f2[3] = (e2) => ae.value = e2), modelValue: b2.properties.dataTable, "onUpdate:modelValue": f2[4] || (f2[4] = (e2) => b2.properties.dataTable = e2), systemCode: se.value, systemVersion: re.value, onSelect: ne }, null, 8, ["visible", "modelValue", "systemCode", "systemVersion"])]), _: 1 }), v(Y3, { title: "查询条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(ye, { data: b2.properties.search.conditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: pe, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [v(Z2, { type: "index", width: "50", label: "序" }), v(Z2, { prop: "name", label: "(((" }, { default: g((e2) => [e2.row.$editing ? (h(), x(ce, { key: 1, size: "small", modelValue: e2.row.leftBracket, "onUpdate:modelValue": (l2) => e2.row.leftBracket = l2, placeholder: "" }, { default: g(() => [v(me, { label: "", value: "" }), v(me, { label: "(", value: "(" }), v(me, { label: "((", value: "((" }), v(me, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), V("span", R, U(e2.row.leftBracket), 1))]), _: 1 }), v(Z2, { prop: "name", label: "字段名" }, { default: g((e2) => [e2.row.$editing ? (h(), x(ce, { key: 1, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(h(true), V(C, null, T(oe.value, (e3) => (h(), x(me, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), V("span", G, U(e2.row.name), 1))]), _: 1 }), v(Z2, { prop: "type", label: "比较" }, { default: g((e2) => [e2.row.$editing ? (h(), x(ce, { key: 1, modelValue: e2.row.operator, "onUpdate:modelValue": (l2) => e2.row.operator = l2, placeholder: "", size: "small" }, { default: g(() => [(h(true), V(C, null, T(w(S), (e3) => (h(), x(me, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), V("span", H, U(w(O)(e2.row.operator, w(S))), 1))]), _: 1 }), v(Z2, { prop: "value", label: "值", width: "150" }, { default: g((e2) => [v(w(I), { customInputTypes: ["data"], showLabel: !e2.row.$editing, size: "small", modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 }), v(Z2, { prop: "rightBracket", label: ")))" }, { default: g((e2) => [e2.row.$editing ? (h(), x(ce, { key: 1, size: "small", modelValue: e2.row.rightBracket, "onUpdate:modelValue": (l2) => e2.row.rightBracket = l2, placeholder: "" }, { default: g(() => [v(me, { label: "", value: "" }), v(me, { label: ")", value: ")" }), v(me, { label: "))", value: "))" }), v(me, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), V("span", K, U(e2.row.rightBracket), 1))]), _: 1 }), v(Z2, { prop: "logicOperator", label: "连接符" }, { default: g((e2) => [e2.row.$editing ? (h(), x(ce, { key: 1, modelValue: e2.row.logicOperator, "onUpdate:modelValue": (l2) => e2.row.logicOperator = l2, placeholder: "", size: "small" }, { default: g(() => [(h(true), V(C, null, T(w(B), (e3) => (h(), x(me, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), V("span", Q, U(w(O)(e2.row.logicOperator, w(B))), 1))]), _: 1 }), v(Z2, { align: "center" }, { header: g(() => [v(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [v(N2, { type: "primary", size: "small", icon: w(j), circle: "", onClick: f2[5] || (f2[5] = (e2) => (ee.properties.search.conditions || (ee.properties.search.conditions = []), void ee.properties.search.conditions.push({ prop: "", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e2) => [k("span", null, [v(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [v(N2, { type: "danger", size: "small", icon: w(E), circle: "", onClick: (l2) => ie(e2.$index, e2.row, "search") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.pageEnable, "onUpdate:modelValue": f2[6] || (f2[6] = (e3) => b2.properties.search.pageEnable = e3), label: "分页(offset)" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.pageEnable ? (h(), x(w(I), { key: 0, modelValue: b2.properties.search.page, "onUpdate:modelValue": f2[7] || (f2[7] = (e2) => b2.properties.search.page = e2), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页信息" }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.limitEnable, "onUpdate:modelValue": f2[8] || (f2[8] = (e3) => b2.properties.search.limitEnable = e3), label: "限制数量(limit)" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.limitEnable ? (h(), x(w(I), { key: 0, modelValue: b2.properties.search.limit, "onUpdate:modelValue": f2[9] || (f2[9] = (e2) => b2.properties.search.limit = e2), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页大小" }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.totalEnable, "onUpdate:modelValue": f2[10] || (f2[10] = (e3) => b2.properties.search.totalEnable = e3), label: "设置总条数到变量" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.totalEnable ? (h(), x(w(I), { key: 0, customInputTypes: ["data"], size: "small", modelValue: b2.properties.search.total, "onUpdate:modelValue": f2[11] || (f2[11] = (e2) => b2.properties.search.total = e2) }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(Y3, { title: "排序设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(ye, { data: b2.properties.sort, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: pe, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [v(Z2, { type: "index", width: "50", label: "序" }), v(Z2, { prop: "name", label: "字段名" }, { default: g((e2) => [e2.row.$editing ? (h(), x(ce, { key: 1, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(h(true), V(C, null, T(oe.value, (e3) => (h(), x(me, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), V("span", W, U(e2.row.name), 1))]), _: 1 }), v(Z2, { prop: "order", label: "排序方式" }, { default: g((e2) => [e2.row.$editing ? (h(), x(ce, { key: 1, size: "small", modelValue: e2.row.order, "onUpdate:modelValue": (l2) => e2.row.order = l2, placeholder: "" }, { default: g(() => [v(me, { label: "升序", value: "asc" }), v(me, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), V("span", X, U(e2.row.order), 1))]), _: 1 }), v(Z2, { align: "center" }, { header: g(() => [v(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [v(N2, { type: "primary", size: "small", icon: w(j), circle: "", onClick: f2[12] || (f2[12] = (e2) => (ee.properties.sort || (ee.properties.sort = []), void ee.properties.sort.push({ prop: "", order: "asc", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e2) => [k("span", null, [v(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [v(N2, { type: "danger", size: "small", icon: w(E), circle: "", onClick: (l2) => ie(e2.$index, e2.row, "sort") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), v(Y3, { title: "查询结果设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(J2, { label: "", style: { width: "100%" } }, { default: g(() => [v(he, { modelValue: b2.properties.result.valueSetScope, "onUpdate:modelValue": f2[13] || (f2[13] = (e2) => b2.properties.result.valueSetScope = e2), class: "ml-4" }, { default: g(() => [v(fe, { value: "first" }, { default: g(() => [_("仅第一条")]), _: 1 }), v(fe, { value: "all" }, { default: g(() => [_(" 全部 ")]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), v(J2, { label: "设置到:", style: { width: "100%" } }, { default: g(() => [v(w(I), { paramTypes: ["task", "data", "service"], size: "small", inputSize: "default", modelValue: b2.properties.result.setTo, "onUpdate:modelValue": f2[14] || (f2[14] = (e2) => b2.properties.result.setTo = e2) }, null, 8, ["modelValue"])]), _: 1 }), v(Y3, { title: "对象不存在时", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(J2, { label: "", style: { width: "100%" } }, { default: g(() => [v(fe, { modelValue: b2.properties.noData.action, "onUpdate:modelValue": f2[15] || (f2[15] = (e2) => b2.properties.noData.action = e2), value: " ", style: { width: "150px" } }, { default: g(() => [_(" 继续 ")]), _: 1 }, 8, ["modelValue"])]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(fe, { modelValue: b2.properties.noData.action, "onUpdate:modelValue": f2[16] || (f2[16] = (e3) => b2.properties.noData.action = e3), value: "throwException", label: "无数据时抛异常" }, null, 8, ["modelValue"])]), default: g(() => [v(A2, { disabled: "throwException" !== b2.properties.noData.action, modelValue: b2.properties.noData.exceptionMessage, "onUpdate:modelValue": f2[17] || (f2[17] = (e2) => b2.properties.noData.exceptionMessage = e2), placeholder: "自定义异常消息" }, null, 8, ["disabled", "modelValue"])]), _: 1 }), v(Ve)]), _: 1 }), v(w(M), { sql: te.value, "model-value": le.value, "onUpdate:modelValue": f2[18] || (f2[18] = (e2) => le.value = e2) }, null, 8, ["sql", "model-value"])]);
|
|
68
|
+
const q2 = o, N2 = a, A2 = t, J2 = l, Y3 = s, Z2 = p, me = n, ce = i, be = d, ye = r, fe = m, he = u, Ve = c, ve = e;
|
|
69
|
+
return V(), h("div", null, [v(ve, { "label-width": "auto", "label-position": "left", size: "small" }, { default: g(() => [v(F, { properties: b2.properties }, null, 8, ["properties"]), v(J2, { label: "" }, { label: g((e2) => [v(q2, { onChange: de, modelValue: b2.properties.specifyDataTable, "onUpdate:modelValue": f2[0] || (f2[0] = (e3) => b2.properties.specifyDataTable = e3), label: "指定数据表", style: { width: "100px" } }, null, 8, ["modelValue"])]), default: g(() => [v(A2, { disabled: !b2.properties.specifyDataTable, modelValue: b2.properties.dataTable, "onUpdate:modelValue": f2[2] || (f2[2] = (e2) => b2.properties.dataTable = e2), readonly: "", style: { width: "85%" } }, { append: g(() => [v(N2, { icon: k($), onClick: f2[1] || (f2[1] = (e2) => ae.value = !ae.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["disabled", "modelValue"]), w("span", L, [v(N2, { type: "primary", icon: k(D), onClick: ue }, { default: g(() => f2[19] || (f2[19] = [_("预览sql")])), _: 1 }, 8, ["icon"])]), v(P, { visible: ae.value, "onUpdate:visible": f2[3] || (f2[3] = (e2) => ae.value = e2), modelValue: b2.properties.dataTable, "onUpdate:modelValue": f2[4] || (f2[4] = (e2) => b2.properties.dataTable = e2), systemCode: se.value, systemVersion: re.value, onSelect: ne }, null, 8, ["visible", "modelValue", "systemCode", "systemVersion"])]), _: 1 }), v(Y3, { title: "查询条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(ye, { data: b2.properties.search.conditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: pe, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [v(Z2, { type: "index", width: "50", label: "序" }), v(Z2, { prop: "name", label: "(((" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, size: "small", modelValue: e2.row.leftBracket, "onUpdate:modelValue": (l2) => e2.row.leftBracket = l2, placeholder: "" }, { default: g(() => [v(me, { label: "", value: "" }), v(me, { label: "(", value: "(" }), v(me, { label: "((", value: "((" }), v(me, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", R, x(e2.row.leftBracket), 1))]), _: 1 }), v(Z2, { prop: "name", label: "字段名" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(oe.value, (e3) => (V(), U(me, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", G, x(e2.row.name), 1))]), _: 1 }), v(Z2, { prop: "type", label: "比较" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.operator, "onUpdate:modelValue": (l2) => e2.row.operator = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(k(S), (e3) => (V(), U(me, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", H, x(k(O)(e2.row.operator, k(S))), 1))]), _: 1 }), v(Z2, { prop: "value", label: "值", width: "150" }, { default: g((e2) => [v(k(I), { customInputTypes: ["data"], showLabel: !e2.row.$editing, size: "small", modelValue: e2.row.value, "onUpdate:modelValue": (l2) => e2.row.value = l2 }, null, 8, ["showLabel", "modelValue", "onUpdate:modelValue"])]), _: 1 }), v(Z2, { prop: "rightBracket", label: ")))" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, size: "small", modelValue: e2.row.rightBracket, "onUpdate:modelValue": (l2) => e2.row.rightBracket = l2, placeholder: "" }, { default: g(() => [v(me, { label: "", value: "" }), v(me, { label: ")", value: ")" }), v(me, { label: "))", value: "))" }), v(me, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", K, x(e2.row.rightBracket), 1))]), _: 1 }), v(Z2, { prop: "logicOperator", label: "连接符" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.logicOperator, "onUpdate:modelValue": (l2) => e2.row.logicOperator = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(k(B), (e3) => (V(), U(me, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", Q, x(k(O)(e2.row.logicOperator, k(B))), 1))]), _: 1 }), v(Z2, { align: "center" }, { header: g(() => [v(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [v(N2, { type: "primary", size: "small", icon: k(E), circle: "", onClick: f2[5] || (f2[5] = (e2) => (ee.properties.search.conditions || (ee.properties.search.conditions = []), void ee.properties.search.conditions.push({ prop: "", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e2) => [w("span", null, [v(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [v(N2, { type: "danger", size: "small", icon: k(j), circle: "", onClick: (l2) => ie(e2.$index, e2.row, "search") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.pageEnable, "onUpdate:modelValue": f2[6] || (f2[6] = (e3) => b2.properties.search.pageEnable = e3), label: "分页(offset)" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.pageEnable ? (V(), U(k(I), { key: 0, modelValue: b2.properties.search.page, "onUpdate:modelValue": f2[7] || (f2[7] = (e2) => b2.properties.search.page = e2), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页信息" }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.limitEnable, "onUpdate:modelValue": f2[8] || (f2[8] = (e3) => b2.properties.search.limitEnable = e3), label: "限制数量(limit)" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.limitEnable ? (V(), U(k(I), { key: 0, modelValue: b2.properties.search.limit, "onUpdate:modelValue": f2[9] || (f2[9] = (e2) => b2.properties.search.limit = e2), customInputTypes: ["data"], size: "small", placeholder: "从变量中获取分页大小" }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(q2, { modelValue: b2.properties.search.totalEnable, "onUpdate:modelValue": f2[10] || (f2[10] = (e3) => b2.properties.search.totalEnable = e3), label: "设置总条数到变量" }, null, 8, ["modelValue"])]), default: g(() => [b2.properties.search.totalEnable ? (V(), U(k(I), { key: 0, customInputTypes: ["data"], size: "small", modelValue: b2.properties.search.total, "onUpdate:modelValue": f2[11] || (f2[11] = (e2) => b2.properties.search.total = e2) }, null, 8, ["modelValue"])) : z("", true)]), _: 1 }), v(Y3, { title: "排序设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(ye, { data: b2.properties.sort, style: { width: "100%", "margin-top": "20px", "margin-bottom": "20px" }, "row-key": "code", onRowDblclick: pe, size: "small", border: "", "tree-props": { children: "conditions" }, "default-expand-all": "" }, { default: g(() => [v(Z2, { type: "index", width: "50", label: "序" }), v(Z2, { prop: "name", label: "字段名" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, modelValue: e2.row.name, "onUpdate:modelValue": (l2) => e2.row.name = l2, placeholder: "", size: "small" }, { default: g(() => [(V(true), h(C, null, T(oe.value, (e3) => (V(), U(me, { key: e3.name, label: e3.alias, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", W, x(e2.row.name), 1))]), _: 1 }), v(Z2, { prop: "order", label: "排序方式" }, { default: g((e2) => [e2.row.$editing ? (V(), U(ce, { key: 1, size: "small", modelValue: e2.row.order, "onUpdate:modelValue": (l2) => e2.row.order = l2, placeholder: "" }, { default: g(() => [v(me, { label: "升序", value: "asc" }), v(me, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (V(), h("span", X, x(e2.row.order), 1))]), _: 1 }), v(Z2, { align: "center" }, { header: g(() => [v(be, { effect: "dark", content: "添加", placement: "top" }, { default: g(() => [v(N2, { type: "primary", size: "small", icon: k(E), circle: "", onClick: f2[12] || (f2[12] = (e2) => (ee.properties.sort || (ee.properties.sort = []), void ee.properties.sort.push({ prop: "", order: "asc", $editing: true }))) }, null, 8, ["icon"])]), _: 1 })]), default: g((e2) => [w("span", null, [v(be, { effect: "dark", content: "删除", placement: "top" }, { default: g(() => [v(N2, { type: "danger", size: "small", icon: k(j), circle: "", onClick: (l2) => ie(e2.$index, e2.row, "sort") }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]), v(Y3, { title: "查询结果设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(J2, { label: "", style: { width: "100%" } }, { default: g(() => [v(he, { modelValue: b2.properties.result.valueSetScope, "onUpdate:modelValue": f2[13] || (f2[13] = (e2) => b2.properties.result.valueSetScope = e2), class: "ml-4" }, { default: g(() => [v(fe, { value: "first" }, { default: g(() => f2[20] || (f2[20] = [_("仅第一条")])), _: 1 }), v(fe, { value: "all" }, { default: g(() => f2[21] || (f2[21] = [_(" 全部 ")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), v(J2, { label: "设置到:", style: { width: "100%" } }, { default: g(() => [v(k(I), { paramTypes: ["task", "data", "service"], size: "small", inputSize: "default", modelValue: b2.properties.result.setTo, "onUpdate:modelValue": f2[14] || (f2[14] = (e2) => b2.properties.result.setTo = e2) }, null, 8, ["modelValue"])]), _: 1 }), v(Y3, { title: "对象不存在时", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), v(J2, { label: "", style: { width: "100%" } }, { default: g(() => [v(fe, { modelValue: b2.properties.noData.action, "onUpdate:modelValue": f2[15] || (f2[15] = (e2) => b2.properties.noData.action = e2), value: " ", style: { width: "150px" } }, { default: g(() => f2[22] || (f2[22] = [_(" 继续 ")])), _: 1 }, 8, ["modelValue"])]), _: 1 }), v(J2, { label: "", style: { width: "100%" } }, { label: g((e2) => [v(fe, { modelValue: b2.properties.noData.action, "onUpdate:modelValue": f2[16] || (f2[16] = (e3) => b2.properties.noData.action = e3), value: "throwException", label: "无数据时抛异常" }, null, 8, ["modelValue"])]), default: g(() => [v(A2, { disabled: "throwException" !== b2.properties.noData.action, modelValue: b2.properties.noData.exceptionMessage, "onUpdate:modelValue": f2[17] || (f2[17] = (e2) => b2.properties.noData.exceptionMessage = e2), placeholder: "自定义异常消息" }, null, 8, ["disabled", "modelValue"])]), _: 1 }), v(Ve)]), _: 1 }), v(k(M), { sql: te.value, "model-value": le.value, "onUpdate:modelValue": f2[18] || (f2[18] = (e2) => le.value = e2) }, null, 8, ["sql", "model-value"])]);
|
|
71
70
|
};
|
|
72
71
|
} });
|
|
73
72
|
export {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) =>
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
4
|
import e from "../../../flow/base/AbLogicNode.js";
|
|
8
5
|
import o from "../../../flow/base/AbLogicNodeModel.js";
|
|
9
6
|
import "../../../flow/base/AbLogicResizeNodeModel.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
graphModel: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
4
|
default: () => {};
|
|
@@ -11,7 +11,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
11
11
|
type: ObjectConstructor;
|
|
12
12
|
default: () => {};
|
|
13
13
|
};
|
|
14
|
-
}
|
|
14
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
15
|
btnClick: (...args: any[]) => void;
|
|
16
16
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
17
|
graphModel: {
|
|
@@ -26,11 +26,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
26
26
|
type: ObjectConstructor;
|
|
27
27
|
default: () => {};
|
|
28
28
|
};
|
|
29
|
-
}>> & {
|
|
29
|
+
}>> & Readonly<{
|
|
30
30
|
onBtnClick?: (...args: any[]) => any;
|
|
31
|
-
}
|
|
31
|
+
}>, {
|
|
32
32
|
properties: Record<string, any>;
|
|
33
33
|
graphModel: Record<string, any>;
|
|
34
34
|
model: Record<string, any>;
|
|
35
|
-
}, {}>;
|
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
36
36
|
export default _default;
|