@baosight/er4j 0.0.7
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/README.md +24 -0
- package/er4j-dist/ErPopFree-DkF2PbwS.js +5 -0
- package/er4j-dist/ErPopFree-DkF2PbwS.js.map +1 -0
- package/er4j-dist/ErPopQuery-I5jqN6v5.js +5 -0
- package/er4j-dist/ErPopQuery-I5jqN6v5.js.map +1 -0
- package/er4j-dist/ErPopTree-DrQaECbP.js +164 -0
- package/er4j-dist/ErPopTree-DrQaECbP.js.map +1 -0
- package/er4j-dist/er4j.css +1 -0
- package/er4j-dist/er4j.es.js +14 -0
- package/er4j-dist/er4j.es.js.map +1 -0
- package/er4j-dist/er4j.umd.js +47 -0
- package/er4j-dist/er4j.umd.js.map +1 -0
- package/er4j-dist/favicon.ico +0 -0
- package/er4j-dist/iconfont-CV-ODMQE.js +36 -0
- package/er4j-dist/iconfont-CV-ODMQE.js.map +1 -0
- package/er4j-dist/img/login/bright-background.png +0 -0
- package/er4j-dist/index-BHXVGSb6.js +22345 -0
- package/er4j-dist/index-BHXVGSb6.js.map +1 -0
- package/er4j-dist/types/assets/iconfont/iconfont.json.d.ts +796 -0
- package/er4j-dist/types/components/ErDialog/DialogBase.vue.d.ts +161 -0
- package/er4j-dist/types/components/ErDialog/ErDialog.vue.d.ts +443 -0
- package/er4j-dist/types/components/ErFormToolbar/ErFormToolbar.vue.d.ts +1192 -0
- package/er4j-dist/types/components/ErGrid/ErGrid.vue.d.ts +3952 -0
- package/er4j-dist/types/components/ErGridCellEditor/ButtonEditor.vue.d.ts +2985 -0
- package/er4j-dist/types/components/ErGridCellEditor/ColorEditor.vue.d.ts +18 -0
- package/er4j-dist/types/components/ErGridCellEditor/DatetimeEditor.vue.d.ts +6114 -0
- package/er4j-dist/types/components/ErGridCellEditor/DropdownEditor.vue.d.ts +2675 -0
- package/er4j-dist/types/components/ErGridCellEditor/LargeTextEditor.vue.d.ts +1829 -0
- package/er4j-dist/types/components/ErGridCellEditor/NumberEditor.vue.d.ts +2676 -0
- package/er4j-dist/types/components/ErGridCellEditor/TextEditor.vue.d.ts +2677 -0
- package/er4j-dist/types/components/ErGridCellRender/ButtonGroup.vue.d.ts +1887 -0
- package/er4j-dist/types/components/ErGridCellRender/ColorCell.vue.d.ts +10 -0
- package/er4j-dist/types/components/ErGridCellRender/DefaultRender.vue.d.ts +1001 -0
- package/er4j-dist/types/components/ErGridCellRender/ImagePreview.vue.d.ts +352 -0
- package/er4j-dist/types/components/ErGridCellRender/PreviewDetail.vue.d.ts +10 -0
- package/er4j-dist/types/components/ErGridCellRender/ProgressBar.vue.d.ts +17 -0
- package/er4j-dist/types/components/ErGridStatusBar/AggregationPanel.vue.d.ts +11 -0
- package/er4j-dist/types/components/ErGridStatusBar/InformationPanel.vue.d.ts +317 -0
- package/er4j-dist/types/components/ErGridStatusBar/PaginationPanel.vue.d.ts +26 -0
- package/er4j-dist/types/components/ErGridStatusBar/ToolbarPanel.vue.d.ts +1889 -0
- package/er4j-dist/types/components/ErLayout/ErLayout.vue.d.ts +13794 -0
- package/er4j-dist/types/components/ErMemoEditor/ErMemoEditor.vue.d.ts +2761 -0
- package/er4j-dist/types/components/ErMenuDevPlat/CustomCellRenderer.vue.d.ts +1873 -0
- package/er4j-dist/types/components/ErMenuDevPlat/ErMenuDevPlat.vue.d.ts +8913 -0
- package/er4j-dist/types/components/ErPanel/ErPanel.vue.d.ts +239 -0
- package/er4j-dist/types/components/ErPopFree/ErPopFree.vue.d.ts +1074 -0
- package/er4j-dist/types/components/ErPopQuery/ErPopQuery.vue.d.ts +1599 -0
- package/er4j-dist/types/components/ErPopTree/ErPopTree.vue.d.ts +1290 -0
- package/er4j-dist/types/components/ErSelect/ErSelect.vue.d.ts +2601 -0
- package/er4j-dist/types/components/ErTree/ErTree.vue.d.ts +1689 -0
- package/er4j-dist/types/components/ErTree/NodeRenderer.vue.d.ts +11 -0
- package/er4j-dist/types/components/ag-grid/agGridVue3.d.ts +2 -0
- package/er4j-dist/types/components/hooks/useI18n.d.ts +99 -0
- package/er4j-dist/types/index.d.ts +12 -0
- package/er4j-dist/types/locales/agGridLocale/locale.ar.d.ts +377 -0
- package/er4j-dist/types/locales/agGridLocale/locale.en.d.ts +377 -0
- package/er4j-dist/types/locales/agGridLocale/locale.id.d.ts +377 -0
- package/er4j-dist/types/locales/agGridLocale/locale.zh.d.ts +371 -0
- package/er4j-dist/types/locales/erLocale/locale.ar.d.ts +178 -0
- package/er4j-dist/types/locales/erLocale/locale.en.d.ts +178 -0
- package/er4j-dist/types/locales/erLocale/locale.id.d.ts +178 -0
- package/er4j-dist/types/locales/erLocale/locale.zh_Hans.d.ts +177 -0
- package/er4j-dist/types/locales/erLocale/locale.zh_Hant.d.ts +178 -0
- package/er4j-dist/types/locales/localeConfig.d.ts +32 -0
- package/er4j-dist/types/styles/themes/ant-design-vue-theme/index.d.ts +134 -0
- package/er4j-dist/types/type/er-type.d.ts +107 -0
- package/er4j-dist/types/utils/er.d.ts +5350 -0
- package/er4j-dist/types/utils/theme.d.ts +144 -0
- package/package.json +128 -0
- package/src/views/JA/ER/JAER01.vue +38 -0
- package/src/views/JA/ER/JAER02.vue +94 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
export declare const getTheme: () => "ghostShark" | "default";
|
|
2
|
+
/**
|
|
3
|
+
* 换取antd主题配置
|
|
4
|
+
* @returns
|
|
5
|
+
*/
|
|
6
|
+
export declare const getAntdTheme: (theme?: string) => {
|
|
7
|
+
token: {
|
|
8
|
+
fontSize: number;
|
|
9
|
+
sizeStep: number;
|
|
10
|
+
borderRadius: number;
|
|
11
|
+
wireframe: boolean;
|
|
12
|
+
colorPrimary: string;
|
|
13
|
+
};
|
|
14
|
+
components: {
|
|
15
|
+
Form: {
|
|
16
|
+
marginLG: number;
|
|
17
|
+
};
|
|
18
|
+
Button: {
|
|
19
|
+
lineHeight: number;
|
|
20
|
+
};
|
|
21
|
+
Tabs: {
|
|
22
|
+
margin: number;
|
|
23
|
+
colorBgContainer: string;
|
|
24
|
+
colorPrimary: string;
|
|
25
|
+
colorText: string;
|
|
26
|
+
colorSplit: string;
|
|
27
|
+
colorBorder: string;
|
|
28
|
+
colorPrimaryBorder: string;
|
|
29
|
+
lineHeight: number;
|
|
30
|
+
};
|
|
31
|
+
DatePicker: {
|
|
32
|
+
colorPrimary: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
} | {
|
|
36
|
+
token: {
|
|
37
|
+
fontSize: number;
|
|
38
|
+
sizeStep: number;
|
|
39
|
+
borderRadius: number;
|
|
40
|
+
wireframe: boolean;
|
|
41
|
+
colorBgBase: string;
|
|
42
|
+
colorTextBase: string;
|
|
43
|
+
colorPrimary: string;
|
|
44
|
+
colorPrimaryBorder: string;
|
|
45
|
+
colorPrimaryBorderHover: string;
|
|
46
|
+
colorPrimaryText: string;
|
|
47
|
+
};
|
|
48
|
+
components: {
|
|
49
|
+
Button: {
|
|
50
|
+
colorBgContainer: string;
|
|
51
|
+
colorBorder: string;
|
|
52
|
+
colorText: string;
|
|
53
|
+
lineHeight: number;
|
|
54
|
+
};
|
|
55
|
+
Form: {
|
|
56
|
+
marginLG: number;
|
|
57
|
+
colorPrimary: string;
|
|
58
|
+
colorTextHeading: string;
|
|
59
|
+
colorTextDescription: string;
|
|
60
|
+
colorText: string;
|
|
61
|
+
colorBorder: string;
|
|
62
|
+
controlOutline: string;
|
|
63
|
+
colorError: string;
|
|
64
|
+
};
|
|
65
|
+
Input: {
|
|
66
|
+
colorBgContainer: string;
|
|
67
|
+
colorBorder: string;
|
|
68
|
+
colorIconHover: string;
|
|
69
|
+
colorPrimaryActive: string;
|
|
70
|
+
colorBgContainerDisabled: string;
|
|
71
|
+
colorText: string;
|
|
72
|
+
};
|
|
73
|
+
Checkbox: {
|
|
74
|
+
colorBgContainer: string;
|
|
75
|
+
colorBorder: string;
|
|
76
|
+
};
|
|
77
|
+
InputNumber: {
|
|
78
|
+
colorBgContainer: string;
|
|
79
|
+
colorBorder: string;
|
|
80
|
+
colorIconHover: string;
|
|
81
|
+
colorPrimaryActive: string;
|
|
82
|
+
colorBgContainerDisabled: string;
|
|
83
|
+
colorText: string;
|
|
84
|
+
};
|
|
85
|
+
Radio: {
|
|
86
|
+
colorBgContainer: string;
|
|
87
|
+
colorBgContainerDisabled: string;
|
|
88
|
+
};
|
|
89
|
+
Switch: {
|
|
90
|
+
colorPrimary: string;
|
|
91
|
+
colorBgContainer: string;
|
|
92
|
+
};
|
|
93
|
+
TreeSelect: {
|
|
94
|
+
colorBgContainer: string;
|
|
95
|
+
};
|
|
96
|
+
Tabs: {
|
|
97
|
+
margin: number;
|
|
98
|
+
colorPrimaryActive: string;
|
|
99
|
+
colorBgContainer: string;
|
|
100
|
+
colorPrimary: string;
|
|
101
|
+
colorFillAlter: string;
|
|
102
|
+
colorSplit: string;
|
|
103
|
+
colorText: string;
|
|
104
|
+
lineHeight: number;
|
|
105
|
+
};
|
|
106
|
+
Select: {
|
|
107
|
+
colorBgContainer: string;
|
|
108
|
+
colorBgContainerDisabled: string;
|
|
109
|
+
colorBgElevated: string;
|
|
110
|
+
controlItemBgActive: string;
|
|
111
|
+
colorBorder: string;
|
|
112
|
+
colorText: string;
|
|
113
|
+
};
|
|
114
|
+
DatePicker: {
|
|
115
|
+
colorBgContainer: string;
|
|
116
|
+
colorBgContainerDisabled: string;
|
|
117
|
+
colorBorder: string;
|
|
118
|
+
colorText: string;
|
|
119
|
+
colorBgElevated: string;
|
|
120
|
+
colorTextHeading: string;
|
|
121
|
+
colorIcon: string;
|
|
122
|
+
colorIconHover: string;
|
|
123
|
+
colorTextDisabled: string;
|
|
124
|
+
controlItemBgHover: string;
|
|
125
|
+
controlItemBgActive: string;
|
|
126
|
+
};
|
|
127
|
+
Calendar: {
|
|
128
|
+
colorBgContainer: string;
|
|
129
|
+
};
|
|
130
|
+
Modal: {
|
|
131
|
+
colorBgElevated: string;
|
|
132
|
+
colorTextHeading: string;
|
|
133
|
+
};
|
|
134
|
+
Tree: {
|
|
135
|
+
colorBgContainer: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* 换肤
|
|
141
|
+
* @param theme 主题
|
|
142
|
+
* @param reload 是否强制换肤
|
|
143
|
+
*/
|
|
144
|
+
export declare const changeTheme: (theme?: string, reload?: boolean) => void;
|
package/package.json
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@baosight/er4j",
|
|
3
|
+
"version": "0.0.7",
|
|
4
|
+
"description": "er4j 辅助开发",
|
|
5
|
+
"private": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "er4j-dist/er4j.umd.js",
|
|
8
|
+
"module": "er4j-dist/er4j.es.js",
|
|
9
|
+
"types": "er4j-dist/types/index.d.ts",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"local": "vue-cli-service serve --mode local",
|
|
12
|
+
"serve": "vue-cli-service serve",
|
|
13
|
+
"build:vite": "vite build",
|
|
14
|
+
"build": "vue-cli-service build",
|
|
15
|
+
"update": "npm uninstall @xr/ui @xr/core @xr/theme3-default && npm install @xr/ui @xr/core @xr/theme3-default && npm run serve"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public",
|
|
19
|
+
"registry": "https://registry.npmjs.org/"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"er4j-dist/",
|
|
23
|
+
"src/views/JA/ER/JAER01.vue",
|
|
24
|
+
"src/views/JA/ER/JAER02.vue"
|
|
25
|
+
],
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@eplat/ei": ">=1.2.0",
|
|
28
|
+
"@xr/core": ">=1.2.5",
|
|
29
|
+
"@xr/theme3-default": ">=1.2.0",
|
|
30
|
+
"@xr/ui": ">=1.2.5",
|
|
31
|
+
"@vue/cli-plugin-babel": "5.0.1",
|
|
32
|
+
"@vue/cli-plugin-router": "5.0.1",
|
|
33
|
+
"@vue/cli-plugin-typescript": "5.0.1",
|
|
34
|
+
"@vue/cli-plugin-vuex": "5.0.1",
|
|
35
|
+
"@vue/cli-service": "5.0.1",
|
|
36
|
+
"@vue/compiler-sfc": "3.5.13",
|
|
37
|
+
"dayjs": "1.11.13"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@ag-grid-community/client-side-row-model": "30.2.1",
|
|
42
|
+
"@ag-grid-community/core": "30.2.1",
|
|
43
|
+
"@ag-grid-community/csv-export": "30.2.1",
|
|
44
|
+
"@ag-grid-community/infinite-row-model": "30.2.1",
|
|
45
|
+
"@ag-grid-community/styles": "30.2.1",
|
|
46
|
+
"@ag-grid-community/vue3": "30.2.1",
|
|
47
|
+
"@ag-grid-enterprise/advanced-filter": "30.2.1",
|
|
48
|
+
"@ag-grid-enterprise/charts": "30.2.1",
|
|
49
|
+
"@ag-grid-enterprise/clipboard": "30.2.1",
|
|
50
|
+
"@ag-grid-enterprise/column-tool-panel": "30.2.1",
|
|
51
|
+
"@ag-grid-enterprise/core": "30.2.1",
|
|
52
|
+
"@ag-grid-enterprise/excel-export": "30.2.1",
|
|
53
|
+
"@ag-grid-enterprise/filter-tool-panel": "30.2.1",
|
|
54
|
+
"@ag-grid-enterprise/master-detail": "30.2.1",
|
|
55
|
+
"@ag-grid-enterprise/menu": "30.2.1",
|
|
56
|
+
"@ag-grid-enterprise/multi-filter": "30.2.1",
|
|
57
|
+
"@ag-grid-enterprise/range-selection": "30.2.1",
|
|
58
|
+
"@ag-grid-enterprise/rich-select": "30.2.1",
|
|
59
|
+
"@ag-grid-enterprise/row-grouping": "30.2.1",
|
|
60
|
+
"@ag-grid-enterprise/server-side-row-model": "30.2.1",
|
|
61
|
+
"@ag-grid-enterprise/set-filter": "30.2.1",
|
|
62
|
+
"@ag-grid-enterprise/side-bar": "30.2.1",
|
|
63
|
+
"@ag-grid-enterprise/sparklines": "30.2.1",
|
|
64
|
+
"@ag-grid-enterprise/status-bar": "30.2.1",
|
|
65
|
+
"@ag-grid-enterprise/viewport-row-model": "30.2.1",
|
|
66
|
+
"@codemirror/lang-javascript": "6.2.2",
|
|
67
|
+
"@codemirror/lang-json": "6.0.1",
|
|
68
|
+
"@codemirror/lang-sql": "6.6.3",
|
|
69
|
+
"@element-plus/icons-vue": "2.0.4",
|
|
70
|
+
"@eplat/ei": "1.2.4",
|
|
71
|
+
"@erp/erp-ui-lib": "0.0.1",
|
|
72
|
+
"@xr/core": "1.4.1",
|
|
73
|
+
"@xr/theme3-default": "1.4.1",
|
|
74
|
+
"@xr/ui": "1.4.1",
|
|
75
|
+
"ant-design-vue": "4.0.6",
|
|
76
|
+
"axios": "0.27.2",
|
|
77
|
+
"core-js": "3.22.8",
|
|
78
|
+
"crypto-js": "4.2.0",
|
|
79
|
+
"decimal.js": "10.5.0",
|
|
80
|
+
"echarts": "5.4.3",
|
|
81
|
+
"element-plus": "2.2.5",
|
|
82
|
+
"js-cookie": "3.0.1",
|
|
83
|
+
"jsencrypt": "3.3.0",
|
|
84
|
+
"lodash": "4.17.21",
|
|
85
|
+
"lodash-es": "4.17.21",
|
|
86
|
+
"nprogress": "0.2.0",
|
|
87
|
+
"numeral": "2.0.6",
|
|
88
|
+
"path-browserify": "1.0.1",
|
|
89
|
+
"path-to-regexp": "6.2.1",
|
|
90
|
+
"pinia": "2.0.36",
|
|
91
|
+
"screenfull": "6.0.1",
|
|
92
|
+
"splitpanes": "3.1.5",
|
|
93
|
+
"sql-formatter": "15.4.11",
|
|
94
|
+
"verify": "0.1.2",
|
|
95
|
+
"vite": "6.3.5",
|
|
96
|
+
"vue": "3.5.13",
|
|
97
|
+
"vue-clipboard3": "2.0.0",
|
|
98
|
+
"vue-codemirror": "6.1.1",
|
|
99
|
+
"vue-i18n": "9.2.2",
|
|
100
|
+
"vue-router": "4.0.16",
|
|
101
|
+
"xlsx": "0.18.5",
|
|
102
|
+
"@types/kendo-ui": "2022.2.0",
|
|
103
|
+
"@types/node": "22.14.1",
|
|
104
|
+
"@types/nprogress": "0.2.0",
|
|
105
|
+
"@vitejs/plugin-vue": "5.2.3",
|
|
106
|
+
"@vue/cli-plugin-babel": "5.0.1",
|
|
107
|
+
"@vue/cli-plugin-router": "5.0.1",
|
|
108
|
+
"@vue/cli-plugin-typescript": "5.0.1",
|
|
109
|
+
"@vue/cli-plugin-vuex": "5.0.1",
|
|
110
|
+
"@vue/cli-service": "5.0.1",
|
|
111
|
+
"@vue/compiler-sfc": "3.2.33",
|
|
112
|
+
"@babel/polyfill": "7.12.1",
|
|
113
|
+
"mockjs": "1.1.0",
|
|
114
|
+
"rimraf": "3.0.2",
|
|
115
|
+
"sass": "1.87.0",
|
|
116
|
+
"sass-loader": "16.0.5",
|
|
117
|
+
"speed-measure-webpack-plugin": "1.5.0",
|
|
118
|
+
"svg-sprite-loader": "6.0.11",
|
|
119
|
+
"svgo": "2.8.0",
|
|
120
|
+
"svgo-loader": "3.0.1",
|
|
121
|
+
"typescript": "5.3.2",
|
|
122
|
+
"unplugin-auto-import": "0.16.6",
|
|
123
|
+
"unplugin-vue-components": "0.25.2",
|
|
124
|
+
"vite-plugin-dts": "4.5.3",
|
|
125
|
+
"vite-plugin-html-env": "1.2.8",
|
|
126
|
+
"vite-plugin-top-level-await": "1.3.1"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<EFPage title="低代码配置平台" style="height: 100vh;">
|
|
3
|
+
<er-menu-dev-plat>
|
|
4
|
+
</er-menu-dev-plat>
|
|
5
|
+
</EFPage>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
// import ErMenuDevPlat from '@/components/ErMenuDevPlat/ErMenuDevPlat.vue';
|
|
10
|
+
|
|
11
|
+
import { ErMenuDevPlat } from "@baosight/er4j";
|
|
12
|
+
|
|
13
|
+
import { onMounted } from 'vue'
|
|
14
|
+
export default {
|
|
15
|
+
name: 'JAER01'
|
|
16
|
+
}
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
<script lang="ts" setup>
|
|
21
|
+
|
|
22
|
+
onMounted(() => {
|
|
23
|
+
|
|
24
|
+
});
|
|
25
|
+
</script>
|
|
26
|
+
<style lang="scss">
|
|
27
|
+
.i-page .i-page-container {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
flex: 1;
|
|
31
|
+
padding: 0px;
|
|
32
|
+
overflow: auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.haveNavBar {
|
|
36
|
+
height: 100vh !important;
|
|
37
|
+
}
|
|
38
|
+
</style>
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<EFPage title="基表维护示例" style="height: 100vh;">
|
|
3
|
+
<template v-if="initializeFlag === 1">
|
|
4
|
+
<er-layout :er-form-helper-prop="erFormHelper" :config-id="'LayoutGroupFilter'" :show-form-toolbar="false"
|
|
5
|
+
:allow-collapse="true" @toolbar-click="layoutToolbarClick" @query-click="queryClick"></er-layout>
|
|
6
|
+
<er-panel :title="'查询结果'" :open-header-show="false" style="height: 100%">
|
|
7
|
+
<template #contentSlot>
|
|
8
|
+
<er-grid :config-id="'gridView1'" :er-form-helper-prop="erFormHelper"></er-grid>
|
|
9
|
+
</template>
|
|
10
|
+
</er-panel>
|
|
11
|
+
</template>
|
|
12
|
+
</EFPage>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script lang="ts" setup name="JAER02">
|
|
16
|
+
import { getCurrentInstance } from "vue";
|
|
17
|
+
// import { ER } from '@/utils/er';
|
|
18
|
+
// import ErPanel from '@/components/ErPanel/ErPanel.vue';
|
|
19
|
+
// import ErLayout from '@/components/ErLayout/ErLayout.vue';
|
|
20
|
+
// import ErGrid from '@/components/ErGrid/ErGrid.vue';
|
|
21
|
+
|
|
22
|
+
import { ER, ErPanel, ErGrid, ErLayout } from "@baosight/er4j";
|
|
23
|
+
|
|
24
|
+
import { nextTick, onMounted, ref } from 'vue'
|
|
25
|
+
const formInstance = getCurrentInstance();
|
|
26
|
+
const formInfo: any = formInstance?.attrs.__eiInfo;
|
|
27
|
+
const buttonsInfo = formInstance?.attrs.__buttonsEi;
|
|
28
|
+
const formQueryParams = ER.Core.getQueryParams(formInfo?.extAttr?.efFormLoadPath);
|
|
29
|
+
|
|
30
|
+
console.log("formInstance", formInstance);
|
|
31
|
+
console.log("formInfo ", formInfo);
|
|
32
|
+
console.log("buttonsInfo ", buttonsInfo);
|
|
33
|
+
console.log("formQueryParams ", formQueryParams);
|
|
34
|
+
|
|
35
|
+
const erFormHelper: ER.FormHelper = new ER.FormHelper();
|
|
36
|
+
const formPartition = '';
|
|
37
|
+
const initializeService = 'JAER01/getFormConfig';
|
|
38
|
+
const formName = 'SI00Question';
|
|
39
|
+
const initializeFlag = ref(0);
|
|
40
|
+
|
|
41
|
+
// 画面相关数据初始化
|
|
42
|
+
const initializePage = async () => {
|
|
43
|
+
erFormHelper.setMenuFormInstance(formInstance);
|
|
44
|
+
const initialResult = await erFormHelper.Initialize(
|
|
45
|
+
formPartition,
|
|
46
|
+
formName,
|
|
47
|
+
['LayoutGroupFilter', 'gridView1'],
|
|
48
|
+
initializeService
|
|
49
|
+
);
|
|
50
|
+
if (initialResult.flag >= 0) {
|
|
51
|
+
// 画面工具类初始化成功后将画面渲染条件设置为1
|
|
52
|
+
initializeFlag.value = 1;
|
|
53
|
+
|
|
54
|
+
} else {
|
|
55
|
+
erFormHelper.messageError(
|
|
56
|
+
'ErFormHelper initialize faild, error msg is [' + initialResult.msg + ']!'
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const layoutToolbarClick = (params: any) => {
|
|
62
|
+
console.log('layoutToolbarClick:', params);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const queryClick = async (params: any) => {
|
|
66
|
+
ER.Core.loading(true, 2000);
|
|
67
|
+
const outInfo = await erFormHelper.queryDataByDataSource('SI00051', { filterConfigId: 'LayoutGroupFilter' });
|
|
68
|
+
erFormHelper.mergeEiInfoToGrid(outInfo, 'gridView1');
|
|
69
|
+
ER.Core.loading(false);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
onMounted(() => {
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
initializePage().then(() => {
|
|
77
|
+
nextTick(() => {
|
|
78
|
+
console.log('画面初始化完成:', erFormHelper);
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
</script>
|
|
83
|
+
<style lang="scss">
|
|
84
|
+
.i-page .i-page-container {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
flex: 1;
|
|
88
|
+
padding: 0px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.haveNavBar {
|
|
92
|
+
height: 100vh !important;
|
|
93
|
+
}
|
|
94
|
+
</style>
|