|
|
@ -81,6 +81,7 @@ const MirroringDetail = (props) => { |
|
|
|
setFilterGroup(filterGrouplist); |
|
|
|
setMirrorId(res.payload.data.id);//id |
|
|
|
setShowHeader(res.payload.data.showHeader); |
|
|
|
setlistOpen(res.payload.data.listOpen||false) |
|
|
|
setHeaderName(res.payload.data.title); |
|
|
|
|
|
|
|
let mytreeDatas= tree(res.payload.data.tree) |
|
|
@ -91,6 +92,8 @@ const MirroringDetail = (props) => { |
|
|
|
}, []); |
|
|
|
const [hasModify, sethasModify] = useState(false)//有没有进行修改 |
|
|
|
const [showHeader, setShowHeader] = useState(false)//是否展示头部 |
|
|
|
const [listOpen, setlistOpen] = useState(false)//是否展开列表 |
|
|
|
|
|
|
|
const [mirrorId, setMirrorId] = useState(null)//id |
|
|
|
const [backVisible, setBackVisible] = useState(false)//返回上一页是否修改过 |
|
|
|
|
|
|
@ -229,7 +232,8 @@ const MirroringDetail = (props) => { |
|
|
|
showHeader: showHeader, |
|
|
|
publish: publish, |
|
|
|
tree: treeData, |
|
|
|
filterGroup: filterGroup |
|
|
|
filterGroup: filterGroup, |
|
|
|
listOpen:listOpen |
|
|
|
} |
|
|
|
dispatch(openness.putMirror(mirrordata)).then((res) => { |
|
|
|
if (res.success) { |
|
|
@ -1091,6 +1095,15 @@ const MirroringDetail = (props) => { |
|
|
|
<div style={{ marginLeft: 20 }}>header</div> |
|
|
|
<div style={{ marginRight: 13 }}><Switch checked={showHeader} onChange={(v, e) => { setShowHeader(v); sethasModify(true) }} size="small" aria-label="是否有头部"></Switch></div> |
|
|
|
</div> |
|
|
|
<div style={{ height: 41, display: 'flex', alignItems: 'center', justifyContent: 'space-between', borderBottom: '1px solid rgba(226,226,226,0.2)', cursor: 'pointer' }}> |
|
|
|
<div style={{ marginLeft: 20 }}>列表默认展开</div> |
|
|
|
<div style={{ marginRight: 13 }}> |
|
|
|
<Switch checked={listOpen} onChange={(v, e) => { |
|
|
|
setlistOpen(v) |
|
|
|
sethasModify(true) |
|
|
|
}} size="small" aria-label=""> |
|
|
|
</Switch></div> |
|
|
|
</div> |
|
|
|
<div style={{ height: 41, display: 'flex', alignItems: 'center', justifyContent: 'space-between', borderBottom: '1px solid rgba(226,226,226,0.2)', cursor: 'pointer' }} onClick={() => { setComingVisible(true) }}> |
|
|
|
<div style={{ marginLeft: 20 }}>自定义样式</div> |
|
|
|
<div style={{ marginRight: 13, width: 9, height: 5, display: 'flex', alignItems: 'center', }}> |
|
|
@ -1271,7 +1284,7 @@ const MirroringDetail = (props) => { |
|
|
|
} |
|
|
|
</div> |
|
|
|
<div style={{ flex: 1 }}> |
|
|
|
<VideoScreen treeData={treeData} headerName={headerName} showHeader={showHeader} filterGroup={filterGroup} template={template} videoPlay={videoPlay} /> |
|
|
|
<VideoScreen treeData={treeData} headerName={headerName} listOpen={listOpen} showHeader={showHeader} filterGroup={filterGroup} template={template} videoPlay={videoPlay} /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<Modal |
|
|
|