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(); +