mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
游湖阿代码
This commit is contained in:
parent
355bc3036a
commit
454864f26c
@ -19,6 +19,7 @@
|
||||
_initEvent: function() {
|
||||
vc.on('cameraControlVideo', 'notify', function(param) {
|
||||
$that.cameraControlVideoInfo.machines = param.machines;
|
||||
$that.applyViewCamera(_item);
|
||||
})
|
||||
vc.on('pagination', 'page_event', function(_currentPage) {
|
||||
vc.component._listMachines(_currentPage, DEFAULT_ROWS);
|
||||
@ -95,6 +96,8 @@
|
||||
},
|
||||
applyViewCamera: function(_machine) {
|
||||
|
||||
|
||||
|
||||
},
|
||||
_changeCount: function(_count) {
|
||||
$that.cameraControlVideoInfo.cameraCount = _count;
|
||||
|
||||
@ -11,18 +11,6 @@
|
||||
<div class=" row">
|
||||
<div class="col-lg-12">
|
||||
<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">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
|
||||
@ -13,10 +13,19 @@
|
||||
_initEvent: function() {
|
||||
vc.on('chooseCamera', 'openChooseCameraModel', function(_param) {
|
||||
$('#chooseCameraModel').modal('show');
|
||||
$that._refreshchooseCameraInfo();
|
||||
$that.chooseCameraInfo.viewMachines = _param.machines;
|
||||
$that.chooseCameraInfo.cameraCount = _param.cameraCount;
|
||||
$that._refreshchooseCameraInfo();
|
||||
vc.component._loadAllMachineInfo(1, 500, '');
|
||||
|
||||
if (_param.machine && _param.machines.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
_param.machines.forEach(item => {
|
||||
$that.chooseCameraInfo.machineIds.push(item.machineId);
|
||||
});
|
||||
|
||||
});
|
||||
},
|
||||
watch: { // 监视双向绑定的数据数组
|
||||
@ -69,9 +78,13 @@
|
||||
};
|
||||
},
|
||||
freshViewMachine: function() {
|
||||
let _machines = $that.chooseCameraInfo.machines;
|
||||
if (_machines.length < 1) {
|
||||
return;
|
||||
}
|
||||
$that.chooseCameraInfo.viewMachines = [];
|
||||
let _machineIds = $that.chooseCameraInfo.machineIds;
|
||||
let _machines = $that.chooseCameraInfo.machines;
|
||||
|
||||
|
||||
_machineIds.forEach(item => {
|
||||
_machines.forEach(_machine => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user