|
@@ -333,28 +333,46 @@ class ProjecCount extends Component {
|
|
}
|
|
}
|
|
|
|
|
|
exportExcel() {
|
|
exportExcel() {
|
|
- console.log(123123123);
|
|
|
|
- // let loading = message.loading('下载中...');
|
|
|
|
- console.log(this.state);
|
|
|
|
let data = {
|
|
let data = {
|
|
- startDate:this.state.releaseDate.length > 0
|
|
|
|
|
|
+ pageNo: this.state.pageNo || 1,
|
|
|
|
+ pageSize: 9999,
|
|
|
|
+ startDate:
|
|
|
|
+ this.state.releaseDate.length > 0
|
|
? this.state.releaseDate[0]
|
|
? this.state.releaseDate[0]
|
|
: undefined, //开始时间
|
|
: undefined, //开始时间
|
|
- endDate:this.state.releaseDate.length > 0
|
|
|
|
|
|
+ endDate:
|
|
|
|
+ this.state.releaseDate.length > 0
|
|
? this.state.releaseDate[1]
|
|
? this.state.releaseDate[1]
|
|
: undefined, //结束时间
|
|
: undefined, //结束时间
|
|
- thchDepId: this.state.depId || undefined, //责任部门ID
|
|
|
|
- depId: this.state.depId || undefined,
|
|
|
|
- projectStatus: this.state.projectStatus || undefined, //项目类别
|
|
|
|
projectType:
|
|
projectType:
|
|
typeof this.state.projectType === "number"
|
|
typeof this.state.projectType === "number"
|
|
? this.state.projectType
|
|
? this.state.projectType
|
|
: undefined, //项目分类
|
|
: undefined, //项目分类
|
|
- province: this.state.province || undefined,
|
|
|
|
projectId: this.state.kid || undefined,
|
|
projectId: this.state.kid || undefined,
|
|
- declarationBatch: this.state.declarationBatch || undefined,
|
|
|
|
- status: this.state.status || undefined,
|
|
|
|
- screen: this.state.screen || undefined
|
|
|
|
|
|
+
|
|
|
|
+ province: this.state.taberProvince || undefined,
|
|
|
|
+ projectStatus: this.state.taberProjectStatus || undefined, //项目类别
|
|
|
|
+ thchDepId: this.state.taberdepId || undefined,
|
|
|
|
+
|
|
|
|
+ status:
|
|
|
|
+ this.state.projectType === 4
|
|
|
|
+ ? 2
|
|
|
|
+ : this.state.projectType === 2
|
|
|
|
+ ? 3
|
|
|
|
+ : this.state.projectType === 1
|
|
|
|
+ ? 4
|
|
|
|
+ : this.state.projectType === 5
|
|
|
|
+ ? 1
|
|
|
|
+ : this.state.contactsOptionData.filter(
|
|
|
|
+ (v) => v.id === this.state.taberProjectStatus
|
|
|
|
+ ).length > 0
|
|
|
|
+ ? this.state.contactsOptionData.filter(
|
|
|
|
+ (v) => v.id === this.state.taberProjectStatus
|
|
|
|
+ )[0].cname === "高新"
|
|
|
|
+ ? 1
|
|
|
|
+ : 0
|
|
|
|
+ : 0,
|
|
|
|
+ screen: this.state.screen, //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请 12公示数
|
|
};
|
|
};
|
|
|
|
|
|
for (let key in data) {
|
|
for (let key in data) {
|
|
@@ -999,7 +1017,7 @@ class ProjecCount extends Component {
|
|
</span>
|
|
</span>
|
|
) : null}
|
|
) : null}
|
|
|
|
|
|
- <span onClick={this.exportExcel}>导出EXCEL</span>
|
|
|
|
|
|
+ <Button type="primary" onClick={this.exportExcel}>导出EXCEL</Button>
|
|
</div>
|
|
</div>
|
|
)}
|
|
)}
|
|
/>
|
|
/>
|