修改看板

IOT
夜笙歌 2 months ago
parent 77435b9a5f
commit 562afecc70

@ -128,8 +128,8 @@
<script>
import Chart from '@/components/Charts/Chart'
import vueSeamlessScroll from 'vue-seamless-scroll'
import Monitor from './monitor'
import Monitor1 from './monitor2'
import Monitor from './monitor/monitor'
import Monitor1 from './monitor/monitor2'
export default {
data() {

@ -11,11 +11,10 @@ export default {
data() {
return {}
},
props:['iChannelID','monitorId'],
async mounted() {
await this.$nextTick()
const _this = this
var g_iWndIndex = 0;
let g_iWndIndex = 0;
$(function () {
//
var iRet = window.WebVideoCtrl.I_CheckPluginInstall();

@ -17,15 +17,16 @@ export default {
const _this = this
var g_iWndIndex = 0;
$(function () {
window.WebVideoCtrl1 = window.WebVideoCtrl
//
var iRet = window.WebVideoCtrl.I_CheckPluginInstall();
var iRet = window.WebVideoCtrl1.I_CheckPluginInstall();
if (-1 == iRet) {
alert("未安装插件");
return;
}
//
WebVideoCtrl.I_InitPlugin(500, 300, {
WebVideoCtrl1.I_InitPlugin(500, 300, {
bWndFull: true, // true: false:
iPackageType: 2,
iWndowType: 1,
@ -42,9 +43,9 @@ export default {
console.log("关闭远程配置库!");
},
cbInitPluginComplete: function () {
WebVideoCtrl.I_InsertOBJECTPlugin('monitorId2');
WebVideoCtrl1.I_InsertOBJECTPlugin('monitorId2');
//
if (-1 == WebVideoCtrl.I_CheckPluginVersion()) {
if (-1 == WebVideoCtrl1.I_CheckPluginVersion()) {
alert("检测到新的插件版本");
return;
}
@ -65,7 +66,7 @@ export default {
}
var iRet = WebVideoCtrl.I_Login(szIP, 1, szPort, szUsername, szPassword, {
var iRet = WebVideoCtrl1.I_Login(szIP, 1, szPort, szUsername, szPassword, {
success: function (xmlDoc) {
setTimeout(function () {
getChannelInfo();
@ -90,7 +91,7 @@ export default {
var szDeviceIdentify = '192.168.2.64';
var oPort = WebVideoCtrl.I_GetDevicePort(szDeviceIdentify);
var oPort = WebVideoCtrl1.I_GetDevicePort(szDeviceIdentify);
if (oPort != null) {
console.log(szDeviceIdentify + " 获取端口成功!");
@ -104,7 +105,7 @@ export default {
//
WebVideoCtrl.I_GetAnalogChannelInfo(szDeviceIdentify, {
WebVideoCtrl1.I_GetAnalogChannelInfo(szDeviceIdentify, {
async: false,
success: function (xmlDoc) {
var oChannels = $(xmlDoc).find("VideoInputChannel");
@ -121,7 +122,7 @@ export default {
}
});
//
WebVideoCtrl.I_GetDigitalChannelInfo(szDeviceIdentify, {
WebVideoCtrl1.I_GetDigitalChannelInfo(szDeviceIdentify, {
async: false,
success: function (xmlDoc) {
var oChannels = $(xmlDoc).find("InputProxyChannelStatus");
@ -142,7 +143,7 @@ export default {
}
});
//
WebVideoCtrl.I_GetZeroChannelInfo(szDeviceIdentify, {
WebVideoCtrl1.I_GetZeroChannelInfo(szDeviceIdentify, {
async: false,
success: function (xmlDoc) {
var oChannels = $(xmlDoc).find("ZeroVideoChannel");
@ -165,7 +166,7 @@ export default {
//
function clickStartRealPlay(iStreamType) {
var oWndInfo = WebVideoCtrl.I_GetWindowStatus(g_iWndIndex),
var oWndInfo = WebVideoCtrl1.I_GetWindowStatus(g_iWndIndex),
szDeviceIdentify = '192.168.2.64',
iRtspPort = 554,
iChannelID = 2,
@ -175,7 +176,7 @@ export default {
iStreamType = 1;
var startRealPlay = function () {
WebVideoCtrl.I_StartRealPlay(szDeviceIdentify, {
WebVideoCtrl1.I_StartRealPlay(szDeviceIdentify, {
iRtspPort: iRtspPort,
iStreamType: iStreamType,
iChannelID: iChannelID,
@ -197,7 +198,7 @@ export default {
};
if (oWndInfo != null) {//
WebVideoCtrl.I_Stop({
WebVideoCtrl1.I_Stop({
success: function () {
startRealPlay();
}
Loading…
Cancel
Save