Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
736022d4
提交
736022d4
authored
1月 04, 2023
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
禅道 32366 二级学院审核,所有二级学院审核后在已处理中加导出功能 103152
上级
adf21efd
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
54 行增加
和
52 行删除
+54
-52
index.js
FormInsertDiy/AffairPage/AuditPage/index.js
+31
-34
publicApiService.js
FormInsertDiy/AffairPage/publicApiService.js
+3
-0
ActiveMenuComponent.js
FormInsertDiy/ExportComponent/ActiveMenuComponent.js
+20
-18
没有找到文件。
FormInsertDiy/AffairPage/AuditPage/index.js
浏览文件 @
736022d4
...
@@ -11,6 +11,8 @@ import AuditPage from './AuditPage';
...
@@ -11,6 +11,8 @@ import AuditPage from './AuditPage';
import
*
as
destructionFunc
from
'../destruction'
;
import
*
as
destructionFunc
from
'../destruction'
;
import
{
Link
}
from
'dva/router'
;
import
{
Link
}
from
'dva/router'
;
import
CreateC
from
'../../ExportComponent/ContextCreate'
;
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
{
class
Index
extends
React
.
Component
{
static
defaultProps
=
{
static
defaultProps
=
{
...
@@ -39,19 +41,13 @@ class Index extends React.Component {
...
@@ -39,19 +41,13 @@ class Index extends React.Component {
getFormDetail
=
(
workId
)
=>
{
getFormDetail
=
(
workId
)
=>
{
const
{
dataBaseId
}
=
this
.
state
;
const
{
dataBaseId
}
=
this
.
state
;
service
.
getFormDetail
(
workId
)
service
.
getFormDetail
(
workId
).
then
((
response
)
=>
{
.
then
((
response
)
=>
{
console
.
log
(
response
);
if
(
typeof
response
.
unifiedServicePatternModel
===
'undefined'
)
{
if
(
typeof
response
.
unifiedServicePatternModel
===
'undefined'
)
{
return
false
;
return
false
;
}
}
destructionFunc
.
destructionGetDetail
(
response
,
workId
)
destructionFunc
.
destructionGetDetail
(
response
,
workId
).
then
((
x
)
=>
{
.
then
((
x
)
=>
{
const
{
addFields
,
tableInfo
,
allConfigSetInfo
,
searchCondition
}
=
x
;
const
{
addFields
,
tableInfo
,
allConfigSetInfo
,
searchCondition
,
}
=
x
;
this
.
setState
(
this
.
setState
(
{
{
addFields
,
addFields
,
...
@@ -68,17 +64,8 @@ class Index extends React.Component {
...
@@ -68,17 +64,8 @@ class Index extends React.Component {
};
};
giveDetailColumns
=
()
=>
{
giveDetailColumns
=
()
=>
{
const
{
const
{
columns
,
workId
,
dataBaseId
,
addFields
,
tableInfo
}
=
this
.
state
;
columns
,
const
{
showPrint
,
routerConfig
}
=
this
.
props
;
workId
,
dataBaseId
,
addFields
,
tableInfo
}
=
this
.
state
;
const
{
showPrint
,
routerConfig
}
=
this
.
props
;
const
process_status
=
columns
.
find
((
x
)
=>
{
const
process_status
=
columns
.
find
((
x
)
=>
{
return
x
.
name
===
'process_status'
;
return
x
.
name
===
'process_status'
;
});
});
...
@@ -117,8 +104,7 @@ class Index extends React.Component {
...
@@ -117,8 +104,7 @@ class Index extends React.Component {
getColumn
=
()
=>
{
getColumn
=
()
=>
{
const
{
workId
}
=
this
.
state
;
const
{
workId
}
=
this
.
state
;
service
.
getColumns
(
workId
)
service
.
getColumns
(
workId
).
then
((
response
)
=>
{
.
then
((
response
)
=>
{
if
(
!
response
||
!
Array
.
isArray
(
response
))
{
if
(
!
response
||
!
Array
.
isArray
(
response
))
{
response
=
[];
response
=
[];
}
}
...
@@ -153,8 +139,7 @@ class Index extends React.Component {
...
@@ -153,8 +139,7 @@ class Index extends React.Component {
if
(
workId
)
{
if
(
workId
)
{
this
.
getColumn
();
this
.
getColumn
();
}
else
{
}
else
{
service
.
getId
(
pathname
)
service
.
getId
(
pathname
).
then
((
x
)
=>
{
.
then
((
x
)
=>
{
this
.
setState
(
this
.
setState
(
{
{
workId
:
x
.
workId
,
workId
:
x
.
workId
,
...
@@ -178,17 +163,29 @@ class Index extends React.Component {
...
@@ -178,17 +163,29 @@ class Index extends React.Component {
allConfigSetInfo
,
allConfigSetInfo
,
tableInfo
,
tableInfo
,
}
=
this
.
state
;
}
=
this
.
state
;
const
{
const
{
hasBatchAudit
,
batchAuditButtonName
,
showPrint
,
noNeedForm
}
=
this
.
props
;
hasBatchAudit
,
batchAuditButtonName
,
showPrint
,
noNeedForm
,
tab2Buttons
=
[],
}
=
this
.
props
;
if
(
!
workId
)
{
if
(
!
workId
)
{
return
null
;
return
null
;
}
}
if
(
Array
.
isArray
(
columns
)){
const
tab2Buttons
=
[];
if
(
window
.
zdyTableTemplateWillMountProps
?.
auditTab2ButtonsExport
)
{
tab2Buttons
.
push
({
type
:
'export'
,
name
:
'导出'
,
component
:
'Normal'
,
handleClick
:
(
selectRows
,
formValues
,
getPage
,
search
,
columns
)
=>
{
exportHandledInfo
({
columns
,
appId
:
workId
,
handled
:
'handled'
,
});
},
});
// 解决禅道 32366 二级学院审核,所有二级学院审核后在已处理中加导出功能 103152
}
if
(
Array
.
isArray
(
columns
))
{
let
d
=
[];
let
d
=
[];
for
(
let
item
of
columns
)
{
for
(
let
item
of
columns
)
{
if
(
item
.
dataIndex
!==
'operationDiy'
)
{
if
(
item
.
dataIndex
!==
'operationDiy'
)
{
...
@@ -222,5 +219,5 @@ class Index extends React.Component {
...
@@ -222,5 +219,5 @@ class Index extends React.Component {
export
default
function
Pr
(
props
)
{
export
default
function
Pr
(
props
)
{
const
{
routerConfig
}
=
useContext
(
CreateC
);
const
{
routerConfig
}
=
useContext
(
CreateC
);
// console.log(routerConfig);
// console.log(routerConfig);
return
<
Index
{...
props
}
routerConfig
=
{
routerConfig
}
/>
;
return
<
Index
{...
props
}
routerConfig
=
{
routerConfig
}
/>
;
}
}
FormInsertDiy/AffairPage/publicApiService.js
浏览文件 @
736022d4
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
import
{
apiRequest
}
from
'../request'
;
import
{
apiRequest
}
from
'../request'
;
import
{
getOneStopConfig
,
isJSON
}
from
'@/baseComponent/utils'
;
import
{
getOneStopConfig
,
isJSON
}
from
'@/baseComponent/utils'
;
import
{
getHistoryFormDetail
}
from
'@/webPublic/Services'
;
import
{
getHistoryFormDetail
}
from
'@/webPublic/Services'
;
import
prepareShow
from
'@/webPublic/one_stop_public/Table/prepareShow'
;
const
giveValue
=
(
x
)
=>
{
const
giveValue
=
(
x
)
=>
{
if
(
x
&&
x
.
rows
)
{
if
(
x
&&
x
.
rows
)
{
...
@@ -141,6 +142,8 @@ const getFormDetail = (id) => {
...
@@ -141,6 +142,8 @@ const getFormDetail = (id) => {
}
else
{
}
else
{
return
{};
return
{};
}
}
}).
then
((
res
)
=>
{
return
prepareShow
(
res
);
});
});
};
};
...
...
FormInsertDiy/ExportComponent/ActiveMenuComponent.js
浏览文件 @
736022d4
...
@@ -88,24 +88,26 @@ function ActiveMenuComponent({ routerConfig, ...otherProps }) {
...
@@ -88,24 +88,26 @@ function ActiveMenuComponent({ routerConfig, ...otherProps }) {
Res
=
<
Audit
workId
=
{
appId
}
{...
otherProps
}
/>
;
Res
=
<
Audit
workId
=
{
appId
}
{...
otherProps
}
/>
;
break
;
break
;
case
'BatchAudit'
:
// 批量审批
case
'BatchAudit'
:
// 批量审批
if
(
appId
===
'1492048888356405248'
&&
getIsQian_Nan
()
||
process
.
env
.
NODE_ENV
===
'development'
){
// if(appId === '1492048888356405248' && getIsQian_Nan() || process.env.NODE_ENV === 'development'){
// 禅道30031
// // 禅道30031
otherProps
.
tab2Buttons
=
[
// otherProps.tab2Buttons = [
{
// {
type
:
'export'
,
// type: 'export',
name
:
'导出'
,
// name: '导出',
component
:
'Normal'
,
// component: 'Normal',
handleClick
:
(
selectRows
,
formValues
,
getPage
,
search
,
columns
)
=>
{
// handleClick: (selectRows, formValues, getPage, search, columns) => {
exportHandledInfo
({
// exportHandledInfo({
columns
,
// columns,
appId
,
// appId,
handled
:
'handled'
,
// handled: 'handled',
});
// });
},
// },
},
// },
];
// ];
}
// }
Res
=
<
BatchAudit
workId
=
{
appId
}
{...
otherProps
}
/>
;
Res
=
<
BatchAudit
workId
=
{
appId
}
{...
otherProps
}
workId
=
{
'1492048888356405248'
}
/>
;
break
;
break
;
case
'AuditMerage'
:
// 审核页面聚合 多个流程的审核页面放在一起
case
'AuditMerage'
:
// 审核页面聚合 多个流程的审核页面放在一起
Res
=
<
AuditMerge
{...
otherProps
}
routerConfig
=
{
routerConfig
}
/>
;
Res
=
<
AuditMerge
{...
otherProps
}
routerConfig
=
{
routerConfig
}
/>
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论