super-page-runtime 2.0.10 → 3.0.2
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/AttributeMap.js +4 -0
- package/dist/es/_virtual/Delta.js +4 -0
- package/dist/es/_virtual/Op.js +4 -0
- package/dist/es/_virtual/OpIterator.js +4 -0
- package/dist/es/_virtual/__vite-browser-external.js +4 -0
- package/dist/es/_virtual/_commonjsHelpers.js +8 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/es/_virtual/dayjs.min.js +4 -0
- package/dist/es/_virtual/index.js +4 -0
- package/dist/es/_virtual/index2.js +4 -0
- package/dist/es/_virtual/index3.js +4 -0
- package/dist/es/components/runtime/index.d.ts +3 -3
- package/dist/es/components/runtime/utils/api/api-util.js +3 -3
- 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 +7 -6
- package/dist/es/components/runtime/utils/events/validator-util.js +4 -4
- 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 -122
- 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/dropdown/dropdown-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +25 -392
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +15 -12
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +17 -13
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +17 -13
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +19 -14
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -4
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +4 -2
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -5
- package/dist/es/components/runtime/views/super-page.vue.js +7 -20
- package/dist/es/index.d.ts +2 -7
- package/dist/es/index.js +2 -11
- package/dist/lib/components/runtime/index.d.ts +3 -3
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -13
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -5
- package/dist/lib/components/runtime/utils/common-util.js +0 -13
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -2
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -19
- package/dist/lib/components/runtime/utils/page-helper-util.js +0 -119
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +3 -376
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +4 -4
- package/dist/lib/components/runtime/views/super-page.vue.js +0 -14
- package/dist/lib/index.d.ts +2 -7
- package/dist/lib/index.js +2 -11
- package/package.json +69 -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/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-breadcrumb.vue.js +0 -44
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -4
- 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 -127
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -4
- package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2
|
+
function getDefaultExportFromCjs(x) {
|
|
3
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
commonjsGlobal,
|
|
7
|
+
getDefaultExportFromCjs
|
|
8
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
1
|
+
import { default as SuperPage } from './views/super-page.vue';
|
|
2
|
+
import { default as SuperPageDialog } from './views/super-page-dialog.vue';
|
|
3
3
|
|
|
4
|
-
export {
|
|
4
|
+
export { SuperPage, SuperPageDialog };
|
|
@@ -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 "../../../../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 "../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/auth.js";
|
|
3
|
+
import http from "../../../../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) {
|
|
@@ -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 "../../../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 "../../../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,11 +1,11 @@
|
|
|
1
|
-
import { isPromise } from "agilebuilder-ui/src/utils/common-util";
|
|
1
|
+
import { isPromise } from "../../../../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 {
|
|
6
|
-
import { analysisCondition } from "agilebuilder-ui/src/utils/util";
|
|
5
|
+
import { analysisCondition } from "../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/util.js";
|
|
7
6
|
import { getListCode } from "../common-util.js";
|
|
8
7
|
import eventBus from "../eventBus.js";
|
|
8
|
+
import { ElMessage } from "../../../../node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/components/message/index.js";
|
|
9
9
|
function initPageEvents(pageDesign, pageContext) {
|
|
10
10
|
if (pageDesign && pageDesign.customEvents) {
|
|
11
11
|
pageContext.customEvents = transferToFunction(pageDesign.customEvents);
|
|
@@ -1,14 +1,15 @@
|
|
|
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 {
|
|
5
|
-
import {
|
|
6
|
-
import { setSessionCache, getToken } from "agilebuilder-ui/src/utils/auth";
|
|
2
|
+
import http from "../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js";
|
|
3
|
+
import { getI18n } from "../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/util.js";
|
|
4
|
+
import { useRoute } from "../../../../node_modules/.pnpm/vue-router@4.3.0_vue@3.4.21/node_modules/vue-router/dist/vue-router.js";
|
|
5
|
+
import { setSessionCache, getToken } from "../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/auth.js";
|
|
7
6
|
import { getComponentRef } from "../global-refs.js";
|
|
8
7
|
import eventBus from "../eventBus.js";
|
|
9
|
-
import axios from "axios";
|
|
8
|
+
import axios from "../../../../node_modules/.pnpm/axios@1.6.8_debug@4.3.4/node_modules/axios/lib/axios.js";
|
|
10
9
|
import { doAfterClickEvent } from "./event-util.js";
|
|
11
10
|
import { setStoreInfo } from "../store-util.js";
|
|
11
|
+
import { ElMessage } from "../../../../node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/components/message/index.js";
|
|
12
|
+
import { ElMessageBox } from "../../../../node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/components/message-box/index.js";
|
|
12
13
|
const standardEvents = {
|
|
13
14
|
// 表单标准事件保存save
|
|
14
15
|
save: function(params) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ElMessage } from "element-plus";
|
|
1
|
+
import Schema from "../../../../node_modules/.pnpm/async-validator@4.2.5/node_modules/async-validator/dist-web/index.js";
|
|
3
2
|
import { getComponentRef } from "../global-refs.js";
|
|
4
|
-
import { getI18n } from "agilebuilder-ui/src/utils/util";
|
|
3
|
+
import { getI18n } from "../../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/util.js";
|
|
4
|
+
import { ElMessage } from "../../../../node_modules/.pnpm/element-plus@2.6.2_vue@3.4.21/node_modules/element-plus/es/components/message/index.js";
|
|
5
5
|
function setObjectPropRule(prop, rules, leafRule) {
|
|
6
6
|
const rule = {};
|
|
7
7
|
if (!rules) {
|
|
@@ -124,7 +124,7 @@ function validatorEntity(entity, rules, columns, rowIndex, isShouldRepeateValdat
|
|
|
124
124
|
return true;
|
|
125
125
|
}
|
|
126
126
|
let result;
|
|
127
|
-
const validator2 = new
|
|
127
|
+
const validator2 = new Schema(validateRules);
|
|
128
128
|
validator2.validate(
|
|
129
129
|
entity,
|
|
130
130
|
{
|
|
@@ -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>, appendParams: 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 "../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js";
|
|
2
|
+
import dayjs from "../../../node_modules/.pnpm/dayjs@1.11.11/node_modules/dayjs/dayjs.min.js";
|
|
3
|
+
import { executeExpression } from "../../../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,80 +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, appendParams) {
|
|
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
|
-
if (appendParams) {
|
|
144
|
-
Object.assign(additionalParamMap, appendParams);
|
|
145
|
-
}
|
|
146
|
-
const taskMap = {};
|
|
147
|
-
if (entityData2.task) {
|
|
148
|
-
Object.assign(taskMap, entityData2.task);
|
|
149
|
-
}
|
|
150
|
-
const param = {
|
|
151
|
-
entityMap: entityData2.data,
|
|
152
|
-
additionalParamMap,
|
|
153
|
-
taskMap,
|
|
154
|
-
dataSourceList: dataSourceConfs,
|
|
155
|
-
systemCode: pageContext2.systemCode,
|
|
156
|
-
pageCode: pageContext2.code
|
|
157
|
-
};
|
|
158
|
-
const url = window["$vueApp"].config.globalProperties.baseAPI + "common/common-data/find-chart-datas";
|
|
159
|
-
http.post(url, param).then((result) => {
|
|
160
|
-
if (!pageContext2.chartDataSourceMap) {
|
|
161
|
-
pageContext2.chartDataSourceMap = {};
|
|
162
|
-
}
|
|
163
|
-
for (const uuid in result) {
|
|
164
|
-
pageContext2.chartDataSourceMap[uuid] = result[uuid];
|
|
165
|
-
const componentObj = getComponentRef(pageContext2, uuid);
|
|
166
|
-
if (componentObj && componentObj.updateChartDatas) {
|
|
167
|
-
componentObj.updateChartDatas(result[uuid]);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
console.log("查询统计图数据完成", result);
|
|
171
|
-
resolve(result);
|
|
172
|
-
}).catch((error) => {
|
|
173
|
-
console.log("查询统计图数据失败", error);
|
|
174
|
-
reject(error);
|
|
175
|
-
});
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
70
|
function updateOptionDatasources(pageContext2, dataSourceConfs, query) {
|
|
179
71
|
return new Promise((resolve, reject) => {
|
|
180
72
|
if (!dataSourceConfs || dataSourceConfs.length == 0) {
|
|
@@ -224,13 +116,6 @@ function getOptionDatasFromPage(pageContext2, configure2) {
|
|
|
224
116
|
const cacheOptions = pageContext2.optionSourceMap[configure2.uuid];
|
|
225
117
|
return cacheOptions ? cacheOptions : [];
|
|
226
118
|
}
|
|
227
|
-
function getChartDatasFromPage(pageContext2, configure2) {
|
|
228
|
-
if (!pageContext2 || !pageContext2.chartDataSourceMap || !configure2) {
|
|
229
|
-
return null;
|
|
230
|
-
}
|
|
231
|
-
const cacheDatas = pageContext2.chartDataSourceMap[configure2.uuid];
|
|
232
|
-
return cacheDatas;
|
|
233
|
-
}
|
|
234
119
|
function queryOptionDatasources(pageContext2, dataSourceConf, query) {
|
|
235
120
|
return updateOptionDatasources(pageContext2, dataSourceConf ? [dataSourceConf] : [], query);
|
|
236
121
|
}
|
|
@@ -608,15 +493,11 @@ export {
|
|
|
608
493
|
caculateShowCondition,
|
|
609
494
|
formatValueByType,
|
|
610
495
|
formatVariableValue,
|
|
611
|
-
getChartDatasFromPage,
|
|
612
|
-
getComponentOptionConfigs,
|
|
613
496
|
getOptionDatasFromPage,
|
|
614
|
-
getValueFromSource,
|
|
615
497
|
getVariableValue,
|
|
616
498
|
openLink,
|
|
617
499
|
queryOptionDatasources,
|
|
618
500
|
queryOptions,
|
|
619
501
|
setVariableValue,
|
|
620
|
-
updateChartDatasources,
|
|
621
502
|
updateOptionDatasources
|
|
622
503
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import http from "agilebuilder-ui/src/utils/request";
|
|
2
|
-
import { useRoute } from "vue-router";
|
|
1
|
+
import http from "../../../node_modules/.pnpm/agilebuilder-ui@1.0.13_vue@3.4.21/node_modules/agilebuilder-ui/src/utils/request.js";
|
|
2
|
+
import { useRoute } from "../../../node_modules/.pnpm/vue-router@4.3.0_vue@3.4.21/node_modules/vue-router/dist/vue-router.js";
|
|
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 "../../../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
1
|
import { defineComponent, resolveComponent, openBlock, createBlock, unref, normalizeClass, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { SuperIcon } from "agilebuilder-ui";
|
|
2
|
+
import { SuperIcon as _sfc_main$1 } from "../../../../../../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",
|
|
@@ -33,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
createTextVNode(" ")
|
|
34
34
|
], 64)) : createCommentVNode("", true)
|
|
35
35
|
], 64)) : createCommentVNode("", true),
|
|
36
|
-
unref(designProperty).iconType && unref(designProperty).iconValue ? (openBlock(), createBlock(unref(
|
|
36
|
+
unref(designProperty).iconType && unref(designProperty).iconValue ? (openBlock(), createBlock(unref(_sfc_main$1), {
|
|
37
37
|
key: 1,
|
|
38
38
|
iconType: unref(designProperty).iconType,
|
|
39
39
|
iconValue: unref(designProperty).iconValue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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";
|
|
2
|
+
import { ArrowDown as arrow_down_default } from "../../../../../../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({
|
|
@@ -93,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
93
|
createTextVNode(toDisplayString(unref(designProperty).title) + " ", 1),
|
|
94
94
|
createVNode(_component_el_icon, null, {
|
|
95
95
|
default: withCtx(() => [
|
|
96
|
-
createVNode(unref(
|
|
96
|
+
createVNode(unref(arrow_down_default))
|
|
97
97
|
]),
|
|
98
98
|
_: 1
|
|
99
99
|
})
|