From 6f1b2cf3dc89059104ca0eedebf5f3ec4d1147f0 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 26 十一月 2025 11:08:17 +0800
Subject: [PATCH] 打印
---
src/views/ecg/devmanage/DevStatistic.vue | 29 +++++------------------------
1 files changed, 5 insertions(+), 24 deletions(-)
diff --git a/src/views/ecg/devmanage/DevStatistic.vue b/src/views/ecg/devmanage/DevStatistic.vue
index e7b435a..72ba4e2 100644
--- a/src/views/ecg/devmanage/DevStatistic.vue
+++ b/src/views/ecg/devmanage/DevStatistic.vue
@@ -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 () => {
--
Gitblit v1.9.3