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
|
-
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,7 +23,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
23
23
|
type: ObjectConstructor;
|
|
24
24
|
default: () => {};
|
|
25
25
|
};
|
|
26
|
-
}
|
|
26
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
27
27
|
properties: {
|
|
28
28
|
type: ObjectConstructor;
|
|
29
29
|
default: () => {
|
|
@@ -48,11 +48,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
48
48
|
type: ObjectConstructor;
|
|
49
49
|
default: () => {};
|
|
50
50
|
};
|
|
51
|
-
}
|
|
51
|
+
}>> & Readonly<{}>, {
|
|
52
52
|
pageContext: Record<string, any>;
|
|
53
53
|
properties: Record<string, any>;
|
|
54
54
|
service: Record<string, any>;
|
|
55
55
|
logicFlowInstance: Record<string, any>;
|
|
56
56
|
currentNode: Record<string, any>;
|
|
57
|
-
}, {}>;
|
|
57
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
58
58
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElForm as e, ElFormItem as t, ElInput as s, ElButton as o, ElAlert as l, ElText as a, ElRadioGroup as r, ElRadio as p, ElMessage as i } 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";
|
|
@@ -8,93 +8,91 @@ import "element-plus/es/components/alert/style/css";
|
|
|
8
8
|
import "element-plus/es/components/form-item/style/css";
|
|
9
9
|
import "element-plus/es/components/input/style/css";
|
|
10
10
|
import "element-plus/es/components/button/style/css";
|
|
11
|
-
import { defineComponent as n, ref as m, onMounted as u,
|
|
12
|
-
import { Search as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { useServiceFlowStore as
|
|
16
|
-
import { queryTableFields as
|
|
17
|
-
import
|
|
11
|
+
import { defineComponent as n, ref as m, onMounted as u, createElementBlock as c, openBlock as d, createVNode as y, withCtx as v, createElementVNode as b, unref as f, createTextVNode as g } from "vue";
|
|
12
|
+
import { Search as T, View as C, Check as S } from "@element-plus/icons-vue";
|
|
13
|
+
import x from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
14
|
+
import j from "../../../common/components/datatable-select.vue.js";
|
|
15
|
+
import { useServiceFlowStore as h } from "../../../../stores/page-store.js";
|
|
16
|
+
import { queryTableFields as w, updateServiceParams as V, updateServiceReturns as _, getBaseUrl as N } from "../../../../utils/common-util.js";
|
|
17
|
+
import q from "agilebuilder-ui/src/utils/request";
|
|
18
18
|
import "uuid";
|
|
19
|
-
import
|
|
19
|
+
import k from "./dimension-statistical.vue.js";
|
|
20
20
|
import "element-plus/es/components/table/style/css";
|
|
21
21
|
import "element-plus/es/components/tooltip/style/css";
|
|
22
22
|
import "element-plus/es/components/select/style/css";
|
|
23
23
|
import "element-plus/es/components/option/style/css";
|
|
24
24
|
import "element-plus/es/components/table-column/style/css";
|
|
25
25
|
import "../../util/common-options.js";
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import { getNodeRuntimeObject as
|
|
26
|
+
import F from "./statistical-formula.vue.js";
|
|
27
|
+
import O from "./filter-conditions.vue.js";
|
|
28
|
+
import U from "./sort-conditions.vue.js";
|
|
29
|
+
import z from "../../../common/components/node-base-config.vue.js";
|
|
30
|
+
import { getNodeRuntimeObject as I } from "../../../service-flow-view/flow-util.js";
|
|
31
31
|
import "codemirror";
|
|
32
32
|
import "@codemirror/lang-sql";
|
|
33
33
|
import "@codemirror/state";
|
|
34
|
-
import
|
|
34
|
+
import M from "../../../common/components/sql-view/sql-view-dialog.vue.js";
|
|
35
35
|
import "element-plus/es/components/message/style/css";
|
|
36
|
-
const
|
|
36
|
+
const D = { style: { position: "absolute", right: "0" } }, E = { style: { display: "flex" } }, J = n({ __name: "config", props: { properties: { type: Object, default: () => ({ search: {}, noData: {}, result: {} }) }, logicFlowInstance: { type: Object, default: () => ({}) }, currentNode: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, service: { type: Object, default: () => ({}) } }, setup(n2, { expose: J2 }) {
|
|
37
37
|
var _a;
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
const
|
|
41
|
-
((_a =
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
function
|
|
46
|
-
"first" ==
|
|
38
|
+
const B = h(), A = n2;
|
|
39
|
+
A.properties.result || (A.properties.result = {});
|
|
40
|
+
const G = m(false), H = m(B.pageContext.systemCode);
|
|
41
|
+
((_a = A.properties) == null ? void 0 : _a.dataTableSystemCode) && (H.value = A.properties.dataTableSystemCode);
|
|
42
|
+
const K = m(B.pageContext.systemVersion), L = m([]), P = m([]), Q = m([]);
|
|
43
|
+
A.properties.result.valueSetScope || (A.properties.result.valueSetScope = "all");
|
|
44
|
+
const R = m("array"), W = m(false), X = m("");
|
|
45
|
+
function Y() {
|
|
46
|
+
"first" == A.properties.result.valueSetScope ? R.value = "object" : R.value = "array";
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
const e2 =
|
|
50
|
-
e2 ?
|
|
51
|
-
|
|
52
|
-
}) : (
|
|
48
|
+
function Z() {
|
|
49
|
+
const e2 = A.properties.dataTable, t2 = A.properties.dataTableSystemCode, s2 = A.properties.dataTableSystemVersion;
|
|
50
|
+
e2 ? w(t2, s2, e2).then((e3) => {
|
|
51
|
+
L.value = e3, P.value = L.value;
|
|
52
|
+
}) : (L.value = [], P.value = L.value);
|
|
53
53
|
}
|
|
54
54
|
u(() => {
|
|
55
|
-
|
|
55
|
+
Z(), ee();
|
|
56
56
|
});
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
|
|
57
|
+
const $ = (e2) => {
|
|
58
|
+
A.properties.dataTable = e2.dataTable.name, A.properties.dataTableSystemCode = e2.system.code, A.properties.dataTableSystemVersion = e2.system.publishVersion, H.value = A.properties.dataTableSystemCode, Z();
|
|
59
|
+
}, ee = () => {
|
|
60
|
+
Q.value = [];
|
|
61
61
|
const e2 = [];
|
|
62
|
-
|
|
62
|
+
A.properties.statistics && A.properties.statistics.forEach((t2) => {
|
|
63
63
|
const s2 = t2.newName ? t2.newName : t2.name;
|
|
64
64
|
s2 && e2.push({ type: "string", name: s2, alias: s2 });
|
|
65
|
-
}),
|
|
65
|
+
}), A.properties.statisticalFormulas && A.properties.statisticalFormulas.forEach((t2) => {
|
|
66
66
|
if (t2.formula) {
|
|
67
67
|
const s2 = t2.newName ? t2.newName : t2.name;
|
|
68
68
|
s2 && !e2.includes(s2) && e2.push({ type: "number", name: s2, alias: s2 });
|
|
69
69
|
}
|
|
70
|
-
}),
|
|
70
|
+
}), Q.value = e2;
|
|
71
71
|
};
|
|
72
|
-
function
|
|
73
|
-
if (!
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
N(J2.properties.result.setTo, t2, W.value);
|
|
72
|
+
function te() {
|
|
73
|
+
if (!A.properties.result.setTo) return void i.error("请先设置结果参数!");
|
|
74
|
+
const e2 = "first" == A.properties.result.valueSetScope ? "object" : "array";
|
|
75
|
+
V(A.properties.result.setTo, e2, Q.value);
|
|
77
76
|
}
|
|
78
|
-
function
|
|
79
|
-
if (!
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
q(J2.properties.result.setTo, t2, W.value);
|
|
77
|
+
function se() {
|
|
78
|
+
if (!A.properties.result.setTo) return void i.error("请先设置结果参数!");
|
|
79
|
+
const e2 = "first" == A.properties.result.valueSetScope ? "object" : "array";
|
|
80
|
+
_(A.properties.result.setTo, e2, Q.value);
|
|
83
81
|
}
|
|
84
|
-
function
|
|
85
|
-
|
|
86
|
-
const e2 =
|
|
87
|
-
e2.props = JSON.parse(JSON.stringify(
|
|
88
|
-
const t2 =
|
|
89
|
-
|
|
90
|
-
|
|
82
|
+
function oe() {
|
|
83
|
+
X.value = "";
|
|
84
|
+
const e2 = I(A.logicFlowInstance.getNodeModelById(A.currentNode.data.id), A.service);
|
|
85
|
+
e2.props = JSON.parse(JSON.stringify(A.properties));
|
|
86
|
+
const t2 = N(A.pageContext.backendUrl, A.pageContext.isTest);
|
|
87
|
+
q.post(t2 + "/dsc/service-flow/test/database-node/show-sql", e2).then((e3) => {
|
|
88
|
+
W.value = true, X.value = e3;
|
|
91
89
|
});
|
|
92
90
|
}
|
|
93
|
-
return
|
|
94
|
-
const u2 =
|
|
95
|
-
return
|
|
91
|
+
return J2({}), (i2, m2) => {
|
|
92
|
+
const u2 = o, h2 = s, w2 = t, V2 = l, _2 = a, N2 = p, q2 = r, I2 = e;
|
|
93
|
+
return d(), c("div", null, [y(I2, { "label-width": "100", "label-position": "left", size: "small" }, { default: v(() => [y(z, { properties: n2.properties }, null, 8, ["properties"]), y(w2, { label: "选择数据表" }, { default: v(() => [y(h2, { modelValue: n2.properties.dataTable, "onUpdate:modelValue": m2[1] || (m2[1] = (e2) => n2.properties.dataTable = e2), readonly: "", style: { width: "85%" } }, { append: v(() => [y(u2, { icon: f(T), onClick: m2[0] || (m2[0] = (e2) => G.value = !G.value) }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue"]), b("span", D, [y(u2, { type: "primary", icon: f(C), onClick: oe }, { default: v(() => m2[7] || (m2[7] = [g("预览sql")])), _: 1 }, 8, ["icon"])]), y(j, { 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(V2, { 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: v(() => m2[8] || (m2[8] = [g("说明:1.支持自定义日期格式,同SimpleDateFormat,yyyy表示年,MM表示2位月..."), b("br", null, null, -1), g(" 2.未指定新字段名时,输出字段名同选择的字段名"), b("br", null, null, -1), g(" 3.动态维度值有填写时需要匹配才会执行此分组")])), _: 1 }), y(V2, { 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: v(() => m2[9] || (m2[9] = [g("说明:1.支持自定义统计公式,如sum(字段1+字段2)")])), _: 1 }), y(V2, { title: "过滤条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(O, { properties: n2.properties, dataTableColumns: L.value }, null, 8, ["properties", "dataTableColumns"]), y(V2, { title: "排序条件", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(U, { properties: n2.properties, dataTableColumns: Q.value }, null, 8, ["properties", "dataTableColumns"]), y(V2, { title: "结果设置", type: "info", size: "small", closable: false, style: { "margin-bottom": "20px" } }), y(w2, { label: "", "label-width": "0", style: { width: "100%" } }, { default: v(() => [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: v(() => [y(N2, { value: "first" }, { default: v(() => m2[10] || (m2[10] = [g("仅第一条")])), _: 1 }), y(N2, { value: "all" }, { default: v(() => m2[11] || (m2[11] = [g(" 全部 ")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), y(w2, { label: "设置到:", style: { width: "100%" } }, { default: v(() => [b("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: v(() => m2[12] || (m2[12] = [g(" 更新服务变量 ")])), _: 1 }, 8, ["icon"]), y(u2, { icon: f(S), type: "primary", onClick: se, style: { "margin-left": "10px" } }, { default: v(() => 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"])]);
|
|
96
94
|
};
|
|
97
95
|
} });
|
|
98
96
|
export {
|
|
99
|
-
|
|
97
|
+
J as default
|
|
100
98
|
};
|
package/dist/es/designer/service-components/database/aggregate-query/dimension-additional.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/dimension-statistical.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/dimension-statistical.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 n, ElButton as s } 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,8 +7,8 @@ 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 i, openBlock as p, withCtx as d, createVNode as r, createElementBlock as u, toDisplayString as c, Fragment as y, renderList as w, unref as b, createElementVNode as f } from "vue";
|
|
11
|
+
import { Minus as V, Plus as g } from "@element-plus/icons-vue";
|
|
12
12
|
import { dateFormats as h } from "../../util/common-options.js";
|
|
13
13
|
const k = { key: 0 }, C = { key: 0 }, T = { key: 0 }, _ = { key: 0 }, v = m({ __name: "dimension-statistical", props: { properties: { type: Object, default: () => ({ statistics: {} }) }, dataTableColumns: { type: Array, default: () => [] } }, emits: ["change"], setup(m2, { emit: v2 }) {
|
|
14
14
|
const N = m2, U = v2;
|
|
@@ -21,8 +21,8 @@ const k = { key: 0 }, C = { key: 0 }, T = { key: 0 }, _ = { key: 0 }, v = m({ __
|
|
|
21
21
|
}), U("change", e2);
|
|
22
22
|
};
|
|
23
23
|
return (v3, x) => {
|
|
24
|
-
const E =
|
|
25
|
-
return
|
|
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))]), _: 2 }, 1032, ["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))]), _: 2 }, 1032, ["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.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, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
26
26
|
properties: {
|
|
27
27
|
type: ObjectConstructor;
|
|
28
28
|
default: () => {
|
|
@@ -46,8 +46,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
46
46
|
};
|
|
47
47
|
default: () => any[];
|
|
48
48
|
};
|
|
49
|
-
}
|
|
49
|
+
}>> & Readonly<{}>, {
|
|
50
50
|
properties: Record<string, any>;
|
|
51
51
|
dataTableColumns: any[];
|
|
52
|
-
}, {}>;
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
53
53
|
export default _default;
|
package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElTable as e, ElTableColumn as l, ElSelect as a, ElOption as o, ElTooltip as t, ElButton as r } 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";
|
|
@@ -6,35 +6,34 @@ import "element-plus/es/components/button/style/css";
|
|
|
6
6
|
import "element-plus/es/components/select/style/css";
|
|
7
7
|
import "element-plus/es/components/option/style/css";
|
|
8
8
|
import "element-plus/es/components/table-column/style/css";
|
|
9
|
-
import { defineComponent as p,
|
|
10
|
-
import {
|
|
9
|
+
import { defineComponent as p, createBlock as n, openBlock as u, withCtx as d, createVNode as i, createElementBlock as s, toDisplayString as m, Fragment as T, renderList as c, withDirectives as w, vShow as b, unref as y, createElementVNode as f } from "vue";
|
|
10
|
+
import { Minus as v, Plus as E } from "@element-plus/icons-vue";
|
|
11
11
|
import { v4 as N } from "uuid";
|
|
12
12
|
import V from "../../../common/components/value-set-input/value-set-input.vue.js";
|
|
13
13
|
import { logicOperators as k } from "../../util/common-options.js";
|
|
14
|
-
const
|
|
15
|
-
const
|
|
14
|
+
const _ = { key: 0 }, h = { key: 0 }, L = { key: 0 }, g = { key: 0 }, C = { key: 0 }, U = { key: 0 }, I = p({ __name: "filter-conditions", props: { properties: { type: Object, default: () => ({ filterConditions: [] }) }, dataTableColumns: { type: Array, default: () => [] } }, setup(p2) {
|
|
15
|
+
const I2 = p2, O = (e2) => {
|
|
16
16
|
G(e2);
|
|
17
17
|
};
|
|
18
18
|
function G(e2) {
|
|
19
19
|
e2.$editing = true;
|
|
20
20
|
}
|
|
21
|
-
return (
|
|
22
|
-
const z =
|
|
23
|
-
return
|
|
24
|
-
if (!l3 || !
|
|
25
|
-
|
|
26
|
-
const a2 = U2.dataTableColumns.filter((e4) => e4.name == l3.propName || e4.dbColumnName == l3.propName), o2 = l3.dataType;
|
|
21
|
+
return (A, B) => {
|
|
22
|
+
const z = l, $ = o, D = a, R = r, x = t, X = e;
|
|
23
|
+
return u(), n(X, { data: p2.properties.filterConditions, style: { width: "100%", "margin-bottom": "20px" }, "row-key": "name", onRowClick: O, 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(D, { key: 1, size: "small", modelValue: e2.row.leftBracket, "onUpdate:modelValue": (l2) => e2.row.leftBracket = l2, placeholder: "", clearable: "" }, { default: d(() => [i($, { label: "(", value: "(" }), i($, { label: "((", value: "((" }), i($, { label: "(((", value: "(((" }), i($, { label: "((((", value: "((((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (u(), s("span", _, m(e2.row.leftBracket), 1))]), _: 1 }), i(z, { prop: "name", label: "字段名" }, { default: d((e2) => [e2.row.$editing ? (u(), n(D, { 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
|
+
if (!l3 || !I2.dataTableColumns) return;
|
|
25
|
+
const a2 = I2.dataTableColumns.filter((e4) => e4.name == l3.propName || e4.dbColumnName == l3.propName), o2 = l3.dataType;
|
|
27
26
|
a2 && a2.length > 0 ? l3.dataType = a2[0].dataType : l3.dataType = "TEXT", o2 != l3.dataType && (l3.operator = null);
|
|
28
|
-
}(
|
|
29
|
-
|
|
27
|
+
}(A.val, e2.row), title: e2.row.propName }, { default: d(() => [(u(true), s(T, null, c(p2.dataTableColumns, (e3) => (u(), n($, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "title"])) : (u(), s("span", h, m(e2.row.propName), 1))]), _: 1 }), i(z, { prop: "operator", label: "操作符", width: "100" }, { default: d((e2) => [e2.row.$editing ? (u(), n(D, { key: 1, modelValue: e2.row.operator, "onUpdate:modelValue": (l2) => e2.row.operator = l2, placeholder: "", size: "small", title: e2.row.operator }, { default: d(() => [w(i($, { label: "大于", value: "GT" }, null, 512), [[b, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i($, { label: "小于", value: "LT" }, null, 512), [[b, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i($, { label: "大于", value: "GT" }, null, 512), [[b, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), w(i($, { label: "小于", value: "LT" }, null, 512), [[b, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), i($, { label: "等于", value: "EQ" }), w(i($, { label: "小于等于", value: "LET" }, null, 512), [[b, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i($, { label: "大于等于", value: "GET" }, null, 512), [[b, "INTEGER" == e2.row.dataType || "LONG" == e2.row.dataType || "FLOAT" == e2.row.dataType || "DOUBLE" == e2.row.dataType]]), w(i($, { label: "小于等于", value: "LET" }, null, 512), [[b, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), w(i($, { label: "大于等于", value: "GET" }, null, 512), [[b, "DATE" == e2.row.dataType || "TIME" == e2.row.dataType]]), i($, { label: "不等于", value: "NET" }), w(i($, { label: "包含", value: "CONTAIN" }, null, 512), [[b, "TEXT" == e2.row.dataType]]), w(i($, { label: "左匹配", value: "LEFT_LIKE" }, null, 512), [[b, "TEXT" == e2.row.dataType]]), w(i($, { label: "右匹配", value: "RIGHT_LIKE" }, null, 512), [[b, "TEXT" == e2.row.dataType]]), w(i($, { label: "不包含", value: "NOT_CONTAIN" }, null, 512), [[b, "TEXT" == e2.row.dataType]]), w(i($, { label: "IN", value: "RANGE_QUERY" }, null, 512), [[b, "TEXT" == e2.row.dataType]]), i($, { label: "等于Null", value: "IS_NULL" }), i($, { label: "不等于Null", value: "IS_NOT_NULL" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])) : (u(), s("span", L, m(e2.row.operator), 1))]), _: 1 }), i(z, { prop: "propValue", label: "值" }, { default: d((e2) => [i(y(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(D, { key: 1, size: "small", modelValue: e2.row.rightBracket, "onUpdate:modelValue": (l2) => e2.row.rightBracket = l2, placeholder: "", clearable: "" }, { default: d(() => [i($, { label: ")", value: ")" }), i($, { label: "))", value: "))" }), i($, { label: ")))", value: ")))" }), i($, { label: "))))", value: "))))" })]), _: 2 }, 1032, ["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(D, { 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(y(k), (e3) => (u(), n($, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["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(D, { key: 1, modelValue: e2.row.variableIsNull, "onUpdate:modelValue": (l2) => e2.row.variableIsNull = l2, clearable: "", placeholder: "请选择" }, { default: d(() => [i($, { label: "Null", value: "null" }), i($, { label: "忽略(1=1)", value: "ignore" }), i($, { label: "不符合(1<>1)", value: "notequal" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (u(), s("span", U, m(e2.row.variableIsNull), 1))]), _: 1 }), i(z, { align: "center", width: "60" }, { header: d(() => [i(x, { effect: "dark", content: "添加", placement: "top" }, { default: d(() => [i(R, { type: "primary", size: "small", icon: y(E), circle: "", onClick: B[0] || (B[0] = (e2) => (() => {
|
|
28
|
+
I2.properties.filterConditions || (I2.properties.filterConditions = []);
|
|
30
29
|
const e3 = { code: N() };
|
|
31
|
-
|
|
32
|
-
})()) }, null, 8, ["icon"])]), _: 1 })]), default: d((e2) => [f("span", null, [i(
|
|
33
|
-
return a2 = e2.$index, e2.row, void
|
|
30
|
+
I2.properties.filterConditions.push(e3), G(e3);
|
|
31
|
+
})()) }, null, 8, ["icon"])]), _: 1 })]), default: d((e2) => [f("span", null, [i(x, { effect: "dark", content: "删除", placement: "top" }, { default: d(() => [i(R, { type: "danger", size: "small", icon: y(v), circle: "", onClick: (l2) => {
|
|
32
|
+
return a2 = e2.$index, e2.row, void I2.properties.filterConditions.splice(a2, 1);
|
|
34
33
|
var a2;
|
|
35
34
|
} }, null, 8, ["icon", "onClick"])]), _: 2 }, 1024)])]), _: 1 })]), _: 1 }, 8, ["data"]);
|
|
36
35
|
};
|
|
37
36
|
} });
|
|
38
37
|
export {
|
|
39
|
-
|
|
38
|
+
I as default
|
|
40
39
|
};
|
|
@@ -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;
|
|
@@ -1,27 +1,24 @@
|
|
|
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 t, ref as s, onMounted as r,
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
const
|
|
4
|
+
import { defineComponent as t, ref as s, onMounted as r, createElementBlock as o, openBlock as l, createElementVNode as n, normalizeStyle as p, createVNode as i, toDisplayString as a, Fragment as u, renderList as d } from "vue";
|
|
5
|
+
import c from "../../../../assets/icon/vardef-v.png.js";
|
|
6
|
+
const m = { class: "serviceflow-nodeTitle" }, v = { class: "serviceflow-nodeContent" }, f = ["title"], h = t({ __name: "index", props: { graphModel: { type: Object, default: () => ({}) }, model: { type: Object, default: () => ({}) }, properties: { type: Object, default: () => ({}) } }, emits: ["btnClick"], setup(t2, { emit: h2 }) {
|
|
7
|
+
const g = t2, b = s([]), y = s([]);
|
|
8
8
|
return r(() => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}),
|
|
12
|
-
|
|
13
|
-
if ("end" === e3)
|
|
14
|
-
|
|
15
|
-
for (let t4 = 0; t4 < f2.value.length; t4++)
|
|
16
|
-
if (f2.value[t4].id == e3)
|
|
17
|
-
return f2.value[t4].name;
|
|
9
|
+
g.graphModel.modelToGraphData().nodes.forEach((e2, t3) => {
|
|
10
|
+
y.value.push({ id: e2.id, name: e2.properties.name });
|
|
11
|
+
}), y.value.push({ id: "end", name: "结束" }), g.properties && g.properties.rules && g.properties.rules.length > 0 && g.properties.rules.forEach((e2, t3) => {
|
|
12
|
+
b.value.push(e2.name + "->" + function(e3) {
|
|
13
|
+
if ("end" === e3) return "结束";
|
|
14
|
+
for (let t4 = 0; t4 < y.value.length; t4++) if (y.value[t4].id == e3) return y.value[t4].name;
|
|
18
15
|
}(e2.to));
|
|
19
16
|
});
|
|
20
17
|
}), (s2, r2) => {
|
|
21
|
-
const
|
|
22
|
-
return
|
|
18
|
+
const h3 = e;
|
|
19
|
+
return l(), o("div", null, [r2[1] || (r2[1] = n("img", { src: c, style: { height: "32px", position: "fixed", left: "0px", top: "0px" } }, null, -1)), n("div", { class: "serviceflow-nodeView", style: p({ backgroundColor: t2.properties.backgroundColor }) }, [n("div", m, a(t2.properties.name ? t2.properties.name : "条件判断"), 1), i(h3), n("div", v, [n("div", { class: "serviceflow-nodeContent-desc", title: t2.properties.description }, a(t2.properties.description), 9, f), (l(true), o(u, null, d(b.value, (e2) => (l(), o("div", null, [n("span", null, a(e2), 1), r2[0] || (r2[0] = n("br", null, null, -1))]))), 256))])], 4)]);
|
|
23
20
|
};
|
|
24
21
|
} });
|
|
25
22
|
export {
|
|
26
|
-
|
|
23
|
+
h as default
|
|
27
24
|
};
|
package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.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, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
26
26
|
properties: {
|
|
27
27
|
type: ObjectConstructor;
|
|
28
28
|
default: () => {
|
|
@@ -46,8 +46,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
46
46
|
};
|
|
47
47
|
default: () => any[];
|
|
48
48
|
};
|
|
49
|
-
}
|
|
49
|
+
}>> & Readonly<{}>, {
|
|
50
50
|
properties: Record<string, any>;
|
|
51
51
|
dataTableColumns: any[];
|
|
52
|
-
}, {}>;
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
53
53
|
export default _default;
|