Compare commits

..

No commits in common. "3e682fd0aa90cbe6a72ef4fc15555db52d1f4931" and "6e192cdb3f4161d5040cdfe079fb5075beb57497" have entirely different histories.

2 changed files with 7 additions and 4 deletions

View File

@ -51,10 +51,12 @@ 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/images/upload`} action={`${window.process.env.app.API_HOST}/safetyEval/file/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());

View File

@ -223,13 +223,14 @@ 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?.map((item) => item.label).join(",") || "", option?.label || "",
//option?.map((item) => item.label).join(",") || "",
); );
}} }}
/> />