Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
0c24becd
提交
0c24becd
authored
2 年前
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
禅道 32366 二级学院审核,所有二级学院审核后在已处理中加导出功能 103152
上级
736022d4
master
无相关合并请求
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
35 行增加
和
37 行删除
+35
-37
exportHandledInfo.js
FormInsertDiy/AffairPage/AuditPage/exportHandledInfo.js
+22
-12
index.js
FormInsertDiy/AffairPage/AuditPage/index.js
+5
-2
publicApiService.js
FormInsertDiy/AffairPage/publicApiService.js
+3
-1
ActiveMenuComponent.js
FormInsertDiy/ExportComponent/ActiveMenuComponent.js
+0
-21
localstorageTransform.js
one_stop_public/2022beidianke/localstorageTransform.js
+1
-1
encryptApiList.js
one_stop_public/Base16/encryptApiList.js
+4
-0
没有找到文件。
FormInsertDiy/AffairPage/AuditPage/exportHandledInfo.js
浏览文件 @
0c24becd
...
...
@@ -5,6 +5,7 @@ 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
,
requestFileInfo
}
from
'@/webPublic/one_stop_public/Base16'
;
export
default
function
exportHandledInfo
({
columns
=
[],
...
...
@@ -13,28 +14,37 @@ export default function exportHandledInfo({
})
{
const
headers
=
columns
.
filter
((
g
)
=>
{
return
g
.
dataIndex
!==
'operationDiy'
;
}).
map
((
g
)
=>
{
if
(
g
.
title
===
'流程审核状态'
){
})
.
map
((
g
)
=>
{
if
(
g
.
title
===
'流程审核状态'
)
{
return
{
key
:
'formStatusName'
,
title
:
g
.
title
,
};
}
return
{
key
:
'formStatusName'
,
key
:
g
.
dataIndex
,
title
:
g
.
title
,
};
}
return
{
key
:
g
.
dataIndex
,
title
:
g
.
title
,
};
});
});
const
data
=
{
appId
,
type
,
headers
:
JSON
.
stringify
(
headers
),
token
:
getToken
(),
};
if
(
appId
)
{
if
(
appId
)
{
message
.
info
(
'正在导出文件,请耐心等待'
);
let
url
=
window
.
CONFIG
.
OAUTH_ACTION_PATH
+
'/UnifiedAppFormApi/exportData'
;
downloadFile
(
url
,
data
);
}
giveBase16EnCode
(
data
,
url
)
.
then
((
newData
)
=>
{
if
(
typeof
newData
===
'object'
&&
newData
.
url
&&
newData
.
datas
)
{
// newData.datas.rbin = true;
newData
.
datas
.
token
=
getToken
();
return
downloadFile
(
newData
.
url
,
newData
.
datas
);
}
// downloadFile(url, data);
});
}
}
This diff is collapsed.
Click to expand it.
FormInsertDiy/AffairPage/AuditPage/index.js
浏览文件 @
0c24becd
...
...
@@ -11,7 +11,6 @@ import AuditPage from './AuditPage';
import
*
as
destructionFunc
from
'../destruction'
;
import
{
Link
}
from
'dva/router'
;
import
CreateC
from
'../../ExportComponent/ContextCreate'
;
import
prepareShow
from
'@/webPublic/one_stop_public/Table/prepareShow'
;
import
exportHandledInfo
from
'@/webPublic/FormInsertDiy/AffairPage/AuditPage/exportHandledInfo'
;
class
Index
extends
React
.
Component
{
...
...
@@ -46,6 +45,9 @@ class Index extends React.Component {
if
(
typeof
response
.
unifiedServicePatternModel
===
'undefined'
)
{
return
false
;
}
this
.
setState
({
smartFormData
:
response
,
});
destructionFunc
.
destructionGetDetail
(
response
,
workId
).
then
((
x
)
=>
{
const
{
addFields
,
tableInfo
,
allConfigSetInfo
,
searchCondition
}
=
x
;
this
.
setState
(
...
...
@@ -162,9 +164,10 @@ class Index extends React.Component {
addFields
,
allConfigSetInfo
,
tableInfo
,
smartFormData
,
}
=
this
.
state
;
const
{
hasBatchAudit
,
batchAuditButtonName
,
showPrint
,
noNeedForm
}
=
this
.
props
;
if
(
!
workId
)
{
if
(
!
workId
||
!
smartFormData
)
{
return
null
;
}
const
tab2Buttons
=
[];
...
...
This diff is collapsed.
Click to expand it.
FormInsertDiy/AffairPage/publicApiService.js
浏览文件 @
0c24becd
...
...
@@ -143,7 +143,9 @@ const getFormDetail = (id) => {
return
{};
}
}).
then
((
res
)
=>
{
return
prepareShow
(
res
);
return
prepareShow
(
res
).
then
((
x
)
=>
{
return
res
;
});
});
};
...
...
This diff is collapsed.
Click to expand it.
FormInsertDiy/ExportComponent/ActiveMenuComponent.js
浏览文件 @
0c24becd
...
...
@@ -12,13 +12,10 @@ import Detail from '@/webPublic/FormInsertDiy/AffairPage/Detail'; //详情
import
{
Modal
,
message
,
notification
,
Popconfirm
}
from
'antd'
;
import
{
connect
}
from
'dva'
;
import
router
from
'umi/router'
;
import
{
getIsQian_Nan
}
from
'@/webPublic/zyd_public/utils/getSchoolType'
;
import
exportHandledInfo
from
'@/webPublic/FormInsertDiy/AffairPage/AuditPage/exportHandledInfo'
;
import
ApplyMerge
from
'./ApplyMerge'
;
// merge
import
AuditMerge
from
'./AuditMerge'
;
import
CheckRecordMerge
from
'./CheckRecordMerge'
;
import
CreateC
from
'./ContextCreate'
;
import
DiyModal
from
'./DiyModal/index'
;
window
.
iframeParentComponent
=
{
Modal
,
...
...
@@ -88,25 +85,7 @@ function ActiveMenuComponent({ routerConfig, ...otherProps }) {
Res
=
<
Audit
workId
=
{
appId
}
{...
otherProps
}
/>
;
break
;
case
'BatchAudit'
:
// 批量审批
// if(appId === '1492048888356405248' && getIsQian_Nan() || process.env.NODE_ENV === 'development'){
// // 禅道30031
// otherProps.tab2Buttons = [
// {
// type: 'export',
// name: '导出',
// component: 'Normal',
// handleClick: (selectRows, formValues, getPage, search, columns) => {
// exportHandledInfo({
// columns,
// appId,
// handled: 'handled',
// });
// },
// },
// ];
// }
Res
=
<
BatchAudit
workId
=
{
appId
}
{...
otherProps
}
workId
=
{
'1492048888356405248'
}
/>
;
break
;
case
'AuditMerage'
:
// 审核页面聚合 多个流程的审核页面放在一起
...
...
This diff is collapsed.
Click to expand it.
one_stop_public/2022beidianke/localstorageTransform.js
浏览文件 @
0c24becd
...
...
@@ -108,7 +108,7 @@ export async function getTransformApi(url) { //
if
(
!
TRANSFORM_BIN
){
needTransform
=
false
;
}
if
(
needTransform
&&
url
&&
typeof
url
===
'string'
&&
url
.
indexOf
(
'/onestop'
)
>
-
1
&&
url
.
includes
(
window
.
CONFIG
.
API_ACTION_PATH
))
{
if
(
needTransform
&&
url
&&
typeof
url
===
'string'
&&
url
.
indexOf
(
'/onestop'
)
>
-
1
&&
url
.
includes
(
window
.
CONFIG
.
API_ACTION_PATH
))
{
apiUrl
=
url
.
replace
(
window
.
CONFIG
.
API_ACTION_PATH
,
''
);
}
else
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
one_stop_public/Base16/encryptApiList.js
浏览文件 @
0c24becd
...
...
@@ -153,6 +153,9 @@ const encryptApiList = [
api
:
'UnifiedServiceApi/config'
,
// 禅道 25034 宿舍管理/宿舍维修审核,2021030576L 加个字段 做个字段排序
key
:
[
'config'
],
},
{
api
:
'UnifiedAppFormApi/exportData'
,
},
];
const
resBinaryApiList
=
[
...
...
@@ -183,6 +186,7 @@ const resBinaryApiList = [
{
api
:
'UnifiedWebPatternApi/getDetail'
,
},
];
export
{
resBinaryApiList
};
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论