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
0b6ee248
Commit
0b6ee248
authored
Jul 29, 2021
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新运维服务监控功能界面升级
parent
50f1962a
Pipeline
#32216
skipped with stages
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
98 additions
and
59 deletions
+98
-59
AppDic.js
src/pages/dataCenter/dictionary1/AppDic.js
+22
-22
index.js
src/pages/log/serviceLog/index.js
+43
-30
index.less
src/pages/log/serviceLog/index.less
+25
-2
ProjectManage.jsx
...tformCenter/messageManage/projectManage/ProjectManage.jsx
+1
-1
ProjectManage.less
...formCenter/messageManage/projectManage/ProjectManage.less
+3
-1
TemplateManage.jsx
...ormCenter/messageManage/templateManage/TemplateManage.jsx
+1
-0
AddModal.jsx
...nter/messageManage/templateManage/components/AddModal.jsx
+2
-2
UserManage.js
src/pages/userCenter/userManage/UserManage.js
+1
-1
No files found.
src/pages/dataCenter/dictionary1/AppDic.js
View file @
0b6ee248
...
@@ -12,7 +12,7 @@ import {
...
@@ -12,7 +12,7 @@ import {
notification
,
notification
,
message
,
message
,
}
from
'antd'
;
}
from
'antd'
;
import
{
get
,
CITY_SERVICE
,
PUBLISH_SERVICE
}
from
'@/services'
;
import
{
get
,
CITY_SERVICE
,
PUBLISH_SERVICE
}
from
'@/services'
;
import
{
GetKeyValue
,
EditKeyValue
,
DeleteKeyValue
,
AddKeyValue
}
from
'@/services/dataCenter/api'
import
{
GetKeyValue
,
EditKeyValue
,
DeleteKeyValue
,
AddKeyValue
}
from
'@/services/dataCenter/api'
import
{
EditTwoTone
,
DeleteOutlined
,
PlusSquareOutlined
,
SyncOutlined
}
from
'@ant-design/icons'
;
import
{
EditTwoTone
,
DeleteOutlined
,
PlusSquareOutlined
,
SyncOutlined
}
from
'@ant-design/icons'
;
import
styles
from
'./AppDic.less'
;
import
styles
from
'./AppDic.less'
;
...
@@ -215,7 +215,7 @@ const AppDic = () => {
...
@@ -215,7 +215,7 @@ const AppDic = () => {
get
(
`
${
PUBLISH_SERVICE
}
/DataManger/ResetKeyValue`
,
{
get
(
`
${
PUBLISH_SERVICE
}
/DataManger/ResetKeyValue`
,
{
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
getData
();
getData
();
notification
.
success
({
notification
.
success
({
message
:
'重置成功'
,
message
:
'重置成功'
,
...
@@ -317,7 +317,7 @@ const AppDic = () => {
...
@@ -317,7 +317,7 @@ const AppDic = () => {
// .catch(err => {
// .catch(err => {
// message.error(err);
// message.error(err);
// });
// });
console
.
log
(
select
)
DeleteKeyValue
({
DeleteKeyValue
({
key
:
select
.
Key
,
key
:
select
.
Key
,
}).
then
(
}).
then
(
...
@@ -337,6 +337,13 @@ const AppDic = () => {
...
@@ -337,6 +337,13 @@ const AppDic = () => {
)
)
};
};
const
pagination
=
{
showTotal
:
(
total
,
range
)
=>
`第
${
range
[
0
]}
-
${
range
[
1
]}
条/共
${
total
}
条`
,
pageSizeOptions
:
[
10
,
20
,
50
,
100
],
defaultPageSize
:
20
,
showQuickJumper
:
true
,
showSizeChanger
:
true
,
}
return
(
return
(
<
div
className
=
{
styles
.
AppDic
}
>
<
div
className
=
{
styles
.
AppDic
}
>
<
Spin
spinning
=
{
loading
}
tip
=
"loading..."
>
<
Spin
spinning
=
{
loading
}
tip
=
"loading..."
>
...
@@ -359,7 +366,7 @@ const AppDic = () => {
...
@@ -359,7 +366,7 @@ const AppDic = () => {
fontSize
:
'20px'
,
fontSize
:
'20px'
,
verticalAlign
:
'middle'
,
verticalAlign
:
'middle'
,
marginRight
:
'22px'
,
marginRight
:
'22px'
,
float
:
'right'
float
:
'right'
}}
}}
/
>
/
>
<
/Tooltip
>
<
/Tooltip
>
...
@@ -371,16 +378,16 @@ const AppDic = () => {
...
@@ -371,16 +378,16 @@ const AppDic = () => {
onConfirm
=
{
submitReset
}
onConfirm
=
{
submitReset
}
>
>
<
Tooltip
title
=
"还原"
>
<
Tooltip
title
=
"还原"
>
<
SyncOutlined
<
SyncOutlined
style
=
{{
style
=
{{
color
:
'#1890FF'
,
color
:
'#1890FF'
,
fontSize
:
'20px'
,
fontSize
:
'20px'
,
verticalAlign
:
'middle'
,
verticalAlign
:
'middle'
,
marginRight
:
'30px'
,
marginRight
:
'30px'
,
float
:
'right'
float
:
'right'
}}
}}
/
>
/
>
<
/Tooltip
>
<
/Tooltip
>
<
/Popconfirm
>
<
/Popconfirm
>
<
/div
>
<
/div
>
<
Table
<
Table
...
@@ -389,14 +396,7 @@ const AppDic = () => {
...
@@ -389,14 +396,7 @@ const AppDic = () => {
columns
=
{
columns
}
columns
=
{
columns
}
dataSource
=
{
data
}
dataSource
=
{
data
}
scroll
=
{{
x
:
'max-content'
}}
scroll
=
{{
x
:
'max-content'
}}
pagination
=
{{
pagination
=
{
pagination
}
showTotal
:
(
total
,
range
)
=>
`第
${
range
[
0
]}
-
${
range
[
1
]}
条/共
${
total
}
条`
,
pageSizeOptions
:
[
10
,
20
,
50
,
100
],
defaultPageSize
:
20
,
showQuickJumper
:
true
,
showSizeChanger
:
true
,
}}
/
>
/
>
<
/Spin
>
<
/Spin
>
...
...
src/pages/log/serviceLog/index.js
View file @
0b6ee248
...
@@ -11,7 +11,7 @@ import {
...
@@ -11,7 +11,7 @@ import {
message
,
message
,
Spin
,
Spin
,
}
from
'antd'
;
}
from
'antd'
;
import
{
SwapRightOutlined
}
from
'@ant-design/icons'
;
import
{
SwapRightOutlined
,
SyncOutlined
}
from
'@ant-design/icons'
;
import
{
Chart
,
Interval
,
Line
,
Tooltip
,
Axis
}
from
'bizcharts'
;
import
{
Chart
,
Interval
,
Line
,
Tooltip
,
Axis
}
from
'bizcharts'
;
// import { DataSet } from '@antv/data-set';
// import { DataSet } from '@antv/data-set';
import
moment
from
'moment'
;
import
moment
from
'moment'
;
...
@@ -21,6 +21,7 @@ const { Option } = Select;
...
@@ -21,6 +21,7 @@ const { Option } = Select;
const
{
Search
}
=
Input
;
const
{
Search
}
=
Input
;
const
ServiceLog
=
()
=>
{
const
ServiceLog
=
()
=>
{
const
[
flag
,
setFlag
]
=
useState
(
0
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
// 源数据
const
[
loading
,
setLoading
]
=
useState
(
false
);
// 源数据
const
[
dataTable
,
setDataTable
]
=
useState
([]);
// 源数据
const
[
dataTable
,
setDataTable
]
=
useState
([]);
// 源数据
const
[
visitedCount
,
setVisitedCount
]
=
useState
([]);
// 访问量,统计数据
const
[
visitedCount
,
setVisitedCount
]
=
useState
([]);
// 访问量,统计数据
...
@@ -31,7 +32,7 @@ const ServiceLog = () => {
...
@@ -31,7 +32,7 @@ const ServiceLog = () => {
const
[
endTime
,
setEndTime
]
=
useState
(
const
[
endTime
,
setEndTime
]
=
useState
(
moment
(
new
Date
(),
'YYYY-MM-DD HH:mm:ss'
),
// 默认值,当前时间
moment
(
new
Date
(),
'YYYY-MM-DD HH:mm:ss'
),
// 默认值,当前时间
);
);
const
[
logType
,
setLogType
]
=
useState
(
0
);
// 请求参数,日志类型,默认是正常,0:成功 -1:异常 9999:全部
const
[
logType
,
setLogType
]
=
useState
(
'9999'
);
// 请求参数,日志类型,默认是正常,0:成功 -1:异常 9999:全部
const
[
searchWord
,
setSearchWord
]
=
useState
(
''
);
// 关键字
const
[
searchWord
,
setSearchWord
]
=
useState
(
''
);
// 关键字
// 计算时间间隔(分钟)
// 计算时间间隔(分钟)
...
@@ -116,7 +117,6 @@ const ServiceLog = () => {
...
@@ -116,7 +117,6 @@ const ServiceLog = () => {
title
:
'耗时/ms'
,
title
:
'耗时/ms'
,
dataIndex
:
'ConsumerTime'
,
dataIndex
:
'ConsumerTime'
,
key
:
'ConsumerTime'
,
key
:
'ConsumerTime'
,
fixed
:
'right'
,
width
:
100
,
width
:
100
,
defaultSortOrder
:
'descend'
,
defaultSortOrder
:
'descend'
,
sortDirections
:
[
'descend'
,
'ascend'
],
sortDirections
:
[
'descend'
,
'ascend'
],
...
@@ -126,7 +126,6 @@ const ServiceLog = () => {
...
@@ -126,7 +126,6 @@ const ServiceLog = () => {
title
:
'返回体大小/byte'
,
title
:
'返回体大小/byte'
,
dataIndex
:
'ResponseSize'
,
dataIndex
:
'ResponseSize'
,
key
:
'ResponseSize'
,
key
:
'ResponseSize'
,
fixed
:
'right'
,
width
:
140
,
width
:
140
,
sortDirections
:
[
'descend'
,
'ascend'
],
sortDirections
:
[
'descend'
,
'ascend'
],
sorter
:
(
a
,
b
)
=>
a
.
ResponseSize
-
b
.
ResponseSize
,
sorter
:
(
a
,
b
)
=>
a
.
ResponseSize
-
b
.
ResponseSize
,
...
@@ -143,7 +142,7 @@ const ServiceLog = () => {
...
@@ -143,7 +142,7 @@ const ServiceLog = () => {
)
{
)
{
countInterval
();
// 根据起止时间计算时间间隔
countInterval
();
// 根据起止时间计算时间间隔
}
}
},
[
startTime
,
endTime
]);
},
[
startTime
,
endTime
,
flag
]);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
if
(
startTime
&&
startTime
&&
...
@@ -155,7 +154,7 @@ const ServiceLog = () => {
...
@@ -155,7 +154,7 @@ const ServiceLog = () => {
setLoading
(
true
);
setLoading
(
true
);
getData
(
'/TrafficStatistics'
,
setVisitedCount
);
// 访问量统计
getData
(
'/TrafficStatistics'
,
setVisitedCount
);
// 访问量统计
}
}
},
[
startTime
,
endTime
,
logType
,
timeInterval
]);
},
[
startTime
,
endTime
,
logType
,
timeInterval
,
flag
]);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
if
(
startTime
&&
startTime
&&
...
@@ -169,7 +168,7 @@ const ServiceLog = () => {
...
@@ -169,7 +168,7 @@ const ServiceLog = () => {
getData
(
'/TopConsumeList'
,
setReponseTime
);
// 接口平均耗时统计
getData
(
'/TopConsumeList'
,
setReponseTime
);
// 接口平均耗时统计
getData
(
'/GetOMSLog'
,
setDataTable
);
// 接口调用记录
getData
(
'/GetOMSLog'
,
setDataTable
);
// 接口调用记录
}
}
},
[
startTime
,
endTime
,
logType
]);
},
[
startTime
,
endTime
,
logType
,
flag
]);
// 封装接口请求,参数url/设置方法set
// 封装接口请求,参数url/设置方法set
const
getData
=
(
url
,
set
)
=>
{
const
getData
=
(
url
,
set
)
=>
{
...
@@ -248,7 +247,13 @@ const ServiceLog = () => {
...
@@ -248,7 +247,13 @@ const ServiceLog = () => {
setSearchWord
(
e
.
target
.
value
);
setSearchWord
(
e
.
target
.
value
);
// console.log(e.target.value);
// console.log(e.target.value);
};
};
const
handleReset
=
()
=>
{
setLogType
(
'9999'
);
setTimeInterval
(
'3'
);
setStartTime
(
moment
().
startOf
(
'day'
));
setEndTime
(
moment
(
new
Date
(),
'YYYY-MM-DD HH:mm:ss'
));
setSearchWord
(
''
);
}
return
(
return
(
<>
<>
<
div
className
=
{
styles
.
serviceLog
}
>
<
div
className
=
{
styles
.
serviceLog
}
>
...
@@ -279,14 +284,25 @@ const ServiceLog = () => {
...
@@ -279,14 +284,25 @@ const ServiceLog = () => {
<
Button
onClick
=
{()
=>
setTime
(
24
*
60
,
'3'
)}
>
近
1
天
<
/Button
>
<
Button
onClick
=
{()
=>
setTime
(
24
*
60
,
'3'
)}
>
近
1
天
<
/Button
>
<
Button
onClick
=
{()
=>
setTime
(
24
*
7
*
60
,
'4'
)}
>
近
1
周
<
/Button
>
<
Button
onClick
=
{()
=>
setTime
(
24
*
7
*
60
,
'4'
)}
>
近
1
周
<
/Button
>
<
span
style
=
{{
marginLeft
:
'20px'
}}
>
返回状态:
<
/span
>
<
span
style
=
{{
marginLeft
:
'20px'
}}
>
返回状态:
<
/span
>
<
Select
defaultValue
=
"正常"
onChange
=
{
changeStatus
}
>
<
Select
defaultValue
=
'全部'
value
=
{
logType
}
onChange
=
{
changeStatus
}
>
<
Option
value
=
"9999"
>
全部
<
/Option
>
<
Option
value
=
"9999"
>
全部
<
/Option
>
<
Option
value
=
"0"
>
正常
<
/Option
>
<
Option
value
=
"0"
>
正常
<
/Option
>
<
Option
value
=
"-1"
>
异常
<
/Option
>
<
Option
value
=
"-1"
>
异常
<
/Option
>
<
/Select
>
<
/Select
>
<
span
style
=
{{
paddingLeft
:
'20px'
}}
>
间隔:
<
/span
>
<
Select
defaultValue
=
"每小时"
value
=
{
timeInterval
}
onChange
=
{
selectChange
}
>
<
Option
value
=
"1"
>
每分钟
<
/Option
>
<
Option
value
=
"2"
>
每
5
分钟
<
/Option
>
<
Option
value
=
"3"
>
每小时
<
/Option
>
<
Option
value
=
"4"
>
每天
<
/Option
>
<
/Select
>
<
Search
<
Search
allowClear
allowClear
style
=
{{
width
:
2
0
0
,
marginLeft
:
'20px'
}}
style
=
{{
width
:
2
5
0
,
marginLeft
:
'20px'
}}
placeholder
=
"请输入接口名称"
placeholder
=
"请输入接口名称"
onSearch
=
{()
=>
{
onSearch
=
{()
=>
{
getData
(
'/GetOMSLog'
,
setDataTable
);
getData
(
'/GetOMSLog'
,
setDataTable
);
...
@@ -295,23 +311,21 @@ const ServiceLog = () => {
...
@@ -295,23 +311,21 @@ const ServiceLog = () => {
enterButton
enterButton
value
=
{
searchWord
}
value
=
{
searchWord
}
/
>
/
>
<
Button
icon
=
{
<
SyncOutlined
className
=
{
styles
.
icon
}
/>} onClick={handleReset} style={{ marginLeft: '25px', verticalAlign:'middle', marginTop:'-3px' }}
>
重置
<
/Button
>
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
<
Spin
spinning
=
{
loading
}
tip
=
"loading"
>
<
Spin
spinning
=
{
loading
}
tip
=
"loading"
>
<
Row
style
=
{{
background
:
'white'
}}
>
<
Row
style
=
{{
background
:
'white'
}}
>
<
Col
offset
=
{
6
}
style
=
{{
paddingTop
:
'8px'
}}
>
<
Col
span
=
{
8
}
style
=
{{
paddingTop
:
'8px'
,
paddingLeft
:
'5px'
}}
>
<
span
>
间隔:
<
/span
>
<
span
style
=
{{
fontSize
:
'14px'
,
fontWeight
:
'600'
}}
>
访问量统计
<
/span
>
<
Select
<
/Col
>
defaultValue
=
"每小时"
<
Col
span
=
{
7
}
offset
=
{
1
}
style
=
{{
paddingTop
:
'8px'
}}
>
value
=
{
timeInterval
}
<
span
style
=
{{
fontSize
:
'14px'
,
fontWeight
:
'600'
}}
>
接口调用频次统计
<
/span
>
size
=
"small"
<
/Col
>
onChange
=
{
selectChange
}
<
Col
span
=
{
7
}
offset
=
{
1
}
style
=
{{
paddingTop
:
'8px'
}}
>
>
<
span
style
=
{{
fontSize
:
'14px'
,
fontWeight
:
'600'
}}
>
接口平均耗时统计
<
/span
>
<
Option
value
=
"1"
>
每分钟
<
/Option
>
<
Option
value
=
"2"
>
每
5
分钟
<
/Option
>
<
Option
value
=
"3"
>
每小时
<
/Option
>
<
Option
value
=
"4"
>
每天
<
/Option
>
<
/Select
>
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
<
Row
className
=
{
styles
.
chart
}
>
<
Row
className
=
{
styles
.
chart
}
>
...
@@ -325,10 +339,10 @@ const ServiceLog = () => {
...
@@ -325,10 +339,10 @@ const ServiceLog = () => {
renderer
=
"svg"
renderer
=
"svg"
scale
=
{{
scale
=
{{
Count
:
{
alias
:
'计数'
},
Count
:
{
alias
:
'计数'
},
StartTime
:
{
alias
:
'访问
量统计'
},
StartTime
:
{
alias
:
'访问
开始时间'
}
}}
}}
>
>
<
Axis
name
=
"StartTime"
label
=
""
title
=
{{
offset
:
20
}}
/
>
<
Axis
name
=
"StartTime"
label
=
""
title
=
{{
offset
:
20
}}
className
=
{
styles
.
fontColor
}
/
>
<
Axis
name
=
"Count"
title
/>
<
Axis
name
=
"Count"
title
/>
<
Line
shape
=
"smooth"
position
=
"StartTime*Count"
/>
<
Line
shape
=
"smooth"
position
=
"StartTime*Count"
/>
<
Tooltip
shared
lock
/>
<
Tooltip
shared
lock
/>
...
@@ -344,10 +358,10 @@ const ServiceLog = () => {
...
@@ -344,10 +358,10 @@ const ServiceLog = () => {
renderer
=
"svg"
renderer
=
"svg"
scale
=
{{
scale
=
{{
Count
:
{
alias
:
'计数'
},
Count
:
{
alias
:
'计数'
},
Path
:
{
alias
:
'接口调用频次
统计
'
},
Path
:
{
alias
:
'接口调用频次'
},
}}
}}
>
>
<
Axis
name
=
"Path"
label
=
""
title
=
{{
offset
:
20
}}
/
>
<
Axis
name
=
"Path"
label
=
""
title
=
{{
offset
:
20
}}
className
=
{
styles
.
fontColor
}
/
>
<
Axis
name
=
"Count"
title
/>
<
Axis
name
=
"Count"
title
/>
<
Interval
position
=
"Path*Count"
/>
<
Interval
position
=
"Path*Count"
/>
<
Tooltip
shared
lock
/>
<
Tooltip
shared
lock
/>
...
@@ -363,7 +377,7 @@ const ServiceLog = () => {
...
@@ -363,7 +377,7 @@ const ServiceLog = () => {
renderer
=
"svg"
renderer
=
"svg"
scale
=
{{
scale
=
{{
AvgTime
:
{
alias
:
'响应时长/ms'
},
AvgTime
:
{
alias
:
'响应时长/ms'
},
Path
:
{
alias
:
'接口平均
耗时统计
'
},
Path
:
{
alias
:
'接口平均
响应时长
'
},
}}
}}
>
>
<
Axis
name
=
"Path"
label
=
""
title
=
{{
offset
:
20
}}
/
>
<
Axis
name
=
"Path"
label
=
""
title
=
{{
offset
:
20
}}
/
>
...
@@ -379,8 +393,7 @@ const ServiceLog = () => {
...
@@ -379,8 +393,7 @@ const ServiceLog = () => {
bordered
bordered
columns
=
{
columns
}
columns
=
{
columns
}
dataSource
=
{
dataTable
}
dataSource
=
{
dataTable
}
// scroll={{ x: 'max-content'}}
scroll
=
{{
x
:
'max-content'
,
y
:
'calc(100vh - 580px)'
}}
scroll
=
{{
x
:
'max-content'
,
y
:
'calc(100vh - 562px)'
}}
pagination
=
{{
pagination
=
{{
showTotal
:
(
total
,
range
)
=>
showTotal
:
(
total
,
range
)
=>
`第
${
range
[
0
]}
-
${
range
[
1
]}
条/共
${
total
}
条`
,
`第
${
range
[
0
]}
-
${
range
[
1
]}
条/共
${
total
}
条`
,
...
...
src/pages/log/serviceLog/index.less
View file @
0b6ee248
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
.chart{
.chart{
padding: 10px;
padding: 10px;
background: white;
background: white;
font-size:20px;
}
}
.table{
.table{
border-top: 1px solid #f0eded;
border-top: 1px solid #f0eded;
...
@@ -15,9 +16,10 @@
...
@@ -15,9 +16,10 @@
.ant-table-thead tr th{
.ant-table-thead tr th{
font-weight: 600;
font-weight: 600;
color:rgba(0,0,0,0.85);
color:rgba(0,0,0,0.85);
background-color:#F6F9FE;
}
}
.ant-table-body{
.ant-table-body{
height:calc(100vh - 5
62
px);
height:calc(100vh - 5
80
px);
border-right: white;
border-right: white;
overflow: auto !important;
overflow: auto !important;
}
}
...
@@ -32,5 +34,25 @@
...
@@ -32,5 +34,25 @@
padding:8px;
padding:8px;
padding-right: 20px;
padding-right: 20px;
}
}
}
.ant-table-cell ant-table-cell-fix-left ant-table-cell-fix-left-last{
border-right: 1px solid #DBE7FB !important;
}
.ant-table.ant-table-small {
width: 99%;
margin: 10px auto;
}
.ant-table-cell ant-table-cell-fix-left ant-table-cell-fix-left-last{
border: 1px solid #DBE7FB;
}
}
.ant-spin-container {
background-color: white;
}
.fontColor{
font-weight: 600;
}
.icon{
margin-top: -5px !important;
vertical-align: text-bottom;
}
}
}
\ No newline at end of file
src/pages/platformCenter/messageManage/projectManage/ProjectManage.jsx
View file @
0b6ee248
...
@@ -294,7 +294,7 @@ const ProjectManage = () => {
...
@@ -294,7 +294,7 @@ const ProjectManage = () => {
</
div
>
</
div
>
<
Button
type=
"primary"
onClick=
{
handleReset
}
>
重置
</
Button
>
<
Button
type=
"primary"
onClick=
{
handleReset
}
>
重置
</
Button
>
<
Button
type=
"primary"
style=
{
{
marginLeft
:
"10px"
}
}
icon=
{
<
PlusCircleOutlined
/>
}
onClick=
{
onAddClick
}
>
新增
</
Button
>
<
Button
type=
"primary"
style=
{
{
marginLeft
:
"10px"
}
}
icon=
{
<
PlusCircleOutlined
/>
}
onClick=
{
onAddClick
}
>
<
span
style=
{
{
marginTop
:
"-3px"
}
}
>
新增
</
span
>
</
Button
>
</
div
>
</
div
>
<
div
className=
{
styles
.
list_view
}
>
<
div
className=
{
styles
.
list_view
}
>
...
...
src/pages/platformCenter/messageManage/projectManage/ProjectManage.less
View file @
0b6ee248
...
@@ -24,7 +24,9 @@
...
@@ -24,7 +24,9 @@
margin-right: 10px;
margin-right: 10px;
}
}
}
}
.anticon svg {
margin-top: -5px;
}
.fast_search {
.fast_search {
height: 60px;
height: 60px;
margin-right: 10px;
margin-right: 10px;
...
...
src/pages/platformCenter/messageManage/templateManage/TemplateManage.jsx
View file @
0b6ee248
...
@@ -251,6 +251,7 @@ const TemplateManage = () => {
...
@@ -251,6 +251,7 @@ const TemplateManage = () => {
handleShowModal
(
"editVisible"
,
false
)
handleShowModal
(
"editVisible"
,
false
)
}
}
const
onAddSubmit
=
(
result
)
=>
{
const
onAddSubmit
=
(
result
)
=>
{
console
.
log
(
result
)
console
.
log
(
result
)
InsertMessageTemplate
({
InsertMessageTemplate
({
Type
:
result
.
type
,
Type
:
result
.
type
,
...
...
src/pages/platformCenter/messageManage/templateManage/components/AddModal.jsx
View file @
0b6ee248
...
@@ -11,13 +11,13 @@ const AddModal = props => {
...
@@ -11,13 +11,13 @@ const AddModal = props => {
const
[
form
]
=
Form
.
useForm
();
const
[
form
]
=
Form
.
useForm
();
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
onSubmit
=
()
=>
{
const
onSubmit
=
()
=>
{
form
.
submit
()
form
.
submit
()
}
}
const
onSubmitSuccess
=
()
=>
{
const
onSubmitSuccess
=
()
=>
{
const
result
=
form
.
getFieldValue
()
const
result
=
form
.
getFieldValue
()
props
.
onSubmit
&
props
.
onSubmit
({
Id
:
props
.
template
.
Id
,
...
result
})
props
.
onSubmit
&
props
.
onSubmit
({
Id
:
props
.
template
.
Id
,
...
result
})
}
}
const
layout
=
{
const
layout
=
{
layout
:
'horizontal'
,
layout
:
'horizontal'
,
...
...
src/pages/userCenter/userManage/UserManage.js
View file @
0b6ee248
...
@@ -87,7 +87,7 @@ const UserManage = () => {
...
@@ -87,7 +87,7 @@ const UserManage = () => {
const
[
form
]
=
Form
.
useForm
();
const
[
form
]
=
Form
.
useForm
();
const
{
Item
}
=
Form
;
const
{
Item
}
=
Form
;
const
[
selectValue
,
setSelctValue
]
=
useState
(
0
);
// 用户鉴权
const
[
selectValue
,
setSelctValue
]
=
useState
();
// 用户鉴权
const
[
width
,
setWidth
]
=
useState
(
50
);
const
[
width
,
setWidth
]
=
useState
(
50
);
const
[
treeLoading
,
setTreeLoading
]
=
useState
(
false
);
const
[
treeLoading
,
setTreeLoading
]
=
useState
(
false
);
...
...
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