Commit 911646dd authored by 皮倩雯's avatar 皮倩雯

视频管理模块

parent ad97f550
Pipeline #34702 passed with stages
in 22 minutes 9 seconds
......@@ -43,6 +43,7 @@ const OmsLog = () => {
title: '接口名称',
dataIndex: 'Function',
key: 'Function',
ellipsis: 'true',
width: 200,
// filters: functionNameFilters,
// onFilter: (value, record) => record.functionName === value,
......@@ -51,13 +52,14 @@ const OmsLog = () => {
title: '标签',
dataIndex: 'Label',
key: 'Label',
ellipsis: 'true',
width: 300,
},
{
title: '操作信息',
dataIndex: 'ShortInfo',
key: 'ShortInfo',
width: 900,
width: 850,
ellipsis: 'true',
render: record => (
<Tooltip placement="left" title={decodeURI(record)}>
......
......@@ -586,7 +586,6 @@ const AddModal = props => {
destroyOnClose
okText="确认"
cancelText="取消"
maskClosable={false}
{...props}
onOk={() => onSubmit()}
// confirmLoading={loading}
......
This diff is collapsed.
This diff is collapsed.
import React, { useEffect, useState } from 'react';
import { Form, Modal, Row, Col, Input, Select, notification } from 'antd';
const VideoModal = props => {
const { callBackSubmit = () => { }, visible, onCancel, obj } = props;
// useEffect(()=>{
// getData()
// },[visible])
// const getData =()=>{
// var url = `http://127.0.0.1:8085/web4/video/indexAll.html?ID=${obj.EquipmentCode}&skipCheck=true&name=${obj.Name}&disk=${obj.RecorderName}&site=null`
// let bodyHtml = `<iframe style= {{ border: 0, width: "100%", height: 630,}} src="${url}"/>`;
// let y=document.getElementsByClassName("pp")
// console.log(y)
// let x=document.getElementsByClassName("pp").innerHTML=bodyHtml
// console.log(x)
// // var url = `http://127.0.0.1:8085/web4/video/indexAll.html?ID=${obj.EquipmentCode}&skipCheck=true&name=${obj.Name}&disk=${obj.RecorderName}&site=null`
// // var x = document.getElementsByClassName("pp")
// // var iframe = document.createElement('iframe');
// // console.log(url)
// // iframe.src=url
// // x.appendChild(iframe);
// }
return (
<Modal
visible={visible}
title={obj.Name}
onCancel={onCancel}
destroyOnClose
width="1000px"
maskClosable={false}
footer={[]}
>
<div className="pp">
< iframe style= {{ border: 0, width: "100%", height: 630,} } src={"http://127.0.0.1:8085"+`/web4/video/indexAll.html?ID=${obj.EquipmentCode}&skipCheck=true&name=${obj.Name}&disk=${obj.RecorderName}&site=null`}/>
</div>
</Modal>
)
}
export default VideoModal
\ No newline at end of file
.videoManagerContainer{
.ant-table-pagination.ant-pagination {
margin: 2px 0;
}
.head{
padding: 10px;
background: white;
......@@ -15,4 +18,14 @@
margin-top: -5px !important;
vertical-align: text-bottom;
}
}
\ No newline at end of file
.redText{
color: red;
}
}
.ant-input[disabled] {
color: rgba(0, 0, 0, 0.5);
}
.ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {
color: rgba(0, 0, 0, 0.5);
}
import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index';
//获取视频配置列表
export const GetVideoConfigList = param =>
get(`${PUBLISH_SERVICE}/VideoManager/GetVideoConfigList`, param);
//添加配置
export const addInsertVideoConfig = data =>
post(`${PUBLISH_SERVICE}/VideoManager/InsertVideoConfig?type=add`, data);
//修改配置
export const editInsertVideoConfig = data =>
post(`${PUBLISH_SERVICE}/VideoManager/InsertVideoConfig?type=edit`, data);
//删除配置
export const deleteInsertVideoConfig = data =>
post(`${PUBLISH_SERVICE}/VideoManager/InsertVideoConfig?type=delete`, data);
\ No newline at end of file
......@@ -2,7 +2,7 @@
* @Description:
* @Author: leizhe
* @Date: 2021-07-23 10:42:58
* @LastEditTime: 2021-09-01 10:50:55
* @LastEditTime: 2021-09-16 16:57:48
* @LastEditors: leizhe
*/
import { CITY_SERVICE, get, PUBLISH_SERVICE, post, postForm } from '../index';
......
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