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' + '<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' : '') + '" />') (coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script> </script>
<title></title> <title>灯板上料机人机交互</title>
<!--preload-links--> <!--preload-links-->
<!--app-context--> <!--app-context-->
</head> </head>

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

Loading…
Cancel
Save