From 4837cac701dcc653f4663abd92a668f9cc3978d6 Mon Sep 17 00:00:00 2001 From: kami <605128600@qq.com> Date: Sat, 16 Nov 2024 16:31:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=AD=A6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/work/Alarm.vue | 170 ++++++++++++++++++++++++++++++--------- 1 file changed, 134 insertions(+), 36 deletions(-) diff --git a/src/views/work/Alarm.vue b/src/views/work/Alarm.vue index b313d2b..20d6551 100644 --- a/src/views/work/Alarm.vue +++ b/src/views/work/Alarm.vue @@ -4,7 +4,7 @@ - +
- + @@ -59,7 +59,7 @@ - + @@ -104,7 +104,7 @@ width="150" /> @@ -118,7 +118,7 @@ 查看详情 - + + + + + + + + + + + + - - + > + +
取消 确定确定 + +
+ + + + + + + + + + + + + + + + + + + + + +
@@ -198,27 +299,35 @@ const query = ref({ const list = ref([]); const total = ref(0); +let showData = ref({}) +let dialogShow = ref(false) + const loading = ref(true); +const showDetail = (data) => { + showData.value = data; + dialogShow.value = true; +} + function getList() { let param = { current: query.value.current, size: query.value.size, } - if(query.value.alarmTypeId != -1) { + if (query.value.alarmTypeId != -1) { param['alarmTypeId'] = query.value.alarmTypeId } - if(query.value.replyState != -1) { + if (query.value.replyState != -1) { param['replyState'] = query.value.replyState } - if(query.value.discoveryTime != undefined && query.value.discoveryTime != null) { + if (query.value.discoveryTime != undefined && query.value.discoveryTime != null) { param['startTime'] = query.value.discoveryTime[0] param['endTime'] = query.value.discoveryTime[1] } - if(formData.value.involveDepartId != undefined) { + if (formData.value.involveDepartId != undefined) { param['notificationDepartCode'] = formData.value.involveDepartId } - if(query.value.alarmContent != undefined) { + if (query.value.alarmContent != undefined) { param['alarmContent'] = query.value.alarmContent; } loading.value = true; @@ -229,17 +338,6 @@ function getList() { }); } -function handleTableSort(orderObj) { - if (orderObj.order) { - query.value.order = orderObj.order - query.value.orderProp = orderObj.prop - } else { - query.value.order = '' - query.value.orderProp = '' - } - getList() -} - const tableRef = ref() function reset() {