Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
0f9cd389
提交
0f9cd389
authored
4月 06, 2020
作者:
钟是志
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/master'
上级
543986fb
88b611d9
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
17 行增加
和
12 行删除
+17
-12
index.js
FormInsertDiy/HistoryForm/index.js
+1
-0
DetailPage.js
FormInsertDiy/MyApplyList/DetailPage.js
+8
-6
index.js
one_stop_public/libs/formList/index.js
+8
-6
没有找到文件。
FormInsertDiy/HistoryForm/index.js
浏览文件 @
0f9cd389
...
@@ -13,6 +13,7 @@ import styles from './index.less';
...
@@ -13,6 +13,7 @@ import styles from './index.less';
export
default
function
HistoryForm
(
props
)
{
export
default
function
HistoryForm
(
props
)
{
const
{
data
,
isNewForm
}
=
props
;
const
{
data
,
isNewForm
}
=
props
;
console
.
log
(
data
,
isNewForm
)
return
(
return
(
<
div
>
<
div
>
{
data
.
hisTaskForm
.
formKeys
&&
data
.
hisTaskForm
.
formKeys
.
length
>
0
{
data
.
hisTaskForm
.
formKeys
&&
data
.
hisTaskForm
.
formKeys
.
length
>
0
...
...
FormInsertDiy/MyApplyList/DetailPage.js
浏览文件 @
0f9cd389
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Form
,
Spin
}
from
'antd'
;
import
{
Form
,
Spin
}
from
'antd'
;
import
{
router
}
from
'umi'
;
import
Shell
from
'@/baseComponent/Shell'
;
import
Shell
from
'@/baseComponent/Shell'
;
import
HistoryForm
from
'@/webPublic/FormInsertDiy/HistoryForm'
;
import
HistoryForm
from
'@/webPublic/FormInsertDiy/HistoryForm'
;
import
{
getHistoryFormDetail
}
from
'../../Services'
;
import
{
getHistoryFormDetail
}
from
'../../Services'
;
import
withGoBack
from
'@/highOrderComponent/withGoBack'
;
import
withGoBack
from
'@/highOrderComponent/withGoBack'
;
import
SubmitButton
from
'@/webPublic/one_stop_public/AffairButton/SumbitButton'
;
import
{
ModalInfo
}
from
'@/baseComponent/Modal'
;
import
{
ModalInfo
}
from
'@/baseComponent/Modal'
;
import
{
router
}
from
'umi
'
;
import
AuditButton
from
'../AuditButton
'
;
// 查看详情, 传申报数据的code
// 查看详情, 传申报数据的code
let
DetailPage
=
({
form
,
code
,
appId
})
=>
{
let
DetailPage
=
({
form
,
code
})
=>
{
const
[
data
,
setData
]
=
useState
(
null
);
const
[
data
,
setData
]
=
useState
(
null
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
...
@@ -39,9 +39,11 @@ let DetailPage = ({ form, code, appId }) => {
...
@@ -39,9 +39,11 @@ let DetailPage = ({ form, code, appId }) => {
isNewForm
=
{
data
.
isSecond
??
false
}
// 是否渲染需要当前用户填写的审核表单 为false只会渲染历史回显表单
isNewForm
=
{
data
.
isSecond
??
false
}
// 是否渲染需要当前用户填写的审核表单 为false只会渲染历史回显表单
/
>
/
>
{
data
.
isSecond
&&
(
{
data
.
isSecond
&&
(
<
div
style
=
{{
padding
:
16
,
textAlign
:
'center'
}}
>
<
AuditButton
<
SubmitButton
form
=
{
form
}
appId
=
{
appId
}
text
=
"提交"
callback
=
{
submitCb
}
/
>
data
=
{
data
}
// 为 'affair/getIdFormDetail' 接口请求到的数据
<
/div
>
callback
=
{
submitCb
}
// 提交完成后回调函数
form
=
{
form
}
// form表单控件
/
>
)}
)}
<
/
>
<
/
>
)}
)}
...
...
one_stop_public/libs/formList/index.js
浏览文件 @
0f9cd389
...
@@ -890,9 +890,7 @@ class FormList extends React.Component {
...
@@ -890,9 +890,7 @@ class FormList extends React.Component {
if
(
document
.
querySelector
(
'#previewDiv'
)){
if
(
document
.
querySelector
(
'#previewDiv'
)){
isMobile
=
true
isMobile
=
true
}
}
let
showDiv
=
document
.
querySelector
(
'#mobelDiv'
)?
let
showDiv
=
document
.
querySelector
(
'#mobelDiv'
)
&&
document
.
querySelector
(
'#mobelDiv'
)?.
parentNode
.
clientWidth
document
.
querySelector
(
'#mobelDiv'
)?.
parentNode
.
clientWidth
:
1100
const
parentMethods
=
{
const
parentMethods
=
{
handleAdd
:
this
.
handleAdd
,
handleAdd
:
this
.
handleAdd
,
handleModalVisible
:
this
.
handleModalVisible
,
handleModalVisible
:
this
.
handleModalVisible
,
...
@@ -968,6 +966,9 @@ class FormList extends React.Component {
...
@@ -968,6 +966,9 @@ class FormList extends React.Component {
if
(
isEmpty
(
item
)){
if
(
isEmpty
(
item
)){
return
item
return
item
}
}
if
(
index
===
this
.
columns
.
length
-
1
){
return
item
}
let
width
=
item
.
width
?
item
.
width
:
150
let
width
=
item
.
width
?
item
.
width
:
150
if
(
!
item
.
width
){
if
(
!
item
.
width
){
item
.
width
=
150
item
.
width
=
150
...
@@ -980,7 +981,6 @@ class FormList extends React.Component {
...
@@ -980,7 +981,6 @@ class FormList extends React.Component {
){
){
this
.
columns
[
this
.
columns
.
length
-
2
].
width
=
''
this
.
columns
[
this
.
columns
.
length
-
2
].
width
=
''
AllWidth
+=
100
AllWidth
+=
100
// this.columns.push({})
}
}
}
}
const
xxxx
=
<><
Card
bordered
=
{
false
}
bodyStyle
=
{{
padding
:
0
}}
>
const
xxxx
=
<><
Card
bordered
=
{
false
}
bodyStyle
=
{{
padding
:
0
}}
>
...
@@ -1036,7 +1036,7 @@ class FormList extends React.Component {
...
@@ -1036,7 +1036,7 @@ class FormList extends React.Component {
<
div
<
div
id
=
'mobelDiv'
id
=
'mobelDiv'
style
=
{{
style
=
{{
overflow
:
'
auto
'
,
overflow
:
'
hidden
'
,
width
:
isMobile
?
showMobileDiv
:
showDiv
,
width
:
isMobile
?
showMobileDiv
:
showDiv
,
height
:
'100%'
height
:
'100%'
}}
}}
...
@@ -1044,7 +1044,8 @@ class FormList extends React.Component {
...
@@ -1044,7 +1044,8 @@ class FormList extends React.Component {
<
div
<
div
>
>
<
StandardTable
{
showDiv
&&<
StandardTable
showHeader
=
{
this
.
props
.
showHeader
!=
null
?
this
.
props
.
showHeader
:
true
}
showHeader
=
{
this
.
props
.
showHeader
!=
null
?
this
.
props
.
showHeader
:
true
}
noSelectRow
=
{
rights
==
null
||
!
rights
.
includes
(
'delete'
)
}
noSelectRow
=
{
rights
==
null
||
!
rights
.
includes
(
'delete'
)
}
rowKey
=
"id"
rowKey
=
"id"
...
@@ -1057,6 +1058,7 @@ class FormList extends React.Component {
...
@@ -1057,6 +1058,7 @@ class FormList extends React.Component {
onChange
=
{
this
.
handleStandardTableChange
}
onChange
=
{
this
.
handleStandardTableChange
}
loading
=
{
this
.
props
.
loading
}
loading
=
{
this
.
props
.
loading
}
/
>
/
>
}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论