businessCategory.jsx 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. import React from 'react';
  2. import ReactDom from 'react-dom';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import moment from 'moment';
  6. import '../content.less';
  7. import { Form,Radio, Icon, Button, Input, Select, Spin, Table, Switch, message, DatePicker, Modal, Upload,Popconfirm,TimePicker } from 'antd';
  8. import {categoryState} from '../../../dataDic.js';
  9. import {getCategoryState} from '../../../tools.js';
  10. const BusinessCategory=Form.create()(React.createClass({
  11. //搜索功能和初始列表加载
  12. loadData(pageNo, apiUrl) {
  13. this.state.data = [];
  14. this.setState({
  15. loading: true
  16. });
  17. let nameText=this.state.SuperArr;
  18. let superText=(this.state.superId)?nameText[parseInt(this.state.superId)].id:"";
  19. $.ajax({
  20. method: "post",
  21. dataType: "json",
  22. crossDomain: false,
  23. url: globalConfig.context + '/api/admin/Varieties/vtList',
  24. data: {
  25. pageNo: pageNo || 1,
  26. pageSize: this.state.pagination.pageSize,
  27. cname:this.state.cname, //品类名称
  28. superId:superText,//上级品类编号
  29. layer:this.state.layer,//组织层级
  30. status:this.state.status,//品类状态
  31. },
  32. success: function (data) {
  33. let theArr = [];
  34. if (!data.data || !data.data.list) {
  35. if (data.error && data.error.length) {
  36. message.warning(data.error[0].message);
  37. };
  38. } else {
  39. for (let i = 0; i < data.data.list.length; i++) {
  40. let thisdata = data.data.list[i];
  41. theArr.push({
  42. key: i,
  43. id: thisdata.id,//品类ID
  44. cid: thisdata.cid,//品类编号
  45. cname: thisdata.cname,//品类名称
  46. layer: thisdata.layer,//品类层级
  47. superName: thisdata.superName,//上级品类
  48. status: thisdata.status,//上级品类状态
  49. });
  50. };
  51. this.state.pagination.current = data.data.pageNo;
  52. this.state.pagination.total = data.data.totalCount;
  53. };
  54. this.setState({
  55. dataSource: theArr,
  56. pagination: this.state.pagination
  57. });
  58. }.bind(this),
  59. }).always(function () {
  60. this.setState({
  61. loading: false
  62. });
  63. }.bind(this));
  64. },
  65. getInitialState() {
  66. return {
  67. searchMore: true,
  68. selectedRowKeys: [],
  69. selectedRows: [],
  70. loading: false,
  71. pagination: {
  72. defaultCurrent: 1,
  73. defaultPageSize: 10,
  74. showQuickJumper: true,
  75. pageSize: 10,
  76. onChange: function (page) {
  77. this.loadData(page);
  78. }.bind(this),
  79. showTotal: function (total) {
  80. return '共' + total + '条数据';
  81. }
  82. },
  83. columns: [
  84. {
  85. title: '品类编号',
  86. dataIndex: 'cid',
  87. key: 'cid',
  88. }, {
  89. title: '品类名称',
  90. dataIndex: 'cname',
  91. key: 'cname',
  92. }, {
  93. title: '品类层级',
  94. dataIndex: 'layer',
  95. key: 'layer',
  96. //render: text => { return getAchievementCategory(text); }
  97. }, {
  98. title: '上级品类',
  99. dataIndex: 'superName',
  100. key: 'superName',
  101. },{
  102. title: '品类状态',
  103. dataIndex: 'status',
  104. key: 'status',
  105. render: text => { return getCategoryState(text) }
  106. }
  107. ],
  108. dataSource: [],
  109. };
  110. },
  111. componentWillMount() {
  112. this.selectSuperId();
  113. },
  114. //获取上级品类
  115. selectSuperId() {
  116. this.state.data = []
  117. $.ajax({
  118. method: "get",
  119. dataType: "json",
  120. crossDomain: false,
  121. url: globalConfig.context + "/api/admin/Varieties/getSuperList",
  122. data:{
  123. },
  124. success: function (data) {
  125. let theArr = [];
  126. let thedata=data.data;
  127. if (!thedata) {
  128. if (data.error && data.error.length) {
  129. message.warning(data.error[0].message);
  130. };
  131. thedata = {};
  132. };
  133. var contactIds=[];
  134. //for (let item in data.data) {
  135. for(var i=0;i<data.data.length;i++){
  136. let theData = data.data[i];
  137. theArr.push(
  138. <Select.Option value={i.toString()} key={theData.cname}>{theData.cname}</Select.Option>
  139. );
  140. };
  141. this.setState({
  142. SuperArr:thedata,
  143. contactsOption: theArr,
  144. orderStatusOptions:data.data,
  145. });
  146. }.bind(this),
  147. }).always(function () {
  148. this.loadData();
  149. this.setState({
  150. loading: false
  151. });
  152. }.bind(this));
  153. },
  154. //编辑部门,保存
  155. edithandleSubmit(e){
  156. e.preventDefault();
  157. //上级组织字典
  158. let nameText=this.state.SuperArr
  159. let superText=this.state.editSuperName;
  160. let superIdText=this.state.editSuperId;
  161. let superOne=this.state.editDataSource[0].editSuperName;
  162. let isStatus=this.state.editStatus;
  163. if(isStatus==1){
  164. if(confirm('是否要停用该品类?')){
  165. if(!(superOne==superText)){
  166. let changeSuper=nameText[parseInt(this.state.editSuperName)].id;
  167. if(confirm('上级品类已修改,是否保存?')){
  168. $.ajax({
  169. method: "post",
  170. dataType: "json",
  171. crossDomain: false,
  172. url:globalConfig.context + '/api/admin/Varieties/editVarieties',
  173. data:{
  174. id:this.state.editId,//品类ID
  175. cname:this.state.editName,//品类名称
  176. superId:changeSuper,//上级品类
  177. status:this.state.editStatus,//品类状态
  178. }
  179. }).done(function (data) {
  180. this.setState({
  181. loading: false
  182. });
  183. if (!data.error.length) {
  184. message.success('保存成功!');
  185. this.edithandleCancel();
  186. this.selectSuperId();
  187. } else {
  188. message.warning(data.error[0].message);
  189. }
  190. }.bind(this));
  191. return false
  192. }
  193. }else {
  194. $.ajax({
  195. method: "post",
  196. dataType: "json",
  197. crossDomain: false,
  198. url:globalConfig.context + '/api/admin/Varieties/editVarieties',
  199. data:{
  200. id:this.state.editId,//品类ID
  201. cname:this.state.editName,//品类名称
  202. superId:superIdText,//上级品类
  203. status:this.state.editStatus,//品类状态
  204. }
  205. }).done(function (data) {
  206. this.setState({
  207. loading: false
  208. });
  209. if (!data.error.length) {
  210. message.success('保存成功!');
  211. this.edithandleCancel();
  212. this.selectSuperId();
  213. } else {
  214. message.warning(data.error[0].message);
  215. }
  216. }.bind(this));
  217. }
  218. }
  219. }else{
  220. if(!(superOne==superText)){
  221. let changeSuper=nameText[parseInt(this.state.editSuperName)].id;
  222. if(confirm('上级组织已修改,是否保存?')){
  223. $.ajax({
  224. method: "post",
  225. dataType: "json",
  226. crossDomain: false,
  227. url:globalConfig.context + '/api/admin/Varieties/editVarieties',
  228. data:{
  229. id:this.state.editId,//品类ID
  230. cname:this.state.editName,//品类名称
  231. superId:changeSuper,//上级品类
  232. status:this.state.editStatus,//品类状态
  233. }
  234. }).done(function (data) {
  235. this.setState({
  236. loading: false
  237. });
  238. if (!data.error.length) {
  239. message.success('保存成功!');
  240. this.edithandleCancel();
  241. this.selectSuperId();
  242. } else {
  243. message.warning(data.error[0].message);
  244. }
  245. }.bind(this));
  246. return false
  247. }
  248. }else {
  249. $.ajax({
  250. method: "post",
  251. dataType: "json",
  252. crossDomain: false,
  253. url:globalConfig.context + '/api/admin/Varieties/editVarieties',
  254. data:{
  255. id:this.state.editId,//品类ID
  256. cname:this.state.editName,//品类名称
  257. superId:superIdText,//上级品类
  258. status:this.state.editStatus,//品类状态
  259. }
  260. }).done(function (data) {
  261. this.setState({
  262. loading: false
  263. });
  264. if (!data.error.length) {
  265. message.success('保存成功!');
  266. this.edithandleCancel();
  267. this.selectSuperId();
  268. } else {
  269. message.warning(data.error[0].message);
  270. }
  271. }.bind(this));
  272. }
  273. }
  274. },
  275. //整行点击
  276. tableRowClick(record, index) {
  277. this.selectSuperId();
  278. this.state.RowData = record;
  279. this.setState({
  280. editvisible: true,
  281. selectedRowKeys:[],
  282. rowId:record.businessId,
  283. });
  284. $.ajax({
  285. method: "get",
  286. dataType: "json",
  287. crossDomain: false,
  288. url: globalConfig.context +"/api/admin/Varieties/detailVarieties" ,
  289. data: {
  290. id: record.id
  291. },
  292. success: function (data) {
  293. let theArr = [];
  294. let thisdata = data.data;
  295. if (!data) {
  296. if (data.error && data.error.length) {
  297. message.warning(data.error[0].message);
  298. };
  299. } else {
  300. theArr.push({
  301. editId: thisdata.id,//每一条记录的ID
  302. editName:thisdata.cname,//品类名称
  303. editStatus:thisdata.status,//品类状态
  304. editSuperName:thisdata.superName,//上级品类
  305. editlayer:thisdata.layer,//品类层级
  306. editCid: thisdata.cid,//品类编号
  307. editCreateName:thisdata.createName,//创建人
  308. editTime:thisdata.createTime,//创建时间
  309. });
  310. };
  311. this.setState({
  312. editId: thisdata.id,//每一条记录的ID
  313. editName:thisdata.cname,//品类名称
  314. editStatus:thisdata.status,//品类状态
  315. editSuperName:thisdata.superName,//上级品类
  316. editSuperId:thisdata.superId,//上级品类
  317. editlayer:thisdata.layer,//品类层级
  318. editCid: thisdata.cid,//品类编号
  319. editCreateName:thisdata.createName,//创建人
  320. editTime:thisdata.createTime,//创建时间
  321. editDataSource: theArr,
  322. });
  323. }.bind(this),
  324. }).always(function () {
  325. this.setState({
  326. loading: false
  327. });
  328. }.bind(this));
  329. },
  330. //新增一个品类,保存
  331. addhandleSubmit(e){
  332. e.preventDefault();
  333. if(!this.state.categoryName){
  334. message.warning('请输入品类名称');
  335. return false;
  336. }
  337. if(!this.state.upCategory){
  338. message.warning('请选择上级品类');
  339. return false;
  340. }
  341. this.props.form.validateFields((err, values) => {
  342. if (!err) {
  343. this.setState({
  344. loading: true
  345. });
  346. //上级组织字典
  347. let nameText=this.state.SuperArr;
  348. let superText=nameText[parseInt(this.state.upCategory)].id;
  349. $.ajax({
  350. method: "get",
  351. dataType: "json",
  352. crossDomain: false,
  353. url:globalConfig.context + '/api/admin/Varieties/addVarieties',
  354. data:{
  355. cname:this.state.categoryName,//组织名称
  356. superId:superText,//上级组织
  357. }
  358. }).done(function (data) {
  359. this.setState({
  360. loading: false
  361. });
  362. if (!data.error.length) {
  363. message.success('新增品类成功!');
  364. this.handleCancel();
  365. this.selectSuperId();
  366. } else {
  367. message.warning(data.error[0].message);
  368. }
  369. }.bind(this));
  370. }
  371. });
  372. },
  373. //整行删除
  374. delectRow() {
  375. let deletedIds = '';
  376. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  377. let rowItem = this.state.selectedRows[idx];
  378. if (rowItem.id) {
  379. deletedIds=rowItem.id;
  380. };
  381. };
  382. this.setState({
  383. selectedRowKeys: [],
  384. loading: deletedIds.length > 0
  385. });
  386. $.ajax({
  387. method: "get",
  388. dataType: "json",
  389. crossDomain: false,
  390. url: globalConfig.context + "/api/admin/Varieties/deleteState",
  391. data: {
  392. id: deletedIds
  393. }
  394. }).done(function (data) {
  395. if (!data.error.length) {
  396. message.success('删除成功!');
  397. this.setState({
  398. loading: false,
  399. });
  400. } else {
  401. message.warning(data.error[0].message);
  402. };
  403. this.selectSuperId();
  404. }.bind(this));
  405. },
  406. //整行停用
  407. blockRow() {
  408. let deletedIds = '';
  409. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  410. let rowItem = this.state.selectedRows[idx];
  411. if (rowItem.id) {
  412. deletedIds=rowItem.id;
  413. };
  414. };
  415. this.setState({
  416. selectedRowKeys: [],
  417. loading: deletedIds.length > 0
  418. });
  419. $.ajax({
  420. method: "get",
  421. dataType: "json",
  422. crossDomain: false,
  423. url: globalConfig.context + "/api/admin/Varieties/updateStatus",
  424. data: {
  425. id: deletedIds
  426. }
  427. }).done(function (data) {
  428. if (!data.error.length) {
  429. message.success('该品类已成功停用!');
  430. this.setState({
  431. loading: false,
  432. });
  433. } else {
  434. message.warning(data.error[0].message);
  435. };
  436. this.selectSuperId();
  437. }.bind(this));
  438. },
  439. addClick() {
  440. this.state.RowData = {};
  441. this.setState({
  442. visible: true
  443. });
  444. },
  445. editClick() {
  446. this.state.RowData = {};
  447. this.setState({
  448. editvisible: true
  449. });
  450. },
  451. handleCancel() {
  452. this.setState({ visible: false })
  453. },
  454. edithandleCancel() {
  455. this.setState({ editvisible: false })
  456. },
  457. search() {
  458. this.loadData();
  459. },
  460. reset() {
  461. this.state.cname = '';//品类名称清零
  462. this.state.layer = undefined;//品类层级清零
  463. this.state.status = undefined;//品类状态清零
  464. this.state.superId = undefined;//上级品类清零
  465. this.loadData();
  466. },
  467. searchSwitch() {
  468. this.setState({
  469. searchMore: !this.state.searchMore
  470. });
  471. },
  472. render() {
  473. const FormItem = Form.Item
  474. const rowSelection = {
  475. selectedRowKeys: this.state.selectedRowKeys,
  476. onChange: (selectedRowKeys, selectedRows) => {
  477. this.setState({
  478. selectedRows: selectedRows.slice(-1),
  479. selectedRowKeys: selectedRowKeys.slice(-1)
  480. });
  481. }
  482. };
  483. const formItemLayout = {
  484. labelCol: { span: 8 },
  485. wrapperCol: { span: 14 },
  486. };
  487. const { getFieldDecorator } = this.props.form;
  488. const hasSelected = this.state.selectedRowKeys.length > 0;
  489. const { RangePicker } = DatePicker;
  490. return (
  491. <div className="user-content" >
  492. <div className="content-title">
  493. <div className="user-search">
  494. <Input placeholder="业务品类名称" style={{width:'150px',marginRight:'10px',marginBottom:'10px'}}
  495. value={this.state.cname}
  496. onChange={(e) => { this.setState({ cname: e.target.value }); }} />
  497. <Select placeholder="上级品类"
  498. style={{ width:'200px',marginRight:'10px' }}
  499. value={this.state.superId}
  500. onChange={(e) => { this.setState({ superId: e }) }} notFoundContent="未获取到上级品类列表">
  501. {this.state.contactsOption}
  502. </Select>
  503. <Button type="primary" onClick={this.search} style={{marginRight:'10px'}}>搜索</Button>
  504. <Button onClick={this.reset} style={{marginRight:'10px'}}>重置</Button>
  505. <Popconfirm title="是否删除?" onConfirm={this.delectRow} okText="是" cancelText="否">
  506. <Button style={{ background: "#ea0862", border: "none", color: "#fff",marginRight:'10px' ,marginLeft:'10px'}}
  507. disabled={!hasSelected}
  508. >删除<Icon type="minus" />
  509. </Button>
  510. </Popconfirm>
  511. <Popconfirm title="是否停用?" onConfirm={this.blockRow} okText="是" cancelText="否">
  512. <Button style={{ background: "#ea0862", border: "none", color: "#fff",marginRight:'10px' ,marginLeft:'10px'}}
  513. disabled={!hasSelected}
  514. >停用<Icon type="minus" />
  515. </Button>
  516. </Popconfirm>
  517. <span style={{marginRight:'20px'}}>更多搜索 <Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  518. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {display: 'inline-block'}}>
  519. <Select placeholder="品类层级"
  520. style={{ width:'150px',marginRight:'10px' }}
  521. value={this.state.layer}
  522. onChange={(e) => { this.setState({ layer: e }) }}>
  523. <Select.Option value="1" >一级</Select.Option>
  524. <Select.Option value="2" >二级</Select.Option>
  525. <Select.Option value="3" >三级</Select.Option>
  526. <Select.Option value="4" >四级</Select.Option>
  527. <Select.Option value="5" >五级</Select.Option>
  528. <Select.Option value="6" >六级</Select.Option>
  529. </Select>
  530. <Select placeholder="品类状态"
  531. style={{width:'150px',marginRight:'50px'}}
  532. value={this.state.status}
  533. onChange={(e) => { this.setState({ status: e }) }}>
  534. <Select.Option value="0" >正常</Select.Option>
  535. <Select.Option value="1" >停用</Select.Option>
  536. </Select>
  537. </div>
  538. <Button type="primary" className="addButton" onClick={this.addClick} style={{float:'right',marginRight:'200px'}}>新增品类<Icon type="plus" /></Button>
  539. </div>
  540. <div className="patent-table">
  541. <Spin spinning={this.state.loading}>
  542. <Table columns={this.state.columns}
  543. dataSource={this.state.dataSource}
  544. rowSelection={rowSelection}
  545. pagination={this.state.pagination}
  546. onRowClick={this.tableRowClick} />
  547. </Spin>
  548. </div>
  549. <div className="patent-desc">
  550. <Modal maskClosable={false} visible={this.state.visible}
  551. onOk={this.checkPatentProcess} onCancel={this.handleCancel}
  552. width='400px'
  553. title='新增品类'
  554. footer=''
  555. className="admin-desc-content">
  556. <Form horizontal onSubmit={this.addhandleSubmit} id="demand-form">
  557. <Spin spinning={this.state.loading}>
  558. <div className="clearfix">
  559. <FormItem className="half-item"
  560. labelCol={{ span: 7 }}
  561. wrapperCol={{ span: 12 }}
  562. label="品类名称" >
  563. <Input placeholder="品类名称" value={this.state.categoryName} style={{width:'94%'}}
  564. onChange={(e)=>{this.setState({categoryName:e.target.value})}} required="required"/>
  565. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  566. </FormItem>
  567. </div>
  568. <div className="clearfix">
  569. <FormItem
  570. labelCol={{ span: 7 }}
  571. wrapperCol={{ span: 12 }}
  572. label="上级品类"
  573. >
  574. <Select placeholder="请选择上级品类" value={this.state.upCategory} onChange={(e)=>{this.setState({upCategory:e})}}
  575. notFoundContent="未获取到上级品类列表" style={{width:'94%'}} required="required">
  576. {this.state.contactsOption}
  577. </Select>
  578. <span className="mandatory" style={{color:'red',marginLeft:'5px'}}>*</span>
  579. </FormItem>
  580. </div>
  581. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  582. <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
  583. <Button className="set-submit" type="ghost" onClick={this.handleCancel} style={{marginLeft:'50px'}}>取消</Button>
  584. </FormItem>
  585. </Spin>
  586. </Form >
  587. </Modal>
  588. </div>
  589. <div className="patent-desc">
  590. <Modal maskClosable={false} visible={this.state.editvisible}
  591. onOk={this.checkPatentProcess} onCancel={this.edithandleCancel}
  592. width='600px'
  593. title='编辑品类'
  594. footer=''
  595. className="admin-desc-content">
  596. <Form horizontal onSubmit={this.edithandleSubmit} id="demand-form">
  597. <Spin spinning={this.state.loading}>
  598. <div className="clearfix">
  599. <FormItem className="half-item"
  600. labelCol={{ span: 7 }}
  601. wrapperCol={{ span: 12 }}
  602. label="品类名称" >
  603. <Input placeholder="组织名称" value={this.state.editName}
  604. onChange={(e)=>{this.setState({editName:e.target.value})}}/>
  605. </FormItem>
  606. </div>
  607. <div className="clearfix">
  608. <FormItem className="half-item"
  609. labelCol={{ span: 7 }}
  610. wrapperCol={{ span: 12 }}
  611. label="品类状态"
  612. >
  613. <Select placeholder="品类状态" value={this.state.editStatus}
  614. onChange={(e)=>{this.setState({editStatus:e})}}>
  615. {
  616. categoryState.map(function (item) {
  617. return <Select.Option key={item.value} >{item.key}</Select.Option>
  618. })
  619. }
  620. </Select>
  621. </FormItem>
  622. </div>
  623. <div className="clearfix">
  624. <FormItem
  625. labelCol={{ span: 7 }}
  626. wrapperCol={{ span: 12 }}
  627. label="上级品类"
  628. >
  629. <Select placeholder="请选择上级组织" value={this.state.editSuperName} onChange={(e)=>{this.setState({editSuperName:e})}}
  630. notFoundContent="未获取到上级组织列表">
  631. {this.state.contactsOption}
  632. </Select>
  633. </FormItem>
  634. </div>
  635. <div className="clearfix">
  636. <FormItem className="half-item"
  637. labelCol={{ span: 7 }}
  638. wrapperCol={{ span: 12 }}
  639. label="品类层级"
  640. >
  641. <span>{this.state.editlayer}</span>
  642. </FormItem>
  643. </div>
  644. <div className="clearfix">
  645. <FormItem className="half-item"
  646. labelCol={{ span: 7 }}
  647. wrapperCol={{ span: 12 }}
  648. label="品类编号"
  649. >
  650. <span>{this.state.editCid}</span>
  651. </FormItem>
  652. </div>
  653. <div className="clearfix" >
  654. <FormItem className="half-item"
  655. labelCol={{ span: 7 }}
  656. wrapperCol={{ span: 12 }}
  657. label="创建人"
  658. >
  659. <span>{this.state.editCreateName}</span>
  660. </FormItem>
  661. </div>
  662. <div className="clearfix">
  663. <FormItem className="half-item"
  664. labelCol={{ span: 7 }}
  665. wrapperCol={{ span: 12 }}
  666. label="创建时间"
  667. >
  668. <span>{this.state.editTime}</span>
  669. </FormItem>
  670. </div>
  671. <FormItem wrapperCol={{ span: 12, offset: 7 }}>
  672. <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
  673. <Button className="set-submit" type="ghost" onClick={this.edithandleCancel} style={{marginLeft:'100px'}}>取消</Button>
  674. </FormItem>
  675. </Spin>
  676. </Form >
  677. </Modal>
  678. </div>
  679. </div>
  680. </div>
  681. );
  682. }
  683. }));
  684. export default BusinessCategory;