mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 18:11:00 +08:00
游湖阿代码
This commit is contained in:
parent
355bc3036a
commit
454864f26c
@ -19,6 +19,7 @@
|
|||||||
_initEvent: function() {
|
_initEvent: function() {
|
||||||
vc.on('cameraControlVideo', 'notify', function(param) {
|
vc.on('cameraControlVideo', 'notify', function(param) {
|
||||||
$that.cameraControlVideoInfo.machines = param.machines;
|
$that.cameraControlVideoInfo.machines = param.machines;
|
||||||
|
$that.applyViewCamera(_item);
|
||||||
})
|
})
|
||||||
vc.on('pagination', 'page_event', function(_currentPage) {
|
vc.on('pagination', 'page_event', function(_currentPage) {
|
||||||
vc.component._listMachines(_currentPage, DEFAULT_ROWS);
|
vc.component._listMachines(_currentPage, DEFAULT_ROWS);
|
||||||
@ -95,6 +96,8 @@
|
|||||||
},
|
},
|
||||||
applyViewCamera: function(_machine) {
|
applyViewCamera: function(_machine) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
_changeCount: function(_count) {
|
_changeCount: function(_count) {
|
||||||
$that.cameraControlVideoInfo.cameraCount = _count;
|
$that.cameraControlVideoInfo.cameraCount = _count;
|
||||||
|
|||||||
@ -11,18 +11,6 @@
|
|||||||
<div class=" row">
|
<div class=" row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<div class="ibox ">
|
<div class="ibox ">
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-7 m-b-xs">
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-5">
|
|
||||||
<div class="input-group">
|
|
||||||
<input placeholder="输入摄像头名称" type="text" v-model="chooseCameraInfo._currentMachineName" class="form-control form-control-sm">
|
|
||||||
<span class="input-group-append">
|
|
||||||
<button type="button" class="btn btn-sm btn-primary" v-on:click="queryMachines()">查询</button>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="table-responsive" style="margin-top:15px">
|
<div class="table-responsive" style="margin-top:15px">
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@ -13,10 +13,19 @@
|
|||||||
_initEvent: function() {
|
_initEvent: function() {
|
||||||
vc.on('chooseCamera', 'openChooseCameraModel', function(_param) {
|
vc.on('chooseCamera', 'openChooseCameraModel', function(_param) {
|
||||||
$('#chooseCameraModel').modal('show');
|
$('#chooseCameraModel').modal('show');
|
||||||
|
$that._refreshchooseCameraInfo();
|
||||||
$that.chooseCameraInfo.viewMachines = _param.machines;
|
$that.chooseCameraInfo.viewMachines = _param.machines;
|
||||||
$that.chooseCameraInfo.cameraCount = _param.cameraCount;
|
$that.chooseCameraInfo.cameraCount = _param.cameraCount;
|
||||||
$that._refreshchooseCameraInfo();
|
|
||||||
vc.component._loadAllMachineInfo(1, 500, '');
|
vc.component._loadAllMachineInfo(1, 500, '');
|
||||||
|
|
||||||
|
if (_param.machine && _param.machines.length < 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
_param.machines.forEach(item => {
|
||||||
|
$that.chooseCameraInfo.machineIds.push(item.machineId);
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
watch: { // 监视双向绑定的数据数组
|
watch: { // 监视双向绑定的数据数组
|
||||||
@ -69,9 +78,13 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
freshViewMachine: function() {
|
freshViewMachine: function() {
|
||||||
|
let _machines = $that.chooseCameraInfo.machines;
|
||||||
|
if (_machines.length < 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$that.chooseCameraInfo.viewMachines = [];
|
$that.chooseCameraInfo.viewMachines = [];
|
||||||
let _machineIds = $that.chooseCameraInfo.machineIds;
|
let _machineIds = $that.chooseCameraInfo.machineIds;
|
||||||
let _machines = $that.chooseCameraInfo.machines;
|
|
||||||
|
|
||||||
_machineIds.forEach(item => {
|
_machineIds.forEach(item => {
|
||||||
_machines.forEach(_machine => {
|
_machines.forEach(_machine => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user