proservlist.jsx 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  1. import React from "react";
  2. import $ from "jquery/src/ajax";
  3. import "react-quill/dist/quill.bubble.css";
  4. import moment from "moment";
  5. import {
  6. Form,
  7. Icon,
  8. Button,
  9. Input,
  10. Select,
  11. Table,
  12. message,
  13. DatePicker,
  14. Modal,
  15. Upload,
  16. Popconfirm,
  17. Cascader,
  18. InputNumber,
  19. Radio,
  20. TimePicker,
  21. Tabs,
  22. Tag, Tooltip, Checkbox
  23. } from "antd";
  24. import { areaSelect, getProvince } from "@/NewDicProvinceList"; //省市区
  25. import {
  26. getGameState,
  27. splitUrl,
  28. getprovince,
  29. getStatuslist,
  30. getLvl,
  31. beforeUploadFile,
  32. getSecretType,
  33. getBuyAuditType,
  34. getPicPath
  35. } from "@/tools.js";
  36. import Img01 from "./image/cgg.jpg";
  37. import Img02 from "./image/ttt.jpg";
  38. import Img03 from "./image/xxxd.jpg";
  39. import Img04 from "./image/bbb.jpg";
  40. import SpinContainer from "../../SpinContainer";
  41. import {companyList, getCompanyName, getCompanyValueArray} from "../../common/configure";
  42. //上传图片组件
  43. const PicturesWall = React.createClass({
  44. getInitialState() {
  45. return {
  46. previewVisible: false,
  47. previewImage: "",
  48. fileList: this.props.pictureUrl,
  49. imgflag: this.props.flagimg
  50. };
  51. },
  52. getDefaultProps() {
  53. return {
  54. changeClick: this.modifyChange
  55. };
  56. },
  57. handleCancel() {
  58. this.setState({ previewVisible: false });
  59. },
  60. handlePreview(file) {
  61. this.setState({
  62. previewImage: file.url || file.thumbUrl,
  63. previewVisible: true
  64. });
  65. },
  66. handleChange(info) {
  67. let fileList = info.fileList;
  68. this.setState({ fileList });
  69. this.props.fileList(fileList);
  70. },
  71. componentWillReceiveProps(nextProps) {
  72. this.state.fileList = nextProps.pictureUrl;
  73. },
  74. render() {
  75. const { previewVisible, previewImage, fileList, flagimg } = this.state;
  76. const uploadButton = (
  77. <div>
  78. <Icon type="plus" />
  79. <div className="ant-upload-text">点击上传</div>
  80. </div>
  81. );
  82. return (
  83. <div style={{ display: "inline-block" }} className={flagimg}>
  84. <Upload
  85. beforeUpload={beforeUploadFile}
  86. action={globalConfig.context + "/api/admin/organization/uploadFile"}
  87. data={{ sign: "purchase_picture" }}
  88. listType="picture-card"
  89. fileList={fileList}
  90. onPreview={this.handlePreview}
  91. onChange={this.handleChange}
  92. >
  93. {fileList && fileList.length >= 1 ? null : uploadButton}
  94. </Upload>
  95. <Modal
  96. maskClosable={false}
  97. visible={previewVisible}
  98. footer={null}
  99. onCancel={this.handleCancel}
  100. >
  101. <img alt="" style={{ width: "100%" }} src={previewImage} />
  102. </Modal>
  103. </div>
  104. );
  105. }
  106. });
  107. //主体
  108. const Proservlist = Form.create()(
  109. React.createClass({
  110. loadData(pageNo) {
  111. this.state.data = [];
  112. this.setState({
  113. loading: true,
  114. page: pageNo
  115. });
  116. $.ajax({
  117. method: "get",
  118. dataType: "json",
  119. crossDomain: false,
  120. url: globalConfig.context + "/api/admin/organization/listOrganization",
  121. data: {
  122. pageNo: pageNo || this.state.pagination.current || 1,
  123. pageSize: this.state.pagination.pageSize,
  124. name: this.state.nameSearch,
  125. location: this.state.locationSearch,
  126. },
  127. success: function(data) {
  128. let theArr = [];
  129. if (!data.data || !data.data.list) {
  130. if (data.error && data.error.length) {
  131. message.warning(data.error[0].message);
  132. }
  133. } else {
  134. for (let i = 0; i < data.data.list.length; i++) {
  135. let thisdata = data.data.list[i];
  136. thisdata.key = i + 1;
  137. theArr.push(thisdata);
  138. }
  139. this.state.pagination.current = data.data.pageNo;
  140. this.state.pagination.total = data.data.totalCount;
  141. }
  142. this.setState({
  143. dataSource: theArr,
  144. pagination: this.state.pagination
  145. });
  146. }.bind(this)
  147. }).always(
  148. function() {
  149. this.setState({
  150. loading: false
  151. });
  152. }.bind(this)
  153. );
  154. },
  155. getInitialState() {
  156. return {
  157. loading: false,
  158. flag: true,
  159. timesArr: [],
  160. totalData: {
  161. mark: false
  162. },
  163. purchaseImg: [],
  164. pagination: {
  165. defaultCurrent: 1,
  166. defaultPageSize: 10,
  167. showQuickJumper: true,
  168. pageSize: 10,
  169. onChange: function(page) {
  170. this.loadData(page);
  171. this.setState({
  172. selectedRowKeys: []
  173. });
  174. }.bind(this),
  175. showTotal: function(total) {
  176. return "共" + total + "条数据";
  177. }
  178. },
  179. //数据类型
  180. columns: [
  181. {
  182. title: "序号",
  183. dataIndex: "key",
  184. key: "key"
  185. },
  186. {
  187. title: "是否发布",
  188. dataIndex: "releaseStatus",
  189. key: "releaseStatus",
  190. render: s => {
  191. return s ? (
  192. <Tag color="#87d068">已发布</Tag>
  193. ) : (
  194. <Tag color="#f50">未发布</Tag>
  195. );
  196. }
  197. },
  198. {
  199. title: "是否首页",
  200. dataIndex: "status",
  201. key: "status",
  202. render: s => {
  203. return s ? (
  204. <Tag color="#87d068">是</Tag>
  205. ) : (
  206. <Tag color="#f50">否</Tag>
  207. );
  208. }
  209. },
  210. {
  211. title: "战略合作机构",
  212. dataIndex: "name",
  213. key: "name"
  214. },
  215. {
  216. title: "LOGO缩率图",
  217. dataIndex: "pictureUrl",
  218. key: "pictureUrl",
  219. render: url => {
  220. let path = getPicPath(globalConfig.avatarUploadHost, url);
  221. return (
  222. <div style={{ textAlign: "center" }}>
  223. <img src={path} style={{ width: "100px", height: 50 }} />
  224. <Button
  225. className="buttonimg"
  226. style={{ marginLeft: 10 }}
  227. onClick={e => {
  228. e.stopPropagation();
  229. this.maximg(path);
  230. }}
  231. >
  232. 查看大图
  233. </Button>
  234. </div>
  235. );
  236. }
  237. },
  238. {
  239. title: "公司",
  240. dataIndex: "locations",
  241. key: "locations",
  242. render: r => {
  243. let text = '';
  244. r && r.map((v,i)=>(
  245. text += (i === 0 ? '':',')+getCompanyName(v)
  246. ))
  247. return(
  248. <Tooltip placement="top" title={text}>
  249. {
  250. r && r.map((v,i)=>(
  251. i <= 2 ? (i === 0 ? '':',')+getCompanyName(v) : null
  252. ))
  253. }
  254. {
  255. r.length > 3 ? '.....' : null
  256. }
  257. </Tooltip>
  258. )
  259. }
  260. },
  261. {
  262. title: "排序",
  263. dataIndex: "sort",
  264. key: "sort"
  265. },
  266. {
  267. title: "操作",
  268. dataIndex: "ads",
  269. key: "ads",
  270. render: (text, record, index) => {
  271. return (
  272. <div>
  273. {
  274. <Button
  275. type="primary"
  276. onClick={event => {
  277. this.stopPropagation(event);
  278. this.edit(record);
  279. }}
  280. >
  281. 编辑
  282. </Button>
  283. }
  284. {
  285. <Popconfirm
  286. okText="确定"
  287. cancelText="取消"
  288. title="您确定删除?删除后,合作信息将不再显示"
  289. onConfirm={() => {
  290. this.delete(record.id);
  291. }}
  292. >
  293. <Button
  294. type="danger"
  295. style={{ marginLeft: "10px" }}
  296. onClick={event => {
  297. this.stopPropagation(event);
  298. }}
  299. >
  300. 删除
  301. </Button>
  302. </Popconfirm>
  303. }
  304. {
  305. <Button
  306. type="primary"
  307. style={{ marginLeft: "10px" }}
  308. onClick={e => {
  309. e.stopPropagation();
  310. if (record.status) {
  311. this.toTop(record, 0);
  312. } else {
  313. this.toTop(record, 1);
  314. }
  315. }}
  316. >
  317. {record.status ? "从首页撤下" : "推荐至首页"}
  318. </Button>
  319. }
  320. <Button
  321. type="primary"
  322. style={{ marginLeft: "10px" }}
  323. onClick={event => {
  324. this.stopPropagation(event);
  325. if (record.releaseStatus) {
  326. this.remove(record, 0);
  327. } else {
  328. this.remove(record, 1);
  329. }
  330. }}
  331. >
  332. {record.releaseStatus ? "撤销发布" : "发布"}
  333. </Button>
  334. </div>
  335. );
  336. }
  337. }
  338. ],
  339. //数据列表
  340. dataSource: []
  341. };
  342. },
  343. componentWillMount() {
  344. this.loadData();
  345. },
  346. stopPropagation(e) {
  347. e.stopPropagation();
  348. e.nativeEvent.stopImmediatePropagation();
  349. },
  350. //点击大图
  351. maximg(url) {
  352. this.setState({
  353. imgeditvisible: true,
  354. maximg: url
  355. });
  356. },
  357. imghandleCancel() {
  358. this.setState({
  359. imgeditvisible: false
  360. });
  361. },
  362. //删除按钮
  363. delete(id) {
  364. $.ajax({
  365. method: "post",
  366. dataType: "json",
  367. crossDomain: false,
  368. url:
  369. globalConfig.context + "/api/admin/organization/deleteOrganization",
  370. data: {
  371. id
  372. },
  373. success: function(data) {
  374. let theArr = [];
  375. if (data.error && data.error.length) {
  376. message.warning(data.error[0].message);
  377. } else {
  378. message.warning('删除成功')
  379. this.loadData();
  380. }
  381. }.bind(this)
  382. }).always(
  383. function() {
  384. this.setState({
  385. loading: false
  386. });
  387. }.bind(this)
  388. );
  389. },
  390. //项目列表整行点击
  391. tableRowClick(record, index) {
  392. this.state.RowData = record;
  393. this.setState({
  394. editvisible: true
  395. });
  396. this.edit(record);
  397. },
  398. edithandleCancel(e) {
  399. this.setState(
  400. {
  401. editvisible: false,
  402. indeterminate: false,
  403. checked:false,
  404. },
  405. () => {
  406. this.addReset();
  407. }
  408. );
  409. this.loadData();
  410. },
  411. search() {
  412. this.loadData();
  413. },
  414. add() {
  415. this.setState({
  416. editvisible: true,
  417. flag: false
  418. });
  419. },
  420. //撤下
  421. remove(record, flag) {
  422. $.ajax({
  423. method: "post",
  424. dataType: "json",
  425. crossDomain: false,
  426. url:
  427. globalConfig.context + "/api/admin/organization/updateOrganization",
  428. data: {
  429. id: record.id,
  430. releaseStatus: flag
  431. },
  432. success: function(data) {
  433. if (data.error && data.error.length) {
  434. message.warning(data.error[0].message);
  435. } else {
  436. this.loadData();
  437. }
  438. }.bind(this)
  439. }).always(
  440. function() {
  441. this.setState({
  442. loading: false
  443. });
  444. }.bind(this)
  445. );
  446. },
  447. addNew(flag) {
  448. if(!this.state.name){
  449. message.warning('请填写名称')
  450. return ;
  451. }
  452. if(this.state.locations.length === 0){
  453. message.warning('请选择公司')
  454. return ;
  455. }
  456. if (this.state.flag) {
  457. $.ajax({
  458. method: "post",
  459. dataType: "json",
  460. crossDomain: false,
  461. url:
  462. globalConfig.context + "/api/admin/organization/updateOrganization",
  463. data: {
  464. id: this.state.id,
  465. name: this.state.name,
  466. releaseStatus: flag,
  467. sort: this.state.sort,
  468. locations: this.state.locations.join(','),
  469. pictureUrl: this.state.pictureUrl
  470. ? this.state.pictureUrl[0].response.data
  471. : undefined
  472. },
  473. success: function(data) {
  474. if (data.error.length || data.data.list == "") {
  475. if (data.error && data.error.length) {
  476. message.warning(data.error[0].message);
  477. }
  478. } else {
  479. message.success('操作成功')
  480. this.edithandleCancel();
  481. }
  482. }.bind(this)
  483. }).always(
  484. function() {
  485. this.setState({
  486. loading: false
  487. });
  488. }.bind(this)
  489. );
  490. } else {
  491. $.ajax({
  492. method: "post",
  493. dataType: "json",
  494. crossDomain: false,
  495. url: globalConfig.context + "/api/admin/organization/addOrganization",
  496. data: {
  497. name: this.state.name,
  498. releaseStatus: flag,
  499. sort: this.state.sort,
  500. locations: this.state.locations.join(','),
  501. pictureUrl: this.state.pictureUrl
  502. ? this.state.pictureUrl[0].response.data
  503. : undefined
  504. },
  505. success: function(data) {
  506. if (data.error.length || data.data.list == "") {
  507. if (data.error && data.error.length) {
  508. message.warning(data.error[0].message);
  509. }
  510. } else {
  511. message.success('添加成功')
  512. this.cancelAdd();
  513. }
  514. }.bind(this)
  515. }).always(
  516. function() {
  517. this.setState({
  518. loading: false
  519. });
  520. }.bind(this)
  521. );
  522. }
  523. },
  524. saveNew() {
  525. this.change("releaseStatus", 0, () => {
  526. this.addNew();
  527. });
  528. },
  529. issueNew() {
  530. this.change("releaseStatus", 1, () => {
  531. this.addNew();
  532. });
  533. },
  534. //编辑按钮操作
  535. edit(record, index) {
  536. this.setState({
  537. editvisible: true,
  538. loading: true
  539. });
  540. $.ajax({
  541. method: "get",
  542. dataType: "json",
  543. crossDomain: false,
  544. url:
  545. globalConfig.context + "/api/admin/organization/selectOrganization",
  546. data: {
  547. id: record.id
  548. },
  549. success: function(data) {
  550. if (data.error && data.error.length) {
  551. message.warning(data.error[0].message);
  552. } else {
  553. const thisdata = data.data;
  554. this.setState({
  555. id: thisdata.id,
  556. name: thisdata.name,
  557. pictureUrl: thisdata.pictureUrl
  558. ? splitUrl(
  559. thisdata.pictureUrl,
  560. ",",
  561. globalConfig.avatarUploadHost
  562. )
  563. : [],
  564. releaseStatus: thisdata.releaseStatus,
  565. sort: thisdata.sort,
  566. locations: thisdata.locations,
  567. checked:thisdata.locations.length === companyList.length,
  568. indeterminate: thisdata.locations.length < companyList.length,
  569. releaseTimeConvert: thisdata.releaseTimeConvert,
  570. createTimeConvert: thisdata.createTimeConvert
  571. });
  572. }
  573. }.bind(this)
  574. }).always(
  575. function() {
  576. this.setState({
  577. loading: false
  578. });
  579. }.bind(this)
  580. );
  581. },
  582. cancelAdd() {
  583. this.setState(
  584. {
  585. editvisible: false,
  586. indeterminate: false,
  587. checked:false,
  588. },
  589. () => {
  590. this.setState({
  591. flag: true
  592. });
  593. this.addReset();
  594. }
  595. );
  596. this.loadData();
  597. },
  598. //新增框的清零
  599. addReset() {
  600. this.setState({
  601. totalData: {},
  602. purchaseImg: []
  603. });
  604. },
  605. //搜索部分的清零
  606. reset() {
  607. this.setState({
  608. locationSearch:undefined,
  609. nameSearch : undefined,
  610. },()=>{
  611. this.loadData();
  612. })
  613. },
  614. getOrgCodeUrl(e) {
  615. this.setState({ pictureUrl: e });
  616. },
  617. toTop(record, num) {
  618. this.setState({
  619. loading: true
  620. });
  621. $.ajax({
  622. method: "post",
  623. dataType: "json",
  624. crossDomain: false,
  625. url:
  626. globalConfig.context + "/api/admin/organization/updateOrganization",
  627. data: {
  628. id: record.id,
  629. status: num
  630. },
  631. success: function(data) {
  632. let theArr = [];
  633. if (data.error && data.error.length) {
  634. message.warning(data.error[0].message);
  635. } else {
  636. this.loadData();
  637. }
  638. }.bind(this)
  639. }).always(
  640. function() {
  641. this.setState({
  642. loading: false
  643. });
  644. }.bind(this)
  645. );
  646. },
  647. render() {
  648. const FormItem = Form.Item;
  649. const rowSelection = {
  650. selectedRowKeys: this.state.selectedRowKeys,
  651. onChange: (selectedRowKeys, selectedRows) => {
  652. this.setState({
  653. selectedRows: selectedRows.slice(-1),
  654. selectedRowKeys: selectedRowKeys.slice(-1)
  655. });
  656. }
  657. };
  658. let data = this.state.totalData;
  659. const { TextArea } = Input; //文本域
  660. const { TabPane } = Tabs; //标签页
  661. const { MonthPicker, RangePicker, WeekPicker } = DatePicker; //日期输入框
  662. return (
  663. <div className="user-content">
  664. <div className="content-title">
  665. <span>战略合作列表</span>
  666. <div className="user-search">
  667. <Input
  668. placeholder="请输入公司关键字"
  669. style={{
  670. width: "150px",
  671. marginRight: "10px",
  672. marginBottom: "10px"
  673. }}
  674. value={this.state.nameSearch}
  675. onChange={e => {
  676. this.setState({ nameSearch: e.target.value });
  677. }}
  678. />
  679. <Select
  680. placeholder="请选择公司"
  681. style={{ width: 150 }}
  682. value={this.state.locationSearch}
  683. onChange={e => {
  684. this.setState({
  685. locationSearch: e
  686. });
  687. }}
  688. >
  689. {
  690. companyList.map((v)=>(
  691. <Select.Option key={v.value} value={v.value}>{v.label}</Select.Option>
  692. ))
  693. }
  694. </Select>
  695. <Button
  696. type="primary"
  697. onClick={this.search}
  698. style={{ marginRight: "10px" }}
  699. >
  700. 搜索
  701. </Button>
  702. <Button onClick={this.reset} style={{ marginRight: "10px" }}>
  703. 重置
  704. </Button>
  705. <Button
  706. type="primary"
  707. onClick={this.add}
  708. style={{ marginLeft: "100px" }}
  709. >
  710. 新增案例
  711. </Button>
  712. </div>
  713. <div className="patent-table">
  714. <SpinContainer spinning={this.state.loading}>
  715. <Table
  716. columns={this.state.columns}
  717. dataSource={this.state.dataSource}
  718. pagination={this.state.pagination}
  719. onRowClick={this.tableRowClick}
  720. size="small"
  721. bordered
  722. />
  723. </SpinContainer>
  724. </div>
  725. </div>
  726. <div className="patent-desc">
  727. <Modal
  728. className="customeDetails"
  729. title={this.state.flag ? "案例详情" : "新增案例信息"}
  730. width="350"
  731. visible={this.state.editvisible}
  732. onOk={this.edithandleCancel}
  733. onCancel={
  734. ()=>{
  735. this.setState({
  736. editvisible: false,
  737. name:'',
  738. pictureUrl:[],
  739. sort:'',
  740. locations:[],
  741. indeterminate: false,
  742. checked:false,
  743. })
  744. }
  745. }
  746. footer=""
  747. >
  748. <Form
  749. layout="horizontal"
  750. onSubmit={this.edithandleSubmit}
  751. id="demand-form"
  752. >
  753. <SpinContainer spinning={this.state.loading}>
  754. <div className="clearfix">
  755. <FormItem
  756. labelCol={{ span: 4 }}
  757. wrapperCol={{ span: 8 }}
  758. label="名称"
  759. >
  760. <Input
  761. placeholder="请输入名称"
  762. value={this.state.name}
  763. onChange={e => {
  764. this.setState({
  765. name: e.target.value
  766. });
  767. }}
  768. style={{ width: "240px" }}
  769. />
  770. </FormItem>
  771. </div>
  772. <div className="clearfix">
  773. <FormItem
  774. labelCol={{ span: 4 }}
  775. wrapperCol={{ span: 8 }}
  776. label="LOGO"
  777. >
  778. <PicturesWall
  779. flagimg={this.state.flag}
  780. fileList={this.getOrgCodeUrl}
  781. pictureUrl={this.state.pictureUrl}
  782. />
  783. </FormItem>
  784. </div>
  785. <div className="clearfix">
  786. <FormItem
  787. labelCol={{ span: 4 }}
  788. wrapperCol={{ span: 8 }}
  789. label="排序"
  790. >
  791. <Input
  792. placeholder="请输入数字"
  793. value={this.state.sort}
  794. onChange={e => {
  795. this.setState({
  796. sort: e.target.value
  797. });
  798. }}
  799. style={{ width: "240px" }}
  800. />
  801. </FormItem>
  802. </div>
  803. <div className="clearfix">
  804. <FormItem
  805. labelCol={{ span: 4 }}
  806. wrapperCol={{ span: 8 }}
  807. label="公司"
  808. >
  809. <Checkbox indeterminate={this.state.indeterminate} checked={this.state.checked} onChange={(e)=>{
  810. this.setState({
  811. locations: e.target.checked ? getCompanyValueArray():[],
  812. indeterminate: false,
  813. checked:e.target.checked
  814. })
  815. }}>全选</Checkbox>
  816. <Checkbox.Group
  817. options={companyList}
  818. value={this.state.locations}
  819. onChange={(e) => {
  820. this.setState({
  821. locations: e,
  822. indeterminate: companyList.length > e.length,
  823. checked: companyList.length === e.length
  824. });
  825. }}
  826. />
  827. </FormItem>
  828. </div>
  829. <div className="clearfix">
  830. <Button
  831. type="primary"
  832. size="large"
  833. onClick={e => {
  834. this.addNew(0);
  835. }}
  836. style={{
  837. float: "right",
  838. marginRight: "80px",
  839. marginTop: "20px"
  840. }}
  841. >
  842. 保存
  843. </Button>
  844. <Button
  845. type="primary"
  846. size="large"
  847. onClick={e => {
  848. this.addNew(1);
  849. }}
  850. style={{
  851. float: "right",
  852. marginRight: "20px",
  853. marginTop: "20px"
  854. }}
  855. >
  856. 保存并发布
  857. </Button>
  858. </div>
  859. </SpinContainer>
  860. </Form>
  861. </Modal>
  862. <Modal
  863. visible={this.state.imgeditvisible}
  864. onCancel={this.imghandleCancel}
  865. onOk={this.imgOk}
  866. >
  867. <img style={{ width: "100%" }} src={this.state.maximg} />
  868. </Modal>
  869. </div>
  870. </div>
  871. );
  872. }
  873. })
  874. );
  875. export default Form.create()(Proservlist);