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
2bc8f01a
Commit
2bc8f01a
authored
Jul 06, 2021
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化消息平台功能
parent
f6b7cc32
Pipeline
#31027
skipped with stages
Changes
5
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
38 deletions
+79
-38
TemplateManage.jsx
...ormCenter/messageManage/templateManage/TemplateManage.jsx
+31
-2
TemplateManage.less
...rmCenter/messageManage/templateManage/TemplateManage.less
+16
-4
AddModal.jsx
...nter/messageManage/templateManage/components/AddModal.jsx
+0
-0
EditModal.jsx
...ter/messageManage/templateManage/components/EditModal.jsx
+0
-0
UserManage.less
src/pages/userCenter/userManage/UserManage.less
+32
-32
No files found.
src/pages/platformCenter/messageManage/templateManage/TemplateManage.jsx
View file @
2bc8f01a
...
...
@@ -8,7 +8,8 @@ import {
Select
,
Popconfirm
,
message
,
Tooltip
Tooltip
,
notification
}
from
'antd'
;
import
{
PlusCircleOutlined
,
EditTwoTone
,
DeleteOutlined
}
from
'@ant-design/icons'
;
...
...
@@ -35,11 +36,12 @@ const TemplateManage = () => {
const
[
currentTemplate
,
setCurrentTempalte
]
=
useState
({});
const
[
data
,
setData
]
=
useState
([])
const
[
flag
,
setFlag
]
=
useState
(
0
)
const
[
option
,
setOption
]
=
useState
([]);
// 下拉列表数据
useEffect
(()
=>
{
getTemplateList
()
selectFocus
()
},
[
flag
])
const
getTemplateList
=
(
obj
)
=>
{
...
...
@@ -65,6 +67,30 @@ const TemplateManage = () => {
}
)
}
const
selectFocus
=
(
obj
)
=>
{
setOption
([]);
GetThirdpartyTemplates
(
obj
).
then
(
res
=>
{
if
(
res
.
msg
===
"Ok"
)
{
console
.
log
(
res
.
data
);
setOption
(
res
.
data
);
console
.
log
(
2
)
}
else
{
console
.
log
(
1
);
notification
.
error
({
message
:
'提示'
,
duration
:
15
,
description
:
res
.
message
,
});
setOption
([]);
}
})
.
catch
(
err
=>
{
console
.
log
(
3
)
console
.
error
(
err
);
});
};
const
columns
=
[
{
title
:
'编号'
,
...
...
@@ -291,12 +317,15 @@ const TemplateManage = () => {
visible=
{
visibleParams
.
editVisible
}
template=
{
currentTemplate
}
onCancel=
{
()
=>
handleShowModal
(
'editVisible'
,
false
)
}
option=
{
option
}
confirmModal=
{
editModal
}
onSubmit=
{
onSubmit
}
/>
<
AddModal
visible=
{
visibleParams
.
addVisible
}
template=
{
currentTemplate
}
onCancel=
{
()
=>
handleShowModal
(
'addVisible'
,
false
)
}
option=
{
option
}
confirmModal=
{
addModal
}
onSubmit=
{
onAddSubmit
}
/>
...
...
src/pages/platformCenter/messageManage/templateManage/TemplateManage.less
View file @
2bc8f01a
.template_container{
width: 100%;
height: calc(100vh - 124px);
height: calc(100vh - 124px);
.operate_bar{
width: 100%;
height: 60px;
...
...
@@ -35,6 +34,16 @@
}
}
}
.ant-modal-body ant-form{
width: 100%;
}
.ant-popover-message {
margin-bottom: 10px !important;
}
.anticon svg {
margin-top: -5px;
}
.list_view{
width: 100%;
height: calc(100vh - 184px);
...
...
@@ -49,4 +58,8 @@
.ant-col ant-form-item-control{
margin-top: 0;
}
}
\ No newline at end of file
.ant-table-body{
max-height: 610px !important;
}
}
src/pages/platformCenter/messageManage/templateManage/components/AddModal.jsx
View file @
2bc8f01a
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/messageManage/templateManage/components/EditModal.jsx
View file @
2bc8f01a
This diff is collapsed.
Click to expand it.
src/pages/userCenter/userManage/UserManage.less
View file @
2bc8f01a
...
...
@@ -81,6 +81,29 @@
border-bottom: 1px solid #ccc;
}
.userManageContainer{
.ant-form-item {
vertical-align: top;
}
.ant-form-item-label > label {
align-items:middle;
}
.ant-modal-body{
padding-bottom:0px;
padding-right:40px;
padding-left:40px;
.ant-form{
width: 90%;
}
}
.anticon svg {
margin-top: -3px;
}
.ant-popover-message {
position: relative;
padding: 0px 0 0px;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
}
.ant-tree-treenode{
width: 100% !important;
.ant-tree-node-content-wrapper{
...
...
@@ -102,6 +125,9 @@
display: inline-block;
}
}
.ant-radio-group {
margin: 0px !important;
}
.contentContainer{
display: flex;
width: 100%;
...
...
@@ -146,6 +172,9 @@
top: 0;
width: 26px;
}
.ant-popover-message-title {
padding-left: 20px;
}
.userContainer{
height: calc(100vh - 74px) !important;
z-index: 999;
...
...
@@ -223,14 +252,7 @@
height: 50vh;
}
}
.ant-modal-body{
padding-bottom:0px;
padding-right:40px;
padding-left:40px;
.ant-form{
width: 90%;
}
}
.ant-modal-content{
border-radius: 5px;
}
...
...
@@ -287,27 +309,8 @@
.ant-popover-inner-content {
padding: 10px 10px;
}
.ant-popover-message {
position: relative;
padding: 0px 0 0px;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
}
.ant-popover-message {
padding: 0px 0 0px;
}
.ant-popover-message-title {
padding-left: 20px;
}
.ant-form-item {
vertical-align: top;
}
.ant-form-item-label > label {
align-items:middle;
}
.ant-radio-group {
margin: 8px;
}
.ant-popover-message > .anticon {
top: 7.0005px
}
...
...
@@ -316,7 +319,4 @@
// height: calc(100vh - 150px);
// }
.anticon svg {
margin-top: -3px;
}
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