|
@@ -12,7 +12,7 @@ import {
|
|
|
Select
|
|
|
} from 'antd';
|
|
|
import { videoType } from '@/dataDic.js';
|
|
|
-import { getVideoType,getReleaseStateList,splitUrl} from '@/tools.js';
|
|
|
+import { splitUrl,getVideoStatus} from '@/tools.js';
|
|
|
import Crop from '@/crop/cropBlock';
|
|
|
|
|
|
const NewDetailForm = Form.create()(React.createClass({
|
|
@@ -309,7 +309,12 @@ const NewDetailForm = Form.create()(React.createClass({
|
|
|
<span>{theData.owner?theData.owner:'管理员'}</span>
|
|
|
</FormItem>
|
|
|
{theData.createTime&&<FormItem className="half-item" {...formItemLayout} label="发布状态">
|
|
|
- <span>{getReleaseStateList(theData.status)}</span>
|
|
|
+ <span>{getVideoStatus(theData.status)}</span>
|
|
|
+ </FormItem>}
|
|
|
+ </div>
|
|
|
+ <div className="clearfix">
|
|
|
+ {this.props.data.id&&<FormItem className="half-item" {...formItemLayout} label="视频状态">
|
|
|
+ <span>{theData.transcoding=='2'?'已转码':'正在转码'}</span>
|
|
|
</FormItem>}
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
@@ -317,7 +322,7 @@ const NewDetailForm = Form.create()(React.createClass({
|
|
|
<Button className="set-submit" type="primary" htmlType="submit">
|
|
|
保存草稿
|
|
|
</Button>
|
|
|
- <Button
|
|
|
+ {(this.props.data.id&&this.props.data.transcoding=='2')&&<Button
|
|
|
className="set-submit"
|
|
|
type="ghost"
|
|
|
onClick={(e) => {
|
|
@@ -325,7 +330,7 @@ const NewDetailForm = Form.create()(React.createClass({
|
|
|
}}
|
|
|
>
|
|
|
发布视频
|
|
|
- </Button>
|
|
|
+ </Button>}
|
|
|
<Button className="set-submit" type="ghost" onClick={this.cancelFun}>
|
|
|
取消
|
|
|
</Button>
|