businessCategory.jsx 28 KB

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