feat: 加按钮 + title

master
gaoting 2 years ago
parent 7ec0516f6e
commit 8be0ed5b77

@ -9,7 +9,7 @@
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title></title>
<title>灯板上料机人机交互</title>
<!--preload-links-->
<!--app-context-->
</head>

@ -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;
}
}
}

Loading…
Cancel
Save