szld-libs 0.2.56 → 0.2.57
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/szld-components.es.js +120 -119
- package/dist/szld-components.umd.js +8 -8
- package/es/utils/method.d.ts +4 -3
- package/es/utils/method.js +7 -2
- package/lib/utils/method.d.ts +4 -3
- package/lib/utils/method.js +7 -2
- package/package.json +1 -1
package/es/utils/method.d.ts
CHANGED
|
@@ -11,9 +11,9 @@ export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfa
|
|
|
11
11
|
key: string;
|
|
12
12
|
guidInterfaceName: string;
|
|
13
13
|
SelPCParamInterfaceName: string;
|
|
14
|
-
servicerAttrListInterfaceName
|
|
15
|
-
accepterAttrListInterfaceName
|
|
16
|
-
defaultAttrListInterfaceName
|
|
14
|
+
servicerAttrListInterfaceName?: string | undefined;
|
|
15
|
+
accepterAttrListInterfaceName?: string | undefined;
|
|
16
|
+
defaultAttrListInterfaceName?: string | undefined;
|
|
17
17
|
sourceNumber?: string | number | undefined;
|
|
18
18
|
commonRequest: any;
|
|
19
19
|
}) => Promise<{
|
|
@@ -22,3 +22,4 @@ export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfa
|
|
|
22
22
|
attrListConfigs: any[];
|
|
23
23
|
selPCParam: any;
|
|
24
24
|
}>;
|
|
25
|
+
export declare const handleOperationFile: (params: any, data: any, commonRequestWidthParams: any) => Promise<any>;
|
package/es/utils/method.js
CHANGED
|
@@ -156,8 +156,8 @@ const handleFormConfig = async ({
|
|
|
156
156
|
const asid = (_b = res.data[number]) == null ? void 0 : _b[key];
|
|
157
157
|
const propertiesType = (_c = res.data[number]) == null ? void 0 : _c["properties-type"];
|
|
158
158
|
const propertiesTypeMap = {
|
|
159
|
-
server: servicerAttrListInterfaceName,
|
|
160
|
-
accepter: accepterAttrListInterfaceName
|
|
159
|
+
server: servicerAttrListInterfaceName || "",
|
|
160
|
+
accepter: accepterAttrListInterfaceName || ""
|
|
161
161
|
};
|
|
162
162
|
selPCParam = res.data;
|
|
163
163
|
const res2 = await commonRequest(propertiesTypeMap[propertiesType] || defaultAttrListInterfaceName, {
|
|
@@ -185,11 +185,16 @@ const handleFormConfig = async ({
|
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
187
|
};
|
|
188
|
+
const handleOperationFile = async (params, data, commonRequestWidthParams) => {
|
|
189
|
+
const response = await commonRequestWidthParams(params, data);
|
|
190
|
+
return response;
|
|
191
|
+
};
|
|
188
192
|
export {
|
|
189
193
|
base64ToString,
|
|
190
194
|
getJson,
|
|
191
195
|
handleAttrList,
|
|
192
196
|
handleFormConfig,
|
|
197
|
+
handleOperationFile,
|
|
193
198
|
handleSubmitForm,
|
|
194
199
|
isBase64
|
|
195
200
|
};
|
package/lib/utils/method.d.ts
CHANGED
|
@@ -11,9 +11,9 @@ export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfa
|
|
|
11
11
|
key: string;
|
|
12
12
|
guidInterfaceName: string;
|
|
13
13
|
SelPCParamInterfaceName: string;
|
|
14
|
-
servicerAttrListInterfaceName
|
|
15
|
-
accepterAttrListInterfaceName
|
|
16
|
-
defaultAttrListInterfaceName
|
|
14
|
+
servicerAttrListInterfaceName?: string | undefined;
|
|
15
|
+
accepterAttrListInterfaceName?: string | undefined;
|
|
16
|
+
defaultAttrListInterfaceName?: string | undefined;
|
|
17
17
|
sourceNumber?: string | number | undefined;
|
|
18
18
|
commonRequest: any;
|
|
19
19
|
}) => Promise<{
|
|
@@ -22,3 +22,4 @@ export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfa
|
|
|
22
22
|
attrListConfigs: any[];
|
|
23
23
|
selPCParam: any;
|
|
24
24
|
}>;
|
|
25
|
+
export declare const handleOperationFile: (params: any, data: any, commonRequestWidthParams: any) => Promise<any>;
|
package/lib/utils/method.js
CHANGED
|
@@ -158,8 +158,8 @@ const handleFormConfig = async ({
|
|
|
158
158
|
const asid = (_b = res.data[number]) == null ? void 0 : _b[key];
|
|
159
159
|
const propertiesType = (_c = res.data[number]) == null ? void 0 : _c["properties-type"];
|
|
160
160
|
const propertiesTypeMap = {
|
|
161
|
-
server: servicerAttrListInterfaceName,
|
|
162
|
-
accepter: accepterAttrListInterfaceName
|
|
161
|
+
server: servicerAttrListInterfaceName || "",
|
|
162
|
+
accepter: accepterAttrListInterfaceName || ""
|
|
163
163
|
};
|
|
164
164
|
selPCParam = res.data;
|
|
165
165
|
const res2 = await commonRequest(propertiesTypeMap[propertiesType] || defaultAttrListInterfaceName, {
|
|
@@ -187,9 +187,14 @@ const handleFormConfig = async ({
|
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
189
|
};
|
|
190
|
+
const handleOperationFile = async (params, data, commonRequestWidthParams) => {
|
|
191
|
+
const response = await commonRequestWidthParams(params, data);
|
|
192
|
+
return response;
|
|
193
|
+
};
|
|
190
194
|
exports.base64ToString = base64ToString;
|
|
191
195
|
exports.getJson = getJson;
|
|
192
196
|
exports.handleAttrList = handleAttrList;
|
|
193
197
|
exports.handleFormConfig = handleFormConfig;
|
|
198
|
+
exports.handleOperationFile = handleOperationFile;
|
|
194
199
|
exports.handleSubmitForm = handleSubmitForm;
|
|
195
200
|
exports.isBase64 = isBase64;
|