Compare commits
2 Commits
6e192cdb3f
...
3e682fd0aa
| Author | SHA1 | Date |
|---|---|---|
|
|
3e682fd0aa | |
|
|
cf4e41ee84 |
|
|
@ -51,12 +51,10 @@ export default function AttachmentUpload({ name, label, disabled = false, maxCou
|
||||||
<Upload
|
<Upload
|
||||||
//disabled={disabled}
|
//disabled={disabled}
|
||||||
listType="picture-card"
|
listType="picture-card"
|
||||||
headers={{
|
|
||||||
token: sessionStorage.getItem('token')
|
|
||||||
}}
|
|
||||||
maxCount={maxCount}
|
maxCount={maxCount}
|
||||||
accept={accept}
|
accept={accept}
|
||||||
action={`${window.process.env.app.API_HOST}/safetyEval/file/upload`}
|
action={`${window.process.env.app.API_HOST}/safetyEval/images/upload`}
|
||||||
beforeUpload={(file) => {
|
beforeUpload={(file) => {
|
||||||
if (!accept) return true;
|
if (!accept) return true;
|
||||||
const rules = accept.split(",").map((e) => e.trim().toLowerCase());
|
const rules = accept.split(",").map((e) => e.trim().toLowerCase());
|
||||||
|
|
|
||||||
|
|
@ -223,14 +223,13 @@ const RegisterMore = (props) => {
|
||||||
>
|
>
|
||||||
<Select
|
<Select
|
||||||
options={QUALIFICATION_INDUSTRY_OPTIONS}
|
options={QUALIFICATION_INDUSTRY_OPTIONS}
|
||||||
//mode="multiple"
|
mode="multiple"
|
||||||
placeholder="请选择安全生产监管行业类别"
|
placeholder="请选择安全生产监管行业类别"
|
||||||
allowClear
|
allowClear
|
||||||
onChange={(value, option) => {
|
onChange={(value, option) => {
|
||||||
form.setFieldValue(
|
form.setFieldValue(
|
||||||
"safetyIndustryCategoryName",
|
"safetyIndustryCategoryName",
|
||||||
option?.label || "",
|
option?.map((item) => item.label).join(",") || "",
|
||||||
//option?.map((item) => item.label).join(",") || "",
|
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue