|
@@ -1,7 +1,14 @@
|
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
import styles from "./index.module.scss";
|
|
import styles from "./index.module.scss";
|
|
import { A4_APIgetInfo, A4_APIsave } from "@/store/action/A4exhibit";
|
|
import { A4_APIgetInfo, A4_APIsave } from "@/store/action/A4exhibit";
|
|
-import { Button, DatePicker, Form, FormInstance, Input, Select } from "antd";
|
|
|
|
|
|
+import {
|
|
|
|
+ Button,
|
|
|
|
+ Checkbox,
|
|
|
|
+ DatePicker,
|
|
|
|
+ Form,
|
|
|
|
+ FormInstance,
|
|
|
|
+ Input,
|
|
|
|
+} from "antd";
|
|
import TextArea from "antd/es/input/TextArea";
|
|
import TextArea from "antd/es/input/TextArea";
|
|
import ZupOne from "@/components/ZupOne";
|
|
import ZupOne from "@/components/ZupOne";
|
|
import dayjs from "dayjs";
|
|
import dayjs from "dayjs";
|
|
@@ -24,7 +31,7 @@ function A4add({ addId, closeFu, addTableFu, editTableFu }: Props) {
|
|
FormBoxRef.current?.setFieldsValue({
|
|
FormBoxRef.current?.setFieldsValue({
|
|
...data,
|
|
...data,
|
|
myTime: dayjs(data.releaseDate),
|
|
myTime: dayjs(data.releaseDate),
|
|
- type: data.type ? data.type : null,
|
|
|
|
|
|
+ type: data.type ? data.type.split(",") : [],
|
|
});
|
|
});
|
|
|
|
|
|
// 设置封面图
|
|
// 设置封面图
|
|
@@ -82,7 +89,7 @@ function A4add({ addId, closeFu, addTableFu, editTableFu }: Props) {
|
|
qrCode: qrCodeTemp.filePath ? qrCodeTemp.filePath : "",
|
|
qrCode: qrCodeTemp.filePath ? qrCodeTemp.filePath : "",
|
|
releaseDate,
|
|
releaseDate,
|
|
thumb: coverUrl1.filePath,
|
|
thumb: coverUrl1.filePath,
|
|
- type: values.type ? values.type : "",
|
|
|
|
|
|
+ type: values.type ? values.type.join(",") : "",
|
|
};
|
|
};
|
|
const res = await A4_APIsave(obj);
|
|
const res = await A4_APIsave(obj);
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
@@ -119,7 +126,14 @@ function A4add({ addId, closeFu, addTableFu, editTableFu }: Props) {
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
|
|
|
<Form.Item label="分类" name="type">
|
|
<Form.Item label="分类" name="type">
|
|
- <Select
|
|
|
|
|
|
+ <Checkbox.Group
|
|
|
|
+ options={[
|
|
|
|
+ { value: "回顾云展", label: "回顾云展" },
|
|
|
|
+ { value: "展厅云展", label: "展厅云展" },
|
|
|
|
+ { value: "馆藏系列云展", label: "馆藏系列云展" },
|
|
|
|
+ ]}
|
|
|
|
+ />
|
|
|
|
+ {/* <Select
|
|
allowClear
|
|
allowClear
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
style={{ width: 200 }}
|
|
style={{ width: 200 }}
|
|
@@ -128,7 +142,7 @@ function A4add({ addId, closeFu, addTableFu, editTableFu }: Props) {
|
|
{ value: "展厅云展", label: "展厅云展" },
|
|
{ value: "展厅云展", label: "展厅云展" },
|
|
{ value: "馆藏系列云展", label: "馆藏系列云展" },
|
|
{ value: "馆藏系列云展", label: "馆藏系列云展" },
|
|
]}
|
|
]}
|
|
- />
|
|
|
|
|
|
+ /> */}
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
|
|
|
<Form.Item label="简介" name="description">
|
|
<Form.Item label="简介" name="description">
|