From 97905909f76cee818c834070c7096724e01bd444 Mon Sep 17 00:00:00 2001 From: franktrue Date: Thu, 27 Apr 2023 18:45:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=B3=E9=94=AE=E5=AD=97Ke?= =?UTF-8?q?y=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cert/usageRecord/index.vue | 635 +++++++++++++-------------- 1 file changed, 314 insertions(+), 321 deletions(-) diff --git a/src/views/cert/usageRecord/index.vue b/src/views/cert/usageRecord/index.vue index aa01202..3791eed 100644 --- a/src/views/cert/usageRecord/index.vue +++ b/src/views/cert/usageRecord/index.vue @@ -1,336 +1,329 @@ - - - \ No newline at end of file + } + }); +} + +/** 删除按钮操作 */ +function handleDelete(row) { + const _ids = row.id || ids.value; + proxy.$modal.confirm('是否确认删除使用记录编号为"' + _ids + '"的数据项?').then(function() { + return delUsageRecord(_ids); + }).then(() => { + getList(); + proxy.$modal.msgSuccess("删除成功"); + }).catch(() => {}); +} + +/** 导出按钮操作 */ +function handleExport() { + proxy.download('cert/usageRecord/export', { + ...queryParams.value + }, `usageRecord_${new Date().getTime()}.xlsx`) +} + +getList(); +