修改看板

IOT
夜笙歌 1 year ago
parent 77435b9a5f
commit 562afecc70

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

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

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