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
c1f93cf8
Commit
c1f93cf8
authored
Apr 02, 2021
by
mayongxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf:新增消息方案管理
parent
928cf499
Pipeline
#25450
passed with stages
in 23 minutes 1 second
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
14 deletions
+34
-14
ProjectManage.jsx
...tformCenter/messageManage/projectManage/ProjectManage.jsx
+21
-6
EditModal.jsx
...nter/messageManage/projectManage/components/EditModal.jsx
+1
-0
VisibleIISAgentConfig.jsx
...anage/components/IISAgentConfig/VisibleIISAgentConfig.jsx
+12
-8
No files found.
src/pages/platformCenter/messageManage/projectManage/ProjectManage.jsx
View file @
c1f93cf8
...
...
@@ -15,7 +15,7 @@ const { Search } = Input;
const
{
Option
}
=
Select
;
import
EditModal
from
'./components/EditModal'
import
VisibleRoleModal
from
'./components/RolseSelect/VisibleRoleModal'
import
{
GetMessageConfigList
,
UpdateMessageConfig
,
InsertMessageConfig
,
DeleteMessageConfig
,
GetMsgTypeList
,
DeleteIISAgentConfig
}
from
'@/services/platform/messagemanage'
import
{
GetMessageConfigList
,
TestPush
,
DeleteMessageConfig
,
GetMsgTypeList
,
DeleteIISAgentConfig
}
from
'@/services/platform/messagemanage'
import
styles
from
'./ProjectManage.less'
const
ProjectManage
=
()
=>
{
...
...
@@ -94,9 +94,9 @@ const ProjectManage = () => {
</
Button
>
{
record
.
typ
e
!=
"通用报警"
&&
record
.
typ
e
!=
"工单提醒"
&&
record
.
typ
e
!=
"系统通知"
record
.
nam
e
!=
"通用报警"
&&
record
.
nam
e
!=
"工单提醒"
&&
record
.
nam
e
!=
"系统通知"
&&
(<
div
onClick=
{
e
=>
e
.
stopPropagation
()
}
>
<
Popconfirm
title=
"是否删除方案?"
...
...
@@ -128,8 +128,23 @@ const ProjectManage = () => {
}
const
TestDesc
=
(
record
)
=>
{
console
.
log
(
record
,
"选中的方案"
)
// setCurrentTempalte(record)
// handleShowModal("editVisible", true)
if
(
record
.
ThemeName
)
TestPush
({
theme
:
record
.
ThemeName
,
msgType
:
record
.
MsgType
,
tousers
:
record
.
PushGroup
,
pushPath
:
record
.
item
.
AgentConfig
.
Url
,
msgTypeId
:
record
.
ID
}).
then
(
res
=>
{
if
(
res
.
code
===
0
){
message
.
success
(
"测试推送成功"
)
}
else
{
message
.
error
(
res
.
msg
)
}
}
)
}
const
DeleteProject
=
(
record
)
=>
{
let
agen
=
record
.
item
.
AgentConfig
...
...
src/pages/platformCenter/messageManage/projectManage/components/EditModal.jsx
View file @
c1f93cf8
...
...
@@ -217,6 +217,7 @@ const EditModal = props => {
}
const
onIISAgentSubmit
=
(
value
)
=>
{
console
.
log
(
value
,
"IIS配置"
)
setIISConfig
(
value
)
}
...
...
src/pages/platformCenter/messageManage/projectManage/components/IISAgentConfig/VisibleIISAgentConfig.jsx
View file @
c1f93cf8
...
...
@@ -74,21 +74,24 @@ const VisibleIISAgentConfig = props => {
CustomHeader
:
fv
.
request_header
,
StartFrom
:
fv
.
start_time
&&
fv
.
start_time
.
format
(
dateFormat
),
EndAt
:
fv
.
end_time
&&
fv
.
end_time
.
format
(
dateFormat
),
MillisecondsTimeout
:
fv
.
time_out
,
MillisecondsTimeout
:
parseInt
(
fv
.
time_out
)
,
LoopMode
:
fv
.
loop_mode
,
LoopUnit
:
fv
.
loop_unit
,
MonthOfYear
:
""
,
WeekOfMonth
:
""
,
DayOfWeek
:
fv
.
day_of_week
,
DayOfMonth
:
""
,
HourOfDay
:
fv
.
hour_of_day
.
toString
(),
MonthOfYear
:
null
,
WeekOfMonth
:
null
,
DayOfWeek
:
fv
.
day_of_week
&&
fv
.
day_of_week
.
toString
()
,
DayOfMonth
:
null
,
HourOfDay
:
fv
.
hour_of_day
&&
fv
.
hour_of_day
.
toString
(),
Interval
:
fv
.
interval
,
UsePostState
:
fv
.
post_state
,
AllowReentrant
:
fv
.
reentrant
,
AllowLog
:
fv
.
enable_log
,
Enabled
:
fv
.
is_enable
,
Timeout
:
fv
.
time_out
,
Absolute
:
true
Timeout
:
parseInt
(
fv
.
time_out
),
Absolute
:
true
,
SiteInfo
:
null
,
Name
:
fv
.
name
,
Tolerate
:
null
}
)
setPreviewVisible
(
false
)
...
...
@@ -171,6 +174,7 @@ const VisibleIISAgentConfig = props => {
destroyOnClose
cancelText=
"取消"
okText=
"确认"
visible=
{
previewVisible
}
onOk=
{
()
=>
handleOk
()
}
confirmLoading=
{
loading
}
visible=
{
previewVisible
}
...
...
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