|
@@ -10,21 +10,6 @@ import PatentDesc from './comPatentDesc.jsx';
|
|
|
|
|
|
const Patent = React.createClass({
|
|
|
loadData(pageNo) {
|
|
|
- let page = pageNo || 1,
|
|
|
- pageSize = this.state.pagination.pageSize,
|
|
|
- serialNumber = this.state.number,
|
|
|
- patentNumber = this.state.patentNumber,
|
|
|
- patentName = this.state.patentName,
|
|
|
- //office: 事务所,
|
|
|
- locationProvince = this.state.province,
|
|
|
- unitName = this.state.unitName,
|
|
|
- patentCatagory = this.state.patentType,
|
|
|
- patentState = this.state.patentState,
|
|
|
- createTime = this.state.createTime,
|
|
|
- patentApplicationDate = this.state.startTime,
|
|
|
- authorizedDate = this.state.endTime,
|
|
|
- author = this.state.author;
|
|
|
-
|
|
|
this.state.data = [];
|
|
|
this.setState({
|
|
|
loading: true
|
|
@@ -33,7 +18,22 @@ const Patent = React.createClass({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: globalConfig.context + "/api/admin/patent/patentList?pageNo=" + page + "&pageSize=" + pageSize + "&serialNumber=" + serialNumber + "&patentNumber=" + patentNumber + "&patentName=" + patentName + "&locationProvince=" + locationProvince + "&unitName=" + unitName + "&patentCatagory=" + patentCatagory + "&patentState=" + patentState + "&createTime=" + createTime + "&patentApplicationDate=" + patentApplicationDate + "&authorizedDate=" + authorizedDate + "&author=" + author,
|
|
|
+ url: globalConfig.context + "/api/admin/patent/patentList",
|
|
|
+ data: {
|
|
|
+ page: pageNo || 1,
|
|
|
+ pageSize: this.state.pagination.pageSize || null,
|
|
|
+ serialNumber: this.state.number || null,
|
|
|
+ patentNumber: this.state.patentNumber || null,
|
|
|
+ patentName: this.state.patentName || null,
|
|
|
+ locationProvince: this.state.province || null,
|
|
|
+ unitName: this.state.unitName || null,
|
|
|
+ patentCatagory: this.state.patentType || null,
|
|
|
+ patentState: this.state.patentState || null,
|
|
|
+ createTime: this.state.createTime || null,
|
|
|
+ patentApplicationDate: this.state.startTime || null,
|
|
|
+ authorizedDate: this.state.endTime || null,
|
|
|
+ author: this.state.author
|
|
|
+ },
|
|
|
success: function (data) {
|
|
|
if (data.error.length || !data.data || !data.data.list) {
|
|
|
message.warning(data.error[0].message);
|
|
@@ -102,32 +102,6 @@ const Patent = React.createClass({
|
|
|
});
|
|
|
}.bind(this));
|
|
|
},
|
|
|
- getAuthorList() {
|
|
|
- this.setState({
|
|
|
- loading: true
|
|
|
- });
|
|
|
- $.ajax({
|
|
|
- method: "get",
|
|
|
- dataType: "json",
|
|
|
- crossDomain: false,
|
|
|
- url: globalConfig.context + "/techservice/patent/getAdmin",
|
|
|
- success: function (data) {
|
|
|
- if (data.error.length || !data.data) {
|
|
|
- return;
|
|
|
- };
|
|
|
- let _me = this;
|
|
|
- for (var item in data.data) {
|
|
|
- _me.state.authorOption.push(
|
|
|
- <Select.Option value={item} key={item}>{data.data[item]}</Select.Option>
|
|
|
- )
|
|
|
- };
|
|
|
- }.bind(this),
|
|
|
- }).always(function () {
|
|
|
- this.setState({
|
|
|
- loading: false
|
|
|
- });
|
|
|
- }.bind(this));
|
|
|
- },
|
|
|
getCompanyList() {
|
|
|
this.setState({
|
|
|
loading: true
|
|
@@ -156,18 +130,9 @@ const Patent = React.createClass({
|
|
|
},
|
|
|
getInitialState() {
|
|
|
return {
|
|
|
- number: '',
|
|
|
- patentNumber: '',
|
|
|
- //office: 事务所,
|
|
|
- province: '',
|
|
|
- unitName: '',
|
|
|
- patentType: '',
|
|
|
- patentName: '',
|
|
|
- patentState: '',
|
|
|
createTime: [],
|
|
|
endTime: [],
|
|
|
startTime: [],
|
|
|
- author: '',
|
|
|
patentTypeOption: [],
|
|
|
patentStateOption: [],
|
|
|
companyOption: [],
|
|
@@ -260,7 +225,7 @@ const Patent = React.createClass({
|
|
|
)
|
|
|
});
|
|
|
this.loadData();
|
|
|
- this.getAuthorList();
|
|
|
+ //this.getAuthorList();
|
|
|
this.getCompanyList();
|
|
|
},
|
|
|
tableRowClick(record, index) {
|
|
@@ -401,7 +366,6 @@ const Patent = React.createClass({
|
|
|
onChange={(e) => { this.state.province = e }}>
|
|
|
{this.state.provinceOption}
|
|
|
</Select>
|
|
|
- <Select placeholder="选择撰写人" style={{ width: 200 }} onChange={(e) => { this.state.author = e }}>{this.state.authorOption}</Select>
|
|
|
<Select placeholder="选择公司"
|
|
|
style={{ width: 200 }}
|
|
|
showSearch
|
|
@@ -426,4 +390,32 @@ const Patent = React.createClass({
|
|
|
}
|
|
|
});
|
|
|
|
|
|
-export default Patent;
|
|
|
+export default Patent;
|
|
|
+
|
|
|
+//<Select placeholder="选择撰写人" style={{ width: 200 }} onChange={(e) => { this.state.author = e }}>{this.state.authorOption}</Select>
|
|
|
+ // getAuthorList() {
|
|
|
+ // this.setState({
|
|
|
+ // loading: true
|
|
|
+ // });
|
|
|
+ // $.ajax({
|
|
|
+ // method: "get",
|
|
|
+ // dataType: "json",
|
|
|
+ // crossDomain: false,
|
|
|
+ // url: globalConfig.context + "/api/admin/getAdmin",
|
|
|
+ // success: function (data) {
|
|
|
+ // if (data.error.length || !data.data) {
|
|
|
+ // return;
|
|
|
+ // };
|
|
|
+ // let _me = this;
|
|
|
+ // for (var item in data.data) {
|
|
|
+ // _me.state.authorOption.push(
|
|
|
+ // <Select.Option value={item} key={item}>{data.data[item]}</Select.Option>
|
|
|
+ // )
|
|
|
+ // };
|
|
|
+ // }.bind(this),
|
|
|
+ // }).always(function () {
|
|
|
+ // this.setState({
|
|
|
+ // loading: false
|
|
|
+ // });
|
|
|
+ // }.bind(this));
|
|
|
+ // },
|