Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
020582f0
提交
020582f0
authored
4月 03, 2020
作者:
王绍森
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
历史表单修改
上级
cc7122fe
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
104 行增加
和
9 行删除
+104
-9
index.js
FormInsertDiy/ApplyPage/index.js
+5
-0
index.js
FormInsertDiy/AuditButton/index.js
+1
-1
AuditForm.js
FormInsertDiy/AuditPage/AuditForm.js
+1
-1
index.js
FormInsertDiy/HistoryForm/index.js
+75
-0
index.less
FormInsertDiy/HistoryForm/index.less
+6
-0
DetailPage.js
FormInsertDiy/MyApplyList/DetailPage.js
+1
-1
index.js
FormInsertDiy/RenderForm/index.js
+9
-3
index.less
FormInsertDiy/RenderForm/index.less
+2
-0
index.jsx
one_stop_public/AffairButton/SumbitButton/index.jsx
+4
-3
没有找到文件。
FormInsertDiy/ApplyPage/index.js
浏览文件 @
020582f0
...
...
@@ -11,6 +11,10 @@ let ApplyPage = ({ id, form }) => {
function
submitCb
(
res
)
{
ModalInfo
(
`提交
${
res
?
'成功'
:
'失败'
}
!`
,
{
onOk
:
()
=>
router
.
goBack
()});
}
function
saveDraftCb
(
res
)
{
ModalInfo
(
`提交
${
res
?
'成功'
:
'失败'
}
!`
,
{
onOk
:
()
=>
router
.
goBack
()});
}
return
(
<
Shell
styleShell
=
{{
marginTop
:
0
}}
>
<
Entrance
id
=
{
id
}
isCg
=
"false"
get
=
"web"
form
=
{
form
}
/
>
...
...
@@ -22,6 +26,7 @@ let ApplyPage = ({ id, form }) => {
openDraftButton
DraftButtonText
=
"暂存"
callback
=
{
submitCb
}
draftCallback
=
{
saveDraftCb
}
/
>
<
/div
>
<
/Shell
>
...
...
FormInsertDiy/AuditButton/index.js
浏览文件 @
020582f0
...
...
@@ -82,7 +82,7 @@ function AuditButton(props) {
}
function
showModal
(
str
,
key
,
value
)
{
setModalContent
(
`确定
审核
${
str
}
吗?`
);
setModalContent
(
`确定
${
str
}
吗?`
);
setAffairParams
({
oldKey
:
key
,
btnValue
:
value
});
setVisible
(
true
);
}
...
...
FormInsertDiy/AuditPage/AuditForm.js
浏览文件 @
020582f0
...
...
@@ -5,7 +5,7 @@ import { ModalInfo } from '@/baseComponent/Modal';
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
getHistoryFormDetail
}
from
'../../Services'
;
import
withGoBack
from
'@/highOrderComponent/withGoBack'
;
import
HistoryForm
from
'@/webPublic/
one_stop_public/Entrance/h
istoryForm'
;
import
HistoryForm
from
'@/webPublic/
FormInsertDiy/H
istoryForm'
;
import
AuditButton
from
'../AuditButton'
;
import
styles
from
'../RenderForm/index.less'
;
...
...
FormInsertDiy/HistoryForm/index.js
0 → 100644
浏览文件 @
020582f0
/* eslint-disable no-nested-ternary */
/**
* 历史表单+最新表单生成
* data 'affair/getIdFormDetail' 接口返回的详细参数
* form 表单控件
* isNewForm 是否展示最新表单
*/
import
React
from
'react'
;
import
{
Spin
,
Card
}
from
'antd'
;
import
{
isEmpty
}
from
'@/webPublic/one_stop_public/copy'
;
import
RenderForm
from
'../RenderForm'
;
import
styles
from
'./index.less'
;
export
default
function
HistoryForm
(
props
)
{
const
{
data
,
isNewForm
}
=
props
;
return
(
<
div
>
{
data
.
hisTaskForm
.
formKeys
&&
data
.
hisTaskForm
.
formKeys
.
length
>
0
?
data
.
hisTaskForm
.
formKeys
.
map
((
item
,
index
)
=>
{
return
(
<
Card
key
=
{
item
.
formKey
}
title
=
{
item
.
taskName
}
bordered
=
{
false
}
style
=
{{
width
:
800
,
margin
:
'auto'
}}
>
{
!
data
?
(
<
div
style
=
{{
width
:
'100%'
,
height
:
200
,
display
:
'flex'
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
}}
>
<
Spin
size
=
"large"
/>
<
/div
>
)
:
(
<
RenderForm
get
=
"web"
isCg
=
"no"
postData
=
{
data
}
obj
=
{
data
.
hisTaskForm
.
formData
}
form
=
{
props
.
form
}
formKey
=
{
item
.
formKey
}
/
>
)}
<
/Card
>
);
})
:
''
}
{
isNewForm
?
(
// 展示最新表单
data
.
isHandle
&&
!!
data
.
taskFormKey
?
(
<
Card
title
=
"当前流程"
bordered
=
{
false
}
style
=
{{
width
:
800
,
margin
:
'auto'
}}
>
{
!
isEmpty
(
data
)
&&
(
<
RenderForm
postData
=
{
data
}
get
=
"web"
isCg
=
"no"
obj
=
{
data
.
hisTaskForm
.
formData
}
table
=
"new"
form
=
{
props
.
form
}
/
>
)}
<
/Card
>
)
:
null
)
:
null
}
<
/div
>
);
}
FormInsertDiy/HistoryForm/index.less
0 → 100644
浏览文件 @
020582f0
.title {
font-size: 20px;
font-weight: bolder;
margin: 16px 0 8px 0;
padding-left: calc((100% - 800px) / 2);
}
FormInsertDiy/MyApplyList/DetailPage.js
浏览文件 @
020582f0
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Form
,
Spin
}
from
'antd'
;
import
Shell
from
'@/baseComponent/Shell'
;
import
HistoryForm
from
'@/webPublic/
one_stop_public/Entrance/h
istoryForm'
;
import
HistoryForm
from
'@/webPublic/
FormInsertDiy/H
istoryForm'
;
import
{
getHistoryFormDetail
}
from
'../../Services'
;
import
withGoBack
from
'@/highOrderComponent/withGoBack'
;
...
...
FormInsertDiy/RenderForm/index.js
浏览文件 @
020582f0
...
...
@@ -3,10 +3,10 @@ import ZdyTable from '@/webPublic/one_stop_public/Table';
import
styles
from
'./index.less'
;
import
{
fetchTemplateByCode
,
fetchTableItem
}
from
'@/webPublic/Services'
;
export
default
function
RenderForm
({
get
=
'web'
,
isCg
=
'yes'
,
form
,
postData
})
{
export
default
function
RenderForm
({
get
=
'web'
,
isCg
=
'yes'
,
...
rest
})
{
return
(
<
div
className
=
{
styles
.
zyd_onestop_style_class
}
>
<
ZdyTable
get
=
{
get
}
isCg
=
{
isCg
}
postData
=
{
postData
}
form
=
{
form
}
/
>
<
ZdyTable
get
=
{
get
}
isCg
=
{
isCg
}
{...
rest
}
/
>
<
/div
>
);
}
...
...
@@ -73,6 +73,12 @@ export function RenderFormByObjId({
);
return
(
<
RenderFormByContent
get
=
{
get
}
isCg
=
{
isCg
}
content
=
{
content
}
templateCode
=
{
templateCode
}
form
=
{
form
}
/
>
<
RenderFormByContent
get
=
{
get
}
isCg
=
{
isCg
}
content
=
{
content
}
templateCode
=
{
templateCode
}
form
=
{
form
}
/
>
);
}
FormInsertDiy/RenderForm/index.less
浏览文件 @
020582f0
.zyd_onestop_style_class{
padding: 20px;
table, td, div{
overflow: unset !important;
}
}
one_stop_public/AffairButton/SumbitButton/index.jsx
浏览文件 @
020582f0
...
...
@@ -65,8 +65,6 @@ export default class idnex extends Component {
if
(
this
.
props
?.
callback
){
this
.
props
.
callback
(
val
)
}
}
else
{
openToast
(
'error'
,
'保存失败'
,
'请尝试'
);
}
},
}).
then
(()
=>
{
...
...
@@ -140,8 +138,9 @@ export default class idnex extends Component {
openDraftButton
?
<
Button
style=
{
{
marginRight
:
2
0
marginRight
:
2
4
}
}
shape=
'round'
isLoading=
{
isLoading
}
onClick=
{
this
.
handleDraft
}
>
...
...
@@ -153,6 +152,8 @@ export default class idnex extends Component {
onClick=
{
this
.
showModal
}
isLoading=
{
isLoading
}
type=
'primary'
shape=
'round'
ghost
>
{
text
??
'提交'
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论