From 42d333112ed74032fbf8f2cd60d3cc8f3b4a0a08 Mon Sep 17 00:00:00 2001
From: huang <1532065656@qq.com>
Date: 星期四, 03 四月 2025 08:48:00 +0800
Subject: [PATCH] 更新看板

---
 UI-Project/src/views/MechanicalArm/mechanicalArm.vue |  614 +++++++++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 503 insertions(+), 111 deletions(-)

diff --git a/UI-Project/src/views/MechanicalArm/mechanicalArm.vue b/UI-Project/src/views/MechanicalArm/mechanicalArm.vue
index f77ae7c..b3dd11f 100644
--- a/UI-Project/src/views/MechanicalArm/mechanicalArm.vue
+++ b/UI-Project/src/views/MechanicalArm/mechanicalArm.vue
@@ -1,159 +1,543 @@
-<!--  鎵撴爣鏈�  -->
+<!--  涓婄墖鏈�  -->
 <script setup>
 import request from "@/utils/request";
 import { ElMessage, ElMessageBox } from "element-plus";
-import { reactive, ref, onMounted } from 'vue'
+import { computed, reactive, ref, onMounted, onBeforeUnmount, onUnmounted } from 'vue'
 import { useI18n } from 'vue-i18n'
+import { WebSocketHost, host } from '@/utils/constants'
+import { initializeWebSocket, closeWebSocket } from '@/utils/WebSocketService';
 let language = ref(localStorage.getItem('lang') || 'zh')
 const { t } = useI18n()
 const requestData = reactive({
   account: '',
   password: '',
 });
-const mechanicalArmData = ref([]);
+const blind = ref(false)
+const blindMode = ref(false)
+const blindModeNumberLocal = ref('')
+const errorInfo = ref(true)
+const loadData = ref([]);
+const findMachine = ref([]);
+const sendRecords = ref([]);
+const downLineTask = ref([]);
+const findPrimitiveTask = ref([]);
+const scanCodeOld = ref([]);
+const searchs = ref();
+
+const userInfo=JSON.parse(window.localStorage.getItem('userInfo'));
+const pageParams=userInfo.user.menus[0].pages[0].params;
+const pageParamsJson=JSON.parse(pageParams);
+const machineId = pageParamsJson.machineId;//褰撳墠椤甸潰鐨勮澶嘔D
+console.log(machineId);
+var errorScanId;
+//浣跨敤WebSocket鏂瑰紡灞曠ず鏁版嵁
+let socket = null;
+let socketDownLineTask = null;
+const socketUrl = `ws://${WebSocketHost}:${host}/api/deviceInteraction/api/talk/loadTask`;
+const socketDownLineTaskUrl = `ws://${WebSocketHost}:${host}/api/deviceInteraction/api/talk/downLineTask`;
+// 瀹氫箟娑堟伅澶勭悊鍑芥暟锛屾洿鏂� receivedData 鍙橀噺
+
+
+
+const handleMessage = (data) => {
+  // 鏇存柊 tableData 鐨勬暟鎹�
+  let dataJson = data[""+machineId][0];
+
+  loadData.value = dataJson.findPrimitiveTasking[0];
+  findPrimitiveTask.value = dataJson.findPrimitiveTask[0];
+  findMachine.value = dataJson.machine[0];
+  if(findMachine.value.mode=="1"){
+    modevalue.value = {
+    value: '1',
+    label: '鏍囧噯',
+  };
+  }else if(findMachine.value.mode=="2"){
+    modevalue.value = {
+      value: '2',
+      label: '瀹氬埗',
+    };
+  }else if(findMachine.value.mode=="3"){
+    modevalue.value = {
+      value: '3',
+      label: '鎵嬪姩',
+    };
+  }
+  //sendRecords.value = data.sendRecords[0].reverse();
+};
+// 瀹氫箟娑堟伅澶勭悊鍑芥暟锛屾洿鏂� receivedData 鍙橀噺
+const handleMessage2 = (data) => {
+  downLineTask.value = data.downLineTask[0];
+  // console.log(data);
+};
+onUnmounted(() => {
+  if (socket) {
+    closeWebSocket(socket);
+  }
+  if (socketDownLineTask) {
+    closeWebSocket(socketDownLineTask);
+  }
+});
+onBeforeUnmount(() => {
+  console.log("鍏抽棴浜�")
+  closeWebSocket();
+});
 
 onMounted(async () => {
-  load();
+  //浣跨敤WebSocket鏂瑰紡灞曠ず鏁版嵁
+  socket = initializeWebSocket(socketUrl, handleMessage);// 鍒濆鍖� WebSocket锛屽苟浼犻�掓秷鎭鐞嗗嚱鏁�
+  //浣跨敤WebSocket鏂瑰紡灞曠ず鏁版嵁
+  socketDownLineTask = initializeWebSocket(socketDownLineTaskUrl, handleMessage2);// 鍒濆鍖� WebSocket锛屽苟浼犻�掓秷鎭鐞嗗嚱鏁�
 });
-//鑾峰彇鏁版嵁
-const load = async() => {
-  try {
-    const response = await request.post('/deviceInteraction/tasking/findCraftTasking',
+//鎶ヨ鎻愮ず
+const errorInfoFuntion = async (info) => {
+  let infoScancode = '鎵爜ID锛�' + info.scanId + '  ' + info.scanCode;
+  ElMessageBox.confirm(
+    infoScancode,
+    t('delivery.prompt'),
     {
-      "glassId": 0,
-      "state": "绾夸笂",
-      "workState": "宸ヤ綔",
-      "currentCraft": "鎵撶("
-    }); // 鏇挎崲涓轰綘鐨凙PI绔偣  
-    if (response.code === 200) {
-      mechanicalArmData.value= response.data;
-    } else {
-      ElMessage.warning(res.msg)
+      confirmButtonText: t('functionState.sureStart'),
+      cancelButtonText: t('functionState.cancel'),
+      type: 'warning',
     }
-  } catch (error) {
-    // console.error('Error fetching rects :', error);  
+  )
+    .then(() => {
+      //閲嶆柊琛ュ崟
+      request.post("/deviceInteraction/tasking/glassAgainTopLine",
+        {
+          "scanId": info.scanId,
+        }).then((res) => { // 鏇挎崲涓轰綘鐨凙PI绔偣  
+          if (res.code === 200) {
+            ElMessage.success(res.message);
+          } else {
+            ElMessage.warning(res.message)
+          }
+        })
+    })
+    .catch(() => {
+      ElMessage({
+        type: 'info',
+        message: t('functionState.cancel'),
+      })
+    })
+}
+//淇敼宸ヤ綔鐘舵�� 銆愬け璐�/姝e湪宸ヤ綔/瀹屽伐銆�
+const workStatus = async (row, state) => {
+  let url;
+  if (state == "閲嶅彂") {
+    url = "/deviceInteraction/tasking/loseMachineTask";
+  } else if (state == "姝e湪宸ヤ綔") {
+    url = "/deviceInteraction/tasking/startMachineTask";
+  } else if (state == "瀹屽伐") {
+    url = "/deviceInteraction/tasking/finishMachineTask";
+  } else {
+    return;
   }
-}
-//淇敼宸ヤ綔鐘舵�� 銆愬け璐�/宸ヤ綔/瀹屾垚銆�
-const workStatus = async(row,state) => {
   ElMessageBox.confirm(
-        t('marking.tips'),
-        t('delivery.prompt'),  
+    t('functionState.tips'),
+    t('delivery.prompt'),
+    {
+      confirmButtonText: t('functionState.sure'),
+      cancelButtonText: t('functionState.cancel'),
+      type: 'warning',
+    }
+  )
+    .then(() => {
+      //寮�濮嬩慨鏀�
+      request.post(url,
         {
-          confirmButtonText: t('marking.sure'),
-          cancelButtonText: t('marking.cancel'),
-          type: 'warning',
-        }
-      )
-        .then(() => {
-          //寮�濮嬩慨鏀�
-          request.post("/deviceInteraction/tasking/updateCraftTasking",
-            {
-              "glassId": row.glassId,
-              "workState": state
-            }).then((res) => { // 鏇挎崲涓轰綘鐨凙PI绔偣  
-              if (res.code === 200) {
-                ElMessage.success(res.message);
-                load();
-              } else {
-                ElMessage.warning(res.message)
-              }
-            })
+          "id": machineId
+        }).then((res) => { // 鏇挎崲涓轰綘鐨凙PI绔偣  
+          if (res.code === 200) {
+            ElMessage.success(res.message);
+          } else {
+            ElMessage.warning(res.message)
+          }
         })
-        .catch(() => {
-          ElMessage({
-            type: 'info',
-            message: t('marking.cancel'),
-          })
-        })
+    })
+    .catch(() => {
+      ElMessage({
+        type: 'info',
+        message: t('functionState.cancel'),
+      })
+    })
 
 }
 
+//瀹氬埗/鏍囧噯
+const machineMode = async (mode) => {
+  ElMessageBox.confirm(
+    t('functionState.tips'),
+    t('delivery.prompt'),
+    {
+      confirmButtonText: t('functionState.sure'),
+      cancelButtonText: t('functionState.cancel'),
+      type: 'warning',
+    }
+  )
+    .then(() => {
+      //涓嬬嚎鎺ュ彛
+      request.post("/deviceInteraction/machine/toggleModeMachine",
+        {
+          "id": machineId,
+          "mode": mode
+        }).then((res) => { // 鏇挎崲涓轰綘鐨凙PI绔偣  
+          if (res.code === 200) {
+            ElMessage.success(res.message);
+          } else {
+            ElMessage.warning(res.message)
+          }
+        })
+    })
+    .catch(() => {
+      ElMessage({
+        type: 'info',
+        message: t('functionState.cancel'),
+      })
+    })
+}
 //寮�宸�/鏆傚仠
-const machineStatus = async(row,state) => {
-
-}
-
-//涓嬬嚎(鎷胯蛋)
-const downLine = async(row,state) => {
+const machineStatus = async (state) => {
   ElMessageBox.confirm(
-        t('marking.tips'),
-        t('delivery.prompt'),  
+    t('functionState.tips'),
+    t('delivery.prompt'),
+    {
+      confirmButtonText: t('functionState.sure'),
+      cancelButtonText: t('functionState.cancel'),
+      type: 'warning',
+    }
+  )
+    .then(() => {
+      //涓嬬嚎鎺ュ彛
+      request.post("/deviceInteraction/machine/updateMachineState",
         {
-          confirmButtonText: t('marking.sure'),
-          cancelButtonText: t('marking.cancel'),
-          type: 'warning',
-        }
-      )
-        .then(() => {
-          //涓嬬嚎鎺ュ彛
-          request.post("/deviceInteraction/tasking/updateDownLine",
-            {
-              "glassId": row.glassId,
-              "state": state
-            }).then((res) => { // 鏇挎崲涓轰綘鐨凙PI绔偣  
-              if (res.code === 200) {
-                ElMessage.success(res.message);
-                this.load();
-              } else {
-                ElMessage.warning(res.message)
-              }
-            })
+          "id": machineId,
+          "state": state
+        }).then((res) => { // 鏇挎崲涓轰綘鐨凙PI绔偣  
+          if (res.code === 200) {
+            ElMessage.success(res.message);
+          } else {
+            ElMessage.warning(res.message)
+          }
         })
-        .catch(() => {
-          ElMessage({
-            type: 'info',
-            message: t('marking.cancel'),
-          })
-        })
+    })
+    .catch(() => {
+      ElMessage({
+        type: 'info',
+        message: t('functionState.cancel'),
+      })
+    })
 }
-//涓婄嚎
-const topLine = async() => {
+//鐮存崯
+const damagedTask = async (row) => {
+  ElMessageBox.confirm(
+    t('functionState.tips'),
+    t('delivery.prompt'),
+    {
+      confirmButtonText: t('functionState.sure'),
+      cancelButtonText: t('functionState.cancel'),
+      type: 'warning',
+    }
+  )
+    .then(() => {
+      //涓嬬嚎鎺ュ彛
+      request.post("/deviceInteraction/tasking/damagedTask",
+        {
+          "glassId": row.glassId
+        }).then((res) => { // 鏇挎崲涓轰綘鐨凙PI绔偣  
+          if (res.code === 200) {
+            ElMessage.success(res.message);
+          } else {
+            ElMessage.warning(res.message)
+          }
+        })
+    })
+    .catch(() => {
+      ElMessage({
+        type: 'info',
+        message: t('functionState.cancel'),
+      })
+    })
+}
+//涓嬬嚎(鎷胯蛋)
+const glassDownLine = async (row) => {
+  ElMessageBox.confirm(
+    t('functionState.tips'),
+    t('delivery.prompt'),
+    {
+      confirmButtonText: t('functionState.sure'),
+      cancelButtonText: t('functionState.cancel'),
+      type: 'warning',
+    }
+  )
+    .then(() => {
+      //涓嬬嚎鎺ュ彛
+      request.post("/deviceInteraction/tasking/glassDownLine",
+        {
+          "glassId": row.glassId,
+        }).then((res) => { // 鏇挎崲涓轰綘鐨凙PI绔偣  
+          if (res.code === 200) {
+            ElMessage.success(res.message);
+          } else {
+            ElMessage.warning(res.message)
+          }
+        })
+    })
+    .catch(() => {
+      ElMessage({
+        type: 'info',
+        message: t('functionState.cancel'),
+      })
+    })
+}
+const topLineShow = async () => {
+  blind.value = true;
+}
+//棰嗗彇浠诲姟/缁撴潫浠诲姟
+const startOrStopTask = async (row, line, isWorking) => {
+  ElMessageBox.confirm(
+    t('functionState.tips'),
+    t('delivery.prompt'),
+    {
+      confirmButtonText: t('functionState.sure'),
+      cancelButtonText: t('functionState.cancel'),
+      type: 'warning',
+    }
+  )
+    .then(() => {
+      //棰嗗彇浠诲姟
+      request.post("/deviceInteraction/primitiveTask/startOrStopPrimitiveTasking",
+        {
+          "id": row.id,
+          "getLine": line,
+          "isWorking": isWorking
+        }).then((res) => { // 鏇挎崲涓轰綘鐨凙PI绔偣  
+          if (res.code === 200) {
+            ElMessage.success(res.message);
+          } else {
+            n
+            ElMessage.warning(res.message)
+          }
+        })
+    })
+    .catch(() => {
+      ElMessage({
+        type: 'info',
+        message: t('functionState.cancel'),
+      })
+    })
+}
+const handleDialogClose = () => {
 
 }
 
+const fetchData = async () => {
+  //鎵爜鍥炶溅鎻愪氦
+  //alert(searchs.value);
+  searchs.value = "";
+}
+
+const filterTableData = computed(() =>
+  loadData.value.filter(
+    (data) =>
+      !searchs.value || data.scanId.toLowerCase().includes(searchs.value.toLowerCase())
+  )
+)
+
+//涓嬫媺妗嗘ā寮忛�夋嫨
+const modevalue = ref('')
+
+const options = [
+  {
+    value: '1',
+    label: '鏍囧噯',
+  },
+  {
+    value: '2',
+    label: '瀹氬埗',
+  },
+  {
+    value: '3',
+    label: '鎵嬪姩',
+  }
+]
+
+const modeShow = async () => {
+  blindMode.value = true;
+  blindModeNumberLocal.value=findMachine.taskCount;
+}
+//妯″紡閫夋嫨鏃惰繘琛屽鐞�
+const modeChange = async () => {
+  let mode=modevalue.value;
+  request.post("/deviceInteraction/machine/toggleModeMachine",
+        {
+          "id": machineId,
+          "mode": mode
+        }).then((res) => { // 鏇挎崲涓轰綘鐨凙PI绔偣  
+          if (res.code === 200) {
+            ElMessage.success(res.message);
+          } else {
+            ElMessage.warning(res.message)
+          }
+        })
+  if(modevalue.value=='3'){
+    //褰撴槸鎵嬪姩妯″紡鏃跺脊绐楁彁绀� 璁剧疆涓婄墖鏁伴噺
+    blindMode.value = true;
+  }
+  
+}
+
+//鎻愪氦淇敼鎵嬪姩妯″紡鐨勫惛鐗囨暟閲�
+const fetchSubmit = async () => {
+  //鎵爜鍥炶溅鎻愪氦
+  request.post("/deviceInteraction/machine/manualOperationTask",
+        {
+          "id": machineId,
+          "taskCount": blindModeNumberLocal.value,
+          "finshCount": 0
+        }).then((res) => { // 鏇挎崲涓轰綘鐨凙PI绔偣  
+          if (res.code === 200) {
+            ElMessage.success(res.message);
+          } else {
+            ElMessage.warning(res.message)
+          }
+        })
+        blindMode.value = false;
+}
 </script>
 <template>
-  <div ref="content">
+  <div ref="content" style="padding:0 20px;">
     <div id="div-title" style="font-size: 20px; font-weight: bold; margin:10px 0 10px 0;padding-left: 20px;">
-      {{ $t('mechanicalArm.deleteTips') }}
+      {{ $t('machine.mechanicalArm') }}
     </div>
-    <hr />
-    <br>
-    <div id="search" style="padding-left: 20px;">
-      <!-- 鍔熻兘 -->
-      <el-button type="primary" id="searchButton" @click="machineStatus">寮�宸�</el-button>
-      <el-button type="primary" id="searchButton" @click="topLine">涓婄嚎</el-button>
-    </div>
-    <div id="main-body" style="min-height:240px;">
-      <!-- 琛ㄦ牸鍐呭 -->
-      <el-table :data="mechanicalArmData" stripe
+    <el-dialog v-model="blind" top="10vh" style="text-align: center;width:1400px ;" @close="handleDialogClose">
+      <!-- 鏈鍙栫殑鏍囧噯浠诲姟 -->
+
+      <el-table :data="findPrimitiveTask" stripe style="height:660px"
         :header-cell-style="{ background: '#F2F3F5 ', color: '#1D2129', textAlign: 'center' }"
         :cell-style="{ textAlign: 'center' }">
         <!-- <el-table-column type="selection" min-width="30" /> -->
-        <el-table-column type="index" label="搴忓彿" min-width="30" />
-        <el-table-column prop="batchNumber" label="鎵规鍙�" />
-        <el-table-column prop="taskType" label="浠诲姟绫诲瀷" />
-        <el-table-column prop="glassId" label="鐜荤拑缂栧彿" />
-        <el-table-column prop="length" label="闀�" />
-        <el-table-column prop="width" label="瀹�" />
-        <el-table-column prop="thickness" label="鍘�" />
-        <el-table-column prop="workState" label="鐘舵��" />
+
+        <el-table-column type="index" :label="$t('glassInfo.number')" min-width="30" />
+        <el-table-column prop="batchNumber" :label="$t('glassInfo.batchNumber')" />
+        <el-table-column prop="taskType" :label="$t('glassInfo.taskType')" />
+        <el-table-column prop="scanId" :label="$t('glassInfo.scanId')" />
+        <el-table-column prop="length" :label="$t('glassInfo.length')" />
+        <el-table-column prop="width" :label="$t('glassInfo.width')" />
+        <el-table-column prop="thickness" :label="$t('glassInfo.thickness')" />
+        <el-table-column prop="taskQuantity" :label="$t('glassInfo.taskQuantity')" />
+        <el-table-column prop="reportCount" :label="$t('glassInfo.reportCount')" />
+        <el-table-column prop="workState" :label="$t('glassInfo.workState')" />
+        <el-table-column fixed="right" :label="$t('productStock.operate')" align="center" width="70">
+          <template #default="scope">
+            <el-button size="mini" link type="primary" plain @click="startOrStopTask(scope.row, 2, 1)">{{
+              $t('functionState.getTask') }}</el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+    </el-dialog>
+
+    <el-dialog v-model="blindMode" top="30vh" style="text-align: center;width: 600px;" @close="handleDialogClose">
+      <!-- 鎵嬪姩妯″紡杈撳叆鏁伴噺 -->
+      <div style="text-align: none;font-size: 20px;margin-bottom: 20px;">
+        鎵嬪姩杈撳叆妯″紡
+      </div>
+      <div>
+        鎵嬪姩杈撳叆涓婄墖鏁伴噺锛�
+        <el-input v-model="blindModeNumberLocal" style="width: 200px;" type="Number" id="blindMode" @keyup.enter="fetchSubmit"></el-input>
+        
+      </div>
+      <!-- <div>
+        <el-button size="mini" link type="primary" plain @click="startOrStopTask(scope.row, 2, 2)">纭</el-button>
+        <el-button size="mini" link type="primary" plain @click="startOrStopTask(scope.row, 2, 2)">鍙栨秷</el-button>
+      </div> -->
+    </el-dialog>
+    <hr />
+    <br>
+    <div id="search">
+      <!-- 鍔熻兘 -->
+
+      <div class="flex flex-wrap gap-4 items-center">
+        涓婄墖鏈鸿繍琛屾ā寮�:
+        <el-select v-model="modevalue" @change="modeChange" placeholder="璇烽�夋嫨妯″紡" size="large" style="width: 220px">
+          <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
+        </el-select>
+        
+        <span>
+          <span @click="modeShow" style="margin-left: 40px;">{{ findMachine.mode=="3"? ("涓婄墖鏁伴噺锛�"+findMachine.taskCount):"" }}</span>
+          <span style="margin-left: 40px;">{{ findMachine.mode=="3"? ("宸插畬鎴愭暟閲忥細"+findMachine.finshCount):"" }}</span>
+        </span>
+        
+        
+      </div>
+      <br>
+      <el-button :type="(findMachine['state'] == '鏆傚仠' ? 'danger' : 'success')" id="ButtonMachineStatus"
+        @click="machineStatus((findMachine['state'] == '鏆傚仠' ? '寮�宸�' : '鏆傚仠'))">{{ findMachine['state'] == '寮�宸�' ?
+        $t('functionState.start') : $t('functionState.stop') }}</el-button>
+      <el-button type="primary" id="ButtonTopLine" @click="topLineShow">{{ $t('functionState.getTask') }}</el-button>
+    </div>
+
+    <div id="main-body" style="min-height:240px;">
+      <!-- 琛ㄦ牸鍐呭 -->
+      <el-table :data="filterTableData" stripe style="height:260px"
+        :header-cell-style="{ background: '#F2F3F5 ', color: '#1D2129', textAlign: 'center' }"
+        :cell-style="{ textAlign: 'center' }">
+
+        <!-- <el-table-column type="selection" min-width="30" /> -->
+        <el-table-column type="index" :label="$t('glassInfo.number')" min-width="30" />
+        <el-table-column prop="batchNumber" sortable :label="$t('glassInfo.batchNumber')" />
+        <el-table-column prop="taskType" sortable :label="$t('glassInfo.taskType')" />
+        <el-table-column prop="scanId" :label="$t('glassInfo.scanId')">
+          <template #header>
+            <div>
+              <span>{{ $t('glassInfo.scanId') }}</span>
+              <span style="margin-left:10px ;"></span>
+              <el-popover placement="bottom" title="绛涢��" :width="200" trigger="click">
+                <el-input v-model="searchs" type="primary" id="ReportSubmission" @keyup.enter="fetchData"></el-input>
+                <template #reference>
+                  <el-icon>
+                    <Filter />
+                  </el-icon>
+                </template>
+              </el-popover>
+              <el-icon>
+                <CaretTop />
+              </el-icon>
+              <el-icon>
+                <CaretBottom />
+              </el-icon>
+              <!-- <el-input v-model="searchs" type="primary" id="ReportSubmission" @keyup.enter="fetchData"></el-input> -->
+              <!-- <el-input size="small" placeholder="Type to search" /> -->
+            </div>
+          </template>
+        </el-table-column>
+        <el-table-column prop="length" sortable :label="$t('glassInfo.length')" />
+        <el-table-column prop="width" sortable :label="$t('glassInfo.width')" />
+        <el-table-column prop="thickness" sortable :label="$t('glassInfo.thickness')" />
+        <el-table-column prop="taskQuantity" sortable :label="$t('glassInfo.taskQuantity')" />
+        <el-table-column prop="isWorking" sortable :label="$t('glassInfo.isWorking')" />
         <el-table-column fixed="right" :label="$t('productStock.operate')" align="center" width="270">
           <template #default="scope">
-            <el-button size="mini" link type="primary" plain @click="workStatus(scope.row, '鐮存崯')">鐮存崯</el-button>
-            <el-button size="mini" link type="primary" plain @click="workStatus(scope.row, '瀹屽伐')">瀹屽伐</el-button>
-            <el-button size="mini" link type="primary" plain @click="downLine(scope.row, '涓嬬嚎')">涓嬬嚎</el-button>
+            <el-button size="mini" link type="primary" plain @click="startOrStopTask(scope.row, 2, 2)">{{
+              $t('functionState.stopTask') }}</el-button>
           </template>
         </el-table-column>
       </el-table>
     </div>
 
-    <div id="main-body"
-      style="width: 100%; height: 460px;background-image: url(../../src/assets/鑷姩鎵撴爣鏈�.png) ;background-size: 100% 100%;">
-      <!-- 鐢诲浘鍐呭 -->
-      <div style="width: 100px; height: 100px; background-color: red; position: relative; top: 171px; left: 218px">
+    <div id="main-body" style="width: 100%; height: 460px;min-width: 1200px;">
+      <img style="width: 70%;min-width: 900px; height: 460px;float: left;" src="../../assets/鎵爜璇嗗埆.png">
+      <!-- <el-image style="width: 70%;min-width: 900px; height: 460px;float: left;" src="../../src/assets/鎵爜璇嗗埆.png"></el-image> -->
+      <!-- <div style="width: 70%;min-width: 900px; height: 460px;background-image: url(../../src/assets/鎵爜璇嗗埆.png) ;background-size: 100% 100%;float: left;">
+
+      </div> -->
+      <div style="width: 30%;min-width: 300px; height: 460px;float: left;padding: 20px;;">
+        <el-table :data="sendRecords" stripe
+          :header-cell-style="{ background: '#F2F3F5 ', color: '#1D2129', textAlign: 'center', height: '30px' }"
+          :cell-style="{ textAlign: 'center' }">
+          <el-table-column prop="sendContent" :label="$t('glassInfo.sendContent')" />
+        </el-table>
       </div>
+      <div style="clear锛歜oth"></div>
     </div>
   </div>
 </template>
@@ -188,4 +572,12 @@
   border: none;
   cursor: pointer;
 }
+
+.dotClass {
+  width: 10px;
+  height: 10px;
+  border-radius: 50%;
+  display: block;
+  margin-left: 10px;
+}
 </style>
\ No newline at end of file

--
Gitblit v1.8.0