Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
f214c831
提交
f214c831
authored
7月 28, 2020
作者:
徐立
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
暂存
上级
7fc3df49
全部展开
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
39 行增加
和
28 行删除
+39
-28
index.jsx
one_stop_public/filePreview/index.jsx
+1
-0
TreeList.js
one_stop_public/libs/formList/TreeList.js
+0
-0
index.js
one_stop_public/libs/formList/index.js
+38
-28
index.jsx
one_stop_public/tableCompon/index.jsx
+0
-0
没有找到文件。
one_stop_public/filePreview/index.jsx
浏览文件 @
f214c831
...
...
@@ -35,6 +35,7 @@ export default class index extends Component {
};
render
()
{
let
{
path
,
pathName
,
width
,
height
}
=
this
.
props
;
console
.
log
(
path
,
'????'
);
const
{
visible
}
=
this
.
state
;
let
isShow
=
pathName
?.
indexOf
(
'.pdf'
)
!==
-
1
||
...
...
one_stop_public/libs/formList/TreeList.js
浏览文件 @
f214c831
差异被折叠。
点击展开。
one_stop_public/libs/formList/index.js
浏览文件 @
f214c831
...
...
@@ -104,9 +104,7 @@ const CreateForm = Form.create()(props => {
//处理日期何时入库问题
try
{
fieldsValue
[
d
]
=
fieldsValue
[
d
].
format
(
'YYYY-MM-DD HH:mm:ss'
);
}
catch
(
e
)
{
}
}
catch
(
e
)
{}
break
;
}
}
...
...
@@ -154,9 +152,11 @@ const CreateForm = Form.create()(props => {
);
});
@
connect
(({
formList
,
DataColumn
,
DataObj
,
loading
})
=>
({
formList
,
DataColumn
,
DataObj
,
loading
:
loading
.
models
.
formList
||
loading
.
models
.
DataColumn
||
loading
.
models
.
DataObj
,
@
connect
(({
formList
,
DataColumn
,
DataObj
,
loading
})
=>
({
formList
,
DataColumn
,
DataObj
,
loading
:
loading
.
models
.
formList
||
loading
.
models
.
DataColumn
||
loading
.
models
.
DataObj
,
}))
@
Form
.
create
()
class
FormList
extends
React
.
Component
{
...
...
@@ -192,26 +192,26 @@ class FormList extends React.Component {
columns
=
[];
checkList
=
[];
// 复选框内容
getOptions
=
()
=>
{
const
refIds
=
[]
const
refIds
=
[]
;
for
(
var
i
=
0
;
i
<
this
.
state
.
formItem
.
length
;
i
++
)
{
if
(
this
.
state
.
formItem
[
i
].
referenceObjId
!=
null
&&
this
.
state
.
options
[
this
.
state
.
formItem
[
i
].
id
+
''
]
==
null
)
{
refIds
.
push
(
this
.
state
.
formItem
[
i
].
id
)
if
(
this
.
state
.
formItem
[
i
].
referenceObjId
!=
null
&&
this
.
state
.
options
[
this
.
state
.
formItem
[
i
].
id
+
''
]
==
null
)
{
refIds
.
push
(
this
.
state
.
formItem
[
i
].
id
);
}
}
if
(
refIds
.
length
>
0
)
{
this
.
props
.
dispatch
({
type
:
'formList/getBatchOptions'
,
payload
:
{
ids
:
refIds
},
callback
:
(
options
)
=>
{
this
.
setState
({
options
:
{
...
this
.
state
.
options
,
...
options
}
})
}
callback
:
options
=>
{
this
.
setState
({
options
:
{
...
this
.
state
.
options
,
...
options
}
});
},
});
}
}
}
;
modify
=
record
=>
{
// if (this.state.formItem.length < 10) {
this
.
getOptions
();
...
...
@@ -299,9 +299,11 @@ class FormList extends React.Component {
code
:
record
.
process_biz_key
,
},
callback
:
data
=>
{
const
domainName
=
sessionStorage
.
getItem
(
'domainName'
)
?
sessionStorage
.
getItem
(
'domainName'
)
:
''
;
const
domainName
=
sessionStorage
.
getItem
(
'domainName'
)
?
sessionStorage
.
getItem
(
'domainName'
)
:
''
;
window
.
open
(
domainName
+
"/portal/serviceCentre/getdetail?id="
+
data
.
id
,
'_blank'
);
window
.
open
(
domainName
+
'/portal/serviceCentre/getdetail?id='
+
data
.
id
,
'_blank'
);
//router.push({ pathname: '/portal/serviceCentre/getdetail', state: { id: data.id } });
},
});
...
...
@@ -437,14 +439,13 @@ class FormList extends React.Component {
// 表头筛选逻辑
Array
.
isArray
(
this
.
props
.
value
.
columns
)
&&
this
.
props
.
value
.
columns
.
map
(
item
=>
{
if
(
item
.
dataIndex
!=
null
)
{
if
(
item
.
dataIndex
!=
null
)
{
cacheList
.
push
({
label
:
item
.
title
,
value
:
item
.
dataIndex
,
});
cacheChecked
.
push
(
item
.
dataIndex
);
}
});
this
.
checkList
=
cacheList
;
...
...
@@ -515,7 +516,7 @@ class FormList extends React.Component {
let
cacheChecked
=
[];
// 表头筛选逻辑
datas
.
map
(
item
=>
{
if
(
item
.
name
!=
null
)
{
if
(
item
.
name
!=
null
)
{
cacheList
.
push
({
label
:
item
.
title
,
value
:
item
.
name
,
...
...
@@ -741,7 +742,7 @@ class FormList extends React.Component {
this
.
setState
({
modalVisible
:
this
.
state
.
modalVisible
?
false
:
true
,
formData
:
{},
isView
:
false
isView
:
false
,
});
};
...
...
@@ -907,14 +908,19 @@ class FormList extends React.Component {
initialValue
:
formData
==
null
?
''
:
formData
[
item
.
name
],
rules
:
[{
required
:
!
item
.
isNull
}],
})(
<
Select
disabled
=
{
isView
}
style
=
{{
width
:
'70%'
}}
<
Select
disabled
=
{
isView
}
style
=
{{
width
:
'70%'
}}
optionFilterProp
=
"children"
showSearch
filterOption
=
{(
input
,
option
)
=>
option
?
option
.
props
.
children
.
toLowerCase
().
indexOf
(
input
.
toLowerCase
())
>=
0
:
false
}
placeholder
=
"请选择"
allowClear
>
}
placeholder
=
"请选择"
allowClear
>
{
ops
.
map
(
r
=>
(
<
Option
value
=
{
r
[
item
.
referenceCodeName
]}
key
=
{
r
[
item
.
referenceCodeName
]}
>
{
r
[
item
.
referenceNameName
]}
...
...
@@ -968,7 +974,10 @@ class FormList extends React.Component {
initialValue
:
formData
==
null
?
''
:
formData
[
item
.
name
],
rules
:
[{
required
:
!
item
.
isNull
}],
})(
<
Select
disabled
=
{
isView
}
style
=
{{
width
:
200
}}
placeholder
=
"请选择"
<
Select
disabled
=
{
isView
}
style
=
{{
width
:
200
}}
placeholder
=
"请选择"
optionFilterProp
=
"children"
showSearch
filterOption
=
{(
input
,
option
)
=>
...
...
@@ -976,7 +985,8 @@ class FormList extends React.Component {
?
option
.
props
.
children
.
toLowerCase
().
indexOf
(
input
.
toLowerCase
())
>=
0
:
false
}
allowClear
>
allowClear
>
{
ops
.
map
(
r
=>
(
<
Option
value
=
{
r
.
value
}
key
=
{
r
.
value
}
>
{
r
.
value
}
...
...
@@ -1203,7 +1213,7 @@ class FormList extends React.Component {
render
:
(
text
,
record
)
=>
{
return
(
<
Fragment
>
<
div
style
=
{{
textAlign
:
'center'
,
"padding-left"
:
"0px"
,
"padding-right"
:
"0px"
}}
>
<
div
style
=
{{
textAlign
:
'center'
,
'padding-left'
:
'0px'
,
'padding-right'
:
'0px'
}}
>
{
isSelect
?
(
this
.
state
.
selects
.
includes
(
record
[
valueName
])
?
(
<>
...
...
@@ -1238,7 +1248,7 @@ class FormList extends React.Component {
{
rights
&&
rights
.
includes
(
'viewProcess'
)
&&
record
.
process_biz_key
?
(
<>
<
a
onClick
=
{
this
.
viewProcess
.
bind
(
this
,
record
)}
>
流程详情
<
/a
>
{
rights
.
includes
(
'delete'
)
?
<
Divider
type
=
"vertical"
/>
:
""
}
{
rights
.
includes
(
'delete'
)
?
<
Divider
type
=
"vertical"
/>
:
''
}
<
/
>
)
:
(
''
...
...
one_stop_public/tableCompon/index.jsx
浏览文件 @
f214c831
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论