|
@@ -63,6 +63,9 @@ const Page: React.FC = () => {
|
|
return { ...item, bookId: editValues.bookId };
|
|
return { ...item, bookId: editValues.bookId };
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ if (!values?.bookId) {
|
|
|
|
+ values.bookId = editValues.bookId
|
|
|
|
+ }
|
|
BookInfoBookConfig.run(values).then((res) => {
|
|
BookInfoBookConfig.run(values).then((res) => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
actionRef?.current?.reload();
|
|
actionRef?.current?.reload();
|
|
@@ -104,10 +107,10 @@ const Page: React.FC = () => {
|
|
setWorkDirection,
|
|
setWorkDirection,
|
|
edit,
|
|
edit,
|
|
})}
|
|
})}
|
|
- // bordered
|
|
|
|
|
|
+ // bordered
|
|
/>
|
|
/>
|
|
<BetaSchemaForm<DataItem>
|
|
<BetaSchemaForm<DataItem>
|
|
- title={!editValues?.id ? '新增作者' : '编辑作者'}
|
|
|
|
|
|
+ title={"信息配置"}
|
|
formRef={formRef}
|
|
formRef={formRef}
|
|
width={900}
|
|
width={900}
|
|
open={open}
|
|
open={open}
|