|
@@ -16,7 +16,8 @@ const AchievementList = React.createClass({
|
|
|
return false;
|
|
|
}
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
+ ispage:pageNo,
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -29,9 +30,6 @@ const AchievementList = React.createClass({
|
|
|
serialNumber: this.state.serialNumber, //编号
|
|
|
name: this.state.name,
|
|
|
auditStatus:3,//名称
|
|
|
-// ownerName: this.state.searchType == 1 ? this.state.searchName : undefined,
|
|
|
-// username: this.state.searchType == 0 && this.props['data-listApiUrl'].indexOf('org') == -1 ? this.state.searchName : undefined,
|
|
|
-// unitName: this.state.searchType == 0 && this.props['data-listApiUrl'].indexOf('user') == -1 ? this.state.searchName : undefined,
|
|
|
keyword: this.state.keyword, // 关键词
|
|
|
category: this.state.category, //类型(0--专利, 2--软著, 3--项目, 4--版权, 5--工业设计, 6--配方, 7--非标)
|
|
|
releaseDateStartDate: this.state.releaseDate[0],
|
|
@@ -73,7 +71,8 @@ const AchievementList = React.createClass({
|
|
|
releaseStatus: thisdata.releaseStatus,
|
|
|
techBrokerId:thisdata.techBrokerId,
|
|
|
createTimeFormattedDate: thisdata.createTimeFormattedDate,
|
|
|
- remark:thisdata.remark
|
|
|
+ remark:thisdata.remark,
|
|
|
+ ispage:pageNo,
|
|
|
});
|
|
|
};
|
|
|
this.state.pagination.current = data.data.pageNo;
|
|
@@ -253,41 +252,41 @@ const AchievementList = React.createClass({
|
|
|
} else {
|
|
|
message.warning(data.error[0].message);
|
|
|
};
|
|
|
- this.loadData();
|
|
|
- }.bind(this));
|
|
|
- },
|
|
|
- delectRow() {
|
|
|
- let deletedIds = [];
|
|
|
- for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
|
|
|
- let rowItem = this.state.selectedRows[idx];
|
|
|
- if (rowItem.id) {
|
|
|
- deletedIds.push(rowItem.id)
|
|
|
- };
|
|
|
- };
|
|
|
- this.setState({
|
|
|
- selectedRowKeys: [],
|
|
|
- loading: deletedIds.length > 0
|
|
|
- });
|
|
|
- $.ajax({
|
|
|
- method: "POST",
|
|
|
- dataType: "json",
|
|
|
- crossDomain: false,
|
|
|
- url: globalConfig.context + "/api/admin/achievement/delete",
|
|
|
- data: {
|
|
|
- ids: deletedIds
|
|
|
- }
|
|
|
- }).done(function (data) {
|
|
|
- if (!data.error.length) {
|
|
|
- message.success('删除成功!');
|
|
|
- this.setState({
|
|
|
- loading: false,
|
|
|
- });
|
|
|
- } else {
|
|
|
- message.warning(data.error[0].message);
|
|
|
- };
|
|
|
- this.loadData();
|
|
|
+ this.loadData(this.state.ispage);
|
|
|
}.bind(this));
|
|
|
},
|
|
|
+// delectRow() {
|
|
|
+// let deletedIds = [];
|
|
|
+// for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
|
|
|
+// let rowItem = this.state.selectedRows[idx];
|
|
|
+// if (rowItem.id) {
|
|
|
+// deletedIds.push(rowItem.id)
|
|
|
+// };
|
|
|
+// };
|
|
|
+// this.setState({
|
|
|
+// selectedRowKeys: [],
|
|
|
+// loading: deletedIds.length > 0
|
|
|
+// });
|
|
|
+// $.ajax({
|
|
|
+// method: "POST",
|
|
|
+// dataType: "json",
|
|
|
+// crossDomain: false,
|
|
|
+// url: globalConfig.context + "/api/admin/achievement/delete",
|
|
|
+// data: {
|
|
|
+// ids: deletedIds
|
|
|
+// }
|
|
|
+// }).done(function (data) {
|
|
|
+// if (!data.error.length) {
|
|
|
+// message.success('删除成功!');
|
|
|
+// this.setState({
|
|
|
+// loading: false,
|
|
|
+// });
|
|
|
+// } else {
|
|
|
+// message.warning(data.error[0].message);
|
|
|
+// };
|
|
|
+// this.loadData(this.state.ispage);
|
|
|
+// }.bind(this));
|
|
|
+// },
|
|
|
addClick() {
|
|
|
this.state.RowData = {};
|
|
|
this.setState({
|
|
@@ -297,7 +296,7 @@ const AchievementList = React.createClass({
|
|
|
closeDesc(e, s) {
|
|
|
this.state.showDesc = e;
|
|
|
if (s) {
|
|
|
- this.loadData();
|
|
|
+ this.loadData(this.state.ispage);
|
|
|
};
|
|
|
},
|
|
|
search() {
|
|
@@ -338,7 +337,7 @@ const AchievementList = React.createClass({
|
|
|
return (
|
|
|
<div className="user-content" >
|
|
|
<div className="content-title">
|
|
|
- <span>成果发布管理</span>
|
|
|
+ <span>科技成果发布</span>
|
|
|
<div className="patent-addNew clearfix">
|
|
|
<Upload
|
|
|
action={globalConfig.context + "/api/admin/achievement/uploadTemplate"}
|
|
@@ -385,9 +384,6 @@ const AchievementList = React.createClass({
|
|
|
</Radio.Group>
|
|
|
<Button type="primary" onClick={this.search}>搜索</Button>
|
|
|
<Button onClick={this.reset}>重置</Button>
|
|
|
- <Button style={{ background: "#3fcf9e", border: "none", color: "#fff" }}
|
|
|
- disabled={!hasSelected}
|
|
|
- onClick={this.delectRow}>删除<Icon type="minus" /></Button>
|
|
|
<span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
|
|
|
<div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
|
|
|
<Radio.Group value={this.state.boutique} onChange={(e) => {
|