activity.jsx 30 KB

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