super-page-runtime 0.0.2-tmp6 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/index.d.ts +1 -3
- package/dist/es/components/runtime/index.js +4 -0
- package/dist/es/components/runtime/utils/api/api-util.js +3 -3
- package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +1 -14
- package/dist/es/components/runtime/utils/common-util.d.ts +0 -5
- package/dist/es/components/runtime/utils/common-util.js +2 -15
- package/dist/es/components/runtime/utils/eventBus.js +1 -1
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/standard-event.js +6 -6
- package/dist/es/components/runtime/utils/events/validator-util.js +3 -3
- package/dist/es/components/runtime/utils/global-refs.js +1 -1
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +0 -2
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +0 -19
- package/dist/es/components/runtime/utils/page-helper-util.js +3 -119
- package/dist/es/components/runtime/utils/page-init-util.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +8 -203
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue.js +8 -22
- package/dist/es/components/super-page-dialog/index.d.ts +3 -0
- package/dist/es/components/{runtime/views → super-page-dialog}/super-page-dialog.vue.js +2 -3
- package/dist/es/components/super-page-dialog/super-page-dialog.vue2.js +4 -0
- package/dist/es/components/wf-editor/index.d.ts +3 -0
- package/dist/es/components/wf-editor/index.js +4 -0
- package/dist/es/components/wf-editor/wf-editor.css +4 -0
- package/dist/es/components/wf-editor/wf-editor.vue.js +16 -0
- package/dist/es/index.d.ts +4 -7
- package/dist/es/index.js +3 -12
- package/dist/favicon.ico +0 -0
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/lib/assets/chart-themes/theme1.js +7 -0
- package/dist/lib/assets/chart-themes/theme2.js +7 -0
- package/dist/lib/assets/chart-themes/theme3.js +7 -0
- package/dist/lib/components/runtime/index.d.ts +3 -0
- package/dist/lib/components/runtime/index.js +3 -0
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +11 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +128 -0
- package/dist/lib/components/runtime/utils/assemblys-config.js +258 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.js +15 -0
- package/dist/lib/components/runtime/utils/common-util.d.ts +11 -0
- package/dist/lib/components/runtime/utils/common-util.js +81 -0
- package/dist/lib/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/lib/components/runtime/utils/eventBus.js +10 -0
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +48 -0
- package/dist/lib/components/runtime/utils/events/event-util.js +526 -0
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +61 -0
- package/dist/lib/components/runtime/utils/events/standard-event.js +1624 -0
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +4 -0
- package/dist/lib/components/runtime/utils/events/validator-util.js +389 -0
- package/dist/lib/components/runtime/utils/global-refs.d.ts +59 -0
- package/dist/lib/components/runtime/utils/global-refs.js +65 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +221 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +9 -0
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +87 -0
- package/dist/lib/components/runtime/utils/page-helper-util.js +503 -0
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +38 -0
- package/dist/lib/components/runtime/utils/page-init-util.js +200 -0
- package/dist/lib/components/runtime/utils/store-util.d.ts +15 -0
- package/dist/lib/components/runtime/utils/store-util.js +17 -0
- package/dist/lib/components/runtime/utils/store.d.ts +2 -0
- package/dist/lib/components/runtime/utils/store.js +3 -0
- package/dist/lib/components/runtime/utils/table-utils.js +24 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +54 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +35 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +110 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +53 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +49 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +50 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +50 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +51 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +24 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +147 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +35 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +127 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +26 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +104 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +72 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +74 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +79 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +43 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +44 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +30 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +69 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +75 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +642 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +453 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +87 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +22 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +22 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +156 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +82 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +63 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +40 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +74 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +63 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +127 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +127 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +77 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +29 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +157 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +162 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +201 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +63 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +63 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +65 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +142 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +61 -0
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +91 -0
- package/dist/lib/components/runtime/views/super-page.vue.js +481 -0
- package/dist/lib/components/runtime/views/super-page.vue2.js +3 -0
- package/dist/lib/components/super-page-dialog/index.d.ts +3 -0
- package/dist/lib/components/super-page-dialog/index.js +3 -0
- package/dist/lib/components/super-page-dialog/super-page-dialog.vue.d.ts +36 -0
- package/dist/lib/components/super-page-dialog/super-page-dialog.vue.js +73 -0
- package/dist/lib/components/super-page-dialog/super-page-dialog.vue2.js +3 -0
- package/dist/lib/components/wf-editor/index.d.ts +3 -0
- package/dist/lib/components/wf-editor/index.js +3 -0
- package/dist/lib/components/wf-editor/wf-editor.css +4 -0
- package/dist/lib/components/wf-editor/wf-editor.vue.d.ts +2 -0
- package/dist/lib/components/wf-editor/wf-editor.vue.js +15 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/index.d.ts +5 -0
- package/dist/lib/index.js +8 -0
- package/dist/super-page-runtime.umd.js +213932 -0
- package/package.json +68 -70
- package/dist/es/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/es/assets/images/button/button-group.png.js +0 -4
- package/dist/es/assets/images/button/button.png.js +0 -4
- package/dist/es/assets/images/group-button.png.js +0 -4
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +0 -11
- package/dist/es/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/es/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -62
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -57
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -4
- package/dist/es/components/runtime/views/wf-editor.vue.js +0 -7
- package/dist/es/components/runtime/views/wf-editor.vue2.js +0 -33
- package/dist/es/components/runtime/views/wf-editor.vue3.js +0 -1
- package/dist/es/style.css +0 -4
- /package/dist/es/components/{runtime/views/super-page-dialog.vue2.js → super-page-dialog/index.js} +0 -0
- /package/dist/es/components/{runtime/views → super-page-dialog}/super-page-dialog.vue.d.ts +0 -0
- /package/dist/es/components/{runtime/views → wf-editor}/wf-editor.vue.d.ts +0 -0
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { default as SuperPage } from './views/super-page.vue';
|
|
2
|
-
import { default as SuperPageDialog } from './views/super-page-dialog.vue';
|
|
3
|
-
import { default as WfEditor } from './views/wf-editor.vue';
|
|
4
2
|
|
|
5
|
-
export
|
|
3
|
+
export default SuperPage;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getSystemBackendUrl } from "agilebuilder-ui/src/utils/common-util";
|
|
2
|
-
import { getSessionCache } from "agilebuilder-ui/src/utils/auth";
|
|
3
|
-
import http from "agilebuilder-ui/src/utils/request";
|
|
1
|
+
import { getSystemBackendUrl } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/common-util.js";
|
|
2
|
+
import { getSessionCache } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/auth.js";
|
|
3
|
+
import http from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js";
|
|
4
4
|
import { getBaseUrl } from "../common-util.js";
|
|
5
5
|
import { dealCompleteTaskParam } from "../events/standard-event.js";
|
|
6
6
|
function getData(pageContext) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAsyncComponent } from "vue";
|
|
1
|
+
import { defineAsyncComponent } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue@3.4.21_typescript@5.4.5/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
2
2
|
const assemblyGroups = [
|
|
3
3
|
{
|
|
4
4
|
name: "container",
|
|
@@ -10,19 +10,6 @@ function getCustomTheme(themeName) {
|
|
|
10
10
|
console.log("getdd", themeName);
|
|
11
11
|
return themeMap[themeName];
|
|
12
12
|
}
|
|
13
|
-
function getCustomThemeOptions() {
|
|
14
|
-
return [{
|
|
15
|
-
value: "theme1",
|
|
16
|
-
label: "主题1"
|
|
17
|
-
}, {
|
|
18
|
-
value: "theme2",
|
|
19
|
-
label: "主题2"
|
|
20
|
-
}, {
|
|
21
|
-
value: "theme3",
|
|
22
|
-
label: "主题3"
|
|
23
|
-
}];
|
|
24
|
-
}
|
|
25
13
|
export {
|
|
26
|
-
getCustomTheme
|
|
27
|
-
getCustomThemeOptions
|
|
14
|
+
getCustomTheme
|
|
28
15
|
};
|
|
@@ -9,8 +9,3 @@ export declare function getRealRestApiPath(orgRestApiPath: any, system: any): an
|
|
|
9
9
|
export declare function packageTemplateFiles(templateFiles: any): any;
|
|
10
10
|
export declare function upperFirstCase(str: any): any;
|
|
11
11
|
export declare function getListCode(pageCode: any, pageVersion: any, tableUuid: any): string;
|
|
12
|
-
/**
|
|
13
|
-
* 深度复制
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
export declare function deepCopy(srcObj: any): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getSystemBackendUrl } from "agilebuilder-ui/src/utils/common-util";
|
|
2
|
-
import { getLanguageWithLocale } from "agilebuilder-ui/src/utils/util";
|
|
1
|
+
import { getSystemBackendUrl } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/common-util.js";
|
|
2
|
+
import { getLanguageWithLocale } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/util.js";
|
|
3
3
|
function isArrayFn(value) {
|
|
4
4
|
if (typeof Array.isArray === "function") {
|
|
5
5
|
return Array.isArray(value);
|
|
@@ -71,20 +71,7 @@ function upperFirstCase(str) {
|
|
|
71
71
|
function getListCode(pageCode, pageVersion, tableUuid) {
|
|
72
72
|
return pageCode + ":V" + pageVersion + ":" + tableUuid;
|
|
73
73
|
}
|
|
74
|
-
function deepCopy(srcObj) {
|
|
75
|
-
if (typeof srcObj !== "object" || srcObj === null) {
|
|
76
|
-
return srcObj;
|
|
77
|
-
}
|
|
78
|
-
const copyObj = Array.isArray(srcObj) ? [] : {};
|
|
79
|
-
for (const key in srcObj) {
|
|
80
|
-
if (srcObj.hasOwnProperty(key)) {
|
|
81
|
-
copyObj[key] = deepCopy(srcObj[key]);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return copyObj;
|
|
85
|
-
}
|
|
86
74
|
export {
|
|
87
|
-
deepCopy,
|
|
88
75
|
getBaseUrl,
|
|
89
76
|
getListCode,
|
|
90
77
|
getRealRestApiPath,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { isPromise } from "agilebuilder-ui/src/utils/common-util";
|
|
1
|
+
import { isPromise } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/common-util.js";
|
|
2
2
|
import { judgeDataNumber, standardEvents, dealAfterOperate } from "./standard-event.js";
|
|
3
3
|
import { validateDataModelFunc } from "./validator-util.js";
|
|
4
4
|
import { getComponentRef } from "../global-refs.js";
|
|
5
|
-
import { ElMessage } from "element-plus";
|
|
6
|
-
import { analysisCondition } from "agilebuilder-ui/src/utils/util";
|
|
5
|
+
import { ElMessage } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/index.mjs";
|
|
6
|
+
import { analysisCondition } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/util.js";
|
|
7
7
|
import { getListCode } from "../common-util.js";
|
|
8
8
|
import eventBus from "../eventBus.js";
|
|
9
9
|
function initPageEvents(pageDesign, pageContext) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getBaseUrl, getRealRestApiPath, isArrayFn, upperFirstCase, packageTemplateFiles } from "../common-util.js";
|
|
2
|
-
import http from "agilebuilder-ui/src/utils/request";
|
|
3
|
-
import { getI18n } from "agilebuilder-ui/src/utils/util";
|
|
4
|
-
import { ElMessage, ElMessageBox } from "element-plus";
|
|
5
|
-
import { useRoute } from "vue-router";
|
|
6
|
-
import { setSessionCache, getToken } from "agilebuilder-ui/src/utils/auth";
|
|
2
|
+
import http from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js";
|
|
3
|
+
import { getI18n } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/util.js";
|
|
4
|
+
import { ElMessage, ElMessageBox } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/index.mjs";
|
|
5
|
+
import { useRoute } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue-router@4.3.0_vue@3.4.21/node_modules/vue-router/dist/vue-router.mjs";
|
|
6
|
+
import { setSessionCache, getToken } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/auth.js";
|
|
7
7
|
import { getComponentRef } from "../global-refs.js";
|
|
8
8
|
import eventBus from "../eventBus.js";
|
|
9
|
-
import axios from "axios";
|
|
9
|
+
import axios from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/axios@1.6.8_debug@4.3.4/node_modules/axios/index.js";
|
|
10
10
|
import { doAfterClickEvent } from "./event-util.js";
|
|
11
11
|
import { setStoreInfo } from "../store-util.js";
|
|
12
12
|
const standardEvents = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Validator from "async-validator";
|
|
2
|
-
import { ElMessage } from "element-plus";
|
|
1
|
+
import Validator from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/async-validator@4.2.5/node_modules/async-validator/dist-web/index.js";
|
|
2
|
+
import { ElMessage } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/index.mjs";
|
|
3
3
|
import { getComponentRef } from "../global-refs.js";
|
|
4
|
-
import { getI18n } from "agilebuilder-ui/src/utils/util";
|
|
4
|
+
import { getI18n } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/util.js";
|
|
5
5
|
function setObjectPropRule(prop, rules, leafRule) {
|
|
6
6
|
const rule = {};
|
|
7
7
|
if (!rules) {
|
|
@@ -54,7 +54,6 @@ export interface PageDesign extends Component {
|
|
|
54
54
|
variables?: CustomVariable[];
|
|
55
55
|
logicDesigns?: object[];
|
|
56
56
|
modelFields?: ModelField[];
|
|
57
|
-
initChartServiceConfigs?: Array<any>;
|
|
58
57
|
rules?: object;
|
|
59
58
|
tableUuids?: Array<any>;
|
|
60
59
|
tableNames?: Array<any>;
|
|
@@ -134,7 +133,6 @@ export interface PageContext extends Component {
|
|
|
134
133
|
editData?: object;
|
|
135
134
|
searchFormData?: Array<object>;
|
|
136
135
|
selectOptions?: object;
|
|
137
|
-
chartDataSourceMap?: any;
|
|
138
136
|
[otherProp: string]: any;
|
|
139
137
|
}
|
|
140
138
|
/**
|
|
@@ -14,12 +14,6 @@ export declare function getComponentOptionConfigs(component: Component, pageCont
|
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
16
|
export declare function initComponentDataSources(component: Component, pageContext: PageContext): void;
|
|
17
|
-
/**
|
|
18
|
-
* 初始化统计图的数据源
|
|
19
|
-
* @param pageContext 页面上下文
|
|
20
|
-
* @param dataSourceConfs 初始化数据配置参数
|
|
21
|
-
*/
|
|
22
|
-
export declare function updateChartDatasources(pageContext: PageContext, dataSourceConfs: Array<any>): Promise<any>;
|
|
23
17
|
/**
|
|
24
18
|
* 初始化数据源
|
|
25
19
|
* @param pageContext 页面上下文
|
|
@@ -32,12 +26,6 @@ export declare function updateOptionDatasources(pageContext: PageContext, dataSo
|
|
|
32
26
|
* @param configure
|
|
33
27
|
*/
|
|
34
28
|
export declare function getOptionDatasFromPage(pageContext: PageContext, configure: Component): any;
|
|
35
|
-
/**
|
|
36
|
-
* 从页面缓存中获取查询到的统计图数据
|
|
37
|
-
* @param pageContext
|
|
38
|
-
* @param configure
|
|
39
|
-
*/
|
|
40
|
-
export declare function getChartDatasFromPage(pageContext: PageContext, configure: Component): any;
|
|
41
29
|
/**
|
|
42
30
|
* 初始化数据源
|
|
43
31
|
* @param pageContext 页面上下文
|
|
@@ -84,13 +72,6 @@ export declare function formatVariableValue(pageContext: PageContext, variable:
|
|
|
84
72
|
* @returns
|
|
85
73
|
*/
|
|
86
74
|
export declare function formatValueByType(value: any, formatType: string, formatInfo: any): any;
|
|
87
|
-
/**
|
|
88
|
-
* 从对象中获取值
|
|
89
|
-
* @param valueSource 源对象
|
|
90
|
-
* @param paramName 变量值
|
|
91
|
-
* @param paramType 类型
|
|
92
|
-
*/
|
|
93
|
-
export declare function getValueFromSource(valueSource: any, paramName: string, paramType: any): any;
|
|
94
75
|
/**
|
|
95
76
|
* 打开链接
|
|
96
77
|
* @param component
|
|
@@ -1,41 +1,7 @@
|
|
|
1
|
-
import http from "agilebuilder-ui/src/utils/request";
|
|
2
|
-
import dayjs from "dayjs";
|
|
3
|
-
import { executeExpression } from "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
1
|
+
import http from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js";
|
|
2
|
+
import dayjs from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/dayjs.min.js";
|
|
3
|
+
import { executeExpression } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/calculator/calculator-util.js";
|
|
4
4
|
import { getComponentRef } from "./global-refs.js";
|
|
5
|
-
function getComponentOptionConfigs(component, pageContext2) {
|
|
6
|
-
if (!component.props || !component.props.dataOrigin) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
const dataOriginInfo = component.props.dataOrigin;
|
|
10
|
-
const infoObj = {
|
|
11
|
-
uuid: component.uuid
|
|
12
|
-
};
|
|
13
|
-
if (dataOriginInfo.optionValueSetType == "optionGroup") {
|
|
14
|
-
infoObj.type = "optionGroup";
|
|
15
|
-
infoObj.props = {
|
|
16
|
-
code: dataOriginInfo.optionGroup
|
|
17
|
-
};
|
|
18
|
-
} else if (dataOriginInfo.optionValueSetType == "dynamicData") {
|
|
19
|
-
infoObj.type = "dynamicData";
|
|
20
|
-
infoObj.filterType = dataOriginInfo.filterType;
|
|
21
|
-
infoObj.props = {
|
|
22
|
-
code: dataOriginInfo.dynamicDataSourceCode
|
|
23
|
-
};
|
|
24
|
-
} else if (dataOriginInfo.optionValueSetType == "dataTable") {
|
|
25
|
-
infoObj.filterType = dataOriginInfo.filterType;
|
|
26
|
-
const tempObj = getTableQueryInfo(dataOriginInfo, pageContext2);
|
|
27
|
-
Object.assign(infoObj, tempObj);
|
|
28
|
-
} else if (dataOriginInfo.optionValueSetType == "service") {
|
|
29
|
-
infoObj.filterType = dataOriginInfo.filterType;
|
|
30
|
-
const tempObj = getServiceQueryInfo(dataOriginInfo, pageContext2);
|
|
31
|
-
Object.assign(infoObj, tempObj);
|
|
32
|
-
}
|
|
33
|
-
if (infoObj.type) {
|
|
34
|
-
return infoObj;
|
|
35
|
-
} else {
|
|
36
|
-
return void 0;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
5
|
function getTableQueryInfo(dataOriginInfo, pageContext2) {
|
|
40
6
|
const infoObj = {};
|
|
41
7
|
infoObj.type = "dataTable";
|
|
@@ -101,77 +67,6 @@ function getTableQueryInfo(dataOriginInfo, pageContext2) {
|
|
|
101
67
|
infoObj.props.pageSize = dataOriginInfo.displayQuantity;
|
|
102
68
|
return infoObj;
|
|
103
69
|
}
|
|
104
|
-
function getServiceQueryInfo(dataOriginInfo, pageContext2) {
|
|
105
|
-
const infoObj = {};
|
|
106
|
-
infoObj.type = "service";
|
|
107
|
-
infoObj.props = {
|
|
108
|
-
serivceCode: dataOriginInfo.serviceCode,
|
|
109
|
-
systemCode: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageContext2.systemCode,
|
|
110
|
-
systemVersion: dataOriginInfo.tableSysCode ? dataOriginInfo.tableSysCode : pageContext2.systemCode
|
|
111
|
-
};
|
|
112
|
-
if (dataOriginInfo.serviceInputs) {
|
|
113
|
-
const searchForm = [];
|
|
114
|
-
for (const f of dataOriginInfo.serviceInputs) {
|
|
115
|
-
if (!f.name || f.value) {
|
|
116
|
-
continue;
|
|
117
|
-
}
|
|
118
|
-
const tempObj = {};
|
|
119
|
-
Object.assign(tempObj, f);
|
|
120
|
-
searchForm.push(tempObj);
|
|
121
|
-
}
|
|
122
|
-
infoObj.props.inputs = searchForm;
|
|
123
|
-
}
|
|
124
|
-
infoObj.props.dataSetField = dataOriginInfo.serviceDataSetField;
|
|
125
|
-
infoObj.props.valueField = dataOriginInfo.serviceValueField;
|
|
126
|
-
infoObj.props.labelField = dataOriginInfo.serviceLabelField;
|
|
127
|
-
return infoObj;
|
|
128
|
-
}
|
|
129
|
-
function updateChartDatasources(pageContext2, dataSourceConfs) {
|
|
130
|
-
return new Promise((resolve, reject) => {
|
|
131
|
-
if (!dataSourceConfs || dataSourceConfs.length == 0) {
|
|
132
|
-
reject(new Error("无需查询的统计图配置!"));
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
const entityData2 = pageContext2.entity ? pageContext2.entity : {};
|
|
136
|
-
const additionalParamMap = {};
|
|
137
|
-
if (entityData2.request) {
|
|
138
|
-
Object.assign(additionalParamMap, entityData2.request);
|
|
139
|
-
}
|
|
140
|
-
if (entityData2.page) {
|
|
141
|
-
Object.assign(additionalParamMap, entityData2.page);
|
|
142
|
-
}
|
|
143
|
-
const taskMap = {};
|
|
144
|
-
if (entityData2.task) {
|
|
145
|
-
Object.assign(taskMap, entityData2.task);
|
|
146
|
-
}
|
|
147
|
-
const param = {
|
|
148
|
-
entityMap: entityData2.data,
|
|
149
|
-
additionalParamMap,
|
|
150
|
-
taskMap,
|
|
151
|
-
dataSourceList: dataSourceConfs,
|
|
152
|
-
systemCode: pageContext2.systemCode,
|
|
153
|
-
pageCode: pageContext2.code
|
|
154
|
-
};
|
|
155
|
-
const url = window["$vueApp"].config.globalProperties.baseAPI + "common/common-data/find-chart-datas";
|
|
156
|
-
http.post(url, param).then((result) => {
|
|
157
|
-
if (!pageContext2.chartDataSourceMap) {
|
|
158
|
-
pageContext2.chartDataSourceMap = {};
|
|
159
|
-
}
|
|
160
|
-
for (const uuid in result) {
|
|
161
|
-
pageContext2.chartDataSourceMap[uuid] = result[uuid];
|
|
162
|
-
const componentObj = getComponentRef(pageContext2, uuid);
|
|
163
|
-
if (componentObj && componentObj.updateChartDatas) {
|
|
164
|
-
componentObj.updateChartDatas(result[uuid]);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
console.log("查询统计图数据完成", result);
|
|
168
|
-
resolve(result);
|
|
169
|
-
}).catch((error) => {
|
|
170
|
-
console.log("查询统计图数据失败", error);
|
|
171
|
-
reject(error);
|
|
172
|
-
});
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
70
|
function updateOptionDatasources(pageContext2, dataSourceConfs, query) {
|
|
176
71
|
return new Promise((resolve, reject) => {
|
|
177
72
|
if (!dataSourceConfs || dataSourceConfs.length == 0) {
|
|
@@ -221,13 +116,6 @@ function getOptionDatasFromPage(pageContext2, configure2) {
|
|
|
221
116
|
const cacheOptions = pageContext2.optionSourceMap[configure2.uuid];
|
|
222
117
|
return cacheOptions ? cacheOptions : [];
|
|
223
118
|
}
|
|
224
|
-
function getChartDatasFromPage(pageContext2, configure2) {
|
|
225
|
-
if (!pageContext2 || !pageContext2.chartDataSourceMap || !configure2) {
|
|
226
|
-
return null;
|
|
227
|
-
}
|
|
228
|
-
const cacheDatas = pageContext2.chartDataSourceMap[configure2.uuid];
|
|
229
|
-
return cacheDatas;
|
|
230
|
-
}
|
|
231
119
|
function queryOptionDatasources(pageContext2, dataSourceConf, query) {
|
|
232
120
|
return updateOptionDatasources(pageContext2, dataSourceConf ? [dataSourceConf] : [], query);
|
|
233
121
|
}
|
|
@@ -605,15 +493,11 @@ export {
|
|
|
605
493
|
caculateShowCondition,
|
|
606
494
|
formatValueByType,
|
|
607
495
|
formatVariableValue,
|
|
608
|
-
getChartDatasFromPage,
|
|
609
|
-
getComponentOptionConfigs,
|
|
610
496
|
getOptionDatasFromPage,
|
|
611
|
-
getValueFromSource,
|
|
612
497
|
getVariableValue,
|
|
613
498
|
openLink,
|
|
614
499
|
queryOptionDatasources,
|
|
615
500
|
queryOptions,
|
|
616
501
|
setVariableValue,
|
|
617
|
-
updateChartDatasources,
|
|
618
502
|
updateOptionDatasources
|
|
619
503
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import http from "agilebuilder-ui/src/utils/request";
|
|
2
|
-
import { useRoute } from "vue-router";
|
|
1
|
+
import http from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js";
|
|
2
|
+
import { useRoute } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue-router@4.3.0_vue@3.4.21/node_modules/vue-router/dist/vue-router.mjs";
|
|
3
3
|
import { PageDimensions } from "./interfaces/page-design-types.js";
|
|
4
4
|
import { formatVariableValue, setVariableValue } from "./page-helper-util.js";
|
|
5
5
|
function queryPageDesignByCode(pageCode) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getBaseUrl } from "./common-util.js";
|
|
2
|
-
import http from "agilebuilder-ui/src/utils/request";
|
|
2
|
+
import http from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js";
|
|
3
3
|
import eventBus from "./eventBus.js";
|
|
4
4
|
function getDataTypeMap(system, tableName) {
|
|
5
5
|
return new Promise((resolve, reject) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { SuperIcon } from "agilebuilder-ui";
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue@3.4.21_typescript@5.4.5/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
2
|
+
import { SuperIcon } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/lib/super-ui.js";
|
|
3
3
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "button-runtime",
|
package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, renderList } from "vue";
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, renderList } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue@3.4.21_typescript@5.4.5/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
2
2
|
import _sfc_main$1 from "../../object-render.vue.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "buttongroup-runtime",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { ArrowDown } from "@element-plus/icons-vue";
|
|
1
|
+
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue@3.4.21_typescript@5.4.5/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
2
|
+
import { ArrowDown } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/@element-plus+icons-vue@2.3.1_vue@3.4.21/node_modules/@element-plus/icons-vue/dist/index.js";
|
|
3
3
|
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
const _hoisted_1 = { key: 1 };
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import { defineComponent, ref,
|
|
1
|
+
import { defineComponent, ref, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, createVNode } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue@3.4.21_typescript@5.4.5/node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
2
2
|
import { getCustomTheme } from "../../../../utils/charts/chart-util.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import { LineChart, BarChart } from "echarts/charts";
|
|
9
|
-
import { GridComponent, LegendComponent, TitleComponent, TooltipComponent, ToolboxComponent, DataZoomComponent } from "echarts/components";
|
|
10
|
-
import VChart from "vue-echarts";
|
|
3
|
+
import { use } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/core.js";
|
|
4
|
+
import { CanvasRenderer } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/renderers.js";
|
|
5
|
+
import { LineChart, BarChart } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/charts.js";
|
|
6
|
+
import { GridComponent, LegendComponent, TitleComponent, TooltipComponent, ToolboxComponent, DataZoomComponent } from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/components.js";
|
|
7
|
+
import VChart from "D:/MyToolbox/ws-idea/agile-builder/dev-platform/agile-builder-super-design/node_modules/.pnpm/vue-echarts@6.6.9_echarts@5.5.0_vue@3.4.21/node_modules/vue-echarts/dist/index.esm.min.js";
|
|
11
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
9
|
__name: "column-line-runtime",
|
|
13
10
|
props: {
|
|
14
11
|
pageContext: {},
|
|
15
12
|
configure: {}
|
|
16
13
|
},
|
|
17
|
-
setup(__props
|
|
14
|
+
setup(__props) {
|
|
18
15
|
use([
|
|
19
16
|
CanvasRenderer,
|
|
20
17
|
LineChart,
|
|
@@ -31,199 +28,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
28
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
32
29
|
const runtimeStyle = runtimeInfo.style;
|
|
33
30
|
const runtimeClass = runtimeInfo.class;
|
|
34
|
-
const headerInfo = runtimeInfo.headerInfo ? runtimeInfo.headerInfo : {};
|
|
35
31
|
const chartOption = runtimeInfo.chartOption;
|
|
36
|
-
|
|
37
|
-
if (defaultSeries && defaultSeries.length > 0) {
|
|
38
|
-
for (let s of defaultSeries) {
|
|
39
|
-
s.data = [];
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
const defaultXaxis = chartOption.xAxis;
|
|
43
|
-
if (defaultXaxis && defaultXaxis.length > 0) {
|
|
44
|
-
defaultXaxis[0].data = [];
|
|
45
|
-
}
|
|
46
|
-
const defaultYaxis = chartOption.yAxis;
|
|
32
|
+
console.log("chartOption-runtime", chartOption);
|
|
47
33
|
const configureProps = props.configure.props ? props.configure.props : {};
|
|
48
34
|
const customTheme = getCustomTheme(configureProps.customTheme);
|
|
49
|
-
function updateChartDatas(resultData) {
|
|
50
|
-
if (!resultData) {
|
|
51
|
-
resultData = [];
|
|
52
|
-
}
|
|
53
|
-
resultData = resultData.length > 0 ? resultData[0] : {};
|
|
54
|
-
if (!resultData) {
|
|
55
|
-
resultData = {};
|
|
56
|
-
}
|
|
57
|
-
if (resultData.hasRender) {
|
|
58
|
-
resultData.hasRender = true;
|
|
59
|
-
console.log("重复更新!", resultData);
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
resultData.hasRender = true;
|
|
63
|
-
updateChartOption(resultData);
|
|
64
|
-
}
|
|
65
|
-
onMounted(() => {
|
|
66
|
-
const resultData = getChartDatasFromPage(props.pageContext, props.configure);
|
|
67
|
-
if (resultData) {
|
|
68
|
-
updateChartDatas(resultData);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
function updateChartOption(resultData) {
|
|
72
|
-
if (!resultData || !resultData.result) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
const result = resultData && resultData.result ? resultData.result : {};
|
|
76
|
-
const groupValue = resultData && resultData.groupValue ? resultData.groupValue : [];
|
|
77
|
-
const dataSetField = props.configure.serviceDataField;
|
|
78
|
-
let datas = null;
|
|
79
|
-
if (dataSetField) {
|
|
80
|
-
datas = result[dataSetField];
|
|
81
|
-
} else {
|
|
82
|
-
if (result) {
|
|
83
|
-
if (Array.isArray(result)) {
|
|
84
|
-
datas = result;
|
|
85
|
-
} else {
|
|
86
|
-
datas = [result];
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
if (!datas) {
|
|
91
|
-
datas = [];
|
|
92
|
-
}
|
|
93
|
-
let confGroups = props.configure.props ? props.configure.props.groups : null;
|
|
94
|
-
if (!confGroups) {
|
|
95
|
-
confGroups = [];
|
|
96
|
-
}
|
|
97
|
-
const groupMap = {};
|
|
98
|
-
for (let g of confGroups) {
|
|
99
|
-
groupMap[g.group] = g.target;
|
|
100
|
-
}
|
|
101
|
-
let mulGroupShow = props.configure.props ? props.configure.props.mulGroupShow : "";
|
|
102
|
-
mulGroupShow = mulGroupShow == "break" ? "<br/>" : " ";
|
|
103
|
-
const xFieldName = "__x";
|
|
104
|
-
for (let d of datas) {
|
|
105
|
-
const xValues2 = [];
|
|
106
|
-
for (let g of groupValue) {
|
|
107
|
-
const fieldName = groupMap[g];
|
|
108
|
-
const value = getValueFromSource(d, fieldName, void 0);
|
|
109
|
-
if (value) {
|
|
110
|
-
xValues2.push(value);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
const xValue = xValues2.join(mulGroupShow);
|
|
114
|
-
d[xFieldName] = xValue;
|
|
115
|
-
}
|
|
116
|
-
sortDatas(datas);
|
|
117
|
-
const itemConfs = props.configure.items ? props.configure.items : [];
|
|
118
|
-
const serieValues = [];
|
|
119
|
-
const serieValueMap = {};
|
|
120
|
-
for (let item of itemConfs) {
|
|
121
|
-
const itemProps = item.props ? item.props : {};
|
|
122
|
-
const sourceType = itemProps.yaxisSource;
|
|
123
|
-
const yaxisField = itemProps.yaxisField;
|
|
124
|
-
let serieValue = null;
|
|
125
|
-
if (yaxisField && (!sourceType || sourceType == "variable")) {
|
|
126
|
-
serieValue = {
|
|
127
|
-
uuid: item.uuid,
|
|
128
|
-
type: "variable",
|
|
129
|
-
field: yaxisField,
|
|
130
|
-
data: []
|
|
131
|
-
};
|
|
132
|
-
} else {
|
|
133
|
-
serieValue = {
|
|
134
|
-
uuid: item.uuid,
|
|
135
|
-
type: "fixed",
|
|
136
|
-
field: itemProps.yaxisFix,
|
|
137
|
-
data: []
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
if (serieValue != null) {
|
|
141
|
-
serieValues.push(serieValue);
|
|
142
|
-
serieValueMap[item.uuid] = serieValue;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
const xValues = [];
|
|
146
|
-
for (let data of datas) {
|
|
147
|
-
xValues.push(data[xFieldName]);
|
|
148
|
-
for (let item of serieValues) {
|
|
149
|
-
const serieData = item.data;
|
|
150
|
-
if (item.type == "fixed") {
|
|
151
|
-
serieData.push(item.field);
|
|
152
|
-
} else if (item.type == "variable") {
|
|
153
|
-
const value = getValueFromSource(data, item.field, void 0);
|
|
154
|
-
serieData.push(value);
|
|
155
|
-
} else {
|
|
156
|
-
serieData.push(void 0);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
console.log("datas", datas, serieValues);
|
|
161
|
-
const newSeries = deepCopy(defaultSeries == null ? [] : defaultSeries);
|
|
162
|
-
for (let serie of newSeries) {
|
|
163
|
-
const serieValue = serieValueMap[serie.uuid];
|
|
164
|
-
serie.data = serieValue ? serieValue.data : [];
|
|
165
|
-
}
|
|
166
|
-
chartOption.series = newSeries;
|
|
167
|
-
console.log("newSeries", newSeries, xValues);
|
|
168
|
-
if (defaultXaxis && defaultXaxis.length > 0) {
|
|
169
|
-
defaultXaxis[0].data = xValues;
|
|
170
|
-
chartOption.xAxis = defaultXaxis;
|
|
171
|
-
}
|
|
172
|
-
chartOption.yAxis = defaultYaxis;
|
|
173
|
-
}
|
|
174
|
-
function sortDatas(datas) {
|
|
175
|
-
const itemConfs = props.configure.items ? props.configure.items : [];
|
|
176
|
-
let orderByTarget = props.configure.props ? props.configure.props.orderByTarget : "";
|
|
177
|
-
let orderField = null;
|
|
178
|
-
if (orderByTarget == "x" || orderByTarget == "X") {
|
|
179
|
-
orderField = "__x";
|
|
180
|
-
} else if (orderByTarget) {
|
|
181
|
-
for (let item of itemConfs) {
|
|
182
|
-
if (item.uuid == orderByTarget) {
|
|
183
|
-
const itemProps = item.props ? item.props : {};
|
|
184
|
-
const sourceType = itemProps.yaxisSource;
|
|
185
|
-
const yaxisField = itemProps.yaxisField;
|
|
186
|
-
if (yaxisField && (!sourceType || sourceType == "variable")) {
|
|
187
|
-
orderField = yaxisField;
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
if (!orderField) {
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
let orderSource = props.configure.props ? props.configure.props.orderSource : "";
|
|
197
|
-
let orderValue = props.configure.props ? props.configure.props.orderFix : "";
|
|
198
|
-
if (orderSource == "variable") {
|
|
199
|
-
let orderVariable = props.configure.props ? props.configure.props.orderVariable : "";
|
|
200
|
-
orderValue = formatVariableValue(props.pageContext, orderVariable);
|
|
201
|
-
}
|
|
202
|
-
orderValue = orderValue == "desc" || orderValue == "DESC" ? "desc" : "asc";
|
|
203
|
-
let maxLen = datas.length;
|
|
204
|
-
for (let i = 0; i < maxLen - 1; i++) {
|
|
205
|
-
let vali = getValueFromSource(datas[i], orderField, void 0);
|
|
206
|
-
for (let j = i + 1; j < maxLen; j++) {
|
|
207
|
-
let valj = getValueFromSource(datas[j], orderField, void 0);
|
|
208
|
-
let isSwap = false;
|
|
209
|
-
if ("desc" == orderValue) {
|
|
210
|
-
if (vali < valj) {
|
|
211
|
-
isSwap = true;
|
|
212
|
-
}
|
|
213
|
-
} else {
|
|
214
|
-
if (vali > valj) {
|
|
215
|
-
isSwap = true;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
if (isSwap) {
|
|
219
|
-
[datas[i], datas[j]] = [datas[j], datas[i]];
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
__expose({
|
|
225
|
-
updateChartDatas
|
|
226
|
-
});
|
|
227
35
|
return (_ctx, _cache) => {
|
|
228
36
|
return openBlock(), createElementBlock("div", {
|
|
229
37
|
style: normalizeStyle(unref(runtimeStyle)),
|
|
@@ -231,9 +39,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
231
39
|
ref_key: "thisRef",
|
|
232
40
|
ref: thisRef
|
|
233
41
|
}, [
|
|
234
|
-
withDirectives(createVNode(_sfc_main$1, { headerInfo: unref(headerInfo) }, null, 8, ["headerInfo"]), [
|
|
235
|
-
[vShow, unref(headerInfo).showHeader]
|
|
236
|
-
]),
|
|
237
42
|
createVNode(unref(VChart), {
|
|
238
43
|
ref: "chartRef",
|
|
239
44
|
theme: unref(customTheme),
|