From 18e4df43f79f51539474b2918544a9d2d4c5c4e0 Mon Sep 17 00:00:00 2001 From: wangfei <3597712270@qq.com> Date: 星期三, 13 十一月 2024 15:43:52 +0800 Subject: [PATCH] 前端页面适配 --- UI-Project/src/views/PurchaseReturn/purchaseStorage.vue | 59 +++++++++++++++++++++++++++++++---------------------------- 1 files changed, 31 insertions(+), 28 deletions(-) diff --git a/UI-Project/src/views/PurchaseReturn/purchaseStorage.vue b/UI-Project/src/views/PurchaseReturn/purchaseStorage.vue index bba4ca2..f411b80 100644 --- a/UI-Project/src/views/PurchaseReturn/purchaseStorage.vue +++ b/UI-Project/src/views/PurchaseReturn/purchaseStorage.vue @@ -1,13 +1,10 @@ <script setup> -import {Search} from "@element-plus/icons-vue"; -import {reactive} from "vue"; -import {useRouter} from "vue-router" -import { ElMessage, ElMessageBox } from 'element-plus' +import {onBeforeUnmount, onMounted, onUnmounted, ref} from "vue"; +import {ElMessage} from 'element-plus' import request from "@/utils/request" - -import { ref, onMounted, onBeforeUnmount,onUnmounted } from 'vue'; -import { WebSocketHost ,host} from '@/utils/constants' -import { initializeWebSocket, closeWebSocket } from '@/utils/WebSocketService'; +import {host, WebSocketHost} from '@/utils/constants' +import {closeWebSocket, initializeWebSocket} from '@/utils/WebSocketService'; + const adjustedRects = ref([]); const currentGlassId = ref(null); const currenttemperingFeedSequence = ref(null); @@ -161,19 +158,24 @@ closeWebSocket(); }); </script> - + <template> - <div style="margin-top: 10px;"> -<div> - <el-card style="flex: 1;margin-left: 10px;margin-top: 10px;margin-right: 10px;height: 800px;" v-loading="loading"> - <!-- <el-card style="margin-left: 10px;margin-top: 10px;margin-right: 10px;" v-loading="loading"> --> - <div v-if="adjustedRects.length > 0"> - <div style="text-align: center;">鐐夊彿锛歿{ adjustedRects[0].engineerId }}-{{ adjustedRects[0].temperingLayoutId }}</div> - <el-scrollbar height="750px" width="1400px" style="background-color: #e9e9eb;"> - <div style="position: relative;"> - <div - v-for="(rect, index) in adjustedRects" - :key="index" + <div style="height: 500px;"> + <div style="margin-top: 10px;"> + <div> + <el-card style="flex: 1;margin-left: 10px;margin-top: 10px;margin-right: 10px;height: 800px;" + v-loading="loading"> + <!-- <el-card style="margin-left: 10px;margin-top: 10px;margin-right: 10px;" v-loading="loading"> --> + <div v-if="adjustedRects.length > 0"> + <div style="text-align: center;">鐐夊彿锛歿{ adjustedRects[0].engineerId }}-{{ + adjustedRects[0].temperingLayoutId + }} + </div> + <el-scrollbar height="750px" width="1400px" style="background-color: #e9e9eb;"> + <div style="position: relative;"> + <div + v-for="(rect, index) in adjustedRects" + :key="index" @click="showDialog(rect)" class="rect" :style="{ position: 'absolute', top: `${rect.ycoordinate}px`, left: `${rect.xcoordinate}px`, @@ -187,17 +189,18 @@ </div> </div> </div> - </el-scrollbar> - </div> - </el-card> - </div> - <el-dialog v-model="blind" top="30vh" width="15%" style="text-align: center;" @close="handleDialogClose"> - <el-button :disabled="!canSelectProject" type="warning" plain :icon="Delete" @click="handleDamage" style="width: 140px;margin-left: 10px;"> + </el-scrollbar> + </div> + </el-card> + </div> + <el-dialog v-model="blind" top="30vh" width="15%" style="text-align: center;" @close="handleDialogClose"> + <el-button :disabled="!canSelectProject" type="warning" plain :icon="Delete" @click="handleDamage" + style="width: 140px;margin-left: 10px;"> {{ $t('order.dilapidation') }} </el-button> - </el-dialog> + </el-dialog> + </div> </div> - </template> <style scoped> -- Gitblit v1.8.0