szld-libs 0.2.55 → 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 +606 -601
- package/dist/szld-components.umd.js +24 -24
- package/es/components/DynamicForm/myCascader/index.js +1 -1
- package/es/components/DynamicForm/myCheckbox/index.js +1 -1
- package/es/components/DynamicForm/myRadio/index.js +1 -1
- package/es/components/DynamicForm/mySelect/index.js +1 -1
- package/es/components/DynamicForm/radioCard/index.js +1 -1
- package/es/components/DynamicForm/selectModel/index.js +1 -1
- package/es/utils/method.d.ts +6 -3
- package/es/utils/method.js +14 -6
- package/lib/components/DynamicForm/myCascader/index.js +1 -1
- package/lib/components/DynamicForm/myCheckbox/index.js +1 -1
- package/lib/components/DynamicForm/myRadio/index.js +1 -1
- package/lib/components/DynamicForm/mySelect/index.js +1 -1
- package/lib/components/DynamicForm/radioCard/index.js +1 -1
- package/lib/components/DynamicForm/selectModel/index.js +1 -1
- package/lib/utils/method.d.ts +6 -3
- package/lib/utils/method.js +14 -6
- package/package.json +3 -2
|
@@ -15,7 +15,7 @@ const RadioCard = ({ item, readonly, value, onChange, style, commonRequestWidthP
|
|
|
15
15
|
{
|
|
16
16
|
PageName: "dns_relay",
|
|
17
17
|
Controlname: "CallActionUrl",
|
|
18
|
-
InterfaceType: "
|
|
18
|
+
InterfaceType: ""
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"action-url": item == null ? void 0 : item["action-url"]
|
package/es/utils/method.d.ts
CHANGED
|
@@ -6,17 +6,20 @@ export declare const handleSubmitForm: (originalData: any, allValues: any) => {
|
|
|
6
6
|
uploadedFiles: any[];
|
|
7
7
|
};
|
|
8
8
|
export declare const handleAttrList: (attrList: any[]) => any[];
|
|
9
|
-
export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfaceName, SelPCParamInterfaceName, servicerAttrListInterfaceName, accepterAttrListInterfaceName, commonRequest, }: {
|
|
9
|
+
export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfaceName, SelPCParamInterfaceName, servicerAttrListInterfaceName, accepterAttrListInterfaceName, defaultAttrListInterfaceName, commonRequest, }: {
|
|
10
10
|
number: string | number;
|
|
11
11
|
key: string;
|
|
12
12
|
guidInterfaceName: string;
|
|
13
13
|
SelPCParamInterfaceName: string;
|
|
14
|
-
servicerAttrListInterfaceName
|
|
15
|
-
accepterAttrListInterfaceName
|
|
14
|
+
servicerAttrListInterfaceName?: string | undefined;
|
|
15
|
+
accepterAttrListInterfaceName?: string | undefined;
|
|
16
|
+
defaultAttrListInterfaceName?: string | undefined;
|
|
16
17
|
sourceNumber?: string | number | undefined;
|
|
17
18
|
commonRequest: any;
|
|
18
19
|
}) => Promise<{
|
|
19
20
|
baseData: any;
|
|
20
21
|
newGUID: string;
|
|
21
22
|
attrListConfigs: any[];
|
|
23
|
+
selPCParam: any;
|
|
22
24
|
}>;
|
|
25
|
+
export declare const handleOperationFile: (params: any, data: any, commonRequestWidthParams: any) => Promise<any>;
|
package/es/utils/method.js
CHANGED
|
@@ -135,11 +135,12 @@ const handleFormConfig = async ({
|
|
|
135
135
|
SelPCParamInterfaceName,
|
|
136
136
|
servicerAttrListInterfaceName,
|
|
137
137
|
accepterAttrListInterfaceName,
|
|
138
|
+
defaultAttrListInterfaceName,
|
|
138
139
|
commonRequest
|
|
139
140
|
}) => {
|
|
140
141
|
return new Promise(async (resolve, reject) => {
|
|
141
142
|
var _a, _b, _c, _d;
|
|
142
|
-
let newGUID = "", attrListConfigs = [], baseData = {};
|
|
143
|
+
let newGUID = "", attrListConfigs = [], baseData = {}, selPCParam = {};
|
|
143
144
|
const guidRes = await commonRequest(guidInterfaceName || "FWDXGLCreateGUID", {
|
|
144
145
|
"source-number": sourceNumber
|
|
145
146
|
});
|
|
@@ -153,12 +154,13 @@ const handleFormConfig = async ({
|
|
|
153
154
|
});
|
|
154
155
|
if ((res == null ? void 0 : res.ReturnValue) === 1) {
|
|
155
156
|
const asid = (_b = res.data[number]) == null ? void 0 : _b[key];
|
|
156
|
-
const propertiesType = (
|
|
157
|
+
const propertiesType = (_c = res.data[number]) == null ? void 0 : _c["properties-type"];
|
|
157
158
|
const propertiesTypeMap = {
|
|
158
|
-
server: servicerAttrListInterfaceName,
|
|
159
|
-
accepter: accepterAttrListInterfaceName
|
|
159
|
+
server: servicerAttrListInterfaceName || "",
|
|
160
|
+
accepter: accepterAttrListInterfaceName || ""
|
|
160
161
|
};
|
|
161
|
-
|
|
162
|
+
selPCParam = res.data;
|
|
163
|
+
const res2 = await commonRequest(propertiesTypeMap[propertiesType] || defaultAttrListInterfaceName, {
|
|
162
164
|
asid,
|
|
163
165
|
"source-number": sourceNumber
|
|
164
166
|
});
|
|
@@ -172,7 +174,8 @@ const handleFormConfig = async ({
|
|
|
172
174
|
resolve({
|
|
173
175
|
baseData,
|
|
174
176
|
newGUID,
|
|
175
|
-
attrListConfigs
|
|
177
|
+
attrListConfigs,
|
|
178
|
+
selPCParam
|
|
176
179
|
});
|
|
177
180
|
} else {
|
|
178
181
|
reject("请配置属性集");
|
|
@@ -182,11 +185,16 @@ const handleFormConfig = async ({
|
|
|
182
185
|
}
|
|
183
186
|
});
|
|
184
187
|
};
|
|
188
|
+
const handleOperationFile = async (params, data, commonRequestWidthParams) => {
|
|
189
|
+
const response = await commonRequestWidthParams(params, data);
|
|
190
|
+
return response;
|
|
191
|
+
};
|
|
185
192
|
export {
|
|
186
193
|
base64ToString,
|
|
187
194
|
getJson,
|
|
188
195
|
handleAttrList,
|
|
189
196
|
handleFormConfig,
|
|
197
|
+
handleOperationFile,
|
|
190
198
|
handleSubmitForm,
|
|
191
199
|
isBase64
|
|
192
200
|
};
|
|
@@ -16,7 +16,7 @@ const RadioCard = ({ item, readonly, value, onChange, style, commonRequestWidthP
|
|
|
16
16
|
{
|
|
17
17
|
PageName: "dns_relay",
|
|
18
18
|
Controlname: "CallActionUrl",
|
|
19
|
-
InterfaceType: "
|
|
19
|
+
InterfaceType: ""
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"action-url": item == null ? void 0 : item["action-url"]
|
package/lib/utils/method.d.ts
CHANGED
|
@@ -6,17 +6,20 @@ export declare const handleSubmitForm: (originalData: any, allValues: any) => {
|
|
|
6
6
|
uploadedFiles: any[];
|
|
7
7
|
};
|
|
8
8
|
export declare const handleAttrList: (attrList: any[]) => any[];
|
|
9
|
-
export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfaceName, SelPCParamInterfaceName, servicerAttrListInterfaceName, accepterAttrListInterfaceName, commonRequest, }: {
|
|
9
|
+
export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfaceName, SelPCParamInterfaceName, servicerAttrListInterfaceName, accepterAttrListInterfaceName, defaultAttrListInterfaceName, commonRequest, }: {
|
|
10
10
|
number: string | number;
|
|
11
11
|
key: string;
|
|
12
12
|
guidInterfaceName: string;
|
|
13
13
|
SelPCParamInterfaceName: string;
|
|
14
|
-
servicerAttrListInterfaceName
|
|
15
|
-
accepterAttrListInterfaceName
|
|
14
|
+
servicerAttrListInterfaceName?: string | undefined;
|
|
15
|
+
accepterAttrListInterfaceName?: string | undefined;
|
|
16
|
+
defaultAttrListInterfaceName?: string | undefined;
|
|
16
17
|
sourceNumber?: string | number | undefined;
|
|
17
18
|
commonRequest: any;
|
|
18
19
|
}) => Promise<{
|
|
19
20
|
baseData: any;
|
|
20
21
|
newGUID: string;
|
|
21
22
|
attrListConfigs: any[];
|
|
23
|
+
selPCParam: any;
|
|
22
24
|
}>;
|
|
25
|
+
export declare const handleOperationFile: (params: any, data: any, commonRequestWidthParams: any) => Promise<any>;
|
package/lib/utils/method.js
CHANGED
|
@@ -137,11 +137,12 @@ const handleFormConfig = async ({
|
|
|
137
137
|
SelPCParamInterfaceName,
|
|
138
138
|
servicerAttrListInterfaceName,
|
|
139
139
|
accepterAttrListInterfaceName,
|
|
140
|
+
defaultAttrListInterfaceName,
|
|
140
141
|
commonRequest
|
|
141
142
|
}) => {
|
|
142
143
|
return new Promise(async (resolve, reject) => {
|
|
143
144
|
var _a, _b, _c, _d;
|
|
144
|
-
let newGUID = "", attrListConfigs = [], baseData = {};
|
|
145
|
+
let newGUID = "", attrListConfigs = [], baseData = {}, selPCParam = {};
|
|
145
146
|
const guidRes = await commonRequest(guidInterfaceName || "FWDXGLCreateGUID", {
|
|
146
147
|
"source-number": sourceNumber
|
|
147
148
|
});
|
|
@@ -155,12 +156,13 @@ const handleFormConfig = async ({
|
|
|
155
156
|
});
|
|
156
157
|
if ((res == null ? void 0 : res.ReturnValue) === 1) {
|
|
157
158
|
const asid = (_b = res.data[number]) == null ? void 0 : _b[key];
|
|
158
|
-
const propertiesType = (
|
|
159
|
+
const propertiesType = (_c = res.data[number]) == null ? void 0 : _c["properties-type"];
|
|
159
160
|
const propertiesTypeMap = {
|
|
160
|
-
server: servicerAttrListInterfaceName,
|
|
161
|
-
accepter: accepterAttrListInterfaceName
|
|
161
|
+
server: servicerAttrListInterfaceName || "",
|
|
162
|
+
accepter: accepterAttrListInterfaceName || ""
|
|
162
163
|
};
|
|
163
|
-
|
|
164
|
+
selPCParam = res.data;
|
|
165
|
+
const res2 = await commonRequest(propertiesTypeMap[propertiesType] || defaultAttrListInterfaceName, {
|
|
164
166
|
asid,
|
|
165
167
|
"source-number": sourceNumber
|
|
166
168
|
});
|
|
@@ -174,7 +176,8 @@ const handleFormConfig = async ({
|
|
|
174
176
|
resolve({
|
|
175
177
|
baseData,
|
|
176
178
|
newGUID,
|
|
177
|
-
attrListConfigs
|
|
179
|
+
attrListConfigs,
|
|
180
|
+
selPCParam
|
|
178
181
|
});
|
|
179
182
|
} else {
|
|
180
183
|
reject("请配置属性集");
|
|
@@ -184,9 +187,14 @@ const handleFormConfig = async ({
|
|
|
184
187
|
}
|
|
185
188
|
});
|
|
186
189
|
};
|
|
190
|
+
const handleOperationFile = async (params, data, commonRequestWidthParams) => {
|
|
191
|
+
const response = await commonRequestWidthParams(params, data);
|
|
192
|
+
return response;
|
|
193
|
+
};
|
|
187
194
|
exports.base64ToString = base64ToString;
|
|
188
195
|
exports.getJson = getJson;
|
|
189
196
|
exports.handleAttrList = handleAttrList;
|
|
190
197
|
exports.handleFormConfig = handleFormConfig;
|
|
198
|
+
exports.handleOperationFile = handleOperationFile;
|
|
191
199
|
exports.handleSubmitForm = handleSubmitForm;
|
|
192
200
|
exports.isBase64 = isBase64;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "szld-libs",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.57",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"react-dom": "^18.2.0",
|
|
21
21
|
"react-resizable": "^3.0.5",
|
|
22
22
|
"react-router-dom": "^6.6.1",
|
|
23
|
-
"react-window": "^1.8.9"
|
|
23
|
+
"react-window": "^1.8.9",
|
|
24
|
+
"szld-libs": "^0.2.55"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"@types/crypto-js": "^4.2.1",
|