|
@@ -69,7 +69,7 @@ class CostAuditList extends Component {
|
|
|
render: (text) => {
|
|
|
return (
|
|
|
<Tooltip placement="bottom" title={text}>
|
|
|
- <div
|
|
|
+ <div
|
|
|
// style={{
|
|
|
// maxWidth: '150px',
|
|
|
// overflow: 'hidden',
|
|
@@ -240,6 +240,7 @@ class CostAuditList extends Component {
|
|
|
});
|
|
|
data.pageNo = pageNo || 1;
|
|
|
data.pageSize = this.state.pagination.pageSize;
|
|
|
+ data.permissionsGrade = 1;
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
@@ -294,6 +295,14 @@ class CostAuditList extends Component {
|
|
|
|
|
|
//导出
|
|
|
exportExec() {
|
|
|
+
|
|
|
+ message.config({
|
|
|
+ duration: 20,
|
|
|
+ });
|
|
|
+ let loading = message.loading("下载中...");
|
|
|
+ this.setState({
|
|
|
+ exportPendingLoading: true,
|
|
|
+ });
|
|
|
let data = Object.assign({}, this.state.searchInfor);
|
|
|
for (let key in data) {
|
|
|
if (!data[key]) {
|
|
@@ -302,7 +311,29 @@ class CostAuditList extends Component {
|
|
|
}
|
|
|
data.pageSize = 9999999;
|
|
|
data.pageNo = 1;
|
|
|
- window.location.href = (globalConfig.context + '/api/admin/company/exportPaymentList?' + $.param(data));
|
|
|
+ data.permissionsGrade = 1;
|
|
|
+ $.ajax({
|
|
|
+ method: "get",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: "/api/admin/company/exportPaymentList",
|
|
|
+ data,
|
|
|
+ success: function (data) {
|
|
|
+ if (data.error.length === 0) {
|
|
|
+ window.location.href =
|
|
|
+ globalConfig.context + "/open/download?fileName=" + data.data;
|
|
|
+ } else {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ }
|
|
|
+ }.bind(this),
|
|
|
+ }).always(
|
|
|
+ function () {
|
|
|
+ loading();
|
|
|
+ this.setState({
|
|
|
+ exportPendingLoading: false,
|
|
|
+ });
|
|
|
+ }.bind(this)
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
changeList(arr) {
|