From d91893dbd49538d312e299c1cc507a7792abd7d7 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期日, 14 一月 2024 14:20:25 +0800
Subject: [PATCH] 设备类型假如修改删除

---
 src/container/Map/Map.vue |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/container/Map/Map.vue b/src/container/Map/Map.vue
index 2e0d004..eac3ee5 100644
--- a/src/container/Map/Map.vue
+++ b/src/container/Map/Map.vue
@@ -1,7 +1,7 @@
 <!--
  * @Date: 2024-01-05 23:47:53
  * @LastEditors: Sneed
- * @LastEditTime: 2024-01-12 22:28:57
+ * @LastEditTime: 2024-01-13 23:22:52
  * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/Map/Map.vue
 -->
 <template>
@@ -37,7 +37,7 @@
                             :class="{'active': (range.x !=='' && v.rowIndex >=range.x && v.rowIndex<=range.x1 && v.colIndex>=range.y && v.colIndex<=range.y1),aisle: v.type ===1}" @mousedown="e => onMousedown(e, v)" @mousemove="e => onMouseMove(e, v)" v-for="v in item"
                                 :rowspan="v.rowspan" :colspan="v.colspan" :key="v.rowIndex + '-' + v.colIndex">
                                 <img @click="addDevice($event,v)" @mousedown="e => e.stopPropagation()" v-if="v.type ===2 && status!==2 && !v.id" src="./img/+.png" alt="">
-                                <div  v-show="v.id" class="machine">
+                                <!-- <div  v-show="v.id" class="machine">
                                     <p>YKX123123213</p>
                                     <div>
                                         <div class="img">
@@ -67,8 +67,8 @@
                                             </li>
                                         </ul>
                                     </div>
-                                </div>
-                                
+                                </div> -->
+                                <Device v-if="v.id" :id="v.id" style="width: 100%;height: 100%;"></Device>
                             </td>
                             <!-- <td></td> -->
                         </tr>
@@ -93,11 +93,13 @@
 }
 import mixins  from '@/mixins/index'
 import AddMachine from './addMachine.vue'
+import Device from '../workshop/device.vue'
 import  {mapGetters} from 'vuex'
 export default {
     mixins: [mixins],
     components: {
-        AddMachine
+        AddMachine,
+        Device
     },
     props: {
         status: {
@@ -439,6 +441,7 @@
         // table-layout: fixed;
         // word-wrap: break-word;
         overflow: hidden;
+        border-radius: 10px;
         // box-sizing: border-box;
         td {
             // width: 50px;

--
Gitblit v1.9.3