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
98a67b67
Commit
98a67b67
authored
Oct 15, 2021
by
邓超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://g.civnet.cn:8443/ReactWeb5/maintenance
# Conflicts: # src/pages/platformCenter/bsmanager/tablemanager/index.jsx
parents
0e9bfe4b
39360033
Pipeline
#36132
skipped with stages
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
63 additions
and
60 deletions
+63
-60
AddModal.jsx
src/pages/platformCenter/bsmanager/maintenance/AddModal.jsx
+15
-25
ChangeAdd.jsx
src/pages/platformCenter/bsmanager/maintenance/ChangeAdd.jsx
+17
-19
maintenance.jsx
...ages/platformCenter/bsmanager/maintenance/maintenance.jsx
+2
-1
maintenance.less
...ges/platformCenter/bsmanager/maintenance/maintenance.less
+5
-2
incident.jsx
src/pages/platformCenter/bsmanager/workOrder/incident.jsx
+14
-5
incident.less
src/pages/platformCenter/bsmanager/workOrder/incident.less
+2
-1
incidentFlow.jsx
...pages/platformCenter/bsmanager/workOrder/incidentFlow.jsx
+2
-2
incidentView.jsx
...pages/platformCenter/bsmanager/workOrder/incidentView.jsx
+3
-3
filedConfig.jsx
src/pages/platformCenter/filedConfig/filedConfig.jsx
+3
-2
No files found.
src/pages/platformCenter/bsmanager/maintenance/AddModal.jsx
View file @
98a67b67
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Modal
,
Form
,
Input
,
notification
,
Row
,
Col
,
Select
,
Button
,
Dropdown
,
Menu
}
from
'antd'
;
import
{
Drawer
,
Form
,
Input
,
notification
,
Row
,
Col
,
Select
,
Button
,
Dropdown
,
Menu
,
Space
}
from
'antd'
;
import
styles
from
'./maintenance.less'
import
ModalDrag
from
'./ModalDrag'
;
import
{
CM_XWBPlan_AccountTable
,
CM_XWBPlan_feedbackTable
,
CM_XWBPlan_DataEditORAdd
,
CM_XWBPlan_DataList
}
from
'@/services/maintenance/api'
...
...
@@ -254,22 +254,24 @@ const AddModal = props => {
setCheckedList1
(
prop
.
checkedList
)
setInputValue
(
inputText
)
}
const
title
=
<
ModalDrag
title=
"巡维保计划配置"
/>
//
const title = <ModalDrag title="巡维保计划配置" />
return
(
<
Modal
title=
{
title
}
<
Drawer
title=
"巡维保计划配置"
visible=
{
visible
}
maskClosable=
{
false
}
mask=
{
false
}
destroyOnClose
width=
"800px"
destroyOnClose
okText=
"确认"
cancelText=
"取消"
{
...
props
}
onOk=
{
()
=>
onSubmit
()
}
footer=
{
<
Space
>
<
Button
onClick=
{
onSubmit
}
type=
"primary"
>
确定
</
Button
>
</
Space
>
}
>
<
Form
form=
{
form
}
labelCol=
{
{
span
:
7
}
}
style=
{
{
height
:
'33rem'
,
overflowY
:
'scroll'
}
}
>
<
Form
form=
{
form
}
labelCol=
{
{
span
:
7
}
}
style=
{
{
overflowY
:
'scroll'
}
}
>
<
Row
>
<
Col
span=
{
23
}
>
<
Item
...
...
@@ -502,21 +504,9 @@ const AddModal = props => {
</
Col
>
</
Row
>
</
Form
>
{
/* <ChangeAdd
visible={isVisible}
onCancel={() => setIsVisible(false)}
callBackSubmit={onOK}
newCheckedList={checkedList1}
isType={types}
filed={filed}
filed1={filed1}
ff={ff}
pickItem={pickItem}
characterValue={characterValue}
/> */
}
<
ChangeAdd
visible=
{
isVisible
}
onC
lose
=
{
()
=>
setIsVisible
(
false
)
}
onC
ancel
=
{
()
=>
setIsVisible
(
false
)
}
callBackSubmit=
{
onOK
}
newCheckedList=
{
checkedList1
}
isType=
{
types
}
...
...
@@ -525,9 +515,8 @@ const AddModal = props => {
ff=
{
ff
}
pickItem=
{
pickItem
}
characterValue=
{
characterValue
}
placement=
"right"
/>
</
Modal
>
</
Drawer
>
)
};
export
default
AddModal
\ No newline at end of file
src/pages/platformCenter/bsmanager/maintenance/ChangeAdd.jsx
View file @
98a67b67
import
React
,
{
useState
,
useEffect
,
PureComponent
}
from
'react'
;
import
{
Drawer
,
Divider
,
Checkbox
,
Space
,
Button
}
from
'antd'
;
import
{
Modal
,
Divider
,
Checkbox
,
Space
,
Button
}
from
'antd'
;
import
styles
from
'./maintenance.less'
const
CheckboxGroup
=
Checkbox
.
Group
;
...
...
@@ -96,20 +96,19 @@ const ChangeAdd = props => {
if
(
isType
!=
'app'
)
{
return
(
<
div
className=
{
styles
.
ChangeAddContainer
}
>
<
Drawer
<
Modal
title=
"反馈名称"
bodyStyle=
{
{
width
:
'100%'
,
minHeight
:
'100px'
}
}
style=
{
{
top
:
'10px'
}
}
width=
"450px"
destroyOnClose
centered=
{
true
}
cancelText=
"取消"
okText=
"确认"
{
...
props
}
footer=
{
<
Space
>
<
Button
onClick=
{
onSubmit
}
type=
"primary"
>
确定
</
Button
>
</
Space
>
}
onOk=
{
()
=>
onSubmit
()
}
forceRender=
{
true
}
getContainer=
{
false
}
>
{
visible
&&
(
<
div
className=
{
styles
.
listCard
}
>
...
...
@@ -133,25 +132,24 @@ const ChangeAdd = props => {
</
div
>
)
}
</
Drawer
>
</
Modal
>
</
div
>
);
}
else
if
(
isType
===
'app'
)
{
return
(
<
Drawer
<
Modal
title=
"角色"
bodyStyle=
{
{
width
:
'100%'
,
minHeight
:
'100px'
}
}
style=
{
{
top
:
'10px'
}
}
width=
"450px"
destroyOnClose
centered=
{
true
}
cancelText=
"取消"
okText=
"确认"
{
...
props
}
footer=
{
<
Space
>
<
Button
onClick=
{
onSubmit
}
type=
"primary"
>
确定
</
Button
>
</
Space
>
}
onOk=
{
()
=>
onSubmit
()
}
forceRender=
{
true
}
getContainer=
{
false
}
>
{
visible
&&
(
<
div
className=
{
styles
.
listCard
}
>
...
...
@@ -165,7 +163,7 @@ const ChangeAdd = props => {
</
div
>
)
}
</
Drawer
>
</
Modal
>
);
}
};
...
...
src/pages/platformCenter/bsmanager/maintenance/maintenance.jsx
View file @
98a67b67
...
...
@@ -220,9 +220,10 @@ const maintenance = () => {
<
AddModal
visible=
{
addVisible
}
type=
{
type
}
onC
ancel
=
{
()
=>
setAddVisible
(
false
)
}
onC
lose
=
{
()
=>
setAddVisible
(
false
)
}
callBackSubmit=
{
onSubmit
}
formObj=
{
formObj
}
placement=
"right"
/>
</
div
>
</
div
>
...
...
src/pages/platformCenter/bsmanager/maintenance/maintenance.less
View file @
98a67b67
...
...
@@ -63,8 +63,8 @@
padding: 0.5rem;
}
.cardContent{
//
height: 30rem;
//
overflow-y: scroll;
height: 30rem;
overflow-y: scroll;
width: 100%;
}
.cardItemData{
...
...
@@ -82,3 +82,6 @@
.ant-modal-footer {
padding: 0px 48px 10px 40px;
}
.ant-table-pagination.ant-pagination {
margin: 5px 0;
}
src/pages/platformCenter/bsmanager/workOrder/incident.jsx
View file @
98a67b67
...
...
@@ -293,8 +293,18 @@ const incident = () => {
let
arrr
=
formateArrDataA
(
zz
,
'businessType'
)
console
.
log
(
arrr
)
setTableData
(
arrr
)
setPickItem
(
newArr
[
rember
])
setRember1
(
newArr
[
0
])
if
(
history
.
location
.
state
){
console
.
log
(
history
)
console
.
log
(
history
.
location
.
state
.
rember
)
setPickItem
(
newArr
[
history
.
location
.
state
.
rember
])
setRember
(
history
.
location
.
state
.
rember
)
setRember1
(
newArr
[
history
.
location
.
state
.
rember
])
}
else
{
setPickItem
(
newArr
[
rember
])
setRember1
(
newArr
[
0
])
}
console
.
log
(
rember
)
console
.
log
(
newArr
[
rember
])
console
.
log
(
newArr
,
'newArr'
);
setTreeData
(
newArr
)
}
...
...
@@ -396,7 +406,7 @@ const incident = () => {
const
process1
=
record
=>
{
history
.
push
({
pathname
:
'/platformCenter/bsmanger/incidentFlow'
,
state
:
{
formObj
:
record
,
title1
:
record
.
name
},
state
:
{
formObj
:
record
,
title1
:
record
.
name
,
rember
},
});
}
// const auxiliaryView = record => {
...
...
@@ -407,7 +417,7 @@ const incident = () => {
const
auxiliaryView1
=
record
=>
{
history
.
push
({
pathname
:
'/platformCenter/bsmanger/incidentView'
,
state
:
{
formObj
:
record
,
title2
:
record
.
name
},
state
:
{
formObj
:
record
,
title2
:
record
.
name
,
rember
},
});
}
const
onSubmit
=
()
=>
{
...
...
@@ -514,7 +524,6 @@ const incident = () => {
</
div
>
<
Table
// rowClassName={setRowClassName}
size=
"small"
rowKey=
'ID'
bordered
...
...
src/pages/platformCenter/bsmanager/workOrder/incident.less
View file @
98a67b67
...
...
@@ -234,12 +234,13 @@
}
.btn{
display: flex;
justify-content:
space-arou
nd;
justify-content:
flex-e
nd;
width: 20rem;
}
.ant-btn{
display: flex;
align-items: center;
margin-left: 20px;
}
}
.containerBox {
...
...
src/pages/platformCenter/bsmanager/workOrder/incidentFlow.jsx
View file @
98a67b67
...
...
@@ -96,10 +96,10 @@ const incidentFlow = (props) => {
setAddVisible
(
true
)
}
const
back
=
()
=>
{
let
formObj
=
props
.
location
.
state
.
formObj
;
let
rember
=
props
.
location
.
state
.
rember
;
history
.
push
({
pathname
:
'/platformCenter/bsmanger/incident'
,
state
:
{
formObj
},
state
:
{
rember
},
});
};
const
deleteEventType
=
record
=>
{
...
...
src/pages/platformCenter/bsmanager/workOrder/incidentView.jsx
View file @
98a67b67
...
...
@@ -207,10 +207,10 @@ const incidentView = props => {
setFlag
(
flag
+
1
)
}
const
back
=
()
=>
{
let
formObj
=
props
.
location
.
state
.
formObj
;
let
rember
=
props
.
location
.
state
.
rember
;
history
.
push
({
pathname
:
'/platformCenter/bsmanger/incident'
,
state
:
{
formObj
},
state
:
{
rember
},
});
};
return
(
...
...
@@ -243,7 +243,7 @@ const incidentView = props => {
};
}
}
columns=
{
columns
}
style=
{
{
height
:
'15rem'
,
overflowY
:
'scroll'
,
marginLeft
:
'25px'
,
marginRight
:
'25px'
}
}
style=
{
{
overflowY
:
'scroll'
}
}
dataSource=
{
tableData
}
pagination=
{
false
}
scroll=
{
{
x
:
'max-content'
}
}
...
...
src/pages/platformCenter/filedConfig/filedConfig.jsx
View file @
98a67b67
...
...
@@ -279,6 +279,7 @@ const AddModal = props => {
},
];
useEffect
(()
=>
{
console
.
log
(
props
)
if
(
props
.
match
.
params
.
id
)
{
setFormObj
(
props
.
match
.
params
.
id
);
setTreeLoading
(
true
);
...
...
@@ -379,13 +380,13 @@ const AddModal = props => {
};
//附加
const
add
=
record
=>
{
setPramFormObj
(
props
.
history
.
location
.
state
.
template
);
setPramFormObj
(
props
.
location
.
state
.
template
);
setType
(
'affiliateAdd'
);
setVisible
(
true
);
};
//分组与排序
const
sort
=
record
=>
{
setPramFormObj
(
props
.
history
.
location
.
state
.
template
);
setPramFormObj
(
props
.
location
.
state
.
template
);
setType
(
'sort'
);
setVisible
(
true
);
};
...
...
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