提交 2223a930 作者: 温凯

挂载指点视频状态暴露

上级 5dae3607
{
"name": "mmc-stl-vue2",
"version": "1.1.6",
"version": "1.1.7",
"description": "科比特前端标准化组件",
"main": "index.js",
"scripts": {
......
......@@ -541,14 +541,16 @@ export default {
}
},
handle_change_dj_mode(id) {
console.log(this.device, 'device');
/* this.$store.commit("device/SET_MOVE_DATA", {
...this.device,
mountStatus: id,
mountId: this.selected_mount.mountId,
moveType: this.moveType,
name: this.selected_mount.name,
}); */
let buffer = null;
if (id == 0) {
this.$emit('mountMoveStatus',false)
}else{
buffer = [
165, 79, 14, 85, 170, 220, 9, 255, 129, 1, 4, 52, 3, 255, 186, 205,
];
this.$emit('mountMoveStatus',true)
}
this.commit_directive(buffer);
},
handle_change_zd(id) {
console.log(id);
......
......@@ -349,6 +349,7 @@ export default {
},
methods: {
handle_change_dj_mode(id) {
this.$emit('mountMoveStatus',id==1 )
console.log(this.selected_mount, 'selected_mount');
/* this.$store.commit("device/SET_MOVE_DATA", {
...this.device,
......
......@@ -440,13 +440,28 @@ export default {
methods: {
// 保存相机数据 ,在在指点时使用
handle_change_dj_mode(id) {
/* this.$store.commit("device/SET_MOVE_DATA", {
...this.device,
mountStatus: id,
mountId: this.selected_mount.mountId,
moveType: this.moveType,
name: this.selected_mount.name
}); */
let buffer = null;
// 停止
if (id == 0) {
const list = {
0: [165, 79, 11, 85, 170, 220, 6, 30, 0, 1, 0, 25, 118],
1: [
165, 79, 14, 85, 170, 220, 9, 255, 129, 1, 5, 8, 2, 255, 134, 186,
],
2: [
165, 79, 14, 85, 170, 220, 9, 255, 129, 1, 4, 89, 2, 255, 214, 84,
],
};
const buffer = list[this.holderModelDom];
this.commit_directive(buffer);
this.$emit('mountMoveStatus',false)
} else {
// 控制
buffer = [
165, 79, 14, 85, 170, 220, 9, 255, 129, 1, 4, 52, 3, 255, 186, 205,
];
this.$emit('mountMoveStatus',true)
}
},
tatrack_switch(status) {
const buff = new Array(0xa5, 0x0a, 3, 0x00, 0x00);
......
......@@ -440,6 +440,7 @@ export default {
methods: {
// 保存相机数据 ,在在指点时使用
handle_change_dj_mode(id) {
this.$emit('mountMoveStatus',id==1 )
/* this.$store.commit("device/SET_MOVE_DATA", {
...this.device,
mountStatus: id,
......
......@@ -346,6 +346,7 @@ export default {
methods: {
handle_change_dj_mode(id) {
console.log(this.selected_mount, 'selected_mount');
this.$emit('mountMoveStatus',id==1 )
/* this.$store.commit("device/SET_MOVE_DATA", {
...this.device,
mountStatus: id,
......
......@@ -783,35 +783,26 @@ export default {
};
const buffer = list[this.holderModelDomV1];
this.commit_directive(buffer);
this.$store.commit("device/SET_MOVE_DATA", {
...this.device,
mountStatus: 0,
});
this.$emit('mountMoveStatus',false)
} else {
// 控制
buffer = [
165, 79, 14, 85, 170, 220, 9, 255, 129, 1, 4, 52, 3, 255, 186, 205,
];
this.$store.commit("device/SET_MOVE_DATA", {
...this.device,
mountStatus: id,
mountId: this.selected_mount.mountId,
moveType: this.moveType,
name: this.selected_mount.name,
});
this.$emit('mountMoveStatus',true)
}
this.commit_directive(buffer);
},
// 指点移动
handle_change_zd_mode(id) {
this.$store.commit("device/SET_MOVE_DATA", {
...this.device,
mountStatus: id,
mountId: this.selected_mount.mountId,
moveType: this.moveType,
name: this.selected_mount.name,
});
},
// handle_change_zd_mode(id) {
// this.$store.commit("device/SET_MOVE_DATA", {
// ...this.device,
// mountStatus: id,
// mountId: this.selected_mount.mountId,
// moveType: this.moveType,
// name: this.selected_mount.name,
// });
// },
handle_change_pitch() {
if (this.pitch > 200) {
this.pitch = 200;
......
......@@ -277,6 +277,7 @@ export default {
},
methods: {
handle_change_dj_mode(id) {
this.$emit('mountMoveStatus',id==1 )
/* this.$store.commit("device/SET_MOVE_DATA", {
...this.device,
mountStatus: id,
......
......@@ -728,20 +728,12 @@ export default {
};
const buffer = list[this.holderModelDomV1];
this.commit_directive(buffer);
this.$store.commit('device/SET_MOVE_DATA', {
...this.device,
mountStatus: 0
});
this.$emit('mountMoveStatus',false)
} else {
// 控制
buffer = [165, 79, 14, 85, 170, 220, 9, 255, 129, 1, 4, 52, 3, 255, 186, 205];
this.$store.commit('device/SET_MOVE_DATA', {
...this.device,
mountStatus: id,
mountId: this.selected_mount.mountId,
moveType: this.moveType,
name: this.selected_mount.name
});
this.$emit('mountMoveStatus',true)
}
this.commit_directive(buffer);
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论