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
928cf499
Commit
928cf499
authored
Apr 01, 2021
by
mayongxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf:新增IIS助理服务器配置
parent
7948067a
Pipeline
#25430
skipped with stages
Changes
9
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
171 additions
and
82 deletions
+171
-82
ProjectManage.jsx
...tformCenter/messageManage/projectManage/ProjectManage.jsx
+0
-0
EditModal.jsx
...nter/messageManage/projectManage/components/EditModal.jsx
+0
-0
DayOfWeekSelect.jsx
...ojectManage/components/IISAgentConfig/DayOfWeekSelect.jsx
+4
-1
HourOfDaySelect.jsx
...ojectManage/components/IISAgentConfig/HourOfDaySelect.jsx
+14
-5
VisibleIISAgentConfig.jsx
...anage/components/IISAgentConfig/VisibleIISAgentConfig.jsx
+0
-0
VisibleIISAgentConfig.less
...nage/components/IISAgentConfig/VisibleIISAgentConfig.less
+19
-3
VisibleRoleModal.jsx
...projectManage/components/RolseSelect/VisibleRoleModal.jsx
+46
-13
VisibleRoleModal.less
...rojectManage/components/RolseSelect/VisibleRoleModal.less
+80
-55
messagemanage.jsx
src/services/platform/messagemanage.jsx
+8
-5
No files found.
src/pages/platformCenter/messageManage/projectManage/ProjectManage.jsx
View file @
928cf499
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/messageManage/projectManage/components/EditModal.jsx
View file @
928cf499
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/messageManage/projectManage/components/IISAgentConfig/DayOfWeekSelect.jsx
View file @
928cf499
...
...
@@ -8,7 +8,7 @@ const DayOfWeekSelect = props => {
const
[
selectValues
,
setSelectValues
]
=
useState
([])
const
{
onChange
}
=
props
const
{
onChange
,
value
}
=
props
const
hours
=
[
{
name
:
"星期一"
,
value
:
'1'
},
...
...
@@ -45,6 +45,9 @@ const DayOfWeekSelect = props => {
setSelectValues
(
value
)
onChange
&&
onChange
(
values
)
}
useEffect
(()
=>
{
setSelectValues
(
value
)
},[
props
])
return
(
<
div
>
<
Radio
.
Group
onChange=
{
onTypeChange
}
>
...
...
src/pages/platformCenter/messageManage/projectManage/components/IISAgentConfig/HourOfDaySelect.jsx
View file @
928cf499
...
...
@@ -8,7 +8,7 @@ const HourOfDaySelect = props => {
const
[
selectValues
,
setSelectValues
]
=
useState
([])
const
{
onChange
}
=
props
const
{
onChange
,
value
}
=
props
const
hours
=
[
{
name
:
"0:00"
,
value
:
'0'
},
...
...
@@ -40,19 +40,28 @@ const HourOfDaySelect = props => {
let
values
=
[]
switch
(
e
.
target
.
value
)
{
case
0
:
values
=
[
"0"
,
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"7"
,
"8"
,
"9"
,
"10"
,
"11"
,
"12"
,
"13"
,
"14"
,
"15"
,
"16"
,
"17"
,
"18"
,
"19"
,
"20"
,
"21"
,
"22"
,
"23"
,]
values
=
[
"0"
,
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"7"
,
"8"
,
"9"
,
"10"
,
"11"
,
"12"
,
"13"
,
"14"
,
"15"
,
"16"
,
"17"
,
"18"
,
"19"
,
"20"
,
"21"
,
"22"
,
"23"
]
break
case
1
:
values
=
[]
break
case
2
:
values
=
[
"6"
,
"8"
]
values
=
[
"6"
,
"8"
]
break
case
3
:
values
=
[
"0"
,
"8"
,
"16"
]
break
case
4
:
values
=
[
"0"
,
"6"
,
"12"
,
"18"
]
values
=
[
"0"
,
"6"
,
"12"
,
"18"
]
break
}
onChange
&&
onChange
(
value
)
onChange
&&
onChange
(
values
)
setSelectValues
(
values
)
}
useEffect
(()
=>
{
setSelectValues
(
value
)
},[
props
])
const
onCheckChange
=
(
value
)
=>
{
setSelectValues
(
value
)
...
...
src/pages/platformCenter/messageManage/projectManage/components/IISAgentConfig/VisibleIISAgentConfig.jsx
View file @
928cf499
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/messageManage/projectManage/components/IISAgentConfig/VisibleIISAgentConfig.less
View file @
928cf499
.IISAgent_container{
.agent_container {
display: flex;
flex-direction: row;
.select_btn {
display: inline-block;
color: #2f54eb;
cursor: pointer;
border-bottom: 1px solid #2f54eb;
width: 80px;
margin-left: 20px;
}
.select_result {}
}
.IISAgent_container {
overflow-y: scroll;
height: 500px;
}
\ No newline at end of file
}
src/pages/platformCenter/messageManage/projectManage/components/RolseSelect/VisibleRoleModal.jsx
View file @
928cf499
import
React
,
{
useEffect
,
useState
}
from
'react'
import
SiteModal
from
'@/components/Modal/SiteModa'
;
import
{
Checkbox
,
Input
,
Button
,
Modal
}
from
'antd'
import
{
data
}
from
'../Mock'
//
import { data } from '../Mock'
import
_
from
'lodash'
;
import
classnames
from
'classnames'
;
import
styles
from
'./VisibleRoleModal.less'
import
{
ManOutlined
}
from
'@ant-design/icons'
;
import
{
RoleGroupList
}
from
'@/services/platform/messagemanage'
const
checkIsGroup
=
node
=>
node
.
children
?.
length
>
0
;
...
...
@@ -18,7 +18,39 @@ const VisibleRoleModal = props => {
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
previewVisible
,
setPreviewVisible
]
=
useState
(
false
)
const
[
selectRole
,
setSelectRole
]
=
useState
([])
const
[
selectRole
,
setSelectRole
]
=
useState
([])
const
[
dataTree
,
setDataTree
]
=
useState
([])
const
GetRoleGroupList
=
()
=>
{
RoleGroupList
().
then
(
res
=>
{
//数据转换
let
tree
=
[]
res
.
data
.
roleList
.
map
((
item
,
index
)
=>
{
tree
.
push
({
name
:
item
.
visibleTitle
,
id
:
index
,
children
:
item
.
roleList
.
map
((
roleItem
)
=>
{
return
(
{
name
:
roleItem
.
roleName
,
id
:
roleItem
.
roleName
,
children
:[]
}
)
})
})
})
setDataTree
(
tree
)
}
)
}
useEffect
(()
=>
{
setSelectRole
(
props
.
value
)
GetRoleGroupList
()
},
[
props
])
const
onSubmit
=
()
=>
{
}
...
...
@@ -32,18 +64,19 @@ const VisibleRoleModal = props => {
const
handleClick
=
()
=>
{
setPreviewVisible
(
true
)
}
const
onChange2
=
(
value
)
=>
{
const
onChange2
=
(
value
)
=>
{
console
.
log
(
value
)
setSelectRole
(
value
.
toString
())
}
return
(
<
div
>
<
div
onClick=
{
handleClick
}
>
选择推送组
</
div
>
<
div
>
{
selectRole
}
</
div
>
<
div
className=
{
styles
.
role_container
}
>
<
Input
disabled=
{
true
}
value=
{
selectRole
}
/>
<
div
className=
{
styles
.
select_btn
}
onClick=
{
handleClick
}
>
推送人员
</
div
>
<
SiteModal
{
...
props
}
title=
"
编辑推送方案
"
title=
"
选择推送人员
"
bodyStyle=
{
{
width
:
'100%'
,
minHeight
:
'100px'
}
}
style=
{
{
top
:
200
,
borderRadius
:
'20px'
}
}
width=
"800px"
...
...
@@ -54,10 +87,10 @@ const VisibleRoleModal = props => {
confirmLoading=
{
loading
}
visible=
{
previewVisible
}
onCancel=
{
handleCancel
}
>
<
div
>
<
ListCard
{
...
props
}
onChange2=
{
onChange2
}
/>
<
div
className=
{
styles
.
list_card
}
>
<
ListCard
{
...
props
}
onChange2=
{
onChange2
}
data=
{
dataTree
}
/>
</
div
>
</
SiteModal
>
</
div
>
...
...
@@ -80,7 +113,7 @@ const checkChildrenByCondition = (
const
ListCard
=
props
=>
{
const
{
onChange
,
onChange2
}
=
props
const
{
onChange
,
onChange2
,
data
}
=
props
const
[
changedItem
,
setChangedItem
]
=
useState
({
item
:
{}
});
const
[
valueList
,
setValueList
]
=
useState
([]);
...
...
@@ -124,7 +157,7 @@ const ListCard = props => {
}
useEffect
(()
=>
{
setValueList
([
'1'
,
'2'
,
'3'
])
},
[])
return
(
<
div
>
...
...
src/pages/platformCenter/messageManage/projectManage/components/RolseSelect/VisibleRoleModal.less
View file @
928cf499
.role_container {
display: flex;
flex-direction: row;
.select_btn {
display: inline-block;
color: #2f54eb;
cursor: pointer;
border-bottom: 1px solid #2f54eb;
width: 80px;
margin-left: 20px;
}
}
.list_card{
overflow-y: scroll;
height: 500px;
}
.divBox {
// display: flex;
width: 100%;
flex-wrap: wrap;
border: 1px solid #c2cdfd;
border-radius: 5px;
margin-top: 20px;
min-height: 50px;
padding: 0 10px 10px 20px;
.ant-checkbox-wrapper{
background-color: #fff;
}
.topCheckbox{
height: 20px;
margin: -10px 0 0 0px;
line-height: 20px;
}
.topCheckbox>label :hover{
font-weight: 600;
}
.checkdiv {
display: flex;
flex-wrap: wrap;
// margin-left: 20px;
// justify-content: space-between;
}
}
.divSingle{
border: none;
margin-top: 20px;
min-width: 180px;
flex-grow: 0;
flex-shrink: 0;
// flex:0 0 auto;
// flex-basis: auto;
margin-right: 10px;
background: transparent;
// display: flex;
width: 100%;
flex-wrap: wrap;
border: 1px solid #c2cdfd;
border-radius: 5px;
margin-top: 20px;
min-height: 50px;
padding: 0 10px 10px 20px;
.ant-checkbox-wrapper {
background-color: #fff;
}
.isSearch{
color: red;
background-color: yellow;
.topCheckbox {
// height: 75px;
margin: -10px 0 0 0px;
line-height: 20px;
}
.boldLabel{
font-size: 15px;
font-weight: bold;
background-color: #fff;
.topCheckbox>label :hover {
font-weight: 600;
}
.btnBox{
position: sticky;
bottom: 0px;
right: 0px;
background-color: #fff;
width: 100%;
height: 80px;
padding: 0 20px;
.checkdiv {
display: flex;
justify-content: flex-end;
align-items: center;
}
\ No newline at end of file
flex-wrap: wrap;
// margin-left: 20px;
// justify-content: space-between;
}
}
.divSingle {
border: none;
margin-top: 20px;
min-width: 180px;
// flex-grow: 0;
// flex-shrink: 0;
// flex:0 0 auto;
// flex-basis: auto;
margin-right: 10px;
background: transparent;
}
.isSearch {
color: red;
background-color: yellow;
}
.boldLabel {
font-size: 15px;
font-weight: bold;
background-color: #fff;
}
.btnBox {
position: sticky;
bottom: 0px;
right: 0px;
background-color: #fff;
width: 100%;
height: 80px;
padding: 0 20px;
display: flex;
justify-content: flex-end;
align-items: center;
}
\ No newline at end of file
src/services/platform/messagemanage.jsx
View file @
928cf499
...
...
@@ -15,9 +15,9 @@ export const GetThirdpartyTemplates = param =>
export
const
GetMessageConfigList
=
param
=>
get
(
`
${
PUBLISH_SERVICE
}
/MessageConfig/GetMessageConfigList`
,
param
);
export
const
InsertMessageConfig
=
param
=>
ge
t
(
`
${
PUBLISH_SERVICE
}
/MessageConfig/InsertMessageConfig`
,
param
);
pos
t
(
`
${
PUBLISH_SERVICE
}
/MessageConfig/InsertMessageConfig`
,
param
);
export
const
UpdateMessageConfig
=
param
=>
ge
t
(
`
${
PUBLISH_SERVICE
}
/MessageConfig/UpdateMessageConfig`
,
param
);
pos
t
(
`
${
PUBLISH_SERVICE
}
/MessageConfig/UpdateMessageConfig`
,
param
);
export
const
DeleteMessageConfig
=
param
=>
get
(
`
${
PUBLISH_SERVICE
}
/MessageConfig/DeleteMessageConfig`
,
param
);
export
const
GetMessageVersion
=
param
=>
...
...
@@ -27,8 +27,12 @@ export const GetMsgTypeList = param =>
export
const
TestPush
=
param
=>
get
(
`
${
PUBLISH_SERVICE
}
/MessageConfig/TestPush`
,
param
);
export
const
AddIISAgentConfig
=
param
=>
ge
t
(
`
${
PUBLISH_SERVICE
}
/MessageConfig/AddIISAgentConfig`
,
param
);
pos
t
(
`
${
PUBLISH_SERVICE
}
/MessageConfig/AddIISAgentConfig`
,
param
);
export
const
DeleteIISAgentConfig
=
param
=>
get
(
`
${
PUBLISH_SERVICE
}
/MessageConfig/DeleteIISAgentConfig`
,
param
);
export
const
GetIISAgentConfig
=
param
=>
get
(
`
${
PUBLISH_SERVICE
}
/MessageConfig/GetIISAgentConfig`
,
param
);
\ No newline at end of file
get
(
`
${
PUBLISH_SERVICE
}
/MessageConfig/GetIISAgentConfig`
,
param
);
//组件接口
export
const
RoleGroupList
=
param
=>
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/RoleGroupList`
,
param
);
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