|
|
|
@ -4,7 +4,7 @@ import { observer } from 'mobx-react';
|
|
|
|
|
import React, { Component, createRef, RefObject } from 'react';
|
|
|
|
|
import { CURRENT_HOST } from '../../../../Common/HostUrl';
|
|
|
|
|
import { getFileSize } from '../../../../Common/Utils';
|
|
|
|
|
import { UpdateBatchGallery } from '../data/GalleryData';
|
|
|
|
|
import { UpdateGallery } from '../data/GalleryData';
|
|
|
|
|
import GalleryStore from '../GalleryStore';
|
|
|
|
|
import { IGalleryItem } from '../interface/GalleryInterfaces';
|
|
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ export default class GalleryDetailDrawer extends Component<GalleryDetailDrawerPr
|
|
|
|
|
const class_name = formData.get('class_id') as string;
|
|
|
|
|
formData.set('class_id', this.GalleryStore.GalleryAsideMenu.get('GalleryLists').children.get(class_name).key);
|
|
|
|
|
|
|
|
|
|
const res = await UpdateBatchGallery(formData);
|
|
|
|
|
const res = await UpdateGallery(formData);
|
|
|
|
|
|
|
|
|
|
if (res.err_code === 0 && res.err_msg === "success")
|
|
|
|
|
{
|
|
|
|
@ -81,7 +81,7 @@ export default class GalleryDetailDrawer extends Component<GalleryDetailDrawerPr
|
|
|
|
|
</div>
|
|
|
|
|
<div className={Classes.DIALOG_BODY}>
|
|
|
|
|
<FormGroup label='画廊ID' inline helperText='画廊ID,上传时自动分配无法修改' >
|
|
|
|
|
<InputGroup name='gallery_id[]' readOnly fill autoComplete='off' defaultValue={this.props.gallery.gallery_id} />
|
|
|
|
|
<InputGroup name='gallery_id' readOnly fill autoComplete='off' defaultValue={this.props.gallery.gallery_id} />
|
|
|
|
|
</FormGroup>
|
|
|
|
|
<FormGroup
|
|
|
|
|
label='画廊名称'
|
|
|
|
@ -102,6 +102,9 @@ export default class GalleryDetailDrawer extends Component<GalleryDetailDrawerPr
|
|
|
|
|
else this.isGalleryNameEmpty = false;
|
|
|
|
|
}} />
|
|
|
|
|
</FormGroup>
|
|
|
|
|
<FormGroup label='全景图链接' inline>
|
|
|
|
|
<InputGroup name='pano_url' defaultValue={this.props.gallery.pano_url} />
|
|
|
|
|
</FormGroup>
|
|
|
|
|
<FormGroup label='画廊类目' inline helperText="选择画廊风格类型" >
|
|
|
|
|
<HTMLSelect
|
|
|
|
|
name='class_id'
|
|
|
|
|