activity.jsx 30 KB

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