提交 2223a930 作者: 温凯

挂载指点视频状态暴露

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