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
de6008e8
Commit
de6008e8
authored
Jan 21, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '修改事件受理流程,辅助视图界面样式'
parent
66f20aef
Pipeline
#43256
passed with stages
in 7 minutes 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
154 additions
and
176 deletions
+154
-176
AddFlowsModal.jsx
src/pages/bsmanager/workOrder/incident/AddFlowsModal.jsx
+5
-9
AddViewModal.jsx
src/pages/bsmanager/workOrder/incident/AddViewModal.jsx
+149
-167
No files found.
src/pages/bsmanager/workOrder/incident/AddFlowsModal.jsx
View file @
de6008e8
...
...
@@ -367,7 +367,7 @@ const AddFlowsModal = props => {
<Drawer
title={type === '
add
' ? '
添加受理流程
' : '
编辑受理流程
'}
visible={visible}
width="
6
00px"
width="
5
00px"
onClose={onClose}
destroyOnClose
footer={
...
...
@@ -380,15 +380,11 @@ const AddFlowsModal = props => {
>
<Form form={form} labelCol={{ span: 7 }} style={{ overflowY: '
scroll
' }}>
<Row>
<Col span={2
3
}>
<Col span={2
4
}>
{type === '
edit
' ? (
<>
<Item label="受理流程" name="FlowName" labelCol={{ span: 4 }}>
<Select
placeholder="选择受理流程"
placeholder={selectValue}
disabled
>
<Select placeholder="选择受理流程" placeholder={selectValue} disabled>
{standingTable
? standingTable.map((item, index) => (
<Option key={index} value={item}>
...
...
@@ -415,7 +411,7 @@ const AddFlowsModal = props => {
</>
)}
</Col>
<Col span={2
3
}>
<Col span={2
4
}>
<Item label="受理权限" name="Roles" labelCol={{ span: 4 }}>
<div className={styles.filed_listItem}>
<Input
...
...
@@ -429,7 +425,7 @@ const AddFlowsModal = props => {
type="dashed"
onClick={() => pickFiled1('
Roles
')}
icon={<PlusOutlined style={{ marginTop: '
5
px
' }} />}
style={{ marginLeft: '
0.5
rem
', width: '
4
rem
' }}
style={{ marginLeft: '
5
px
', width: '
58
px
' }}
/>
</div>
</Item>
...
...
src/pages/bsmanager/workOrder/incident/AddViewModal.jsx
View file @
de6008e8
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Drawer
,
Form
,
Input
,
notification
,
Row
,
Col
,
Button
,
Space
}
from
'antd'
;
import
{
CM_Event_OperateEventExtendPage
,
GetEventExtendPage
}
from
'@/services/standingBook/api'
;
import
{
Drawer
,
Form
,
Input
,
notification
,
Row
,
Col
,
Button
,
Space
}
from
'antd'
;
import
{
CM_Event_OperateEventExtendPage
,
GetEventExtendPage
}
from
'@/services/standingBook/api'
;
import
{
IdcardTwoTone
}
from
'@ant-design/icons'
;
const
AddViewModal
=
props
=>
{
const
{
callBackSubmit
=
()
=>
{
},
visible
,
onClose
,
maxLength
,
title2
,
obj
,
type
}
=
props
;
const
[
id
,
setId
]
=
useState
(
''
)
const
{
callBackSubmit
=
()
=>
{
},
visible
,
onClose
,
maxLength
,
title2
,
obj
,
type
}
=
props
;
const
[
id
,
setId
]
=
useState
(
''
);
const
[
form
]
=
Form
.
useForm
();
const
{
Item
}
=
Form
;
const
{
TextArea
}
=
Input
;
const
[
form
]
=
Form
.
useForm
();
const
{
Item
}
=
Form
;
const
{
TextArea
}
=
Input
;
const
onSubmit
=
()
=>
{
let
aa
=
title2
;
let
bb
=
form
.
getFieldsValue
().
WebLabel
;
let
cc
=
form
.
getFieldsValue
().
WebPage
;
let
dd
=
form
.
getFieldsValue
().
WebParam
;
let
ee
=
form
.
getFieldsValue
().
MobileLabel
;
let
ff
=
form
.
getFieldsValue
().
MobilePage
;
let
gg
=
form
.
getFieldsValue
().
MobileParam
;
if
(
type
==
'edit'
){
CM_Event_OperateEventExtendPage
({
ID
:
id
,
EventName
:
aa
,
WebLabel
:
bb
,
WebPage
:
cc
,
WebParam
:
dd
,
MobileLabel
:
ee
,
MobilePage
:
ff
,
MobileParam
:
gg
,
}).
then
(
res
=>
{
if
(
res
.
msg
===
''
)
{
form
.
resetFields
();
callBackSubmit
();
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
'编辑成功'
,
});
}
else
{
notification
.
error
({
message
:
'提示'
,
duration
:
3
,
description
:
res
.
msg
,
});
}
})
}
else
{
CM_Event_OperateEventExtendPage
({
ID
:
0
,
EventName
:
aa
,
WebLabel
:
bb
,
WebPage
:
cc
,
WebParam
:
dd
,
MobileLabel
:
ee
,
MobilePage
:
ff
,
MobileParam
:
gg
,
}).
then
(
res
=>
{
if
(
res
.
msg
===
''
)
{
form
.
resetFields
();
callBackSubmit
();
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
'添加成功'
,
});
}
else
{
notification
.
error
({
message
:
'提示'
,
duration
:
3
,
description
:
res
.
msg
,
});
}
})
const
onSubmit
=
()
=>
{
let
aa
=
title2
;
let
bb
=
form
.
getFieldsValue
().
WebLabel
;
let
cc
=
form
.
getFieldsValue
().
WebPage
;
let
dd
=
form
.
getFieldsValue
().
WebParam
;
let
ee
=
form
.
getFieldsValue
().
MobileLabel
;
let
ff
=
form
.
getFieldsValue
().
MobilePage
;
let
gg
=
form
.
getFieldsValue
().
MobileParam
;
if
(
type
==
'edit'
)
{
CM_Event_OperateEventExtendPage
({
ID
:
id
,
EventName
:
aa
,
WebLabel
:
bb
,
WebPage
:
cc
,
WebParam
:
dd
,
MobileLabel
:
ee
,
MobilePage
:
ff
,
MobileParam
:
gg
,
}).
then
(
res
=>
{
if
(
res
.
msg
===
''
)
{
form
.
resetFields
();
callBackSubmit
();
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
'编辑成功'
,
});
}
else
{
notification
.
error
({
message
:
'提示'
,
duration
:
3
,
description
:
res
.
msg
,
});
}
}
useEffect
(()
=>
{
console
.
log
(
type
)
if
(
type
===
'edit'
){
GetEventExtendPage
({
eventExtendPageId
:
obj
}).
then
(
res
=>
{
console
.
log
(
res
.
data
)
form
.
setFieldsValue
({...
res
.
data
})
setId
(
res
.
data
.
ID
)
})
}
else
if
(
type
===
'add'
){
form
.
resetFields
();
});
}
else
{
CM_Event_OperateEventExtendPage
({
ID
:
0
,
EventName
:
aa
,
WebLabel
:
bb
,
WebPage
:
cc
,
WebParam
:
dd
,
MobileLabel
:
ee
,
MobilePage
:
ff
,
MobileParam
:
gg
,
}).
then
(
res
=>
{
if
(
res
.
msg
===
''
)
{
form
.
resetFields
();
callBackSubmit
();
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
'添加成功'
,
});
}
else
{
notification
.
error
({
message
:
'提示'
,
duration
:
3
,
description
:
res
.
msg
,
});
}
},
[
visible
])
return
(
<
Drawer
visible=
{
visible
}
onClose=
{
onClose
}
width=
"500px"
title=
{
type
==
'edit'
?
'编辑事件辅助视图配置'
:
'添加事件辅助视图配置'
}
footer=
{
<
Space
>
<
Button
onClick=
{
onSubmit
}
type=
"primary"
>
确定
</
Button
>
</
Space
>
}
>
<
Form
form=
{
form
}
labelCol=
{
{
span
:
7
}
}
style=
{
{
height
:
'24rem'
,
overflowY
:
'scroll'
}
}
>
<
Row
>
<
Col
span=
{
23
}
>
<
Item
label=
"前端标签"
name=
"WebLabel"
rules=
{
[
{
required
:
true
,
message
:
'请输入前端标签'
,
},
]
}
>
<
Input
style=
{
{
width
:
'17rem'
}
}
placeholder=
"请输入前端标签"
/>
</
Item
>
</
Col
>
<
Col
span=
{
23
}
>
<
Item
label=
"前端视图"
name=
"WebPage"
rules=
{
[
{
required
:
true
,
message
:
'请输入前端视图'
,
},
]
}
>
<
Input
style=
{
{
width
:
'17rem'
}
}
placeholder=
"请输入前端视图"
/>
</
Item
>
</
Col
>
<
Col
span=
{
23
}
>
<
Item
label=
"视图参数"
name=
"WebParam"
>
<
TextArea
style=
{
{
width
:
'17rem'
}
}
placeholder=
"请输入视图参数"
/>
</
Item
>
</
Col
>
<
Col
span=
{
23
}
>
<
Item
label=
"手持标签"
name=
"MobileLabel"
>
<
Input
style=
{
{
width
:
'17rem'
}
}
placeholder=
"请输入手持标签"
/>
</
Item
>
</
Col
>
<
Col
span=
{
23
}
>
<
Item
label=
"手持视图"
name=
"MobilePage"
>
<
Input
style=
{
{
width
:
'17rem'
}
}
placeholder=
"请输入手持视图"
/>
</
Item
>
</
Col
>
<
Col
span=
{
23
}
>
<
Item
label=
"手持参数"
name=
"MobileParam"
>
<
TextArea
style=
{
{
width
:
'17rem'
}
}
placeholder=
"请输入手持参数"
/>
</
Item
>
</
Col
>
</
Row
>
</
Form
>
</
Drawer
>
)
}
export
default
AddViewModal
;
\ No newline at end of file
});
}
};
useEffect
(()
=>
{
if
(
type
===
'edit'
)
{
GetEventExtendPage
({
eventExtendPageId
:
obj
}).
then
(
res
=>
{
form
.
setFieldsValue
({
...
res
.
data
});
setId
(
res
.
data
.
ID
);
});
}
else
if
(
type
===
'add'
)
{
form
.
resetFields
();
}
},
[
visible
]);
return
(
<
Drawer
visible=
{
visible
}
onClose=
{
onClose
}
width=
"500px"
title=
{
type
==
'edit'
?
'编辑事件辅助视图配置'
:
'添加事件辅助视图配置'
}
footer=
{
<
Space
>
<
Button
onClick=
{
onSubmit
}
type=
"primary"
>
确定
</
Button
>
</
Space
>
}
>
<
Form
form=
{
form
}
labelCol=
{
{
span
:
5
}
}
style=
{
{
overflowY
:
'scroll'
}
}
>
<
Row
>
<
Col
span=
{
24
}
>
<
Item
label=
"前端标签"
name=
"WebLabel"
rules=
{
[
{
required
:
true
,
message
:
'请输入前端标签'
,
},
]
}
>
<
Input
placeholder=
"请输入前端标签"
/>
</
Item
>
</
Col
>
<
Col
span=
{
24
}
>
<
Item
label=
"前端视图"
name=
"WebPage"
rules=
{
[
{
required
:
true
,
message
:
'请输入前端视图'
,
},
]
}
>
<
Input
placeholder=
"请输入前端视图"
/>
</
Item
>
</
Col
>
<
Col
span=
{
24
}
>
<
Item
label=
"视图参数"
name=
"WebParam"
>
<
TextArea
placeholder=
"请输入视图参数"
/>
</
Item
>
</
Col
>
<
Col
span=
{
24
}
>
<
Item
label=
"手持标签"
name=
"MobileLabel"
>
<
Input
placeholder=
"请输入手持标签"
/>
</
Item
>
</
Col
>
<
Col
span=
{
24
}
>
<
Item
label=
"手持视图"
name=
"MobilePage"
>
<
Input
placeholder=
"请输入手持视图"
/>
</
Item
>
</
Col
>
<
Col
span=
{
24
}
>
<
Item
label=
"手持参数"
name=
"MobileParam"
>
<
TextArea
placeholder=
"请输入手持参数"
/>
</
Item
>
</
Col
>
</
Row
>
</
Form
>
</
Drawer
>
);
};
export
default
AddViewModal
;
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