| | |
| | | <template> |
| | | <div class="PickAndDrop"> |
| | | <div class="button"> |
| | | <div class="button_l"> |
| | | <el-button type="primary" size="small" style=" |
| | | <!-- <div class="button_l"> |
| | | <el-button |
| | | @click="handleAutoPickAndDrop('伸åº')" |
| | | type="primary" |
| | | size="small" |
| | | style=" |
| | | width: 14.69rem; |
| | | height: 5.06rem; |
| | | color: rgba(64, 253, 240, 1); |
| | | background-color: rgba(6, 229, 231, 0.3); |
| | | border: none; |
| | | border-top: 0.25rem solid rgba(6, 229, 231, 1); |
| | | "> |
| | | " |
| | | > |
| | | <div class="btnicon"> |
| | | <span style=" |
| | | <span |
| | | style=" |
| | | width: 1rem; |
| | | height: 1rem; |
| | | display: flex; |
| | |
| | | color: rgb(0, 0, 0); |
| | | font-size: 0.75rem; |
| | | margin-left: 0.1rem; |
| | | ">i</span> |
| | | " |
| | | >i</span |
| | | > |
| | | </div> |
| | | <span style="font-size: 2.25rem; text-align: center">伸åº</span> |
| | | <span style="font-size: 2.25rem; text-align: center">å®ä½ä¼¸æé®</span> |
| | | </el-button> |
| | | <el-button type="primary" size="small" style=" |
| | | <el-button |
| | | @click="handleAutoPickAndDrop('缩å')" |
| | | type="primary" |
| | | size="small" |
| | | style=" |
| | | width: 14.69rem; |
| | | height: 5.06rem; |
| | | color: rgba(64, 253, 240, 1); |
| | | background-color: rgba(6, 229, 231, 0.3); |
| | | border: none; |
| | | border-top: 0.25rem solid rgba(6, 229, 231, 1); |
| | | "> |
| | | " |
| | | > |
| | | <div class="btnicon"> |
| | | <span style=" |
| | | <span |
| | | style=" |
| | | width: 1rem; |
| | | height: 1rem; |
| | | display: flex; |
| | |
| | | color: rgb(0, 0, 0); |
| | | font-size: 0.75rem; |
| | | margin-left: 0.1rem; |
| | | ">i</span> |
| | | " |
| | | >i</span |
| | | > |
| | | </div> |
| | | <span style="font-size: 2.25rem; text-align: center">缩å</span> |
| | | <span style="font-size: 2.25rem; text-align: center">å®ä½ç¼©æé®</span> |
| | | </el-button> |
| | | </div> |
| | | <el-button |
| | | @click="handlePouse" |
| | | type="primary" |
| | | size="small" |
| | | style=" |
| | | width: 14.69rem; |
| | | height: 5.06rem; |
| | | color: rgba(64, 253, 240, 1); |
| | | background-color: rgba(6, 229, 231, 0.3); |
| | | border: none; |
| | | border-top: 0.25rem solid rgba(6, 229, 231, 1); |
| | | " |
| | | > |
| | | <div class="btnicon"> |
| | | <span |
| | | style=" |
| | | width: 1rem; |
| | | height: 1rem; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | border-radius: 50% 50%; |
| | | border: 0.1rem solid rgb(0, 0, 0); |
| | | color: rgb(0, 0, 0); |
| | | font-size: 0.75rem; |
| | | margin-left: 0.1rem; |
| | | " |
| | | >i</span |
| | | > |
| | | </div> |
| | | <span style="font-size: 2.25rem; text-align: center">æå</span> |
| | | </el-button> |
| | | </div> --> |
| | | <div class="button_r"> |
| | | <el-button @click="jumpRouter('/Manualcontrol')" class="btn" type="primary" size="small" style=" |
| | | <el-button |
| | | @click="jumpRouter('/Manualcontrol')" |
| | | class="btn" |
| | | type="primary" |
| | | size="small" |
| | | style=" |
| | | width: 27.52rem; |
| | | height: 4.29rem; |
| | | color: rgba(255, 255, 255, 1); |
| | | "> |
| | | <span class="Aspan" style="font-size: 2.25rem; text-align: center">æå¨æ§å¶</span> |
| | | " |
| | | > |
| | | <span class="Aspan" style="font-size: 2.25rem; text-align: center" |
| | | >æå¨æ§å¶</span |
| | | > |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | <div v-if="isMobile" class="content"> |
| | | <div class="content_l"> |
| | | <div class="model">左侧伸缩æ</div> |
| | | <div class="model"> |
| | | <span>å½å伸缩æä½ç½®ï¼{{ Position.right }}</span> |
| | | <span>左侧伸缩æ</span> |
| | | <span></span> |
| | | </div> |
| | | <div class="operate"> |
| | | <div class="item">伸å°ä½</div> |
| | | <div class="item">缩å°ä½</div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div style="display: flex; flex-direction: column; align-items: center"> |
| | | <div class="video_l"> |
| | | <span style="color: #fff; font-size: 1.25rem; font-weight: bold" |
| | | >è§é¢çæ§å·¦ä¾§</span |
| | | > |
| | | <img src="@/assets/imgs/right.png" alt="" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="content_r"> |
| | | <div class="model">å³ä¾§ä¼¸ç¼©æ</div> |
| | | <div class="model"> |
| | | <span>å½å伸缩æä½ç½®ï¼{{ Position.right }}</span> |
| | | <span>左侧伸缩æ</span> |
| | | <span></span> |
| | | </div> |
| | | <div class="operate"> |
| | | <div class="item">伸å°ä½</div> |
| | | <div class="item">缩å°ä½</div> |
| | |
| | | <div class="pulse2"></div> |
| | | <div class="pulse3"></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div style="display: flex; flex-direction: column; align-items: center"> |
| | | <div class="video_r"> |
| | | <span style="color: #fff; font-size: 1.25rem; font-weight: bold" |
| | | >è§é¢çæ§å³ä¾§</span |
| | | > |
| | | <img src="@/assets/imgs/left.png" alt="" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div v-else class="content_mobile"> |
| | | <div class="content_l"> |
| | | <div class="model">左侧伸缩æ</div> |
| | | <div class="model"> |
| | | <span>å½å伸缩æä½ç½®ï¼{{ Position.left }}</span> |
| | | <span>左侧伸缩æ</span> |
| | | <span></span> |
| | | </div> |
| | | <div class="operate"> |
| | | <div class="item">伸å°ä½</div> |
| | | <div class="item">缩å°ä½</div> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div style="display: flex; flex-direction: column; align-items: center"> |
| | | <div class="video_l"> |
| | | <span style="color: #fff; font-size: 2.5rem; font-weight: bold" |
| | | >è§é¢çæ§å·¦ä¾§</span |
| | | > |
| | | <img src="@/assets/imgs/right.png" alt="" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="content_r"> |
| | | <div class="model">å³ä¾§ä¼¸ç¼©æ</div> |
| | | <div class="model"> |
| | | <span>å½å伸缩æä½ç½®ï¼{{ Position.right }}</span> |
| | | <span>左侧伸缩æ</span> |
| | | <span></span> |
| | | </div> |
| | | <div class="operate"> |
| | | <div class="item">伸å°ä½</div> |
| | | <div class="item">缩å°ä½</div> |
| | |
| | | <div class="pulse2"></div> |
| | | <div class="pulse3"></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div style="display: flex; flex-direction: column; align-items: center"> |
| | | <div class="video_r"> |
| | | <span style="color: #fff; font-size: 2.5rem; font-weight: bold" |
| | | >è§é¢çæ§å³ä¾§</span |
| | | > |
| | | <img src="@/assets/imgs/left.png" alt="" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <script setup> |
| | | import { ref, onMounted, nextTick } from "vue"; |
| | | import { useRouter } from "vue-router"; |
| | | import { ElMessage } from "element-plus"; |
| | | import { |
| | | AutoPickAndDrop, |
| | | Pouse, |
| | | GetPosition, |
| | | } from "@/api/newapi/Parameters.js"; |
| | | |
| | | const router = useRouter(); |
| | | const isMobile = ref(false); |
| | | const Position = ref({ |
| | | left: 0, |
| | | right: 0, |
| | | }); |
| | | |
| | | const jumpRouter = (path) => { |
| | | router.push(path); |
| | | }; |
| | | const handleAutoPickAndDrop = async (val) => { |
| | | try { |
| | | const response = await AutoPickAndDrop({ |
| | | ExtendedState: val, |
| | | }); |
| | | if (response.code === 0) { |
| | | ElMessage.success(`${val}æå`); |
| | | } else { |
| | | ElMessage.error(`${val}失败`); |
| | | } |
| | | } catch (error) { |
| | | console.error(error); |
| | | ElMessage.error("æä½å¤±è´¥"); |
| | | } |
| | | }; |
| | | const handlePouse = async () => { |
| | | try { |
| | | const response = await Pouse(); |
| | | if (response.code === 0) { |
| | | ElMessage.success(response.message); |
| | | } else { |
| | | ElMessage.error(response.message); |
| | | } |
| | | } catch (error) { |
| | | console.error(error); |
| | | ElMessage.error(error); |
| | | } |
| | | }; |
| | | |
| | | //è·åå½åä½ç½® |
| | | const getPosition = () => { |
| | | GetPosition().then((res) => { |
| | | if (res.code == 0) { |
| | | Position.value.left = res.data.lift; |
| | | Position.value.right = res.data.right; |
| | | } |
| | | }); |
| | | }; |
| | | onMounted(() => { |
| | | // çå¬çªå£å¤§å°åå |
| | | window.addEventListener("resize", () => { |
| | |
| | | // 妿çªå£å®½åº¦å°äºçäº1080pxï¼æ§è¡ç¸åºçæä½ |
| | | isMobile.value = false; |
| | | } |
| | | getPosition(); |
| | | }); |
| | | </script> |
| | | <style lang="scss" scoped> |
| | |
| | | .button { |
| | | height: 7.83rem; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | justify-content: center; |
| | | .button_l { |
| | | display: flex; |
| | | |
| | | .btnicon { |
| | | display: flex; |
| | | justify-content: center; |
| | |
| | | |
| | | .content_l { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | width: 50%; |
| | | height: 45rem; |
| | |
| | | color: rgba(16, 16, 16, 1); |
| | | box-shadow: 0rem 0.13rem 0.38rem 0rem rgba(6, 229, 231, 1); |
| | | border: 0.06rem solid rgba(6, 229, 231, 1); |
| | | |
| | | padding: 2rem 0rem; |
| | | .model { |
| | | color: #fff; |
| | | text-align: center; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 0rem 2rem; |
| | | width: 100%; |
| | | font-size: 2rem; |
| | | } |
| | |
| | | .operate { |
| | | display: flex; |
| | | flex-direction: column; |
| | | padding: 0.88rem 0.88rem; |
| | | align-items: flex-end; |
| | | padding: 0.58rem 0.58rem; |
| | | |
| | | .item { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | width: 8.75rem; |
| | | height: 4.19rem; |
| | | height: 3.19rem; |
| | | border-radius: 0.31rem; |
| | | background: linear-gradient(90deg, |
| | | rgba(0, 224, 255, 0.74) 0%, |
| | | rgba(0, 224, 255, 0.4) 60%, |
| | | rgba(235, 242, 243, 0.13) 100%); |
| | | background: linear-gradient( |
| | | 90deg, |
| | | rgba(0, 224, 255, 0.74) 0%, |
| | | rgba(0, 224, 255, 0.4) 60%, |
| | | rgba(235, 242, 243, 0.13) 100% |
| | | ); |
| | | color: rgba(16, 16, 16, 1); |
| | | color: rgb(255, 255, 255); |
| | | font-size: 1.13rem; |
| | |
| | | } |
| | | } |
| | | } |
| | | .video_l { |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | width: 80%; |
| | | border: 0.25rem solid rgba(255, 255, 255, 0.8); |
| | | img { |
| | | width: 6rem; |
| | | height: 8rem; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .content_r { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-between; |
| | | width: 50%; |
| | | height: 45rem; |
| | |
| | | box-shadow: 0rem 0.13rem 0.38rem 0rem rgba(6, 229, 231, 1); |
| | | border: 0.06rem solid rgba(6, 229, 231, 1); |
| | | margin-left: 2rem; |
| | | |
| | | padding: 2rem 0rem; |
| | | .model { |
| | | color: #fff; |
| | | text-align: center; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 0rem 2rem; |
| | | width: 100%; |
| | | font-size: 2rem; |
| | | } |
| | |
| | | .operate { |
| | | display: flex; |
| | | flex-direction: column; |
| | | padding: 0.88rem 0.88rem; |
| | | |
| | | align-items: flex-end; |
| | | padding: 0.58rem 0.58rem; |
| | | .item { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | width: 8.75rem; |
| | | height: 4.19rem; |
| | | height: 3.19rem; |
| | | border-radius: 0.31rem; |
| | | background: linear-gradient(90deg, |
| | | rgba(0, 224, 255, 0.74) 0%, |
| | | rgba(0, 224, 255, 0.4) 60%, |
| | | rgba(235, 242, 243, 0.13) 100%); |
| | | background: linear-gradient( |
| | | 90deg, |
| | | rgba(0, 224, 255, 0.74) 0%, |
| | | rgba(0, 224, 255, 0.4) 60%, |
| | | rgba(235, 242, 243, 0.13) 100% |
| | | ); |
| | | color: rgba(16, 16, 16, 1); |
| | | color: rgb(255, 255, 255); |
| | | font-size: 1.13rem; |
| | |
| | | height: 4.375rem; |
| | | opacity: 0; |
| | | } |
| | | } |
| | | } |
| | | .video_r { |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | width: 80%; |
| | | border: 0.25rem solid rgba(255, 255, 255, 0.8); |
| | | img { |
| | | width: 6rem; |
| | | height: 8rem; |
| | | } |
| | | } |
| | | } |
| | |
| | | .content_l { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | flex-direction: column; |
| | | width: 100%; |
| | | height: 45rem; |
| | | background-color: rgba(9, 48, 104, 1); |
| | | color: rgba(16, 16, 16, 1); |
| | | box-shadow: 0rem 0.13rem 0.38rem 0rem rgba(6, 229, 231, 1); |
| | | border: 0.06rem solid rgba(6, 229, 231, 1); |
| | | |
| | | padding: 2rem 0rem; |
| | | .model { |
| | | color: #fff; |
| | | text-align: center; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 0rem 2rem; |
| | | width: 100%; |
| | | font-size: 2rem; |
| | | } |
| | | |
| | | .operate { |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: flex-end; |
| | | padding: 0.88rem 0.88rem; |
| | | |
| | | .item { |
| | | display: flex; |
| | | flex-direction: column; |
| | |
| | | width: 8.75rem; |
| | | height: 4.19rem; |
| | | border-radius: 0.31rem; |
| | | background: linear-gradient(90deg, |
| | | rgba(0, 224, 255, 0.74) 0%, |
| | | rgba(0, 224, 255, 0.4) 60%, |
| | | rgba(235, 242, 243, 0.13) 100%); |
| | | background: linear-gradient( |
| | | 90deg, |
| | | rgba(0, 224, 255, 0.74) 0%, |
| | | rgba(0, 224, 255, 0.4) 60%, |
| | | rgba(235, 242, 243, 0.13) 100% |
| | | ); |
| | | color: rgba(16, 16, 16, 1); |
| | | color: rgb(255, 255, 255); |
| | | font-size: 1.13rem; |
| | |
| | | opacity: 0; |
| | | } |
| | | } |
| | | } |
| | | .video_l { |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | width: 70rem; |
| | | border: 0.75rem solid rgba(255, 255, 255, 0.8); |
| | | } |
| | | } |
| | | |
| | | .content_r { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | flex-direction: column; |
| | | justify-content: space-around; |
| | | width: 100%; |
| | | height: 45rem; |
| | | background-color: rgba(9, 48, 104, 1); |
| | | color: rgba(16, 16, 16, 1); |
| | | box-shadow: 0rem 0.13rem 0.38rem 0rem rgba(6, 229, 231, 1); |
| | | border: 0.06rem solid rgba(6, 229, 231, 1); |
| | | margin-top: 10%; |
| | | |
| | | padding: 2rem 0rem; |
| | | .model { |
| | | color: #fff; |
| | | text-align: center; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | padding: 0rem 2rem; |
| | | width: 100%; |
| | | font-size: 2rem; |
| | | } |
| | |
| | | .operate { |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: flex-end; |
| | | padding: 0.88rem 0.88rem; |
| | | |
| | | .item { |
| | | display: flex; |
| | | flex-direction: column; |
| | |
| | | width: 8.75rem; |
| | | height: 4.19rem; |
| | | border-radius: 0.31rem; |
| | | background: linear-gradient(90deg, |
| | | rgba(0, 224, 255, 0.74) 0%, |
| | | rgba(0, 224, 255, 0.4) 60%, |
| | | rgba(235, 242, 243, 0.13) 100%); |
| | | background: linear-gradient( |
| | | 90deg, |
| | | rgba(0, 224, 255, 0.74) 0%, |
| | | rgba(0, 224, 255, 0.4) 60%, |
| | | rgba(235, 242, 243, 0.13) 100% |
| | | ); |
| | | color: rgba(16, 16, 16, 1); |
| | | color: rgb(255, 255, 255); |
| | | font-size: 1.13rem; |
| | |
| | | } |
| | | } |
| | | } |
| | | .video_r { |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | width: 70rem; |
| | | border: 0.75rem solid rgba(255, 255, 255, 0.8); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | </style> |