Commit 928cf499 authored by mayongxin's avatar mayongxin

perf:新增IIS助理服务器配置

parent 7948067a
Pipeline #25430 skipped with stages
......@@ -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}>
......
......@@ -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"]
break
case 3:
values = ["0","8","16"]
break
case 4:
values = ["0","6","12","18"]
break
}
onChange&&onChange(value)
onChange&&onChange(values)
setSelectValues(values)
}
useEffect(()=>{
setSelectValues(value)
},[props])
const onCheckChange = (value)=>{
setSelectValues(value)
......
.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;
}
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"
......@@ -56,8 +89,8 @@ const VisibleRoleModal = props => {
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>
......
.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%;
......@@ -7,45 +24,53 @@
margin-top: 20px;
min-height: 50px;
padding: 0 10px 10px 20px;
.ant-checkbox-wrapper{
.ant-checkbox-wrapper {
background-color: #fff;
}
.topCheckbox{
height: 20px;
.topCheckbox {
// height: 75px;
margin: -10px 0 0 0px;
line-height: 20px;
}
.topCheckbox>label :hover{
.topCheckbox>label :hover {
font-weight: 600;
}
.checkdiv {
display: flex;
flex-wrap: wrap;
// margin-left: 20px;
// justify-content: space-between;
}
}
.divSingle{
}
.divSingle {
border: none;
margin-top: 20px;
min-width: 180px;
flex-grow: 0;
flex-shrink: 0;
// flex-grow: 0;
// flex-shrink: 0;
// flex:0 0 auto;
// flex-basis: auto;
margin-right: 10px;
background: transparent;
}
.isSearch{
}
.isSearch {
color: red;
background-color: yellow;
}
.boldLabel{
}
.boldLabel {
font-size: 15px;
font-weight: bold;
background-color: #fff;
}
.btnBox{
}
.btnBox {
position: sticky;
bottom: 0px;
right: 0px;
......@@ -56,4 +81,4 @@
display: flex;
justify-content: flex-end;
align-items: center;
}
\ No newline at end of file
}
\ No newline at end of file
......@@ -15,9 +15,9 @@ export const GetThirdpartyTemplates = param =>
export const GetMessageConfigList = param =>
get(`${PUBLISH_SERVICE}/MessageConfig/GetMessageConfigList`, param);
export const InsertMessageConfig = param =>
get(`${PUBLISH_SERVICE}/MessageConfig/InsertMessageConfig`, param);
post(`${PUBLISH_SERVICE}/MessageConfig/InsertMessageConfig`, param);
export const UpdateMessageConfig = param =>
get(`${PUBLISH_SERVICE}/MessageConfig/UpdateMessageConfig`, param);
post(`${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 =>
get(`${PUBLISH_SERVICE}/MessageConfig/AddIISAgentConfig`, param);
post(`${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);
//组件接口
export const RoleGroupList = param =>
get(`${PUBLISH_SERVICE}/UserCenter/RoleGroupList`, param);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment