From 5bd56f3ebf96aa9a71e4a452cd2402df59d17384 Mon Sep 17 00:00:00 2001
From: 严智鑫 <test>
Date: 星期四, 04 九月 2025 09:28:27 +0800
Subject: [PATCH] 1.全部页面增加线下数据查询 2.增加一键删除线下玻璃按钮

---
 UI-Project/src/views/Rotate/rotate.vue |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/UI-Project/src/views/Rotate/rotate.vue b/UI-Project/src/views/Rotate/rotate.vue
index c9cc309..74264f0 100644
--- a/UI-Project/src/views/Rotate/rotate.vue
+++ b/UI-Project/src/views/Rotate/rotate.vue
@@ -75,6 +75,13 @@
     });
 
     // 绾夸笅鏁版嵁
+    request.post("/deviceInteraction/tasking/selectGlassDownLine").then((res) => { // 鏇挎崲涓轰綘鐨凙PI绔偣
+      if (res.code === 200) {
+        // 鍋囪鍚庣杩斿洖鐨勬暟鎹牸寮忎笌 handleMessage 棰勬湡涓�鑷�
+        const responseData = res.data || {};
+        downLineTask.value =responseData;
+      }
+    });
   } catch (err) {
     console.error('瀹氭椂璇锋眰鍚庣鎺ュ彛澶辫触锛�', err);
   }
@@ -343,6 +350,7 @@
 const topLineShow = async () => {
   blind.value = true; 
 }
+
 //涓婄嚎
 const topLine = async (row) => {
   ElMessageBox.confirm(
@@ -375,6 +383,36 @@
       })
     })
 }
+
+//鍒犻櫎绾夸笅鐜荤拑
+const deleteGlassDownLine = async () => {
+  ElMessageBox.confirm(
+      t('functionState.tips'),
+      t('delivery.prompt'),
+      {
+        confirmButtonText: t('functionState.sure'),
+        cancelButtonText: t('functionState.cancel'),
+        type: 'warning',
+      }
+  )
+      .then(() => {
+        //涓婄嚎鎺ュ彛
+        request.post("/deviceInteraction/tasking/deleteGlassDownLine").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 handleDialogClose = () => {  
     
 }
@@ -433,6 +471,7 @@
 
 
       <el-button type="primary" id="ButtonTopLine" @click="topLineShow">{{ $t('functionState.topLine') }}</el-button>
+      <el-button type="primary" id="deleteGlassDownLine" @click="deleteGlassDownLine">{{ $t('functionState.deleteDownLineGlass') }}</el-button>
       <!-- <el-button type="primary" id="searchButton" @click="downLine('涓嬬嚎')">涓嬬嚎</el-button>
       <el-button type="primary" id="searchButton" @click="workStatus('鐮存崯')">鐮存崯</el-button>
       <el-button type="primary" id="searchButton" @click="workStatus('瀹屽伐')">瀹屽伐</el-button> -->

--
Gitblit v1.8.0