From 3124ce87407fe85f6780b3ba1a219d8d9e8d7475 Mon Sep 17 00:00:00 2001
From: wu <731351411@qq.com>
Date: 星期四, 30 十月 2025 13:21:32 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/YiWuProject

---
 UI-Project/src/views/Slicecage/slicecage.vue |   83 ++++++++++++++++++++++++++++-------------
 1 files changed, 56 insertions(+), 27 deletions(-)

diff --git a/UI-Project/src/views/Slicecage/slicecage.vue b/UI-Project/src/views/Slicecage/slicecage.vue
index 2879a6e..aa87387 100644
--- a/UI-Project/src/views/Slicecage/slicecage.vue
+++ b/UI-Project/src/views/Slicecage/slicecage.vue
@@ -18,6 +18,7 @@
 const dialogFormVisiblee = ref(false)
 const dialogFormVisiblef = ref(false)
 const dialogFormVisibles = ref(false)
+const isLoading = ref(true)
 const blindb = ref(false)
 const inkageEntity = ref('#911005');
 const requestEntity = ref('#911005');
@@ -504,6 +505,7 @@
   fetchFlow(); 
 };
 const handlexiang = () => {
+  isLoading.value = true;  // 寮�鍚姞杞界姸鎬�
   dialogFormVisiblea.value = true;
   fetchxiang(); 
   currentPage2.value = 1;
@@ -552,20 +554,26 @@
 }); 
 // 鐞嗙墖绗间俊鎭�
 const fetchxiang = async () => {
-  try {     
+    isLoading.value = true;
+  try {
     const response = await request.post('/cacheVerticalGlass/bigStorageCage/querybigStorageCageDetail',{
         // deviceId: page,
         filmsId: filmsId.value,
         flowCardId: flowCardId.value,
     })
-    if (response.code === 200) {  
+    // 妯℃嫙鏈�灏忓姞杞芥椂闂�
+    await new Promise(resolve => setTimeout(resolve, 300));
+    if (response.code === 200) {
       ElMessage.success(response.message);
       tableDataa.value = response.data
     } else {  
       ElMessage.warning(response.msg)
     }  
   } catch (error) {
-  } 
+  } finally {
+    isLoading.value = false;
+  }
+
 }
 const fetchxianga = async () => {
   let page = window.localStorage.getItem('pagenumber')
@@ -702,28 +710,28 @@
   }
 }
 // 浠诲姟閲嶇疆
-const handleptask = async() => { 
-  try {
-    const confirmResult = await ElMessageBox.confirm(  
-      t('searchOrder.partasks'), 
-      t('workOrder.prompt'),  
-      {  
-        confirmButtonText: t('workOrder.yes'), 
-        cancelButtonText: t('workOrder.cancel'),
-        type: 'warning',  
-      } 
-    );
- if (confirmResult === 'confirm') {
-  const response = await request.post('/cacheVerticalGlass/bigStorageCage/resetCage')
-    if (response.code === 200) {
-      ElMessage.success(response.message);
-      } else {
-      ElMessage.error(response.msg);
-      }  
-    }  
-  } catch (error) {
-  }  
-}; 
+// const handleptask = async() => { 
+//   try {
+//     const confirmResult = await ElMessageBox.confirm(  
+//       t('searchOrder.partasks'), 
+//       t('workOrder.prompt'),  
+//       {  
+//         confirmButtonText: t('workOrder.yes'), 
+//         cancelButtonText: t('workOrder.cancel'),
+//         type: 'warning',  
+//       } 
+//     );
+//  if (confirmResult === 'confirm') {
+//   const response = await request.post('/cacheVerticalGlass/bigStorageCage/resetCage')
+//     if (response.code === 200) {
+//       ElMessage.success(response.message);
+//       } else {
+//       ElMessage.error(response.msg);
+//       }  
+//     }  
+//   } catch (error) {
+//   }  
+// }; 
 // 璀︽姤纭
 const handleSure = async (row) => {
   try {
@@ -1121,6 +1129,16 @@
   const seconds = String(date.getSeconds()).padStart(2, '0'); // 琛ラ浂锛堝鏋滈渶瑕佹樉绀烘椂闂达級
   return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
 }
+const svg = `
+        <path class="path" d="
+          M 30 15
+          L 28 17
+          M 25.61 25.61
+          A 15 15, 0, 0, 1, 15 30
+          A 15 15, 0, 1, 1, 27.99 7.5
+          L 15 15
+        " style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
+      `
 onBeforeUnmount(() => {
   closeWebSocket();
 });
@@ -1173,7 +1191,7 @@
     <el-button style="margin-top: 7px;margin-left: 10px;" id="searchButton" type="success" @click="handlehistorical">{{ $t('searchOrder.historicaltasks') }}</el-button>
     <el-button style="margin-top: 7px;margin-left: 10px;" id="searchButton" type="warning" @click="handleganghua">{{ $t('searchOrder.temperingqueries') }}</el-button>
     <el-button style="margin-top: 7px;margin-left: 10px;" id="searchButton" type="info" @click="dialogFormVisibles=true;fetchFlows()">{{ $t('searchOrder.searchlayout') }}</el-button>
-    <el-button style="margin-top: 7px;margin-left: 10px;" id="searchButton" type="danger" @click="handleptask()">{{ $t('searchOrder.partask') }}</el-button>
+    <!-- <el-button style="margin-top: 7px;margin-left: 10px;" id="searchButton" type="danger" @click="handleptask()">{{ $t('searchOrder.partask') }}</el-button> -->
     <el-switch style="margin-top: 7px;margin-left: 10px;" v-model="ganghua" class="mb-2" :inactive-text="$t('searchOrder.temperedswitch')" @change="handleChange" />
     <el-switch style="margin-top: 7px;margin-left: 10px;" v-model="diaodu" class="mb-2" :inactive-text="$t('searchOrder.Schedulingswitch')" @change="handlediaodu" />
     <div id="dotClass">
@@ -1384,7 +1402,9 @@
         </el-table>
       </div>
   </el-dialog>
-<el-dialog v-model="dialogFormVisiblea" top="2vh" width="95%" :title="$t('searchOrder.cageinformation')">
+  <el-dialog v-model="dialogFormVisiblea" top="2vh" width="95%" 
+  :title="$t('searchOrder.cageinformation')">
+  <div v-loading="isLoading" class="loading-container" :element-loading-text="$t('searchOrder.loadingText')" >
   <div style="display: flex;">
     <el-input v-model="flowCardId" clearable style="margin-left: 10px;margin-bottom: 10px;width: 240px;" :placeholder="$t('searchOrder.incardnumber')" />
     <el-input v-model="filmsId" clearable style="margin-left: 10px;margin-bottom: 10px;width: 240px;" :placeholder="$t('film.infilms')"/>
@@ -1486,6 +1506,7 @@
           @current-change="handlePageChange2"
         />
     </div> -->
+  </div>
   </div>
   </el-dialog>
 <!-- 鍘嗗彶浠诲姟 -->
@@ -1910,4 +1931,12 @@
 #app-container {
   padding-top: 60px; /* 鏍规嵁alert楂樺害璋冩暣 */
 }
+.loading-container {
+  position: relative;
+  height: 100%;
+}
+/* 纭繚閬僵灞傚湪鏈�椤跺眰 */
+.el-loading-mask {
+  z-index: 2000 !important;
+}
 </style>
\ No newline at end of file

--
Gitblit v1.8.0