|
|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<view class="box">
|
|
|
|
|
<button type="primary" :loading="load1" @click="feed" class="feed">
|
|
|
|
|
控制滚筒AGV送料
|
|
|
|
|
物料准备就绪
|
|
|
|
|
</button>
|
|
|
|
|
<div class="flex">
|
|
|
|
|
<button type="primary" :loading="load2" @click="work">
|
|
|
|
|
@ -10,6 +10,9 @@
|
|
|
|
|
<button type="primary" :loading="load3" @click="rest">
|
|
|
|
|
控制滚筒AGV休息
|
|
|
|
|
</button>
|
|
|
|
|
<button type="primary" :loading="load4" @click="reposition">
|
|
|
|
|
复位上料机信号
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
@ -21,6 +24,7 @@ import http from "../config/request.js";
|
|
|
|
|
let load1 = ref(false);
|
|
|
|
|
let load2 = ref(false);
|
|
|
|
|
let load3 = ref(false);
|
|
|
|
|
let load4 = ref(false)
|
|
|
|
|
let data = ref({});
|
|
|
|
|
|
|
|
|
|
const feed = async () => {
|
|
|
|
|
@ -51,6 +55,16 @@ const rest = async () => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const reposition = async () => {
|
|
|
|
|
// load4.value = true;
|
|
|
|
|
const res = await http.post({
|
|
|
|
|
url: "/agvinteractionlabel/ResetElevator",
|
|
|
|
|
params: data.value,
|
|
|
|
|
});
|
|
|
|
|
// load4.value = false;
|
|
|
|
|
console.log(res);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
const idData = uni.getStorageSync("agv_id");
|
|
|
|
|
if (!idData) {
|
|
|
|
|
@ -95,9 +109,9 @@ onMounted(() => {
|
|
|
|
|
button {
|
|
|
|
|
min-width: 320px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 8vh;
|
|
|
|
|
line-height: 8vh;
|
|
|
|
|
font-size: 1.6rem;
|
|
|
|
|
height: 5vh;
|
|
|
|
|
line-height: 5vh;
|
|
|
|
|
font-size: 1.3rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|