szld-libs 0.3.95 → 0.3.97
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 +828 -829
- package/dist/szld-components.umd.js +28 -28
- package/es/components/DynamicForm/index.js +14 -12
- package/es/components/DynamicFormMobile/mySelect/index.js +1 -2
- package/es/index.css +32 -24
- package/es/index.js +20 -23
- package/es/mock/index.js +32 -335
- package/es/utils/szxkFunc.js +1 -1
- package/lib/components/DynamicForm/index.js +14 -12
- package/lib/components/DynamicFormMobile/mySelect/index.js +1 -2
- package/lib/index.css +32 -24
- package/lib/index.js +19 -22
- package/lib/mock/index.js +32 -335
- package/lib/utils/szxkFunc.js +1 -1
- package/package.json +1 -1
|
@@ -59,9 +59,9 @@ const DynamicForm = react.forwardRef((props, ref) => {
|
|
|
59
59
|
return delFileListRef.current;
|
|
60
60
|
}
|
|
61
61
|
}));
|
|
62
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: formShowType === "table" ? /* @__PURE__ */ jsxRuntime.jsx(antd.Form.List, { name: formListItemName || "customFormList", initialValue: [{}], children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntime.
|
|
63
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
64
|
-
/* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { className: "custom-form-list-header", align: "center", children: formConfig == null ? void 0 : formConfig.map((child, index) => {
|
|
62
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: formShowType === "table" ? /* @__PURE__ */ jsxRuntime.jsx(antd.Form.List, { name: formListItemName || "customFormList", initialValue: [{}], children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { className: "custom-form-body", children: [
|
|
63
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "custom-form-list", children: [
|
|
64
|
+
/* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { align: "center", style: { position: "relative", backgroundColor: "#004d32" }, children: /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { className: "custom-form-list-header", align: "center", children: formConfig == null ? void 0 : formConfig.map((child, index) => {
|
|
65
65
|
var _a, _b;
|
|
66
66
|
const width = ((_a = child == null ? void 0 : child.json) == null ? void 0 : _a["input-width"]) && Number((_b = child == null ? void 0 : child.json) == null ? void 0 : _b["input-width"]) || defaultWidth;
|
|
67
67
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -79,11 +79,8 @@ const DynamicForm = react.forwardRef((props, ref) => {
|
|
|
79
79
|
},
|
|
80
80
|
index
|
|
81
81
|
);
|
|
82
|
-
}) }),
|
|
83
|
-
/* @__PURE__ */ jsxRuntime.jsx("
|
|
84
|
-
] }),
|
|
85
|
-
fields.map((field) => /* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { align: "center", className: "custom-form-list-item-container", children: [
|
|
86
|
-
/* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { className: "custom-form-list-item", align: "center", children: formConfig == null ? void 0 : formConfig.map((child, index) => {
|
|
82
|
+
}) }) }),
|
|
83
|
+
fields.map((field) => /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { align: "center", className: "custom-form-list-item-container", children: /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { className: "custom-form-list-item", align: "center", children: formConfig == null ? void 0 : formConfig.map((child, index) => {
|
|
87
84
|
var _a, _b;
|
|
88
85
|
const width = ((_a = child == null ? void 0 : child.json) == null ? void 0 : _a["input-width"]) && Number((_b = child == null ? void 0 : child.json) == null ? void 0 : _b["input-width"]) || defaultWidth;
|
|
89
86
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -112,10 +109,15 @@ const DynamicForm = react.forwardRef((props, ref) => {
|
|
|
112
109
|
},
|
|
113
110
|
child.attrid || `child-${index}`
|
|
114
111
|
);
|
|
115
|
-
}) }),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
112
|
+
}) }) }, field.key))
|
|
113
|
+
] }),
|
|
114
|
+
/* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { className: "operation", vertical: true, children: [
|
|
115
|
+
/* @__PURE__ */ jsxRuntime.jsx("a", { className: "custom-form-list-add-btn", onClick: () => add(), children: langId === "10001" ? "新增" : "Add" }),
|
|
116
|
+
(fields == null ? void 0 : fields.length) > 0 && (fields == null ? void 0 : fields.map((v, i) => {
|
|
117
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { className: "custom-form-list-del-btn", onClick: () => remove(v.key), children: langId === "10001" ? "删除" : "Delete" }, v.key);
|
|
118
|
+
}))
|
|
119
|
+
] })
|
|
120
|
+
] }) }) : /* @__PURE__ */ jsxRuntime.jsx(antd.Row, { gutter: colSpace, children: formConfig.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(react.Fragment, { children: handleRenderItem({
|
|
119
121
|
item,
|
|
120
122
|
readonly,
|
|
121
123
|
colNum,
|
package/lib/index.css
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
|
|
2
2
|
.custom-form-body {
|
|
3
|
-
width:
|
|
3
|
+
width: 100%;
|
|
4
4
|
}
|
|
5
5
|
.custom-form-body .custom-form-list {
|
|
6
|
+
width: calc(100% - 48px);
|
|
6
7
|
position: relative;
|
|
7
|
-
width: 1300px;
|
|
8
8
|
overflow-x: auto;
|
|
9
|
-
background-color: #
|
|
9
|
+
background-color: #4fb890 !important;
|
|
10
|
+
}
|
|
11
|
+
.custom-form-body .custom-form-list::-webkit-scrollbar {
|
|
12
|
+
width: 8px;
|
|
13
|
+
height: 8px;
|
|
14
|
+
}
|
|
15
|
+
.custom-form-body .custom-form-list::-webkit-scrollbar-track {
|
|
16
|
+
background: #dff2f0;
|
|
17
|
+
}
|
|
18
|
+
.custom-form-body .custom-form-list::-webkit-scrollbar-thumb {
|
|
19
|
+
background: #4fb890;
|
|
20
|
+
border-radius: 4px;
|
|
21
|
+
}
|
|
22
|
+
.custom-form-body .custom-form-list::-webkit-scrollbar-thumb:hover {
|
|
23
|
+
background: #4fb890;
|
|
24
|
+
}
|
|
25
|
+
.custom-form-body .custom-form-list .ant-flex-align-center {
|
|
26
|
+
background-color: #4fb890 !important;
|
|
10
27
|
}
|
|
11
28
|
.custom-form-body .custom-form-list .custom-form-list-header {
|
|
12
29
|
width: fit-content;
|
|
@@ -27,9 +44,10 @@
|
|
|
27
44
|
}
|
|
28
45
|
.custom-form-body .custom-form-list .custom-form-list-item-container {
|
|
29
46
|
position: relative;
|
|
47
|
+
background-color: #fff !important;
|
|
30
48
|
}
|
|
31
49
|
.custom-form-body .custom-form-list .custom-form-list-item-container .custom-form-list-item {
|
|
32
|
-
width:
|
|
50
|
+
width: 100%;
|
|
33
51
|
min-width: fit-content;
|
|
34
52
|
/* 确保至少占满可视区域 */
|
|
35
53
|
min-height: 48px;
|
|
@@ -48,49 +66,39 @@
|
|
|
48
66
|
margin-left: 14px;
|
|
49
67
|
}
|
|
50
68
|
.custom-form-body .custom-form-list .custom-form-list-item-container:nth-child(even) .custom-form-list-item {
|
|
51
|
-
|
|
52
|
-
background: #
|
|
69
|
+
border-bottom: 1px solid #dff2f0;
|
|
70
|
+
background: #fff !important;
|
|
53
71
|
}
|
|
54
72
|
.custom-form-body .custom-form-list .custom-form-list-item-container:nth-child(even) .custom-form-list-item .custom-form-list-item-content {
|
|
55
|
-
background: #
|
|
73
|
+
background: #fff !important;
|
|
56
74
|
}
|
|
57
75
|
.custom-form-body .custom-form-list .custom-form-list-item-container:nth-child(odd) .custom-form-list-item {
|
|
58
|
-
|
|
76
|
+
border-bottom: 1px solid #dff2f0;
|
|
77
|
+
background-color: #fff !important;
|
|
59
78
|
}
|
|
60
79
|
.custom-form-body .custom-form-list .custom-form-list-item-container:nth-child(odd) .custom-form-list-item .custom-form-list-item-content {
|
|
61
|
-
background-color: #
|
|
80
|
+
background-color: #fff !important;
|
|
62
81
|
}
|
|
63
82
|
.custom-form-body .custom-form-list-add-btn {
|
|
64
|
-
color: #
|
|
65
|
-
background: #
|
|
83
|
+
color: #4588d4;
|
|
84
|
+
background: #dff2f0;
|
|
66
85
|
width: 48px;
|
|
67
86
|
height: 48px;
|
|
68
87
|
line-height: 48px;
|
|
69
88
|
display: flex;
|
|
70
89
|
flex-direction: row-reverse;
|
|
71
90
|
flex-shrink: 0;
|
|
72
|
-
position: sticky;
|
|
73
|
-
text-decoration: underline;
|
|
74
|
-
text-align: right;
|
|
75
|
-
right: 0;
|
|
76
|
-
top: 0;
|
|
77
91
|
}
|
|
78
92
|
.custom-form-body .custom-form-list-del-btn {
|
|
79
|
-
background: #
|
|
93
|
+
background: #dff2f0;
|
|
80
94
|
width: 48px;
|
|
81
95
|
line-height: 48px;
|
|
82
96
|
text-align: center;
|
|
83
|
-
color: #
|
|
97
|
+
color: #ff4d4f;
|
|
84
98
|
display: flex;
|
|
85
99
|
flex-direction: row-reverse;
|
|
86
100
|
align-items: center;
|
|
87
101
|
align-self: stretch;
|
|
88
102
|
/* 关键:让按钮高度填满父容器 */
|
|
89
103
|
flex-shrink: 0;
|
|
90
|
-
position: sticky;
|
|
91
|
-
text-decoration: underline;
|
|
92
|
-
text-align: right;
|
|
93
|
-
right: 0;
|
|
94
|
-
top: 0;
|
|
95
|
-
bottom: 0;
|
|
96
104
|
}
|
package/lib/index.js
CHANGED
|
@@ -5,7 +5,6 @@ const method = require("./utils/method");
|
|
|
5
5
|
const main = require("./main");
|
|
6
6
|
const reactRouterDom = require("react-router-dom");
|
|
7
7
|
const antd = require("antd");
|
|
8
|
-
const reactVant = require("react-vant");
|
|
9
8
|
const react = require("react");
|
|
10
9
|
const ReactDOM = require("react-dom/client");
|
|
11
10
|
const zhCN = require("antd/es/locale/zh_CN");
|
|
@@ -17,7 +16,7 @@ const tableDetail = "";
|
|
|
17
16
|
dayjs.locale("zh-cn");
|
|
18
17
|
const Demo = () => {
|
|
19
18
|
const formRef = react.useRef(null);
|
|
20
|
-
const [form] =
|
|
19
|
+
const [form] = antd.Form.useForm();
|
|
21
20
|
const [list, setList] = react.useState([]);
|
|
22
21
|
const [langId, setLangId] = react.useState("");
|
|
23
22
|
const onValuesChange = async (values, allValues) => {
|
|
@@ -34,26 +33,24 @@ const Demo = () => {
|
|
|
34
33
|
};
|
|
35
34
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { height: "100vh", display: "flex", flexDirection: "column", gap: 20 }, children: [
|
|
36
35
|
/* @__PURE__ */ jsxRuntime.jsx(main.BackHeader, { title: "页头组件", isBack: true }),
|
|
37
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: {}, children: /* @__PURE__ */ jsxRuntime.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactVant.Form.Item, { name: "submit", style: { marginLeft: "auto" }, children: /* @__PURE__ */ jsxRuntime.jsx(reactVant.Button, { round: true, nativeType: "submit", type: "primary", block: true, children: "提交" }) })
|
|
56
|
-
] }) }),
|
|
36
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "20px" }, children: /* @__PURE__ */ jsxRuntime.jsx(antd.Form, { form, onValuesChange, onFinish, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
37
|
+
main.DynamicForm,
|
|
38
|
+
{
|
|
39
|
+
formConfig: list,
|
|
40
|
+
readonly: false,
|
|
41
|
+
form,
|
|
42
|
+
relatedid: "guid",
|
|
43
|
+
colNum: 1,
|
|
44
|
+
defaultWidth: 358,
|
|
45
|
+
commonRequestWidthParams: services.commonRequestWidthParams,
|
|
46
|
+
uploadAction: services.uploadFormAction,
|
|
47
|
+
commonRequest: services.commonRequest,
|
|
48
|
+
instructionShowMode: "icon",
|
|
49
|
+
ref: formRef,
|
|
50
|
+
formShowType: "table",
|
|
51
|
+
langId
|
|
52
|
+
}
|
|
53
|
+
) }) }),
|
|
57
54
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
58
55
|
"2. 测试循环滚动组件",
|
|
59
56
|
/* @__PURE__ */ jsxRuntime.jsx(
|
package/lib/mock/index.js
CHANGED
|
@@ -4,366 +4,63 @@ const baseAttrList = [];
|
|
|
4
4
|
const attrList = [
|
|
5
5
|
{
|
|
6
6
|
xh: 1,
|
|
7
|
-
asid: "
|
|
7
|
+
asid: "61B08EFD73FF4F8282AAC8B7ED66313D",
|
|
8
8
|
astype: 0,
|
|
9
|
-
tname: "
|
|
10
|
-
attrid: "
|
|
11
|
-
attrname: "
|
|
9
|
+
tname: "qsfjfw1_table",
|
|
10
|
+
attrid: "117880C8989140F58118A83C0016D0C5",
|
|
11
|
+
attrname: "日期",
|
|
12
12
|
attrtype: 0,
|
|
13
|
-
info: '{"input":"
|
|
13
|
+
info: '{"input":"multiple-date-picker","dataType":"date","must":true}',
|
|
14
14
|
info_base64: 0,
|
|
15
|
-
createtime: "2026-
|
|
15
|
+
createtime: "2026-05-06 17:43:42",
|
|
16
16
|
attrvalue: "",
|
|
17
17
|
serialnum: 1,
|
|
18
|
-
children: []
|
|
19
|
-
json: {
|
|
20
|
-
input: "text",
|
|
21
|
-
dataType: "string",
|
|
22
|
-
length: 20,
|
|
23
|
-
must: true,
|
|
24
|
-
regexp: "/^[A-Za-z]+$/",
|
|
25
|
-
"regexp-message": "请输入英文字母"
|
|
26
|
-
}
|
|
18
|
+
children: []
|
|
27
19
|
},
|
|
28
20
|
{
|
|
29
21
|
xh: 2,
|
|
30
|
-
asid: "
|
|
22
|
+
asid: "61B08EFD73FF4F8282AAC8B7ED66313D",
|
|
31
23
|
astype: 0,
|
|
32
|
-
tname: "
|
|
33
|
-
attrid: "
|
|
34
|
-
attrname: "
|
|
24
|
+
tname: "qsfjfw1_table",
|
|
25
|
+
attrid: "0EEA99B962494A438DF6CA8DBA77F1A5",
|
|
26
|
+
attrname: "次数",
|
|
35
27
|
attrtype: 0,
|
|
36
|
-
info: '{"input":"
|
|
28
|
+
info: '{"input":"number","dataType":"int","must":true}',
|
|
37
29
|
info_base64: 0,
|
|
38
|
-
createtime: "2026-
|
|
30
|
+
createtime: "2026-05-06 17:44:57",
|
|
39
31
|
attrvalue: "",
|
|
40
32
|
serialnum: 2,
|
|
41
|
-
children: []
|
|
42
|
-
json: {
|
|
43
|
-
input: "text",
|
|
44
|
-
dataType: "string",
|
|
45
|
-
length: 100
|
|
46
|
-
}
|
|
33
|
+
children: []
|
|
47
34
|
},
|
|
48
35
|
{
|
|
49
36
|
xh: 3,
|
|
50
|
-
asid: "
|
|
37
|
+
asid: "61B08EFD73FF4F8282AAC8B7ED66313D",
|
|
51
38
|
astype: 0,
|
|
52
|
-
tname: "
|
|
53
|
-
attrid: "
|
|
54
|
-
attrname: "
|
|
39
|
+
tname: "qsfjfw1_table",
|
|
40
|
+
attrid: "DBC8E3036BC14E10B231FD86AFA8EC5F",
|
|
41
|
+
attrname: "时间",
|
|
55
42
|
attrtype: 0,
|
|
56
|
-
info: '{"input":"
|
|
43
|
+
info: '{"input":"mult-select","dataType":"string","length":100,"inputType":"local","data":["5:00pm – 5:30pm", "5:30pm – 6:00pm", "6:00pm – 6:30pm", "6:30pm – 7:00pm", "7:00pm – 7:30pm", "7:30pm – 8:00pm"],"must":true}',
|
|
57
44
|
info_base64: 0,
|
|
58
|
-
createtime: "2026-
|
|
45
|
+
createtime: "2026-05-06 17:43:42",
|
|
59
46
|
attrvalue: "",
|
|
60
47
|
serialnum: 3,
|
|
61
|
-
children: []
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
combination: true,
|
|
67
|
-
"combination-id": 1,
|
|
68
|
-
"combination-name": "重量",
|
|
69
|
-
"combination-width-ratio": 0.7,
|
|
70
|
-
must: true,
|
|
71
|
-
combinations: [
|
|
72
|
-
{
|
|
73
|
-
xh: 3,
|
|
74
|
-
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
75
|
-
astype: 0,
|
|
76
|
-
tname: "gg_table",
|
|
77
|
-
attrid: "B1B10494F9A949CCBD26567A597E8DAE",
|
|
78
|
-
attrname: "重量",
|
|
79
|
-
attrtype: 0,
|
|
80
|
-
info: '{"input":"text","dataType":"string","length":3,"combination":true,"combination-id":1,"combination-name":"重量","combination-width-ratio":0.7,"must":true}',
|
|
81
|
-
info_base64: 0,
|
|
82
|
-
createtime: "2026-01-05 21:26:13",
|
|
83
|
-
attrvalue: "",
|
|
84
|
-
serialnum: 3,
|
|
85
|
-
children: [],
|
|
86
|
-
json: {
|
|
87
|
-
input: "text",
|
|
88
|
-
dataType: "string",
|
|
89
|
-
length: 3,
|
|
90
|
-
combination: true,
|
|
91
|
-
"combination-id": 1,
|
|
92
|
-
"combination-name": "重量",
|
|
93
|
-
"combination-width-ratio": 0.7,
|
|
94
|
-
must: true
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
xh: 4,
|
|
99
|
-
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
100
|
-
astype: 0,
|
|
101
|
-
tname: "gg_table",
|
|
102
|
-
attrid: "A3CB9307DED6493382C78E065F3C6A99",
|
|
103
|
-
attrname: "单位",
|
|
104
|
-
attrtype: 0,
|
|
105
|
-
info: '{"input":"select","dataType":"string","length":100,"inputType":"local","default":"5000008-1","combination":true,"combination-id":1,"combination-name":"重量","combination-width-ratio":0.3,"must":true,"options":[{"label":"磅","value":"5000008-1"},{"label":"斤","value":"5000008-2"}]}',
|
|
106
|
-
info_base64: 0,
|
|
107
|
-
createtime: "2026-01-05 21:27:16",
|
|
108
|
-
attrvalue: "",
|
|
109
|
-
serialnum: 4,
|
|
110
|
-
children: [],
|
|
111
|
-
json: {
|
|
112
|
-
input: "select",
|
|
113
|
-
dataType: "string",
|
|
114
|
-
length: 100,
|
|
115
|
-
inputType: "local",
|
|
116
|
-
default: "5000008-1",
|
|
117
|
-
combination: true,
|
|
118
|
-
"combination-id": 1,
|
|
119
|
-
"combination-name": "重量",
|
|
120
|
-
"combination-width-ratio": 0.3,
|
|
121
|
-
must: true,
|
|
122
|
-
options: [
|
|
123
|
-
{
|
|
124
|
-
label: "磅",
|
|
125
|
-
value: "5000008-1"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
label: "斤",
|
|
129
|
-
value: "5000008-2"
|
|
130
|
-
}
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
]
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
xh: 5,
|
|
139
|
-
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
140
|
-
astype: 0,
|
|
141
|
-
tname: "gg_table",
|
|
142
|
-
attrid: "F0999F269D3C4425A59A883442055C5C",
|
|
143
|
-
attrname: "性别",
|
|
144
|
-
attrtype: 0,
|
|
145
|
-
info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","options":[{"label":"公","value":"5000014-1"},{"label":"母","value":"5000014-2"}]}',
|
|
146
|
-
info_base64: 0,
|
|
147
|
-
createtime: "2026-01-05 21:28:11",
|
|
148
|
-
attrvalue: "",
|
|
149
|
-
serialnum: 5,
|
|
150
|
-
children: [],
|
|
151
|
-
json: {
|
|
152
|
-
input: "radio",
|
|
153
|
-
dataType: "string",
|
|
154
|
-
length: 100,
|
|
155
|
-
inputType: "local",
|
|
156
|
-
options: [
|
|
157
|
-
{
|
|
158
|
-
label: "公",
|
|
159
|
-
value: "5000014-1"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
label: "母",
|
|
163
|
-
value: "5000014-2"
|
|
164
|
-
}
|
|
165
|
-
]
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
xh: 6,
|
|
170
|
-
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
171
|
-
astype: 0,
|
|
172
|
-
tname: "gg_table",
|
|
173
|
-
attrid: "4986EE62B15E4C0197A1E073E098CCAF",
|
|
174
|
-
attrname: "是否绝育",
|
|
175
|
-
attrtype: 0,
|
|
176
|
-
info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","must":true,"options":[{"label":"是","value":"5000011-1"},{"label":"否","value":"5000011-2"}]}',
|
|
177
|
-
info_base64: 0,
|
|
178
|
-
createtime: "2026-01-05 21:28:34",
|
|
179
|
-
attrvalue: "",
|
|
180
|
-
serialnum: 6,
|
|
181
|
-
children: [],
|
|
182
|
-
json: {
|
|
183
|
-
input: "radio",
|
|
184
|
-
dataType: "string",
|
|
185
|
-
length: 100,
|
|
186
|
-
inputType: "local",
|
|
187
|
-
must: true,
|
|
188
|
-
options: [
|
|
189
|
-
{
|
|
190
|
-
label: "是",
|
|
191
|
-
value: "5000011-1"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
label: "否",
|
|
195
|
-
value: "5000011-2"
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
xh: 7,
|
|
202
|
-
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
203
|
-
astype: 0,
|
|
204
|
-
tname: "gg_table",
|
|
205
|
-
attrid: "8561D992C88645EE9EA184800BBE0E1D",
|
|
206
|
-
attrname: "是否对其他狗有攻击性",
|
|
207
|
-
attrtype: 0,
|
|
208
|
-
info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","must":true,"options":[{"label":"是","value":"5000013-1"},{"label":"否","value":"5000013-2"},{"label":"视情况而定","value":"5000013-3"},{"label":"不确定","value":"5000013-4"}]}',
|
|
209
|
-
info_base64: 0,
|
|
210
|
-
createtime: "2026-01-05 21:29:07",
|
|
211
|
-
attrvalue: "",
|
|
212
|
-
serialnum: 7,
|
|
213
|
-
children: [],
|
|
214
|
-
json: {
|
|
215
|
-
input: "radio",
|
|
216
|
-
dataType: "string",
|
|
217
|
-
length: 100,
|
|
218
|
-
inputType: "local",
|
|
219
|
-
must: true,
|
|
220
|
-
options: [
|
|
221
|
-
{
|
|
222
|
-
label: "是",
|
|
223
|
-
value: "5000013-1"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
label: "否",
|
|
227
|
-
value: "5000013-2"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
label: "视情况而定",
|
|
231
|
-
value: "5000013-3"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
label: "不确定",
|
|
235
|
-
value: "5000013-4"
|
|
236
|
-
}
|
|
237
|
-
]
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
xh: 8,
|
|
242
|
-
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
243
|
-
astype: 0,
|
|
244
|
-
tname: "gg_table",
|
|
245
|
-
attrid: "93366648DF5146E98AE3D58DE5D6BD73",
|
|
246
|
-
attrname: "是否对人有攻击性",
|
|
247
|
-
attrtype: 0,
|
|
248
|
-
info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","must":true,"options":[{"label":"是","value":"5000013-1"},{"label":"否","value":"5000013-2"},{"label":"视情况而定","value":"5000013-3"},{"label":"不确定","value":"5000013-4"}]}',
|
|
249
|
-
info_base64: 0,
|
|
250
|
-
createtime: "2026-01-05 21:29:24",
|
|
251
|
-
attrvalue: "",
|
|
252
|
-
serialnum: 8,
|
|
253
|
-
children: [],
|
|
254
|
-
json: {
|
|
255
|
-
input: "radio",
|
|
256
|
-
dataType: "string",
|
|
257
|
-
length: 100,
|
|
258
|
-
inputType: "local",
|
|
259
|
-
must: true,
|
|
260
|
-
options: [
|
|
261
|
-
{
|
|
262
|
-
label: "是",
|
|
263
|
-
value: "5000013-1"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
label: "否",
|
|
267
|
-
value: "5000013-2"
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
label: "视情况而定",
|
|
271
|
-
value: "5000013-3"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
label: "不确定",
|
|
275
|
-
value: "5000013-4"
|
|
276
|
-
}
|
|
277
|
-
]
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
xh: 9,
|
|
282
|
-
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
283
|
-
astype: 0,
|
|
284
|
-
tname: "gg_table",
|
|
285
|
-
attrid: "6A63A6508C0E44D38AB68CB27EC332E8",
|
|
286
|
-
attrname: "狗狗照片",
|
|
287
|
-
attrtype: 0,
|
|
288
|
-
info: '{"input":"image","upload-accept":".png,.jpg,.jpeg","upload-max-count":"5","upload-size":"5","dataType":"string","length":4000}',
|
|
289
|
-
info_base64: 0,
|
|
290
|
-
createtime: "2026-01-05 21:29:46",
|
|
291
|
-
attrvalue: "",
|
|
292
|
-
serialnum: 9,
|
|
293
|
-
children: [],
|
|
294
|
-
json: {
|
|
295
|
-
input: "image",
|
|
296
|
-
"upload-accept": ".png,.jpg,.jpeg",
|
|
297
|
-
"upload-max-count": "5",
|
|
298
|
-
"upload-size": "5",
|
|
299
|
-
dataType: "string",
|
|
300
|
-
length: 4e3
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
xh: 10,
|
|
305
|
-
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
306
|
-
astype: 0,
|
|
307
|
-
tname: "gg_table",
|
|
308
|
-
attrid: "6730DFF94989425F9ED90A4A77EE3C5B",
|
|
309
|
-
attrname: "疫苗证明",
|
|
310
|
-
attrtype: 0,
|
|
311
|
-
info: '{"input":"file","upload-accept":".png,jpeg,jpg,.pdf,.doc,.docx,.xls,.xlsx,.txt,.zip,.rar,.7z","upload-max-count":"5","upload-size":"10","dataType":"string","length":4000}',
|
|
312
|
-
info_base64: 0,
|
|
313
|
-
createtime: "2026-01-05 21:30:05",
|
|
314
|
-
attrvalue: "",
|
|
315
|
-
serialnum: 10,
|
|
316
|
-
children: [],
|
|
317
|
-
json: {
|
|
318
|
-
input: "file",
|
|
319
|
-
"upload-accept": ".png,jpeg,jpg,.pdf,.doc,.docx,.xls,.xlsx,.txt,.zip,.rar,.7z",
|
|
320
|
-
"upload-max-count": "5",
|
|
321
|
-
"upload-size": "10",
|
|
322
|
-
dataType: "string",
|
|
323
|
-
length: 4e3
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
xh: 11,
|
|
328
|
-
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
329
|
-
astype: 0,
|
|
330
|
-
tname: "gg_table",
|
|
331
|
-
attrid: "23A6082D509340BCA10ED419A95F9B7D",
|
|
332
|
-
attrname: "生日",
|
|
333
|
-
attrtype: 0,
|
|
334
|
-
info: '{"input":"date-picker","dataType":"date","instruction":"如不确定出生日期可选择大概日期","instruction-color":"#999999","must":true}',
|
|
335
|
-
info_base64: 0,
|
|
336
|
-
createtime: "2026-01-05 21:30:21",
|
|
337
|
-
attrvalue: "",
|
|
338
|
-
serialnum: 11,
|
|
339
|
-
children: [],
|
|
340
|
-
json: {
|
|
341
|
-
input: "date-picker",
|
|
342
|
-
dataType: "date",
|
|
343
|
-
instruction: "如不确定出生日期可选择大概日期",
|
|
344
|
-
"instruction-color": "#999999",
|
|
345
|
-
must: true
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
xh: 12,
|
|
350
|
-
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
48
|
+
children: []
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
xh: 4,
|
|
52
|
+
asid: "61B08EFD73FF4F8282AAC8B7ED66313D",
|
|
351
53
|
astype: 0,
|
|
352
|
-
tname: "
|
|
353
|
-
attrid: "
|
|
354
|
-
attrname: "
|
|
54
|
+
tname: "qsfjfw1_table",
|
|
55
|
+
attrid: "6E8835F705D84C519F616DB81F4CCA0A",
|
|
56
|
+
attrname: "说明",
|
|
355
57
|
attrtype: 0,
|
|
356
|
-
info: '{"input":"
|
|
58
|
+
info: '{"input":"text","dataType":"string","length":100,"must":true}',
|
|
357
59
|
info_base64: 0,
|
|
358
|
-
createtime: "2026-
|
|
60
|
+
createtime: "2026-05-06 17:43:42",
|
|
359
61
|
attrvalue: "",
|
|
360
|
-
serialnum:
|
|
361
|
-
children: []
|
|
362
|
-
json: {
|
|
363
|
-
input: "textarea",
|
|
364
|
-
dataType: "string",
|
|
365
|
-
length: 500
|
|
366
|
-
}
|
|
62
|
+
serialnum: 4,
|
|
63
|
+
children: []
|
|
367
64
|
}
|
|
368
65
|
];
|
|
369
66
|
const langConfig = [
|
package/lib/utils/szxkFunc.js
CHANGED
|
@@ -63,7 +63,7 @@ const handleObjDetailToSignleAttrList = (attrList, detail) => {
|
|
|
63
63
|
};
|
|
64
64
|
const handleSetTableRowColor = (record, index, ngColor) => ({
|
|
65
65
|
style: {
|
|
66
|
-
backgroundColor: index !== void 0 && index % 2 === 1 ? (ngColor == null ? void 0 : ngColor[0]) || "
|
|
66
|
+
backgroundColor: index !== void 0 && index % 2 === 1 ? (ngColor == null ? void 0 : ngColor[0]) || "rgba(0, 77, 50, 0.16)" : (ngColor == null ? void 0 : ngColor[1]) || "rgba(0, 77, 50, 0.24)"
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
const handleFormatMobileDate = (values, format = "YYYY-MM-DD") => {
|