|
@@ -300,7 +300,17 @@ class ProjecCount extends Component {
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // 导出excel
|
|
exportExcel() {
|
|
exportExcel() {
|
|
|
|
+ message.config({
|
|
|
|
+ duration: 20,
|
|
|
|
+ });
|
|
|
|
+ let loading = message.loading("下载中...");
|
|
|
|
+ this.setState({
|
|
|
|
+ exportPendingLoading: true,
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
let option = this.state.contactsOptionData.filter(
|
|
let option = this.state.contactsOptionData.filter(
|
|
(v) => v.value === this.state.taberProjectStatus
|
|
(v) => v.value === this.state.taberProjectStatus
|
|
)[0].label; //项目类别名称
|
|
)[0].label; //项目类别名称
|
|
@@ -342,7 +352,7 @@ class ProjecCount extends Component {
|
|
projectId: this.state.kid || undefined,
|
|
projectId: this.state.kid || undefined,
|
|
province: this.state.taberProvince || undefined,
|
|
province: this.state.taberProvince || undefined,
|
|
projectStatus: this.state.taberProjectStatus || undefined, //项目类别
|
|
projectStatus: this.state.taberProjectStatus || undefined, //项目类别
|
|
- thchDepId: this.state.taberdepId || undefined,
|
|
|
|
|
|
+ thchDeps: this.state.taberdepId || undefined,
|
|
status:
|
|
status:
|
|
this.state.projectType == "4"
|
|
this.state.projectType == "4"
|
|
? 2
|
|
? 2
|
|
@@ -370,10 +380,27 @@ class ProjecCount extends Component {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- window.location.href =
|
|
|
|
- globalConfig.context +
|
|
|
|
- "/api/admin/statistis/exporTaskList?" +
|
|
|
|
- $.param(data);
|
|
|
|
|
|
+ $.ajax({
|
|
|
|
+ method: "get",
|
|
|
|
+ dataType: "json",
|
|
|
|
+ crossDomain: false,
|
|
|
|
+ url: "/api/admin/statistis/exporTaskList",
|
|
|
|
+ data,
|
|
|
|
+ success: function (data) {
|
|
|
|
+ if (data.error.length === 0) {
|
|
|
|
+ this.download(data.data);
|
|
|
|
+ } else {
|
|
|
|
+ message.warning(data.error[0].message);
|
|
|
|
+ }
|
|
|
|
+ }.bind(this),
|
|
|
|
+ }).always(
|
|
|
|
+ function () {
|
|
|
|
+ loading();
|
|
|
|
+ this.setState({
|
|
|
|
+ exportPendingLoading: false,
|
|
|
|
+ });
|
|
|
|
+ }.bind(this)
|
|
|
|
+ );
|
|
}
|
|
}
|
|
|
|
|
|
download(fileName) {
|
|
download(fileName) {
|
|
@@ -512,7 +539,7 @@ class ProjecCount extends Component {
|
|
projectSummary: true,
|
|
projectSummary: true,
|
|
taberProvince: record.province,
|
|
taberProvince: record.province,
|
|
taberProjectStatus: record.bpId, //项目类别
|
|
taberProjectStatus: record.bpId, //项目类别
|
|
- taberdepId: record.thchDepId,
|
|
|
|
|
|
+ taberdepId: !!record.thchDepId && JSON.stringify(record.thchDepId.split(',')),
|
|
thchDepName: record.thchDepName,
|
|
thchDepName: record.thchDepName,
|
|
screen: screen,
|
|
screen: screen,
|
|
});
|
|
});
|
|
@@ -832,25 +859,20 @@ class ProjecCount extends Component {
|
|
|
|
|
|
province: this.state.taberProvince || undefined,
|
|
province: this.state.taberProvince || undefined,
|
|
projectStatus: this.state.taberProjectStatus || undefined, //项目类别
|
|
projectStatus: this.state.taberProjectStatus || undefined, //项目类别
|
|
- thchDepId: this.state.taberdepId || undefined,
|
|
|
|
|
|
+ thchDeps: this.state.taberdepId || undefined,
|
|
|
|
|
|
status:
|
|
status:
|
|
this.state.projectType == "4"
|
|
this.state.projectType == "4"
|
|
- ? 2
|
|
|
|
- : this.state.projectType == "2"
|
|
|
|
- ? 3
|
|
|
|
- : this.state.projectType == "1"
|
|
|
|
- ? 4
|
|
|
|
- : this.state.projectType == "5"
|
|
|
|
- ? 1
|
|
|
|
- : this.state.contactsOptionData.filter(
|
|
|
|
|
|
+ ? 2 : this.state.projectType == "2"
|
|
|
|
+ ? 3 : this.state.projectType == "1"
|
|
|
|
+ ? 4 : this.state.projectType == "5"
|
|
|
|
+ ? 1 : this.state.contactsOptionData.filter(
|
|
(v) => v.value === this.state.taberProjectStatus
|
|
(v) => v.value === this.state.taberProjectStatus
|
|
).length > 0
|
|
).length > 0
|
|
? this.state.contactsOptionData.filter(
|
|
? this.state.contactsOptionData.filter(
|
|
(v) => v.value === this.state.taberProjectStatus
|
|
(v) => v.value === this.state.taberProjectStatus
|
|
)[0].label === "高新"
|
|
)[0].label === "高新"
|
|
- ? 1
|
|
|
|
- : 0
|
|
|
|
|
|
+ ? 1 : 0
|
|
: 0,
|
|
: 0,
|
|
screen: this.state.screen, //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请 12公示数
|
|
screen: this.state.screen, //筛选项 0库存 1派单 2完成 3立项 4抽查 5未通过 6受理 7完结 8授权 9驳回 10下证 11申请 12公示数
|
|
}}
|
|
}}
|