szld-libs 0.2.55 → 0.2.56

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.
@@ -97,7 +97,7 @@ const MyCascader = ({
97
97
  {
98
98
  PageName: "dns_relay",
99
99
  Controlname: "CallActionUrl",
100
- InterfaceType: "DPGLSysemName"
100
+ InterfaceType: ""
101
101
  },
102
102
  params
103
103
  );
@@ -55,7 +55,7 @@ const MyCheckbox = (props) => {
55
55
  {
56
56
  PageName: "dns_relay",
57
57
  Controlname: "CallActionUrl",
58
- InterfaceType: "DPGLSysemName"
58
+ InterfaceType: ""
59
59
  },
60
60
  {
61
61
  "action-url": item == null ? void 0 : item["action-url"]
@@ -56,7 +56,7 @@ const MyRadio = (props) => {
56
56
  {
57
57
  PageName: "dns_relay",
58
58
  Controlname: "CallActionUrl",
59
- InterfaceType: "DPGLSysemName"
59
+ InterfaceType: ""
60
60
  },
61
61
  {
62
62
  "action-url": item == null ? void 0 : item["action-url"]
@@ -62,7 +62,7 @@ const MySelect = ({
62
62
  {
63
63
  PageName: "dns_relay",
64
64
  Controlname: "CallActionUrl",
65
- InterfaceType: "DPGLSysemName"
65
+ InterfaceType: ""
66
66
  },
67
67
  {
68
68
  "action-url": item == null ? void 0 : item["action-url"]
@@ -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: "DPGLSysemName"
18
+ InterfaceType: ""
19
19
  },
20
20
  {
21
21
  "action-url": item == null ? void 0 : item["action-url"]
@@ -33,7 +33,7 @@ function SelectModel(props) {
33
33
  {
34
34
  PageName: "dns_relay",
35
35
  Controlname: "CallActionUrl",
36
- InterfaceType: "DPGLSysemName"
36
+ InterfaceType: ""
37
37
  },
38
38
  {
39
39
  "action-url": item == null ? void 0 : item["action-url"],
@@ -6,17 +6,19 @@ 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
14
  servicerAttrListInterfaceName: string;
15
15
  accepterAttrListInterfaceName: string;
16
+ defaultAttrListInterfaceName: string;
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
  }>;
@@ -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 = ((_c = res.data[number]) == null ? void 0 : _c["properties-type"]) || "accepter";
157
+ const propertiesType = (_c = res.data[number]) == null ? void 0 : _c["properties-type"];
157
158
  const propertiesTypeMap = {
158
159
  server: servicerAttrListInterfaceName,
159
160
  accepter: accepterAttrListInterfaceName
160
161
  };
161
- const res2 = await commonRequest(propertiesTypeMap[propertiesType] || "ACPTSubALLList", {
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("请配置属性集");
@@ -98,7 +98,7 @@ const MyCascader = ({
98
98
  {
99
99
  PageName: "dns_relay",
100
100
  Controlname: "CallActionUrl",
101
- InterfaceType: "DPGLSysemName"
101
+ InterfaceType: ""
102
102
  },
103
103
  params
104
104
  );
@@ -56,7 +56,7 @@ const MyCheckbox = (props) => {
56
56
  {
57
57
  PageName: "dns_relay",
58
58
  Controlname: "CallActionUrl",
59
- InterfaceType: "DPGLSysemName"
59
+ InterfaceType: ""
60
60
  },
61
61
  {
62
62
  "action-url": item == null ? void 0 : item["action-url"]
@@ -57,7 +57,7 @@ const MyRadio = (props) => {
57
57
  {
58
58
  PageName: "dns_relay",
59
59
  Controlname: "CallActionUrl",
60
- InterfaceType: "DPGLSysemName"
60
+ InterfaceType: ""
61
61
  },
62
62
  {
63
63
  "action-url": item == null ? void 0 : item["action-url"]
@@ -63,7 +63,7 @@ const MySelect = ({
63
63
  {
64
64
  PageName: "dns_relay",
65
65
  Controlname: "CallActionUrl",
66
- InterfaceType: "DPGLSysemName"
66
+ InterfaceType: ""
67
67
  },
68
68
  {
69
69
  "action-url": item == null ? void 0 : item["action-url"]
@@ -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: "DPGLSysemName"
19
+ InterfaceType: ""
20
20
  },
21
21
  {
22
22
  "action-url": item == null ? void 0 : item["action-url"]
@@ -35,7 +35,7 @@ function SelectModel(props) {
35
35
  {
36
36
  PageName: "dns_relay",
37
37
  Controlname: "CallActionUrl",
38
- InterfaceType: "DPGLSysemName"
38
+ InterfaceType: ""
39
39
  },
40
40
  {
41
41
  "action-url": item == null ? void 0 : item["action-url"],
@@ -6,17 +6,19 @@ 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
14
  servicerAttrListInterfaceName: string;
15
15
  accepterAttrListInterfaceName: string;
16
+ defaultAttrListInterfaceName: string;
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
  }>;
@@ -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 = ((_c = res.data[number]) == null ? void 0 : _c["properties-type"]) || "accepter";
159
+ const propertiesType = (_c = res.data[number]) == null ? void 0 : _c["properties-type"];
159
160
  const propertiesTypeMap = {
160
161
  server: servicerAttrListInterfaceName,
161
162
  accepter: accepterAttrListInterfaceName
162
163
  };
163
- const res2 = await commonRequest(propertiesTypeMap[propertiesType] || "ACPTSubALLList", {
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("请配置属性集");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.2.55",
4
+ "version": "0.2.56",
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",