szld-libs 0.2.97 → 0.2.99
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 +6774 -6558
- package/dist/szld-components.umd.js +44 -44
- package/es/components/DynamicForm/index.d.ts +2 -0
- package/es/components/DynamicForm/selectModel/index.js +1 -1
- package/es/components/DynamicForm/selectModelBackfillFormItem/index.d.ts +27 -0
- package/es/components/DynamicForm/selectModelBackfillFormItem/index.js +241 -0
- package/es/components/DynamicForm/selectModelBackfillFormItem/vite.svg +1 -0
- package/es/components/DynamicForm/useDynamicForm.js +22 -1
- package/es/index.js +34 -8
- package/es/mock/index.d.ts +2 -0
- package/es/mock/index.js +82 -1
- package/es/services/index.d.ts +6 -0
- package/es/services/index.js +85 -0
- package/es/services/request.d.ts +6 -0
- package/es/services/request.js +140 -0
- package/es/services/status.d.ts +1 -0
- package/es/services/status.js +44 -0
- package/es/services/vite.svg +1 -0
- package/es/utils/enum.d.ts +4 -0
- package/es/utils/enum.js +10 -0
- package/es/utils/method.js +14 -10
- package/es/vite-env.d.ts +5 -0
- package/lib/components/DynamicForm/index.d.ts +2 -0
- package/lib/components/DynamicForm/selectModel/index.js +1 -1
- package/lib/components/DynamicForm/selectModelBackfillFormItem/index.d.ts +27 -0
- package/lib/components/DynamicForm/selectModelBackfillFormItem/index.js +241 -0
- package/lib/components/DynamicForm/selectModelBackfillFormItem/vite.svg +1 -0
- package/lib/components/DynamicForm/useDynamicForm.js +22 -1
- package/lib/index.js +31 -5
- package/lib/mock/index.d.ts +2 -0
- package/lib/mock/index.js +81 -0
- package/lib/services/index.d.ts +6 -0
- package/lib/services/index.js +85 -0
- package/lib/services/request.d.ts +6 -0
- package/lib/services/request.js +140 -0
- package/lib/services/status.d.ts +1 -0
- package/lib/services/status.js +44 -0
- package/lib/services/vite.svg +1 -0
- package/lib/utils/enum.d.ts +4 -0
- package/lib/utils/enum.js +10 -0
- package/lib/utils/method.js +14 -10
- package/lib/vite-env.d.ts +5 -0
- package/package.json +3 -1
package/lib/mock/index.js
CHANGED
|
@@ -1 +1,82 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const baseAttrList = [];
|
|
4
|
+
const attrList = [
|
|
5
|
+
{
|
|
6
|
+
xh: 1,
|
|
7
|
+
asid: "FB5D3B940E544EA898A6983A31FD1504",
|
|
8
|
+
astype: 0,
|
|
9
|
+
tname: "ygzh_table",
|
|
10
|
+
attrid: "02FAE63A990E4E9D87609D3DA764B10C",
|
|
11
|
+
attrname: "唯一编号",
|
|
12
|
+
attrtype: 0,
|
|
13
|
+
info: '{"input":"text","dataType":"string","length":100,"auto-generate":true,"auto-generate-type":"guid"}',
|
|
14
|
+
info_base64: 0,
|
|
15
|
+
createtime: "2026-01-26 10:23:31",
|
|
16
|
+
attrvalue: "",
|
|
17
|
+
serialnum: 0,
|
|
18
|
+
children: []
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
xh: 2,
|
|
22
|
+
asid: "FB5D3B940E544EA898A6983A31FD1504",
|
|
23
|
+
astype: 0,
|
|
24
|
+
tname: "ygzh_table",
|
|
25
|
+
attrid: "3A8EC89103A740F192CB5FD582CA5678",
|
|
26
|
+
attrname: "账号",
|
|
27
|
+
attrtype: 0,
|
|
28
|
+
info: '{"input":"text","dataType":"string","length":100}',
|
|
29
|
+
info_base64: 0,
|
|
30
|
+
createtime: "2026-01-26 10:23:31",
|
|
31
|
+
attrvalue: "",
|
|
32
|
+
serialnum: 1,
|
|
33
|
+
children: []
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
xh: 3,
|
|
37
|
+
asid: "FB5D3B940E544EA898A6983A31FD1504",
|
|
38
|
+
astype: 0,
|
|
39
|
+
tname: "ygzh_table",
|
|
40
|
+
attrid: "7795221133E0479D956D254A71858B39",
|
|
41
|
+
attrname: "密码",
|
|
42
|
+
attrtype: 0,
|
|
43
|
+
info: '{"input":"text","dataType":"string","length":100}',
|
|
44
|
+
info_base64: 0,
|
|
45
|
+
createtime: "2026-01-26 10:23:31",
|
|
46
|
+
attrvalue: "",
|
|
47
|
+
serialnum: 2,
|
|
48
|
+
children: []
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
xh: 4,
|
|
52
|
+
asid: "FB5D3B940E544EA898A6983A31FD1504",
|
|
53
|
+
astype: 0,
|
|
54
|
+
tname: "ygzh_table",
|
|
55
|
+
attrid: "7039599603174845B3CD03CA351EEB62",
|
|
56
|
+
attrname: "关联人员编号",
|
|
57
|
+
attrtype: 0,
|
|
58
|
+
info: '{\r\n "input": "mul-field-modal-select",\r\n "inputType": "url",\r\n "dataType": "string",\r\n "length": 100,\r\n "modal-caption": "关联人员",\r\n "modal-width": 800,\r\n "modal-height": 500,\r\n "modal-field-list": {\r\n "CAB51378248F4097BE2CF327F78E408B": "姓名",\r\n "F7CB899C4AE140948D2D0E161F9B1F50": "性别",\r\n "FF3E62E516124D8296D3A0BF6A7160EC": "出生年月日",\r\n "E84B71814D2C4921943B62243903F9CA": "职位"\r\n },\r\n "action-url": "http://113.219.243.107:19003/ucc?AppID=KF_SZLD_YLFWLR&Password=KF_SZLD_YLFWLR2557013&return=true&PageName=YLFWLRInstanceData&Controlname=List",\r\n "action-url-extra-params": {\r\n "asid": "3D6CD87DC9EC4CCB9FA1149A1F04E93A"\r\n },\r\n "key-field": {\r\n "3DD9CF67A3E34A62A9857CD1DB9CD782": {\r\n "list": ["CAB51378248F4097BE2CF327F78E408B"],\r\n "delimiter": "-"\r\n },\r\n "7039599603174845B3CD03CA351EEB62": {\r\n "list": ["9416A2FA296846E199738345A393E264"],\r\n "delimiter": "-"\r\n }\r\n }\r\n}',
|
|
59
|
+
info_base64: 0,
|
|
60
|
+
createtime: "2026-01-26 10:27:10",
|
|
61
|
+
attrvalue: "",
|
|
62
|
+
serialnum: 3,
|
|
63
|
+
children: []
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
xh: 5,
|
|
67
|
+
asid: "FB5D3B940E544EA898A6983A31FD1504",
|
|
68
|
+
astype: 0,
|
|
69
|
+
tname: "ygzh_table",
|
|
70
|
+
attrid: "3DD9CF67A3E34A62A9857CD1DB9CD782",
|
|
71
|
+
attrname: "关联人员姓名",
|
|
72
|
+
attrtype: 0,
|
|
73
|
+
info: '{\r\n "input": "mul-field-modal-select",\r\n "inputType": "url",\r\n "dataType": "string",\r\n "length": 100,\r\n "modal-caption": "关联人员",\r\n "modal-width": 800,\r\n "modal-height": 500,\r\n "modal-field-list": {\r\n "CAB51378248F4097BE2CF327F78E408B": "姓名",\r\n "F7CB899C4AE140948D2D0E161F9B1F50": "性别",\r\n "FF3E62E516124D8296D3A0BF6A7160EC": "出生年月日",\r\n "E84B71814D2C4921943B62243903F9CA": "职位"\r\n },\r\n "action-url": "http://113.219.243.107:19003/ucc?AppID=KF_SZLD_YLFWLR&Password=KF_SZLD_YLFWLR2557013&return=true&PageName=YLFWLRInstanceData&Controlname=List",\r\n "action-url-extra-params": {\r\n "asid": "3D6CD87DC9EC4CCB9FA1149A1F04E93A"\r\n },\r\n "key-field": {\r\n "3DD9CF67A3E34A62A9857CD1DB9CD782": {\r\n "list": ["CAB51378248F4097BE2CF327F78E408B"],\r\n "delimiter": "-"\r\n },\r\n "7039599603174845B3CD03CA351EEB62": {\r\n "list": ["9416A2FA296846E199738345A393E264"],\r\n "delimiter": "-"\r\n }\r\n }\r\n}',
|
|
74
|
+
info_base64: 0,
|
|
75
|
+
createtime: "2026-01-26 10:27:29",
|
|
76
|
+
attrvalue: "",
|
|
77
|
+
serialnum: 4,
|
|
78
|
+
children: []
|
|
79
|
+
}
|
|
80
|
+
];
|
|
81
|
+
exports.attrList = attrList;
|
|
82
|
+
exports.baseAttrList = baseAttrList;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const commonRequest: (InterfaceType: string, data?: any) => Promise<any>;
|
|
2
|
+
export declare const commonRequestDic: (data?: any) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
3
|
+
export declare const commonRequestWidthParams: (params: object, data?: any) => Promise<any>;
|
|
4
|
+
export declare const commonRequestActionUrl: (data?: any) => Promise<any>;
|
|
5
|
+
export declare const uploadAction: () => string;
|
|
6
|
+
export declare const uploadFormAction: () => string;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const queryString = require("query-string");
|
|
4
|
+
const request = require("./request");
|
|
5
|
+
const _enum = require("../utils/enum");
|
|
6
|
+
const szldLibs = require("szld-libs");
|
|
7
|
+
const commonRequest = async (InterfaceType, data) => {
|
|
8
|
+
return request.post("", data, {
|
|
9
|
+
params: {
|
|
10
|
+
PageName: "dns_relay",
|
|
11
|
+
Controlname: "Connon_Control",
|
|
12
|
+
InterfaceType
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
const commonRequestDic = async (data) => {
|
|
17
|
+
return request.post("", data, {
|
|
18
|
+
params: {
|
|
19
|
+
PageName: "DicInterface",
|
|
20
|
+
Controlname: "SelectDic"
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
const commonRequestWidthParams = async (params, data) => {
|
|
25
|
+
return request.post("", data, {
|
|
26
|
+
params
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const commonRequestActionUrl = async (data) => {
|
|
30
|
+
return request.post("", data, {
|
|
31
|
+
params: {
|
|
32
|
+
PageName: "dns_relay",
|
|
33
|
+
Controlname: "CallActionUrl",
|
|
34
|
+
InterfaceType: "DPGLSysemName"
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
const uploadAction = () => {
|
|
39
|
+
var _a;
|
|
40
|
+
const SessionID = sessionStorage.getItem(_enum.TOKEN);
|
|
41
|
+
const params = {
|
|
42
|
+
...request.domainSetting.baseParams,
|
|
43
|
+
PageName: "dns_relay",
|
|
44
|
+
return: true,
|
|
45
|
+
Controlname: "UpSingleFile",
|
|
46
|
+
InterfaceType: "",
|
|
47
|
+
udmfile: "file",
|
|
48
|
+
SessionID
|
|
49
|
+
};
|
|
50
|
+
const obj = {};
|
|
51
|
+
_enum.encryptParamStrings.forEach((key) => {
|
|
52
|
+
obj[key] = params[key] || "";
|
|
53
|
+
});
|
|
54
|
+
const encryptParams = queryString.stringify(obj, { sort: false });
|
|
55
|
+
const sha = new szldLibs.HmacSHA512((_a = window == null ? void 0 : window.CONFIG) == null ? void 0 : _a.Salt);
|
|
56
|
+
params["TokenId"] = sha.encrypt(encryptParams);
|
|
57
|
+
return request.domainSetting.baseUrl + "?" + queryString.stringify(params);
|
|
58
|
+
};
|
|
59
|
+
const uploadFormAction = () => {
|
|
60
|
+
var _a;
|
|
61
|
+
const SessionID = sessionStorage.getItem(_enum.TOKEN);
|
|
62
|
+
const params = {
|
|
63
|
+
...request.domainSetting.baseParams,
|
|
64
|
+
PageName: "initializationfile",
|
|
65
|
+
return: true,
|
|
66
|
+
Controlname: "UpSingleFile",
|
|
67
|
+
InterfaceType: "",
|
|
68
|
+
udmfile: "file",
|
|
69
|
+
SessionID
|
|
70
|
+
};
|
|
71
|
+
const obj = {};
|
|
72
|
+
_enum.encryptParamStrings.forEach((key) => {
|
|
73
|
+
obj[key] = params[key] || "";
|
|
74
|
+
});
|
|
75
|
+
const encryptParams = queryString.stringify(obj, { sort: false });
|
|
76
|
+
const sha = new szldLibs.HmacSHA512((_a = window == null ? void 0 : window.CONFIG) == null ? void 0 : _a.Salt);
|
|
77
|
+
params["TokenId"] = sha.encrypt(encryptParams);
|
|
78
|
+
return request.domainSetting.baseUrl + "?" + queryString.stringify(params);
|
|
79
|
+
};
|
|
80
|
+
exports.commonRequest = commonRequest;
|
|
81
|
+
exports.commonRequestActionUrl = commonRequestActionUrl;
|
|
82
|
+
exports.commonRequestDic = commonRequestDic;
|
|
83
|
+
exports.commonRequestWidthParams = commonRequestWidthParams;
|
|
84
|
+
exports.uploadAction = uploadAction;
|
|
85
|
+
exports.uploadFormAction = uploadFormAction;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a, _b;
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
+
const _enum = require("../utils/enum");
|
|
5
|
+
const antd = require("antd");
|
|
6
|
+
const axios = require("axios");
|
|
7
|
+
const _ = require("lodash");
|
|
8
|
+
const queryString = require("query-string");
|
|
9
|
+
const szldLibs = require("szld-libs");
|
|
10
|
+
const status = require("./status");
|
|
11
|
+
const { removeSessionStorage, getSessionStorage } = szldLibs.utils;
|
|
12
|
+
const env = {}.VITE_BUILD_ENV;
|
|
13
|
+
const domainSetting = {
|
|
14
|
+
baseUrl: "",
|
|
15
|
+
baseParams: {}
|
|
16
|
+
};
|
|
17
|
+
if (env === "test" || env === "dev") {
|
|
18
|
+
domainSetting.baseUrl = "/ucc";
|
|
19
|
+
domainSetting.baseParams = {
|
|
20
|
+
AppID: "KF_SZLD_YLFWLR",
|
|
21
|
+
Password: "KF_SZLD_YLFWLR2557013"
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
if (env === "dev") {
|
|
25
|
+
domainSetting.baseUrl = "/api";
|
|
26
|
+
}
|
|
27
|
+
if (env === "production") {
|
|
28
|
+
domainSetting.baseUrl = "/ucc";
|
|
29
|
+
domainSetting.baseParams = {
|
|
30
|
+
AppID: (_a = window == null ? void 0 : window.CONFIG) == null ? void 0 : _a.AppID,
|
|
31
|
+
Password: (_b = window == null ? void 0 : window.CONFIG) == null ? void 0 : _b.Password
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const request = axios.create({
|
|
35
|
+
baseURL: domainSetting.baseUrl,
|
|
36
|
+
headers: { "Content-Type": "application/json;charset=utf-8" },
|
|
37
|
+
withCredentials: true,
|
|
38
|
+
timeout: 3e5,
|
|
39
|
+
params: {
|
|
40
|
+
return: true,
|
|
41
|
+
...domainSetting.baseParams
|
|
42
|
+
},
|
|
43
|
+
transformRequest: [
|
|
44
|
+
(data) => {
|
|
45
|
+
data = JSON.stringify(data);
|
|
46
|
+
return data;
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
});
|
|
50
|
+
request.interceptors.request.use(
|
|
51
|
+
function(config) {
|
|
52
|
+
var _a2;
|
|
53
|
+
const oeid = sessionStorage.getItem(_enum.OEID);
|
|
54
|
+
if (oeid) {
|
|
55
|
+
config.data = {
|
|
56
|
+
...(config == null ? void 0 : config.data) || {},
|
|
57
|
+
oeid
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const token = sessionStorage.getItem(_enum.TOKEN);
|
|
61
|
+
if (token) {
|
|
62
|
+
const types = ["GetVCode", "FirstLoginUpdateMM", "DPGLSystemName"];
|
|
63
|
+
const names = ["Login"];
|
|
64
|
+
if (!names.includes(config.params["Controlname"]) && !types.includes(config.params["InterfaceType"])) {
|
|
65
|
+
config.params["SessionID"] = token;
|
|
66
|
+
config.params["InterfaceType"] = config.params["InterfaceType"] || "";
|
|
67
|
+
const obj = {};
|
|
68
|
+
_enum.encryptParamStrings.forEach((key) => {
|
|
69
|
+
obj[key] = config.params[key] || "";
|
|
70
|
+
});
|
|
71
|
+
const encryptParams = queryString.stringify(obj, { sort: false });
|
|
72
|
+
const sha = new szldLibs.HmacSHA512((_a2 = window == null ? void 0 : window.CONFIG) == null ? void 0 : _a2.Salt);
|
|
73
|
+
config.params["TokenId"] = sha.encrypt(encryptParams);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return config;
|
|
77
|
+
},
|
|
78
|
+
function(error) {
|
|
79
|
+
return Promise.reject(error);
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
request.interceptors.response.use(
|
|
83
|
+
function(response) {
|
|
84
|
+
var _a2;
|
|
85
|
+
const status$1 = response.status;
|
|
86
|
+
if (status$1 < 200 || status$1 >= 300) {
|
|
87
|
+
const msg = status.showStatus(status$1);
|
|
88
|
+
if (typeof response.data === "string") {
|
|
89
|
+
response.data = { msg };
|
|
90
|
+
} else {
|
|
91
|
+
response.data = {
|
|
92
|
+
data: response.data,
|
|
93
|
+
msg
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
msgError(response.data.msg);
|
|
97
|
+
Promise.reject(response);
|
|
98
|
+
return {
|
|
99
|
+
ReturnValue: 0,
|
|
100
|
+
...response.data
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
if (typeof response.data === "string" && response.data.includes("Invalid")) {
|
|
104
|
+
msgError("登录已失效,请重新登录");
|
|
105
|
+
removeSessionStorage(_enum.USERINFO);
|
|
106
|
+
removeSessionStorage(_enum.TOKEN);
|
|
107
|
+
Promise.reject(response);
|
|
108
|
+
return {
|
|
109
|
+
ReturnValue: 0,
|
|
110
|
+
msg: "登录已失效,请重新登录",
|
|
111
|
+
data: response.data
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
const result = response.data;
|
|
115
|
+
const noHitControlList = [];
|
|
116
|
+
if (_.isNumber(result == null ? void 0 : result.ReturnValue) && result.ReturnValue !== 1) {
|
|
117
|
+
if (!noHitControlList.includes((_a2 = response.config) == null ? void 0 : _a2.params["Controlname"])) {
|
|
118
|
+
msgError(result.msg);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return result;
|
|
122
|
+
},
|
|
123
|
+
function(error) {
|
|
124
|
+
msgError("请求出错");
|
|
125
|
+
Promise.reject(error);
|
|
126
|
+
return {
|
|
127
|
+
ReturnValue: 0,
|
|
128
|
+
msg: "请求出错",
|
|
129
|
+
data: error
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
const msgError = (content) => {
|
|
134
|
+
antd.message.error({
|
|
135
|
+
content,
|
|
136
|
+
key: "globalError"
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
exports.default = request;
|
|
140
|
+
exports.domainSetting = domainSetting;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const showStatus: (status: number) => string;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const showStatus = (status) => {
|
|
4
|
+
let message = "";
|
|
5
|
+
switch (status) {
|
|
6
|
+
case 400:
|
|
7
|
+
message = "请求错误(400)";
|
|
8
|
+
break;
|
|
9
|
+
case 401:
|
|
10
|
+
message = "未授权,请重新登录(401)";
|
|
11
|
+
break;
|
|
12
|
+
case 403:
|
|
13
|
+
message = "拒绝访问(403)";
|
|
14
|
+
break;
|
|
15
|
+
case 404:
|
|
16
|
+
message = "请求出错(404)";
|
|
17
|
+
break;
|
|
18
|
+
case 408:
|
|
19
|
+
message = "请求超时(408)";
|
|
20
|
+
break;
|
|
21
|
+
case 500:
|
|
22
|
+
message = "服务器错误(500)";
|
|
23
|
+
break;
|
|
24
|
+
case 501:
|
|
25
|
+
message = "服务未实现(501)";
|
|
26
|
+
break;
|
|
27
|
+
case 502:
|
|
28
|
+
message = "网络错误(502)";
|
|
29
|
+
break;
|
|
30
|
+
case 503:
|
|
31
|
+
message = "服务不可用(503)";
|
|
32
|
+
break;
|
|
33
|
+
case 504:
|
|
34
|
+
message = "网络超时(504)";
|
|
35
|
+
break;
|
|
36
|
+
case 505:
|
|
37
|
+
message = "HTTP版本不受支持(505)";
|
|
38
|
+
break;
|
|
39
|
+
default:
|
|
40
|
+
message = `连接出错(${status})!`;
|
|
41
|
+
}
|
|
42
|
+
return `${message},请检查网络或联系管理员!`;
|
|
43
|
+
};
|
|
44
|
+
exports.showStatus = showStatus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const encryptParamStrings = ["AppID", "Password", "PageName", "Controlname", "InterfaceType", "SessionID"];
|
|
4
|
+
const TOKEN = "TOKEN";
|
|
5
|
+
const USERINFO = "USERINFO";
|
|
6
|
+
const OEID = "OEID";
|
|
7
|
+
exports.OEID = OEID;
|
|
8
|
+
exports.TOKEN = TOKEN;
|
|
9
|
+
exports.USERINFO = USERINFO;
|
|
10
|
+
exports.encryptParamStrings = encryptParamStrings;
|
package/lib/utils/method.js
CHANGED
|
@@ -178,16 +178,19 @@ const handleAttrList = (attrList, extraAttrs) => {
|
|
|
178
178
|
const combinationGroups = parsedAttrList.filter((item) => {
|
|
179
179
|
var _a;
|
|
180
180
|
return (_a = item.json) == null ? void 0 : _a.combination;
|
|
181
|
-
}).reduce(
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
}).reduce(
|
|
182
|
+
(groups, item) => {
|
|
183
|
+
const combinationId = item.json["combination-id"];
|
|
184
|
+
if (!combinationId)
|
|
185
|
+
return groups;
|
|
186
|
+
if (!groups[combinationId]) {
|
|
187
|
+
groups[combinationId] = [];
|
|
188
|
+
}
|
|
189
|
+
groups[combinationId].push(item);
|
|
184
190
|
return groups;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
groups[combinationId].push(item);
|
|
189
|
-
return groups;
|
|
190
|
-
}, {});
|
|
191
|
+
},
|
|
192
|
+
{}
|
|
193
|
+
);
|
|
191
194
|
const excludeAttrIds = /* @__PURE__ */ new Set();
|
|
192
195
|
Object.values(combinationGroups).forEach((group) => {
|
|
193
196
|
if ((group == null ? void 0 : group.length) === 0)
|
|
@@ -312,7 +315,8 @@ const handleAttrListToObj = (attrList) => {
|
|
|
312
315
|
data_list: [processLevel(item.children)]
|
|
313
316
|
};
|
|
314
317
|
} else if (item.attrtype === 1 && item.children.length > 0 && Array.isArray(item.children)) {
|
|
315
|
-
|
|
318
|
+
let { attrvalue = [], children = [] } = item || {};
|
|
319
|
+
attrvalue = Array.isArray(attrvalue) ? attrvalue : [attrvalue];
|
|
316
320
|
if (Array.isArray(attrvalue) && (attrvalue == null ? void 0 : attrvalue.length)) {
|
|
317
321
|
item.children = attrvalue.map((v) => {
|
|
318
322
|
return handleObjDetailToSignleAttrList((children == null ? void 0 : children[0]) || [], v);
|
package/lib/vite-env.d.ts
CHANGED
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.99",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -16,10 +16,12 @@
|
|
|
16
16
|
"dayjs": "^1.11.19",
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
18
|
"pako": "^2.1.0",
|
|
19
|
+
"query-string": "^9.3.1",
|
|
19
20
|
"react": "^18.2.0",
|
|
20
21
|
"react-dom": "^18.2.0",
|
|
21
22
|
"react-resizable": "^3.0.5",
|
|
22
23
|
"react-router-dom": "^6.6.1",
|
|
24
|
+
"react-vant": "^3.3.5",
|
|
23
25
|
"react-window": "^1.8.9",
|
|
24
26
|
"szld-libs": "^0.2.55"
|
|
25
27
|
},
|