提交 3a42e7b9 authored 作者: 钟是志's avatar 钟是志

Merge remote-tracking branch 'origin/master'

...@@ -19,9 +19,10 @@ class AuditPage extends Component { ...@@ -19,9 +19,10 @@ class AuditPage extends Component {
// } // }
handleButtonSet = () => { handleButtonSet = () => {
const { hasBatchAudit, batchAuditButtonName, noNeedForm, tab2Buttons = [] } = this.props; const { hasBatchAudit, batchAuditButtonName, noNeedForm, tab2Buttons = [], tab1Buttons } = this.props;
return { return {
tab1: [ tab1: [
...tab1Buttons,
hasBatchAudit hasBatchAudit
? { ? {
type: 'audit', type: 'audit',
......
...@@ -38,6 +38,7 @@ export default function exportHandledInfo({ ...@@ -38,6 +38,7 @@ export default function exportHandledInfo({
let url = window.CONFIG.OAUTH_ACTION_PATH + '/UnifiedAppFormApi/exportData'; let url = window.CONFIG.OAUTH_ACTION_PATH + '/UnifiedAppFormApi/exportData';
// uaaRequest('/UnifiedAppFormApi/getHandledPage', data); // uaaRequest('/UnifiedAppFormApi/getHandledPage', data);
// downloadFile(url, data); // downloadFile(url, data);
console.log(data, url);
giveBase16EnCode(data, url) giveBase16EnCode(data, url)
.then((newData) => { .then((newData) => {
if (typeof newData === 'object' && newData.url && newData.datas) { if (typeof newData === 'object' && newData.url && newData.datas) {
......
...@@ -13,6 +13,7 @@ import CreateC from '../../ExportComponent/ContextCreate'; ...@@ -13,6 +13,7 @@ import CreateC from '../../ExportComponent/ContextCreate';
import exportHandledInfo from '@/webPublic/FormInsertDiy/AffairPage/AuditPage/exportHandledInfo'; import exportHandledInfo from '@/webPublic/FormInsertDiy/AffairPage/AuditPage/exportHandledInfo';
import { connect } from 'dva'; import { connect } from 'dva';
import router from 'umi/router'; import router from 'umi/router';
import { getIsBei_Dian } from '@/webPublic/zyd_public/utils/getSchoolType';
@connect(({ keepAlive }) => ({ @connect(({ keepAlive }) => ({
keepAlive, keepAlive,
...@@ -211,11 +212,26 @@ class Index extends React.Component { ...@@ -211,11 +212,26 @@ class Index extends React.Component {
exportHandledInfo({ exportHandledInfo({
columns, columns,
appId: workId, appId: workId,
handled: 'handled', type: 'handled',
}); });
}, },
}); // 解决禅道 32366 二级学院审核,所有二级学院审核后在已处理中加导出功能 103152 }); // 解决禅道 32366 二级学院审核,所有二级学院审核后在已处理中加导出功能 103152
} }
const tab1Buttons = [];
if (isExport === '1' && false) { // 2023年9月27日 钟是志 待处理 增加导出功能 测试性功能只对 北电科生效 接口有问题没法搞
tab1Buttons.push({
type: 'export',
name: '导出',
component: 'Normal',
handleClick: (selectRows, formValues, getPage, search, columns) => {
exportHandledInfo({
columns,
appId: workId,
type: null,
});
},
}); // 解决禅道 32366 二级学院审核,所有二级学院审核后在已处理中加导出功能 103152
}
if (Array.isArray(columns)) { if (Array.isArray(columns)) {
let d = []; let d = [];
...@@ -242,6 +258,7 @@ class Index extends React.Component { ...@@ -242,6 +258,7 @@ class Index extends React.Component {
showPrint={showPrint} showPrint={showPrint}
noNeedForm={noNeedForm} noNeedForm={noNeedForm}
tab2Buttons={tab2Buttons} tab2Buttons={tab2Buttons}
tab1Buttons={tab1Buttons}
keepAliveData={this.props.keepAlive?.AuditPageData[window.location.href.split('#')[1]]} keepAliveData={this.props.keepAlive?.AuditPageData[window.location.href.split('#')[1]]}
setRefInfo={this.setRefInfo} setRefInfo={this.setRefInfo}
/> />
......
...@@ -33,7 +33,7 @@ export function downloadFile( ...@@ -33,7 +33,7 @@ export function downloadFile(
const contentDisposition = res.headers.get('content-disposition'); const contentDisposition = res.headers.get('content-disposition');
let fileNameEncode = let fileNameEncode =
contentDisposition && contentDisposition.split('filename='); contentDisposition && contentDisposition.split('filename=');
if (fileNameEncode.length > 1) { if (fileNameEncode && fileNameEncode.length > 1) {
fileNameEncode = fileNameEncode[1]; fileNameEncode = fileNameEncode[1];
responseHeadersFileName = decodeURIComponent(escape(fileNameEncode)); responseHeadersFileName = decodeURIComponent(escape(fileNameEncode));
// https://blog.csdn.net/erdfty/article/details/106134284 // https://blog.csdn.net/erdfty/article/details/106134284
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论