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

导出修改

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