提交 076a7f2c authored 作者: 钟是志's avatar 钟是志

导出修改

上级 95054be6
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
* 禅道 30031 已处理的页面增加导出按钮 * 禅道 30031 已处理的页面增加导出按钮
* */ * */
import { message } from 'antd'; import { message } from 'antd';
import React from 'react';
import { downloadFile } from '@/webPublic/one_stop_public/Table/globalFunction'; import { downloadFile } from '@/webPublic/one_stop_public/Table/globalFunction';
import { getToken } from '@/webPublic/one_stop_public/utils/token'; import { getToken } from '@/webPublic/one_stop_public/utils/token';
import { giveBase16EnCode } from '@/webPublic/one_stop_public/Base16'; import { giveBase16EnCode } from '@/webPublic/one_stop_public/Base16';
...@@ -11,7 +10,7 @@ export default function exportHandledInfo({ ...@@ -11,7 +10,7 @@ export default function exportHandledInfo({
columns = [], columns = [],
appId = '1492048888356405248', appId = '1492048888356405248',
type = 'handled', type = 'handled',
searcherKeyValue = '{}', searchParams = {},
}) { }) {
const headers = columns const headers = columns
.filter((g) => { .filter((g) => {
...@@ -33,7 +32,7 @@ export default function exportHandledInfo({ ...@@ -33,7 +32,7 @@ export default function exportHandledInfo({
appId, appId,
type, type,
headers: JSON.stringify(headers), headers: JSON.stringify(headers),
searcherKeyValue, ...searchParams,
token: getToken(), token: getToken(),
}; };
if (data.searcherKeyValue === "{}") { if (data.searcherKeyValue === "{}") {
......
...@@ -223,12 +223,12 @@ class Index extends React.Component { ...@@ -223,12 +223,12 @@ class Index extends React.Component {
type: 'export', type: 'export',
name: '导出', name: '导出',
component: 'Normal', component: 'Normal',
handleClick: (selectRows, formValues, getPage, search, columns, searcherKeyValue) => { handleClick: (selectRows, formValues, getPage, search, columns) => {
exportHandledInfo({ exportHandledInfo({
columns, columns,
appId: workId, appId: workId,
type: 'handled', type: 'handled',
searcherKeyValue, searchParams: auditPageData.searchParams,
}); });
}, },
}); // 解决禅道 32366 二级学院审核,所有二级学院审核后在已处理中加导出功能 103152 }); // 解决禅道 32366 二级学院审核,所有二级学院审核后在已处理中加导出功能 103152
...@@ -239,12 +239,12 @@ class Index extends React.Component { ...@@ -239,12 +239,12 @@ class Index extends React.Component {
type: 'export', type: 'export',
name: '导出', name: '导出',
component: 'Normal', component: 'Normal',
handleClick: (selectRows, formValues, getPage, search, columns, trueSearchParams) => { handleClick: (selectRows, formValues, getPage, search, columns) => {
exportHandledInfo({ exportHandledInfo({
columns, columns,
appId: workId, appId: workId,
type: 'wait', type: 'wait',
searcherKeyValue: trueSearchParams, searchParams: auditPageData.searchParams,
}); });
}, },
}); // 解决禅道 32366 二级学院审核,所有二级学院审核后在已处理中加导出功能 103152 }); // 解决禅道 32366 二级学院审核,所有二级学院审核后在已处理中加导出功能 103152
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论