@baosight/er4j 0.0.62 → 0.0.65
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/er4j-dist/ErLayoutDesign-CC0yvsjD.js +509 -0
- package/er4j-dist/ErLayoutDesign-CC0yvsjD.js.map +1 -0
- package/er4j-dist/ErPopFree-C3uuZUuH.js +5 -0
- package/er4j-dist/ErPopFree-C3uuZUuH.js.map +1 -0
- package/er4j-dist/ErPopQuery-ClFrpsZp.js +5 -0
- package/er4j-dist/ErPopQuery-ClFrpsZp.js.map +1 -0
- package/er4j-dist/ErPopRichEditor-TmGNQykK.js +5 -0
- package/er4j-dist/ErPopRichEditor-TmGNQykK.js.map +1 -0
- package/er4j-dist/ErPopTree-bOqqtvvs.js +5 -0
- package/er4j-dist/ErPopTree-bOqqtvvs.js.map +1 -0
- package/er4j-dist/er4j.css +1 -1
- package/er4j-dist/er4j.es.js +19 -48372
- package/er4j-dist/er4j.es.js.map +1 -1
- package/er4j-dist/er4j.umd.js +52 -52
- package/er4j-dist/er4j.umd.js.map +1 -1
- package/er4j-dist/index-B5COEF9u.js +48903 -0
- package/er4j-dist/index-B5COEF9u.js.map +1 -0
- package/er4j-dist/types/components/ErDialog/DialogBase.vue.d.ts +1 -1
- package/er4j-dist/types/components/ErDialog/ErDialog.vue.d.ts +1 -1
- package/er4j-dist/types/components/ErGridCellEditor/DropdownEditor.vue.d.ts +1 -0
- package/er4j-dist/types/components/ErGridCellEditor/NumberEditor.vue.d.ts +3 -3
- package/er4j-dist/types/components/ErLayout/ErLayout.vue.d.ts +2283 -8
- package/er4j-dist/types/components/ErLayoutDesign/ErLayoutDesign.vue.d.ts +3040 -0
- package/er4j-dist/types/components/ErMemoEditor/ErMemoEditor.vue.d.ts +2 -2
- package/er4j-dist/types/components/ErPanel/ErPanel.vue.d.ts +1323 -24
- package/er4j-dist/types/components/ErPopFree/ErPopFree.vue.d.ts +2 -2
- package/er4j-dist/types/components/ErPopQuery/ErPopQuery.vue.d.ts +1301 -3
- package/er4j-dist/types/components/ErPopRichEditor/ErPopRichEditor.vue.d.ts +99 -6
- package/er4j-dist/types/components/ErPopTree/ErPopTree.vue.d.ts +1301 -3
- package/er4j-dist/types/utils/er.d.ts +12 -20
- package/er4j-dist/types/utils/theme.d.ts +5 -0
- package/package.json +8 -7
- package/src/views/JA/ER/JAER02.vue +10 -3
- package/er4j-dist/ErPopFree-D0387she.js +0 -5
- package/er4j-dist/ErPopFree-D0387she.js.map +0 -1
- package/er4j-dist/ErPopQuery-DWj-lb5u.js +0 -5
- package/er4j-dist/ErPopQuery-DWj-lb5u.js.map +0 -1
- package/er4j-dist/ErPopRichEditor-CdDc0Cvo.js +0 -5
- package/er4j-dist/ErPopRichEditor-CdDc0Cvo.js.map +0 -1
- package/er4j-dist/ErPopTree-2Ab-Nxgb.js +0 -5
- package/er4j-dist/ErPopTree-2Ab-Nxgb.js.map +0 -1
|
@@ -1515,23 +1515,6 @@ export declare namespace ER {
|
|
|
1515
1515
|
*/
|
|
1516
1516
|
static get saveDevConfigService(): string;
|
|
1517
1517
|
}
|
|
1518
|
-
class EIInfo extends EiInfo {
|
|
1519
|
-
sys: {
|
|
1520
|
-
descName: string;
|
|
1521
|
-
detailMsg?: string;
|
|
1522
|
-
msg: string;
|
|
1523
|
-
msgKey: string;
|
|
1524
|
-
name: string;
|
|
1525
|
-
status: number;
|
|
1526
|
-
traceId: string;
|
|
1527
|
-
};
|
|
1528
|
-
blocks(): {
|
|
1529
|
-
[key: string]: EiBlock;
|
|
1530
|
-
};
|
|
1531
|
-
constructor(info?: EiInfo);
|
|
1532
|
-
getBlock(blockInfo: string | number): EiBlock;
|
|
1533
|
-
contains(blockId: string): boolean;
|
|
1534
|
-
}
|
|
1535
1518
|
/**
|
|
1536
1519
|
* 翻译工具
|
|
1537
1520
|
*/
|
|
@@ -1688,6 +1671,7 @@ export declare namespace ER {
|
|
|
1688
1671
|
}, source?: string, setValueBySchemaFields?: boolean): Model;
|
|
1689
1672
|
addField(...fields: DataTableSchemaField[]): Model;
|
|
1690
1673
|
reomveField(...fields: DataTableSchemaField[]): Model;
|
|
1674
|
+
setField(fieldName: string, options: Omit<DataTableSchemaField, 'name'>): Model;
|
|
1691
1675
|
accept(jsonData?: {
|
|
1692
1676
|
[key: string]: any;
|
|
1693
1677
|
}, schema?: DataTableSchemaFields): Model;
|
|
@@ -1713,6 +1697,7 @@ export declare namespace ER {
|
|
|
1713
1697
|
setAllowCancelChanges(allowCancelChanges: boolean | undefined): DataTable;
|
|
1714
1698
|
addField(...fields: DataTableSchemaField[]): DataTable;
|
|
1715
1699
|
removeField(...fields: DataTableSchemaField[]): DataTable;
|
|
1700
|
+
setField(fieldName: string, options: Omit<DataTableSchemaField, 'name'>): DataTable;
|
|
1716
1701
|
get(uid: string): any;
|
|
1717
1702
|
getRows(rowState: 'created' | 'updated' | 'removed' | 'unchanged' | 'original' | 'all', toJSON?: boolean | ((data: Model) => {
|
|
1718
1703
|
[key: string]: any;
|
|
@@ -1929,6 +1914,12 @@ export declare namespace ER {
|
|
|
1929
1914
|
* 画面初始化成功标志(1:成功;<=0:失败)
|
|
1930
1915
|
*/
|
|
1931
1916
|
get InitializeFlag(): number;
|
|
1917
|
+
/**
|
|
1918
|
+
* 画面配置信息
|
|
1919
|
+
*/
|
|
1920
|
+
get FormInfo(): {
|
|
1921
|
+
[key: string]: any;
|
|
1922
|
+
};
|
|
1932
1923
|
/**
|
|
1933
1924
|
* 画面配置信息
|
|
1934
1925
|
*/
|
|
@@ -2092,6 +2083,7 @@ export declare namespace ER {
|
|
|
2092
2083
|
private _tableNames;
|
|
2093
2084
|
private _serviceName;
|
|
2094
2085
|
private _initialConfiParas;
|
|
2086
|
+
private _formInfo;
|
|
2095
2087
|
private _configInfo;
|
|
2096
2088
|
private _systemInfo;
|
|
2097
2089
|
private _customDefaultValues;
|
|
@@ -3006,8 +2998,7 @@ export declare namespace ER {
|
|
|
3006
2998
|
* 根据配置代码设置ErLayout组件的值
|
|
3007
2999
|
* @param configId Grid配置Id
|
|
3008
3000
|
* @param itemCode 字段配置代码
|
|
3009
|
-
* @param editValue 需要设置的值
|
|
3010
|
-
* @param widgetType 组件类型
|
|
3001
|
+
* @param editValue 需要设置的值[值为void 0时,不触发validator]
|
|
3011
3002
|
* @returns this
|
|
3012
3003
|
*/
|
|
3013
3004
|
setControlValue(configId: string, itemCode: string, editValue: any): FormHelper;
|
|
@@ -3141,11 +3132,12 @@ export declare namespace ER {
|
|
|
3141
3132
|
* 获取配置区域内所有控件的值
|
|
3142
3133
|
* @param configId 配置区域代码或用逗号隔开的多个配置代码或配置代码数组
|
|
3143
3134
|
* @param extendJson 扩展属性
|
|
3135
|
+
* @param onlyVisibleControl 是否只获取可见控件的值
|
|
3144
3136
|
* @returns Json
|
|
3145
3137
|
*/
|
|
3146
3138
|
getAllControlValue(configId: string | Array<string>, extendJson?: {
|
|
3147
3139
|
[key: string]: any;
|
|
3148
|
-
}): {
|
|
3140
|
+
}, onlyVisibleControl?: boolean): {
|
|
3149
3141
|
[key: string]: any;
|
|
3150
3142
|
};
|
|
3151
3143
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baosight/er4j",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.65",
|
|
4
4
|
"description": "er4j 辅助开发",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"@xr/ui": ">=1.2.5",
|
|
38
38
|
"dayjs": "1.11.13"
|
|
39
39
|
},
|
|
40
|
-
"dependencies": {},
|
|
41
40
|
"devDependencies": {
|
|
42
41
|
"@ag-grid-community/client-side-row-model": "30.2.1",
|
|
43
42
|
"@ag-grid-community/core": "30.2.1",
|
|
@@ -65,9 +64,6 @@
|
|
|
65
64
|
"@ag-grid-enterprise/status-bar": "30.2.1",
|
|
66
65
|
"@ag-grid-enterprise/viewport-row-model": "30.2.1",
|
|
67
66
|
"@babel/polyfill": "7.12.1",
|
|
68
|
-
"@codemirror/lang-javascript": "6.2.2",
|
|
69
|
-
"@codemirror/lang-json": "6.0.1",
|
|
70
|
-
"@codemirror/lang-sql": "6.6.3",
|
|
71
67
|
"@element-plus/icons-vue": "2.0.4",
|
|
72
68
|
"@eplat/ei": "1.2.4",
|
|
73
69
|
"@erp/erp-ui-lib": "0.0.1",
|
|
@@ -91,7 +87,6 @@
|
|
|
91
87
|
"@xr/ui": "1.4.1",
|
|
92
88
|
"ant-design-vue": "4.0.6",
|
|
93
89
|
"axios": "0.27.2",
|
|
94
|
-
"codemirror": "6.0.1",
|
|
95
90
|
"core-js": "3.22.8",
|
|
96
91
|
"crypto-js": "4.2.0",
|
|
97
92
|
"decimal.js": "10.5.0",
|
|
@@ -127,9 +122,15 @@
|
|
|
127
122
|
"vite-plugin-top-level-await": "1.3.1",
|
|
128
123
|
"vue": "3.5.13",
|
|
129
124
|
"vue-clipboard3": "2.0.0",
|
|
130
|
-
"vue-codemirror": "^6.1.1",
|
|
131
125
|
"vue-i18n": "9.2.2",
|
|
132
126
|
"vue-router": "4.0.16",
|
|
133
127
|
"xlsx": "0.18.5"
|
|
128
|
+
},
|
|
129
|
+
"dependencies": {
|
|
130
|
+
"@codemirror/lang-javascript": "^6.2.4",
|
|
131
|
+
"@codemirror/lang-json": "^6.0.2",
|
|
132
|
+
"@codemirror/lang-sql": "^6.10.0",
|
|
133
|
+
"codemirror": "^6.0.2",
|
|
134
|
+
"vue-codemirror": "^6.1.1"
|
|
134
135
|
}
|
|
135
136
|
}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
<er-layout :er-form-helper-prop="erFormHelper" :config-id="'LayoutGroupFilter'" :show-form-toolbar="false"
|
|
5
5
|
:allow-collapse="true" @toolbar-click="layoutToolbarClick" @query-click="queryClick"></er-layout>
|
|
6
6
|
<er-panel :title="'查询结果'" :open-header-show="false" style="height: 100%">
|
|
7
|
+
<template #customButtonSlot>
|
|
8
|
+
<a-button type="primary" @click="testButtonClick">测试按钮</a-button>
|
|
9
|
+
</template>
|
|
7
10
|
<template #contentSlot>
|
|
8
11
|
<er-grid :config-id="'gridView1'" :er-form-helper-prop="erFormHelper"></er-grid>
|
|
9
12
|
</template>
|
|
@@ -65,10 +68,14 @@ const queryClick = async (params: any) => {
|
|
|
65
68
|
ER.Core.loading(false);
|
|
66
69
|
};
|
|
67
70
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
const testButtonClick = () => {
|
|
72
|
+
const popTest = new ER.PopQueryHelper('', 'PopFormTest');
|
|
73
|
+
popTest.show(null, () => {
|
|
74
|
+
console.log('popTest closed');
|
|
75
|
+
});
|
|
76
|
+
};
|
|
71
77
|
|
|
78
|
+
onMounted(() => {
|
|
72
79
|
initializePage().then(() => {
|
|
73
80
|
nextTick(() => {
|
|
74
81
|
console.log('画面初始化完成:', erFormHelper);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErPopFree-D0387she.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErPopQuery-DWj-lb5u.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErPopRichEditor-CdDc0Cvo.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErPopTree-2Ab-Nxgb.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|