buyList.jsx 25 KB

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