activityCostList.jsx 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  1. import React from 'react';
  2. import { Icon, Form, Upload, Button, Input, Spin, Table, message, Select, Modal, DatePicker, InputNumber } from 'antd';
  3. import './activityCostList.less';
  4. import { beforeUploadFile, downloadFile } from '../../tools.js';
  5. import moment from 'moment';
  6. import ajax from 'jquery/src/ajax/xhr.js';
  7. import $ from 'jquery/src/ajax';
  8. const ActivityDescFrom = Form.create()(React.createClass({
  9. getInitialState() {
  10. return {
  11. loading: false,
  12. activityNumberOption: [],
  13. };
  14. },
  15. allCostCount() {
  16. this.state.internalAllCost = this.props.form.getFieldValue('internalLaborCost') + this.props.form.getFieldValue('internalDirectCost') +
  17. this.props.form.getFieldValue('internalDepreciationCost') + this.props.form.getFieldValue('internalAmortizationCost') +
  18. this.props.form.getFieldValue('internalDesignCost') + this.props.form.getFieldValue('internalEquipmentCost') +
  19. this.props.form.getFieldValue('internalOtherCost');
  20. this.state.allCost = this.props.form.getFieldValue('internalLaborCost') + this.props.form.getFieldValue('internalDirectCost') +
  21. this.props.form.getFieldValue('internalDepreciationCost') + this.props.form.getFieldValue('internalAmortizationCost') +
  22. this.props.form.getFieldValue('internalDesignCost') + this.props.form.getFieldValue('internalEquipmentCost') +
  23. this.props.form.getFieldValue('internalOtherCost') + this.props.form.getFieldValue('externalTotalCost');
  24. },
  25. componentDidMount() {
  26. this.allCostCount();
  27. this.setState({
  28. loading: false
  29. });
  30. },
  31. componentWillReceiveProps(nextProps) {
  32. this.allCostCount();
  33. let _me = this;
  34. if (!this.props.visible && nextProps.visible && nextProps.activityNumberList)
  35. nextProps.activityNumberList.map(function (item) {
  36. _me.state.activityNumberOption.push(
  37. <Select.Option value={item.aid} key={item.uid}>{item.activityNumber}</Select.Option>
  38. )
  39. });
  40. },
  41. handleSubmit(e) {
  42. e.preventDefault();
  43. this.props.form.validateFields((err, values) => {
  44. if (!err) {
  45. this.props.spinState(true);
  46. $.ajax({
  47. method: "POST",
  48. dataType: "json",
  49. crossDomain: false,
  50. url: globalConfig.context + "/api/user/cognizance/activityCost",
  51. data: {
  52. id: this.props.data.id,
  53. aid: this.state.aid,
  54. activityNumber: this.state.activityNumber,
  55. internalLaborCost: values.internalLaborCost,
  56. internalDirectCost: values.internalDirectCost,
  57. internalDepreciationCost: values.internalDepreciationCost,
  58. internalAmortizationCost: values.internalAmortizationCost,
  59. internalDesignCost: values.internalDesignCost,
  60. internalEquipmentCost: values.internalEquipmentCost,
  61. internalOtherCost: values.internalOtherCost,
  62. externalTotalCost: values.externalTotalCost,
  63. externalAbroadCost: values.externalAbroadCost,
  64. enterpriseFiller: values.enterpriseFiller,
  65. signDateFormattedDate: values.signDate.format('YYYY-MM-DD'),
  66. sortNumber: values.sortNumber,
  67. accountUrl: this.state.accountUrl
  68. }
  69. }).done(function (data) {
  70. if (!data.error.length) {
  71. message.success('保存成功!');
  72. } else {
  73. message.warning(data.error[0].message);
  74. }
  75. }.bind(this)).always(function () {
  76. this.props.spinState(false);
  77. this.props.clickOk();
  78. this.props.form.resetFields();
  79. }.bind(this));
  80. }
  81. });
  82. },
  83. render() {
  84. const FormItem = Form.Item;
  85. const { getFieldDecorator } = this.props.form;
  86. const theData = this.props.data;
  87. const formItemLayout = {
  88. labelCol: { span: 14 },
  89. wrapperCol: { span: 8 },
  90. };
  91. const _me = this;
  92. return (
  93. <Form onSubmit={this.handleSubmit} className="activityCost-form">
  94. <p className="activityCost-title">项目编号</p>
  95. {
  96. theData.activityNumber ? <span>{theData.activityNumber}</span> :
  97. <Select placeholder="请选择项目编号" style={{ width: 200 }}
  98. onSelect={(e, n) => { this.state.aid = e; this.state.activityNumber = n.props.children }}>
  99. {this.state.activityNumberOption}
  100. </Select>
  101. }
  102. <p className="activityCost-title">内部研究开发费用(万元)</p>
  103. <div className="clearfix activityCost-box">
  104. <FormItem className="half-item"
  105. {...formItemLayout}
  106. label="共计(万元)"
  107. >
  108. {getFieldDecorator('internalAllCost')(
  109. <span className="number-box">
  110. {this.state.internalAllCost}
  111. </span>
  112. )}
  113. </FormItem>
  114. <FormItem className="half-item"
  115. {...formItemLayout}
  116. label="人员人工费用(万元)"
  117. >
  118. {getFieldDecorator('internalLaborCost', {
  119. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  120. initialValue: theData.internalLaborCost
  121. })(
  122. <InputNumber />
  123. )}
  124. </FormItem>
  125. <FormItem className="half-item"
  126. {...formItemLayout}
  127. label="直接投入费用(万元)"
  128. >
  129. {getFieldDecorator('internalDirectCost', {
  130. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  131. initialValue: theData.internalDirectCost
  132. })(
  133. <InputNumber />
  134. )}
  135. </FormItem>
  136. <FormItem className="half-item"
  137. {...formItemLayout}
  138. label="折旧费用与长期待摊费用(万元)"
  139. >
  140. {getFieldDecorator('internalDepreciationCost', {
  141. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  142. initialValue: theData.internalDepreciationCost
  143. })(
  144. <InputNumber />
  145. )}
  146. </FormItem>
  147. <FormItem className="half-item"
  148. {...formItemLayout}
  149. label="无形资产摊销费用(万元)"
  150. >
  151. {getFieldDecorator('internalAmortizationCost', {
  152. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  153. initialValue: theData.internalAmortizationCost
  154. })(
  155. <InputNumber />
  156. )}
  157. </FormItem>
  158. <FormItem className="half-item"
  159. {...formItemLayout}
  160. label="设计费用(万元)"
  161. >
  162. {getFieldDecorator('internalDesignCost', {
  163. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  164. initialValue: theData.internalDesignCost
  165. })(
  166. <InputNumber />
  167. )}
  168. </FormItem>
  169. <FormItem className="half-item"
  170. {...formItemLayout}
  171. label="装备调试费用与实验费用(万元)"
  172. >
  173. {getFieldDecorator('internalEquipmentCost', {
  174. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  175. initialValue: theData.internalEquipmentCost
  176. })(
  177. <InputNumber />
  178. )}
  179. </FormItem>
  180. <FormItem className="half-item"
  181. {...formItemLayout}
  182. label="其他费用(万元)"
  183. >
  184. {getFieldDecorator('internalOtherCost', {
  185. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  186. initialValue: theData.internalOtherCost
  187. })(
  188. <InputNumber />
  189. )}
  190. </FormItem>
  191. </div>
  192. <p className="activityCost-title">委托外部研究开发费用(万元)</p>
  193. <div className="clearfix activityCost-box">
  194. <FormItem className="half-item"
  195. {...formItemLayout}
  196. label="共计(万元)"
  197. >
  198. {getFieldDecorator('externalTotalCost', {
  199. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  200. initialValue: theData.externalTotalCost
  201. })(
  202. <InputNumber />
  203. )}
  204. </FormItem>
  205. <FormItem className="half-item"
  206. {...formItemLayout}
  207. label="境内的外部研发费用"
  208. >
  209. {getFieldDecorator('externalAbroadCost', {
  210. rules: [{ type: "number", required: true, message: '此项为必填项!' }],
  211. initialValue: theData.externalAbroadCost
  212. })(
  213. <InputNumber />
  214. )}
  215. </FormItem>
  216. </div>
  217. <p className="activityCost-title">研发开发费用(内、外部)小计(万元)</p>
  218. <div className="clearfix activityCost-box">
  219. <FormItem className="half-item"
  220. {...formItemLayout}
  221. label="共计(万元)"
  222. >
  223. {getFieldDecorator('allCost')(
  224. <span className="number-box">
  225. {this.state.allCost}
  226. </span>
  227. )}
  228. </FormItem>
  229. <FormItem className="half-item"
  230. {...formItemLayout}
  231. label="企业填报人"
  232. >
  233. {getFieldDecorator('enterpriseFiller', {
  234. rules: [{ required: true, message: '此项为必填项!' }],
  235. initialValue: theData.enterpriseFiller
  236. })(
  237. <Input />
  238. )}
  239. </FormItem>
  240. <FormItem className="half-item"
  241. {...formItemLayout}
  242. label="企业填报人签字日期"
  243. >
  244. {getFieldDecorator('signDate', {
  245. rules: [{ type: "object", required: true, message: '此项为必填项!' }],
  246. initialValue: theData.signDate ? moment(theData.signDate) : null
  247. })(
  248. <DatePicker onChange={(date, dateString) => { this.state.signDateFormattedDate = dateString }} />
  249. )}
  250. </FormItem>
  251. <FormItem className="half-item"
  252. {...formItemLayout}
  253. label="排序号"
  254. >
  255. {getFieldDecorator('sortNumber', {
  256. rules: [{ required: true, message: '此项为必填项!' }],
  257. initialValue: theData.sortNumber
  258. })(
  259. <Input />
  260. )}
  261. </FormItem>
  262. </div>
  263. <div style={{ width: '50%', marginTop: '20px' }}>
  264. <Upload
  265. name="ratepay"
  266. action={globalConfig.context + "/api/user/cognizance/upload"}
  267. data={{ 'sign': 'activity_cost_account' }}
  268. beforeUpload={beforeUploadFile}
  269. showUploadList={false}
  270. onChange={(info) => {
  271. if (info.file.status !== 'uploading') {
  272. console.log(info.file, info.fileList);
  273. }
  274. if (info.file.status === 'done') {
  275. if (!info.file.response.error.length) {
  276. message.success(`${info.file.name} 文件上传成功!`);
  277. } else {
  278. message.warning(info.file.response.error[0].message);
  279. return;
  280. };
  281. this.state.accountUrl = info.file.response.data;
  282. } else if (info.file.status === 'error') {
  283. message.error(`${info.file.name} 文件上传失败。`);
  284. }
  285. }}
  286. >
  287. <Button><Icon type="upload" /> 上传研发费用台账 </Button>
  288. </Upload>
  289. <p style={{ marginTop: '20px' }}>{theData.accountUrl ? <a onClick={downloadFile.bind(null, theData.accountUrl, theData.accountDownloadFileName)}>{theData.accountDownloadFileName}</a> : <span><Icon type="exclamation-circle" style={{ color: '#ffbf00', marginRight: '6px' }} />未上传!</span>}</p>
  290. </div>
  291. <FormItem style={{ marginTop: '20px' }}>
  292. <Button className="set-submit" type="primary" htmlType="submit">保存</Button>
  293. <Button type="ghost" style={{ marginLeft: '20px' }} onClick={this.props.closeModal}>取消</Button>
  294. </FormItem>
  295. </Form >
  296. );
  297. },
  298. }));
  299. const ActivityDesc = React.createClass({
  300. getInitialState() {
  301. return {
  302. visible: false,
  303. loading: false
  304. };
  305. },
  306. componentWillReceiveProps(nextProps) {
  307. this.state.visible = nextProps.showDesc
  308. },
  309. showModal() {
  310. this.setState({
  311. visible: true,
  312. });
  313. },
  314. handleOk() {
  315. this.setState({
  316. visible: false,
  317. });
  318. this.props.closeDesc(false, true);
  319. },
  320. handleCancel(e) {
  321. this.setState({
  322. visible: false,
  323. });
  324. this.props.closeDesc(false);
  325. },
  326. spinChange(e) {
  327. this.setState({
  328. loading: e
  329. });
  330. },
  331. render() {
  332. return (
  333. <div className="patent-addNew">
  334. <Spin spinning={this.state.loading} className='spin-box'>
  335. <Modal title="企业研究开发费用结构明细" visible={this.state.visible}
  336. onOk={this.handleOk} onCancel={this.handleCancel}
  337. width='800px'
  338. footer=''
  339. >
  340. <ActivityDescFrom data={this.props.data}
  341. visible={this.state.visible}
  342. activityNumberList={this.props.activityNumberList}
  343. spinState={this.spinChange}
  344. closeModal={this.handleCancel}
  345. clickOk={this.handleOk} />
  346. </Modal>
  347. </Spin>
  348. </div>
  349. );
  350. },
  351. });
  352. const Activity = React.createClass({
  353. loadData(pageNo) {
  354. this.state.data = [];
  355. this.setState({
  356. loading: true
  357. });
  358. $.when($.ajax({
  359. method: "post",
  360. dataType: "json",
  361. crossDomain: false,
  362. url: globalConfig.context + "/api/user/cognizance/activityCostList",
  363. data: {
  364. pageNo: pageNo || 1,
  365. pageSize: this.state.pagination.pageSize,
  366. activityNumber: this.state.activityNumber,
  367. startDate: this.state.startDate,
  368. endDate: this.state.endDate
  369. }
  370. }), $.ajax({
  371. method: "get",
  372. dataType: "json",
  373. crossDomain: false,
  374. url: globalConfig.context + "/api/user/cognizance/activityNumber",
  375. })).done((data1, data2) => {
  376. let data = data1[0];
  377. let activityNumber = data2[0];
  378. if (!data.data || !data.data.list) {
  379. if (data.error && data.error.length) {
  380. message.warning(data.error[0].message);
  381. this.state.ButtonDisabled = true;
  382. };
  383. return;
  384. };
  385. if (!activityNumber.data) {
  386. if (activityNumber.error && activityNumber.error.length) {
  387. message.warning(activityNumber.error[0].message);
  388. this.state.ButtonDisabled = true;
  389. };
  390. return;
  391. };
  392. for (let i = 0; i < data.data.list.length; i++) {
  393. let thisdata = data.data.list[i];
  394. this.state.data.push({
  395. key: i,
  396. id: thisdata.id,
  397. uid: thisdata.uid,
  398. aid: thisdata.aid,
  399. activityNumber: thisdata.activityNumber,
  400. startDate: thisdata.startDate,
  401. endDate: thisdata.endDate,
  402. internalAllCost:
  403. thisdata.internalLaborCost + thisdata.internalDirectCost + thisdata.internalDepreciationCost +
  404. thisdata.internalAmortizationCost + thisdata.internalAmortizationCost + thisdata.internalDesignCost +
  405. thisdata.internalEquipmentCost + thisdata.internalOtherCost,
  406. internalLaborCost: thisdata.internalLaborCost,
  407. internalDirectCost: thisdata.internalDirectCost,
  408. internalDepreciationCost: thisdata.internalDepreciationCost,
  409. internalAmortizationCost: thisdata.internalAmortizationCost,
  410. internalDesignCost: thisdata.internalDesignCost,
  411. internalEquipmentCost: thisdata.internalEquipmentCost,
  412. internalOtherCost: thisdata.internalOtherCost,
  413. externalTotalCost: thisdata.externalTotalCost,
  414. externalAbroadCost: thisdata.externalAbroadCost,
  415. allCost:
  416. thisdata.internalLaborCost + thisdata.internalDirectCost + thisdata.internalDepreciationCost +
  417. thisdata.internalAmortizationCost + thisdata.internalAmortizationCost + thisdata.internalDesignCost +
  418. thisdata.internalEquipmentCost + thisdata.internalOtherCost + thisdata.externalTotalCost,
  419. enterpriseFiller: thisdata.enterpriseFiller,
  420. signDate: thisdata.signDate,
  421. signDateFormattedDate: thisdata.signDateFormattedDate,
  422. sortNumber: thisdata.sortNumber,
  423. startDateFormattedDate: thisdata.startDateFormattedDate,
  424. endDateFormattedDate: thisdata.endDateFormattedDate,
  425. accountDownloadFileName: thisdata.accountDownloadFileName,
  426. accountUrl: thisdata.accountUrl
  427. });
  428. };
  429. this.state.activityNumberList = activityNumber.data;
  430. this.state.pagination.current = data.data.pageNo;
  431. this.state.pagination.total = data.data.totalCount;
  432. this.setState({
  433. dataSource: this.state.data,
  434. pagination: this.state.pagination
  435. });
  436. }).always(function () {
  437. this.setState({
  438. loading: false
  439. });
  440. }.bind(this));
  441. },
  442. getInitialState() {
  443. return {
  444. selectedRowKeys: [],
  445. selectedRows: [],
  446. loading: false,
  447. pagination: {
  448. defaultCurrent: 1,
  449. defaultPageSize: 10,
  450. showQuickJumper: true,
  451. pageSize: 10,
  452. onChange: function (page) {
  453. this.loadData(page);
  454. }.bind(this),
  455. showTotal: function (total) {
  456. return '共' + total + '条数据';
  457. }
  458. },
  459. columns: [
  460. {
  461. title: '研发活动编号',
  462. dataIndex: 'activityNumber',
  463. key: 'activityNumber'
  464. }, {
  465. title: '内部研究开发费用',
  466. dataIndex: 'internalAllCost',
  467. key: 'internalAllCost'
  468. }, {
  469. title: '人员人工费用',
  470. dataIndex: 'internalLaborCost',
  471. key: 'internalLaborCost'
  472. }, {
  473. title: '直接投入费用',
  474. dataIndex: 'internalDirectCost',
  475. key: 'internalDirectCost'
  476. }, {
  477. title: '折旧费用与长期待摊费用',
  478. dataIndex: 'internalDepreciationCost',
  479. key: 'internalDepreciationCost'
  480. }, {
  481. title: '设计费用',
  482. dataIndex: 'internalDesignCost',
  483. key: 'internalDesignCost'
  484. }, {
  485. title: '装备调试费用与试验费用',
  486. dataIndex: 'internalEquipmentCost',
  487. key: 'internalEquipmentCost'
  488. }, {
  489. title: '无形资产摊销费用',
  490. dataIndex: 'internalAmortizationCost',
  491. key: 'internalAmortizationCost'
  492. }, {
  493. title: '其他费用',
  494. dataIndex: 'internalOtherCost',
  495. key: 'internalOtherCost'
  496. }, {
  497. title: '委托外部研究开发费用',
  498. dataIndex: 'externalTotalCost',
  499. key: 'externalTotalCost'
  500. }, {
  501. title: '境内外部研发费用',
  502. dataIndex: 'externalAbroadCost',
  503. key: 'externalAbroadCost'
  504. }, {
  505. title: '研发费用合计',
  506. dataIndex: 'allCost',
  507. key: 'allCost'
  508. }, {
  509. title: '企业填报人',
  510. dataIndex: 'enterpriseFiller',
  511. key: 'enterpriseFiller'
  512. }, {
  513. title: '企业填报人签字日期',
  514. dataIndex: 'signDateFormattedDate',
  515. key: 'signDateFormattedDate'
  516. }, {
  517. title: '排序号',
  518. dataIndex: 'sortNumber',
  519. key: 'sortNumber'
  520. }
  521. ],
  522. dataSource: []
  523. };
  524. },
  525. componentWillMount() {
  526. this.loadData();
  527. },
  528. tableRowClick(record, index) {
  529. this.state.RowData = record;
  530. this.setState({
  531. showDesc: true
  532. });
  533. },
  534. delectRow() {
  535. let deletedIds = [];
  536. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  537. let rowItem = this.state.selectedRows[idx];
  538. if (rowItem.id) {
  539. deletedIds.push(rowItem.id)
  540. }
  541. }
  542. this.setState({
  543. selectedRowKeys: [],
  544. loading: deletedIds.length > 0
  545. });
  546. $.ajax({
  547. method: "POST",
  548. dataType: "json",
  549. crossDomain: false,
  550. url: globalConfig.context + "/api/user/cognizance/deleteActivityCost",
  551. data: {
  552. ids: deletedIds
  553. }
  554. }).done(function (data) {
  555. if (!data.error.length) {
  556. message.success('保存成功!');
  557. this.setState({
  558. loading: false,
  559. });
  560. } else {
  561. message.warning(data.error[0].message);
  562. };
  563. this.loadData();
  564. }.bind(this));
  565. },
  566. closeDesc(e, s) {
  567. this.state.showDesc = e;
  568. if (s) {
  569. this.loadData();
  570. };
  571. },
  572. search() {
  573. this.loadData();
  574. },
  575. reset() {
  576. this.state.startDateFormattedDate = undefined;
  577. this.state.endDateFormattedDate = undefined;
  578. this.state.activityNumber = undefined;
  579. this.loadData();
  580. },
  581. render() {
  582. const rowSelection = {
  583. selectedRowKeys: this.state.selectedRowKeys,
  584. onChange: (selectedRowKeys, selectedRows) => {
  585. this.setState({
  586. selectedRows: selectedRows,
  587. selectedRowKeys: selectedRowKeys
  588. });
  589. }
  590. };
  591. const hasSelected = this.state.selectedRowKeys.length > 0;
  592. return (
  593. <div className="user-content" >
  594. <div className="content-title">
  595. <span>企业研究开发费用结构明细</span>
  596. </div>
  597. <div className="user-search">
  598. <Input placeholder="研发活动编号" value={this.state.activityNumber}
  599. onChange={(e) => { this.setState({ activityNumber: e.target.value }); }} />
  600. <span>开始日期:</span>
  601. <DatePicker
  602. value={this.state.startDateFormattedDate ? moment(this.state.startDateFormattedDate) : null}
  603. onChange={(data, dataString) => { this.setState({ startDateFormattedDate: dataString }); }} />
  604. <span>结束日期:</span>
  605. <DatePicker
  606. value={this.state.endDateFormattedDate ? moment(this.state.endDateFormattedDate) : null}
  607. onChange={(data, dataString) => { this.setState({ endDateFormattedDate: dataString }); }} />
  608. <Button type="primary" onClick={this.search}>搜索</Button>
  609. <Button onClick={this.reset}>重置</Button>
  610. <p>
  611. <Button style={{ background: "#ea0862", border: "none", color: "#fff" }}
  612. disabled={this.state.ButtonDisabled}
  613. onClick={this.tableRowClick}>添加<Icon type="plus" /></Button>
  614. <Button style={{ background: "#3fcf9e", border: "none", color: "#fff" }}
  615. disabled={!hasSelected}
  616. onClick={this.delectRow}>删除<Icon type="minus" /></Button>
  617. </p>
  618. </div>
  619. <div className="patent-table">
  620. <Spin spinning={this.state.loading}>
  621. <Table columns={this.state.columns}
  622. dataSource={this.state.dataSource}
  623. pagination={this.state.pagination}
  624. rowSelection={rowSelection}
  625. onRowClick={this.tableRowClick} />
  626. </Spin>
  627. </div>
  628. <ActivityDesc data={this.state.RowData}
  629. activityNumberList={this.state.activityNumberList}
  630. showDesc={this.state.showDesc} closeDesc={this.closeDesc} />
  631. </div >
  632. );
  633. }
  634. });
  635. export default Activity;