Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
6354e6e4
提交
6354e6e4
authored
10月 28, 2022
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
30305 所有申请应用--学生填错后,在审核前可以撤回一次
上级
e7dfe0b7
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
52 行增加
和
53 行删除
+52
-53
ReBackButton.js
FormInsertDiy/AffairPage/ApplyPage/ReBackButton.js
+49
-0
index.js
FormInsertDiy/AffairPage/ApplyPage/index.js
+3
-53
没有找到文件。
FormInsertDiy/AffairPage/ApplyPage/ReBackButton.js
0 → 100644
浏览文件 @
6354e6e4
import
{
getIsBei_Dian
}
from
'@/webPublic/zyd_public/utils/getSchoolType'
;
import
{
message
,
Modal
}
from
'antd'
;
import
{
uaaRequest
}
from
'@/webPublic/one_stop_public/utils/request'
;
export
default
function
rebackButton
(){
let
reBack
=
[];
if
(
getIsBei_Dian
())
{
reBack
.
push
({
type
:
'chehui'
,
name
:
'撤回'
,
buttonType
:
'danger'
,
component
:
'Normal'
,
handleClick
:
(
selectRows
,
formValues
,
getPage
,
search
,
columns
)
=>
{
if
(
!
selectRows
||
!
selectRows
.
length
||
selectRows
.
length
!==
1
)
{
message
.
warning
(
'请选择一条需要撤回的数据!'
);
return
false
;
}
if
(
!
selectRows
[
0
].
isBack
)
{
message
.
warning
(
'当前流程无法撤回,请选择其他数据'
);
return
false
;
}
Modal
.
confirm
({
title
:
'撤回'
,
content
:
'确定撤回吗?'
,
okText
:
'确认'
,
cancelText
:
'取消'
,
onOk
:
()
=>
{
return
uaaRequest
(
'/UnifiedAppFormApi/regressionProcess'
,
{
taskIds
:
[
selectRows
[
0
].
taskId
],
})
.
then
((
res
)
=>
{
if
(
res
)
{
Modal
.
info
({
title
:
'提示'
,
content
:
'撤回成功, 点击详情可再次编辑并提交申请'
,
});
getPage
();
}
else
{
message
.
info
(
'操作失败'
);
return
false
;
}
});
},
});
},
});
}
return
reBack
;
}
FormInsertDiy/AffairPage/ApplyPage/index.js
浏览文件 @
6354e6e4
...
...
@@ -21,6 +21,7 @@ import Shell from '@/baseComponent/Shell';
import
{
deepCopy
,
getIsBei_Dian
}
from
'@/webPublic/zyd_public/utils/utils'
;
import
ApplyForZyd
from
'@/webPublic/one_stop_public/ForZydApply/index'
;
import
{
uaaRequest
}
from
'@/webPublic/one_stop_public/utils/request'
;
import
rebackButton
from
'@/webPublic/FormInsertDiy/AffairPage/ApplyPage/ReBackButton'
;
export
default
function
index
(
props
)
{
...
...
@@ -152,58 +153,7 @@ class AffairPage extends React.Component {
if
(
canApply
===
false
||
isCloseStart
)
{
return
[...
otherButtons
];
}
let
reBack
=
[];
if
(
getIsBei_Dian
())
{
reBack
.
push
({
type
:
'chehui'
,
name
:
'撤回'
,
buttonType
:
'danger'
,
component
:
'Normal'
,
handleClick
:
(
selectRows
,
formValues
,
getPage
,
search
,
columns
)
=>
{
if
(
!
selectRows
||
!
selectRows
.
length
||
selectRows
.
length
!==
1
)
{
message
.
warning
(
'请选择一条需要撤回的数据!'
);
return
false
;
}
if
(
!
selectRows
[
0
].
isBack
)
{
message
.
warning
(
'流程已被审核,无法撤回'
);
return
false
;
}
Modal
.
confirm
({
title
:
'撤回'
,
content
:
'确定撤回吗?'
,
okText
:
'确认'
,
cancelText
:
'取消'
,
onOk
:
()
=>
{
return
uaaRequest
(
'/UnifiedAppFormApi/regressionProcess'
,
{
taskIds
:
[
selectRows
[
0
].
taskId
],
})
.
then
((
res
)
=>
{
if
(
res
)
{
Modal
.
info
({
title
:
'提示'
,
content
:
'撤回成功, 点击详情可再次编辑并提交申请'
,
});
getPage
();
}
else
{
message
.
info
(
'操作失败'
);
return
false
;
}
});
// dispatch({
// type: 'urge/GetRecall',
// payload: {
// taskIds: [id],
// },
// callback: () => {
// openToast('success', '成功', '撤回成功');
// this.getInit();
// },
// });
},
});
},
});
}
return
[
{
...
...
@@ -221,7 +171,7 @@ class AffairPage extends React.Component {
);
},
},
...
re
Back
,
...
re
backButton
()
,
...
otherButtons
,
];
};
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论