+
-
+
-
+
-
+
+
+ 预置位编号
+
+ 设置
+ 调用
+ 删除
+ 巡航速度
+
+ 设置
+ 停留时间
+
+ 设置
+ 巡航组编号
+
+ 添加点
+ 删除点
+ 删除组
+ 巡航
+ 扫描速度
+
+ 设置
+ 扫描组编号
+
+ 左边界
+ 右边界
+ 扫描
+ 停止
+
-
@@ -152,7 +181,12 @@ export default {
timeVal: 0,
timeMin: 0,
timeMax: 1440,
-
+ presetPos: 1,
+ cruisingSpeed: 100,
+ cruisingTime: 5,
+ cruisingGroup: 0,
+ scanSpeed: 100,
+ scanGroup: 0,
};
},
methods: {
@@ -291,14 +325,41 @@ export default {
let that = this;
this.$axios({
method: 'post',
- url: '/api/ptz/' + this.deviceId + '/' + this.channelId + '?leftRight=' + leftRight + '&upDown=' + upDown +
- '&inOut=' + zoom + '&moveSpeed=50&zoomSpeed=50'
+ // url: '/api/ptz/' + this.deviceId + '/' + this.channelId + '?leftRight=' + leftRight + '&upDown=' + upDown +
+ // '&inOut=' + zoom + '&moveSpeed=50&zoomSpeed=50'
+ url: '/api/ptz/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + (zoom * 16 + upDown * 4 + leftRight) + '&horizonSpeed=30&verticalSpeed=30&zoomSpeed=' + (2 * 16)
}).then(function (res) {});
},
//////////////////////播放器事件处理//////////////////////////
videoError: function (e) {
console.log("播放器错误:" + JSON.stringify(e));
},
+ presetPosition: function (cmdCode, presetPos) {
+ console.log('预置位控制:' + this.presetPos + ' : 0x' + cmdCode.toString(16));
+ let that = this;
+ this.$axios({
+ method: 'post',
+ url: '/api/frontEndCommand/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=0¶meter2=' + presetPos + '&combindCode2=0'
+ }).then(function (res) {});
+ },
+ setSpeedOrTime: function (cmdCode, groupNum, parameter) {
+ let that = this;
+ let parameter2 = parameter % 256;
+ let combindCode2 = Math.floor(parameter / 256) * 16;
+ console.log('前端控制:0x' + cmdCode.toString(16) + ' 0x' + groupNum.toString(16) + ' 0x' + parameter2.toString(16) + ' 0x' + combindCode2.toString(16));
+ this.$axios({
+ method: 'post',
+ url: '/api/frontEndCommand/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=' + groupNum + '¶meter2=' + parameter2 + '&combindCode2=' + combindCode2
+ }).then(function (res) {});
+ },
+ setCommand: function (cmdCode, groupNum, parameter) {
+ let that = this;
+ console.log('前端控制:0x' + cmdCode.toString(16) + ' 0x' + groupNum.toString(16) + ' 0x' + parameter.toString(16) + ' 0x0');
+ this.$axios({
+ method: 'post',
+ url: '/api/frontEndCommand/' + this.deviceId + '/' + this.channelId + '?cmdCode=' + cmdCode + '¶meter1=' + groupNum + '¶meter2=' + parameter + '&combindCode2=0'
+ }).then(function (res) {});
+ },
formatTooltip: function (val) {
var h = parseInt(val / 60);
var hStr = h < 10 ? ("0" + h) : h;
@@ -356,11 +417,20 @@ export default {
height: 6.25rem;
max-width: 6.25rem;
max-height: 6.25rem;
- margin: 0 auto;
border-radius: 100%;
+ margin-top: 2.5rem;
+ margin-left: 0.5rem;
float: left;
}
+.control-panel {
+ position: relative;
+ top: 0;
+ left: 5rem;
+ height: 11rem;
+ max-height: 11rem;
+}
+
.control-btn {
display: flex;
justify-content: center;
@@ -393,8 +463,8 @@ export default {
.control-round-inner {
position: absolute;
- left: 15%;
- top: 15%;
+ left: 13%;
+ top: 13%;
display: flex;
justify-content: center;
align-items: center;