From def1eb8623e1444164ae4bce9179d011a89b8c5e Mon Sep 17 00:00:00 2001 From: 严智鑫 <test> Date: 星期二, 03 十二月 2024 09:15:27 +0800 Subject: [PATCH] 现场对接批量更新 --- UI-Project/src/views/SilkScreen/SilkScreen.vue | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-) diff --git a/UI-Project/src/views/SilkScreen/SilkScreen.vue b/UI-Project/src/views/SilkScreen/SilkScreen.vue index 99c5adc..e86836f 100644 --- a/UI-Project/src/views/SilkScreen/SilkScreen.vue +++ b/UI-Project/src/views/SilkScreen/SilkScreen.vue @@ -15,15 +15,17 @@ }); const loadData = ref([]); const findMachine = ref([]); -const machineId=13;//褰撳墠椤甸潰鐨勮澶嘔D +const sendRecords = ref([]); +const machineId=14;//褰撳墠椤甸潰鐨勮澶嘔D //浣跨敤WebSocket鏂瑰紡灞曠ず鏁版嵁 let socket = null; -const socketUrl = `ws://${WebSocketHost}:${host}/api/deviceInteraction/api/talk/silkScreen`; +const socketUrl = `ws://${WebSocketHost}:${host}/api/deviceInteraction/api/talk/silkScreenTask`; // 瀹氫箟娑堟伅澶勭悊鍑芥暟锛屾洿鏂� receivedData 鍙橀噺 const handleMessage = (data) => { // 鏇存柊 tableData 鐨勬暟鎹� loadData.value = data.taskingList[0]; findMachine.value = data.machine[0]; + sendRecords.value = data.sendRecords[0]; }; onUnmounted(() => { if (socket) { @@ -195,9 +197,9 @@ {{findMachine['state']=='寮�宸�'?$t('functionState.start'):$t('functionState.stop')}}</el-button> <el-button type="primary" id="ButtonTopLine" @click="topLine">{{$t('functionState.topLine')}}</el-button> </div> - <div id="main-body" style="min-height:240px;"> + <div id="main-body" style="height:240px; min-height:240px;"> <!-- 琛ㄦ牸鍐呭 --> - <el-table :data="loadData" stripe + <el-table :data="loadData" stripe style="height:680px" :header-cell-style="{ background: '#F2F3F5 ', color: '#1D2129', textAlign: 'center' }" :cell-style="{ textAlign: 'center' }"> <!-- <el-table-column type="selection" min-width="30" /> --> @@ -206,6 +208,7 @@ <el-table-column prop="batchNumber" :label="$t('glassInfo.batchNumber')"/> <el-table-column prop="taskType" :label="$t('glassInfo.taskType')"/> <el-table-column prop="glassId" :label="$t('glassInfo.glassId')"/> + <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="silkScreenX" :label="$t('glassInfo.silkScreenX')"/> @@ -221,13 +224,7 @@ </el-table-column> </el-table> </div> - - <div id="main-body" - style="width: 100%; height: 460px;background-image: url(../../src/assets/a.png) ;background-size: 100% 100%;"> - <!-- 鐢诲浘鍐呭 --> - <div style="width: 100px; height: 100px; background-color: red; position: relative; top: 171px; left: 218px"> - </div> - </div> + </div> </template> -- Gitblit v1.8.0