From 49206ee0689d44367b9f5de3decf0c3ec02bfb51 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期二, 15 四月 2025 10:56:18 +0800
Subject: [PATCH] update

---
 src/views/ecg/devmanage/DevStatistic.vue |   33 +++++++--------------------------
 1 files changed, 7 insertions(+), 26 deletions(-)

diff --git a/src/views/ecg/devmanage/DevStatistic.vue b/src/views/ecg/devmanage/DevStatistic.vue
index 14c949c..72ba4e2 100644
--- a/src/views/ecg/devmanage/DevStatistic.vue
+++ b/src/views/ecg/devmanage/DevStatistic.vue
@@ -79,7 +79,7 @@
       </el-table-column>
       <el-table-column label="鍨嬪彿" align="center" prop="model" />
 -->
-      <el-table-column label="浣跨敤鐘舵��" align="center" prop="lost" >
+      <el-table-column label="浣跨敤鐘舵��" align="center" prop="state" >
         <template #default="scope">
           <span>{{tranlateDevState(scope.row.state)}}</span>
         </template>
@@ -92,16 +92,13 @@
 
 <script setup lang="ts">
 import {getStrDictOptions, DICT_TYPE, DictDataType} from '@/utils/dict'
-import {dateFormatter, dateFormatter2} from '@/utils/formatTime'
 import download from '@/utils/download'
-import {DeviceApi, DeviceStatisticVO, DeviceVO, DevModelApi, OptionsVO} from '@/api/ecg/devmanage'
-import DeviceForm from './DeviceForm.vue'
+import {DeviceApi, DeviceStatisticVO, DevModelApi, OptionsVO} from '@/api/ecg/devmanage'
 
 /** 璁惧 鍒楄〃 */
 defineOptions({ name: 'DeviceStatistic' })
 
 const message = useMessage() // 娑堟伅寮圭獥
-const { t } = useI18n() // 鍥介檯鍖�
 
 const loading = ref(true) // 鍒楄〃鐨勫姞杞戒腑
 const list = ref<DeviceStatisticVO[]>([]) // 鍒楄〃鐨勬暟鎹�
@@ -110,10 +107,10 @@
   pageSize: 10,
   purchaseDate: [],
   createTime: [],
-  devId: undefined,
-  category: undefined,
-  brand: undefined,
-  model: undefined
+  devId: '',
+  category: '',
+  brand: '',
+  model: ''
 })
 const queryFormRef = ref() // 鎼滅储鐨勮〃鍗�
 const exportLoading = ref(false) // 瀵煎嚭鐨勫姞杞戒腑
@@ -148,22 +145,6 @@
 
 /** 娣诲姞/淇敼鎿嶄綔 */
 const formRef = ref()
-const openForm = (type: string, id?: number) => {
-  formRef.value.open(type, id)
-}
-
-/** 鍒犻櫎鎸夐挳鎿嶄綔 */
-const handleDelete = async (id: number) => {
-  try {
-    // 鍒犻櫎鐨勪簩娆$‘璁�
-    await message.delConfirm()
-    // 鍙戣捣鍒犻櫎
-    await DeviceApi.deleteDevice(id)
-    message.success(t('common.delSuccess'))
-    // 鍒锋柊鍒楄〃
-    await getList()
-  } catch {}
-}
 
 /** 瀵煎嚭鎸夐挳鎿嶄綔 */
 const handleExport = async () => {
@@ -216,4 +197,4 @@
 
   getList()
 })
-</script>
\ No newline at end of file
+</script>

--
Gitblit v1.9.3