Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
5f3f16f2
Commit
5f3f16f2
authored
Jun 27, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '巡维保前端界面优化'
parent
4ff2023e
Pipeline
#54018
waiting for manual action with stages
Changes
4
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
51 deletions
+28
-51
fieldEditor.jsx
...s/bsmanager/base/tablemanager/filedConfig/fieldEditor.jsx
+0
-0
AddModal.jsx
src/pages/bsmanager/maintenance/AddModal.jsx
+0
-0
ChangeAdd.jsx
src/pages/bsmanager/maintenance/ChangeAdd.jsx
+14
-8
maintenance.jsx
src/pages/bsmanager/maintenance/maintenance.jsx
+14
-43
No files found.
src/pages/bsmanager/base/tablemanager/filedConfig/fieldEditor.jsx
View file @
5f3f16f2
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/maintenance/AddModal.jsx
View file @
5f3f16f2
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/maintenance/ChangeAdd.jsx
View file @
5f3f16f2
...
...
@@ -88,6 +88,7 @@ const ChangeAdd = props => {
console
.
log
(
indeterminate
);
if
(
type
==
'edit'
)
{
if
(
isType
!=
''
&&
isType
===
'add'
)
{
// 反馈名称
let
checkArr
=
[];
console
.
log
(
newCheckedList
);
newCheckedList
.
map
(
checkItem
=>
{
...
...
@@ -96,11 +97,12 @@ const ChangeAdd = props => {
}
});
setCheckedList
(
checkArr
);
setIndeterminate
(
!!
newCheckedList
.
length
&&
newCheckedList
.
length
<
filed
.
length
);
setCheckAll
(
newCheckedList
.
length
===
filed
.
length
);
setIndeterminate
(
!!
checkArr
.
length
&&
checkArr
.
length
<
filed
.
length
);
setCheckAll
(
checkArr
.
length
===
filed
.
length
);
let
newArr
=
characterValue
.
length
?
characterValue
.
split
(
','
)
:
[];
setSelectData
(
newArr
);
}
else
if
(
isType
===
'app'
)
{
// 执行角色
let
checkArr
=
[];
console
.
log
(
newCheckedList
);
newCheckedList
.
map
(
checkItem
=>
{
...
...
@@ -109,26 +111,30 @@ const ChangeAdd = props => {
}
});
setCheckedList
(
checkArr
);
setIndeterminate
(
!!
newCheckedList
.
length
&&
newCheckedList
.
length
<
ff
.
length
);
setCheckAll
(
newCheckedList
.
length
===
ff
.
length
);
setIndeterminate
(
!!
checkArr
.
length
&&
checkArr
.
length
<
ff
.
length
);
setCheckAll
(
checkArr
.
length
===
ff
.
length
);
let
newArr
=
characterValue
.
length
?
characterValue
.
split
(
','
)
:
[];
setSelectData
(
newArr
);
}
}
else
{
if
(
isType
!=
''
&&
isType
===
'add'
)
{
// 反馈名称
let
checkArr
=
[];
console
.
log
(
filed
);
console
.
log
(
newCheckedList
);
newCheckedList
.
map
(
checkItem
=>
{
if
(
filed
.
includes
(
checkItem
))
{
checkArr
.
push
(
checkItem
);
}
});
console
.
log
(
checkArr
);
setCheckedList
(
checkArr
);
setIndeterminate
(
false
);
setCheckAll
(
false
);
setIndeterminate
(
!!
checkArr
.
length
&&
checkArr
.
length
<
filed
.
length
);
setCheckAll
(
checkArr
.
length
===
filed
.
length
);
let
newArr
=
characterValue
.
length
?
characterValue
.
split
(
','
)
:
[];
setSelectData
(
newArr
);
}
else
if
(
isType
===
'app'
)
{
// 执行角色
let
checkArr
=
[];
console
.
log
(
newCheckedList
);
newCheckedList
.
map
(
checkItem
=>
{
...
...
@@ -137,8 +143,8 @@ const ChangeAdd = props => {
}
});
setCheckedList
(
checkArr
);
setIndeterminate
(
false
);
setCheckAll
(
false
);
setIndeterminate
(
!!
checkArr
.
length
&&
checkArr
.
length
<
ff
.
length
);
setCheckAll
(
checkArr
.
length
===
ff
.
length
);
let
newArr
=
characterValue
.
length
?
characterValue
.
split
(
','
)
:
[];
setSelectData
(
newArr
);
}
...
...
src/pages/bsmanager/maintenance/maintenance.jsx
View file @
5f3f16f2
...
...
@@ -48,7 +48,7 @@ const maintenance = () => {
title
:
'业务类型'
,
dataIndex
:
'businessType'
,
key
:
'businessType'
,
//
width: 100,
width
:
100
,
onCell
:
()
=>
({
style
:
{
maxWidth
:
100
,
...
...
@@ -69,26 +69,17 @@ const maintenance = () => {
title
:
'执行周期'
,
dataIndex
:
'docycle'
,
key
:
'docycle'
,
// width: 100,
onCell
:
()
=>
({
style
:
{
maxWidth
:
100
,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
,
cursor
:
'pointer'
,
},
}),
width
:
100
,
align
:
'center'
,
},
{
title
:
'台账名称'
,
dataIndex
:
'accountName'
,
key
:
'accountName'
,
// width: 1
00,
width
:
2
00
,
onCell
:
()
=>
({
style
:
{
maxWidth
:
1
00
,
maxWidth
:
2
00
,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
,
...
...
@@ -106,10 +97,9 @@ const maintenance = () => {
title
:
'反馈名称'
,
dataIndex
:
'feedbackName'
,
key
:
'feedbackName'
,
width
:
200
,
onCell
:
()
=>
({
style
:
{
maxWidth
:
200
,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
,
...
...
@@ -127,10 +117,10 @@ const maintenance = () => {
title
:
'台账过滤条件'
,
dataIndex
:
'filterCondition'
,
key
:
'filterCondition'
,
//
width: 150,
width
:
150
,
onCell
:
()
=>
({
style
:
{
maxWidth
:
20
0
,
maxWidth
:
15
0
,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
,
...
...
@@ -149,32 +139,22 @@ const maintenance = () => {
dataIndex
:
'isSubmit'
,
key
:
'isSubmit'
,
width
:
80
,
onCell
:
()
=>
({
style
:
{
maxWidth
:
100
,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
,
cursor
:
'pointer'
,
},
}),
align
:
'center'
,
},
{
title
:
'执行角色'
,
dataIndex
:
'doRole'
,
key
:
'doRole'
,
width
:
300
,
align
:
'center'
,
onCell
:
()
=>
({
style
:
{
maxWidth
:
350
,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
,
cursor
:
'pointer'
,
},
}),
align
:
'center'
,
render
:
record
=>
(
<
Tooltip
placement=
"topLeft"
title=
{
record
}
>
{
record
}
...
...
@@ -186,32 +166,32 @@ const maintenance = () => {
dataIndex
:
'produceDays'
,
key
:
'produceDays'
,
width
:
80
,
align
:
'center'
,
onCell
:
()
=>
({
style
:
{
maxWidth
:
10
0
,
maxWidth
:
8
0
,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
,
cursor
:
'pointer'
,
},
}),
align
:
'center'
,
},
{
title
:
'在线任务量'
,
dataIndex
:
'onLines'
,
key
:
'onLines'
,
width
:
80
,
align
:
'center'
,
onCell
:
()
=>
({
style
:
{
maxWidth
:
10
0
,
maxWidth
:
8
0
,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
,
cursor
:
'pointer'
,
},
}),
align
:
'center'
,
render
:
record
=>
(
<
Tooltip
placement=
"topLeft"
title=
{
record
}
>
{
record
}
...
...
@@ -222,16 +202,7 @@ const maintenance = () => {
title
:
'启停'
,
dataIndex
:
'doNot'
,
key
:
'doNot'
,
// width: 100,
onCell
:
()
=>
({
style
:
{
maxWidth
:
100
,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
,
cursor
:
'pointer'
,
},
}),
width
:
80
,
align
:
'center'
,
},
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment