szld-libs 0.2.88 → 0.2.89
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/es/utils/szxkFunc.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { AxiosResponse } from 'axios';
|
|
|
6
6
|
* @param interfaceType 接口类型,默认值为'YLFWLRDataDetails'
|
|
7
7
|
* @returns 属性集详情 {attrid_attrtype: attrvalue} 格式的数据
|
|
8
8
|
*/
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const handleGetAttrDetail: (params: any, commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>, interfaceType?: string) => Promise<any>;
|
|
10
10
|
/**
|
|
11
11
|
* 单层详情数据对应到单个属性集
|
|
12
12
|
* @param attrList 属性集列表
|
package/es/utils/szxkFunc.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const handleGetAttrDetail = async (params, commonRequest, interfaceType) => {
|
|
2
2
|
var _a;
|
|
3
3
|
try {
|
|
4
4
|
const res = await commonRequest(interfaceType || "YLFWLRDataDetails", params);
|
|
@@ -16,6 +16,6 @@ const handleObjDetailToSignleAttrList = (attrList, detail) => {
|
|
|
16
16
|
}));
|
|
17
17
|
};
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
handleGetAttrDetail,
|
|
20
20
|
handleObjDetailToSignleAttrList
|
|
21
21
|
};
|
package/lib/utils/szxkFunc.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { AxiosResponse } from 'axios';
|
|
|
6
6
|
* @param interfaceType 接口类型,默认值为'YLFWLRDataDetails'
|
|
7
7
|
* @returns 属性集详情 {attrid_attrtype: attrvalue} 格式的数据
|
|
8
8
|
*/
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const handleGetAttrDetail: (params: any, commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>, interfaceType?: string) => Promise<any>;
|
|
10
10
|
/**
|
|
11
11
|
* 单层详情数据对应到单个属性集
|
|
12
12
|
* @param attrList 属性集列表
|
package/lib/utils/szxkFunc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const handleGetAttrDetail = async (params, commonRequest, interfaceType) => {
|
|
4
4
|
var _a;
|
|
5
5
|
try {
|
|
6
6
|
const res = await commonRequest(interfaceType || "YLFWLRDataDetails", params);
|
|
@@ -17,5 +17,5 @@ const handleObjDetailToSignleAttrList = (attrList, detail) => {
|
|
|
17
17
|
attrvalue: detail[item.attrid] || ""
|
|
18
18
|
}));
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
20
|
+
exports.handleGetAttrDetail = handleGetAttrDetail;
|
|
21
21
|
exports.handleObjDetailToSignleAttrList = handleObjDetailToSignleAttrList;
|