|
|
@@ -8,24 +8,28 @@
|
|
|
<div class="main-container">
|
|
|
<el-row align="middle">
|
|
|
<el-col :span="8"></el-col>
|
|
|
- <el-col :span="8"><div class="button up">上</div></el-col>
|
|
|
+ <el-col :span="8"></el-col>
|
|
|
+<!-- <el-col :span="8"><div class="button up">上</div></el-col>-->
|
|
|
<el-col :span="8"></el-col>
|
|
|
</el-row>
|
|
|
<el-row align="middle">
|
|
|
- <el-col :span="8"><div class="button up">左脚</div></el-col>
|
|
|
- <el-col :span="8"><div class="button up">拍照</div></el-col>
|
|
|
- <el-col :span="8"><div class="button up">右脚</div></el-col>
|
|
|
+ <el-col :span="8"><div class="button up" @click="runLeft">左脚</div></el-col>
|
|
|
+ <el-col :span="8"><div class="button up" @click="run_take_picture">拍照</div></el-col>
|
|
|
+ <el-col :span="8"><div class="button up" @click="runRight">右脚</div></el-col>
|
|
|
</el-row>
|
|
|
<el-row align="middle">
|
|
|
<el-col :span="8"></el-col>
|
|
|
- <el-col :span="8"><div class="button up">下</div></el-col>
|
|
|
+ <el-col :span="8"></el-col>
|
|
|
+<!-- <el-col :span="8"><div class="button up">下</div></el-col>-->
|
|
|
<el-col :span="8"></el-col>
|
|
|
</el-row>
|
|
|
<el-row align="middle" class="mar-top-50">
|
|
|
<el-col :span="3"></el-col>
|
|
|
- <el-col :span="8"><div class="button up">继续</div></el-col>
|
|
|
+ <el-col :span="8"></el-col>
|
|
|
+<!-- <el-col :span="8"><div class="button up">继续</div></el-col>-->
|
|
|
<el-col :span="2"></el-col>
|
|
|
- <el-col :span="8"><div class="button up">停止</div></el-col>
|
|
|
+ <el-col :span="8"></el-col>
|
|
|
+<!-- <el-col :span="8"><div class="button up">停止</div></el-col>-->
|
|
|
<el-col :span="3"></el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
@@ -34,6 +38,31 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import headerBar from '@/components/header-bar/index.vue'
|
|
|
+import icpList from '@/utils/ipc'
|
|
|
+import client from "@/stores/modules/client";
|
|
|
+import socket from "@/stores/modules/socket";
|
|
|
+
|
|
|
+const clientStore = client();
|
|
|
+// 初始化 WebSocket 状态管理
|
|
|
+const socketStore = socket()
|
|
|
+
|
|
|
+const runLeft = async () => {
|
|
|
+ localStorage.setItem('run_mcu','left')
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+const runRight = async () => {
|
|
|
+ localStorage.setItem('run_mcu','right')
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+const run_take_picture = () => {
|
|
|
+ socketStore.sendMessage({
|
|
|
+ type: 'handler_take_picture',
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|