@skyfox2000/webui 1.5.21 → 1.5.23
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/lib/assets/modules/{baseLayout-D1c-i5Jy.js → baseLayout-CZbP7pSZ.js} +3 -3
- package/lib/assets/modules/{file-upload-D0PzDzw5.js → file-upload-DLtJQx0S.js} +1 -1
- package/lib/assets/modules/{index-2FnjnZKE.js → index-BZ3_aX3_.js} +2 -2
- package/lib/assets/modules/{index-xBhZt3kd.js → index-CBd7UKIQ.js} +1 -1
- package/lib/assets/modules/{index-Br13CsSY.js → index-DAXFE4kZ.js} +2 -2
- package/lib/assets/modules/{menuTabs-DGBmIq_G.js → menuTabs-CQLWwGac.js} +2 -2
- package/lib/assets/modules/{toolIcon-CQYHaCan.js → toolIcon-D0gDhlS9.js} +1 -1
- package/lib/assets/modules/{upload-template-DBTaPGiN.js → upload-template-Diw75DK3.js} +1029 -1020
- package/lib/assets/modules/{uploadList-2nN7g3jv.js → uploadList-C2ZpgPoa.js} +4 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +4 -4
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/webui.es.js +67 -65
- package/package.json +1 -1
- package/src/directives/permission.ts +4 -1
- package/src/router/index.ts +4 -1
- package/src/stores/appInfo.ts +8 -3
- package/src/stores/userInfo.ts +6 -1
- package/src/utils/data.ts +4 -3
- package/src/utils/options.ts +4 -1
- package/src/utils/table.ts +5 -1
package/src/utils/options.ts
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
ApiResponse,
|
|
4
4
|
fieldMapping,
|
|
5
5
|
httpPost,
|
|
6
|
+
httpGet,
|
|
6
7
|
IUrlInfo,
|
|
7
8
|
parseFieldTemplate,
|
|
8
9
|
ReqParams,
|
|
@@ -165,7 +166,9 @@ const queryOptions = <T>(
|
|
|
165
166
|
if (!params.Query) params.Query = {};
|
|
166
167
|
optionCtrl.optionQuery = params;
|
|
167
168
|
optionCtrl.isOptionLoading.value = true;
|
|
168
|
-
|
|
169
|
+
// 根据method选择合适的HTTP方法,查询操作通常使用GET
|
|
170
|
+
const httpMethod = optionUrl.method === 'GET' ? httpGet : httpPost;
|
|
171
|
+
return httpMethod<T>(optionUrl, params)
|
|
169
172
|
.then((result: ApiResponse<T> | null) => {
|
|
170
173
|
if (result?.status === ResStatus.SUCCESS) {
|
|
171
174
|
if (result.data) {
|
package/src/utils/table.ts
CHANGED
|
@@ -114,7 +114,11 @@ export const gridQueryFind = <T>(gridCtrl: GridControl<T>): Promise<FindResult>
|
|
|
114
114
|
|
|
115
115
|
return doQuery<FindResult>(gridCtrl, {
|
|
116
116
|
urlKey,
|
|
117
|
-
url:
|
|
117
|
+
url: {
|
|
118
|
+
url: gridCtrl.gridUrl?.url || '',
|
|
119
|
+
...gridCtrl.gridUrl,
|
|
120
|
+
loadingText: gridCtrl.gridUrl?.loadingText || $t('webui.common.dataLoading'),
|
|
121
|
+
},
|
|
118
122
|
params: gridCtrl.gridQuery,
|
|
119
123
|
loadingState: gridCtrl.isGridLoading,
|
|
120
124
|
loadingText: gridCtrl.gridUrl?.loadingText === false ? false : (gridCtrl.gridUrl?.loadingText || $t('webui.common.dataLoading')),
|