video.jsx 910 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { Component } from 'react';
  2. import {Button, Icon,message } from 'antd';
  3. import VideoComponent from '@/crop/video';
  4. class Video extends Component {
  5. constructor(props) {
  6. super(props);
  7. this.state = {
  8. fileList:{},
  9. videoUrl:[]
  10. }
  11. }
  12. render() {
  13. return (
  14. <div className="user-content">
  15. <div className="content-title">
  16. <span>视频管理</span>
  17. </div>
  18. < VideoComponent
  19. fileList={(e)=>{this.setState({videoUrl:e})}}
  20. dataUrl={{
  21. url:'/api/user/demand/uploadPicture',
  22. keyWord:'demand_picture',
  23. type:'image',
  24. page:1
  25. }}
  26. videoUrl={this.state.videoUrl}
  27. visible={this.props.visible}
  28. />
  29. </div>
  30. )
  31. }
  32. }
  33. export default Video;