From bce05b5409acacab168ae80035d342708e0e1732 Mon Sep 17 00:00:00 2001
From: zyf972 <1525833171@qq.com>
Date: Tue, 25 Feb 2025 00:24:52 +0800
Subject: [PATCH] =?UTF-8?q?feat():=E4=BF=AE=E6=94=B9=E4=BA=86operTime?=
=?UTF-8?q?=E5=92=8Cnotice=E7=9A=84=E5=89=8D=E7=AB=AFbug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/notice.js | 6 +++---
src/views/system/notice/index.vue | 2 +-
src/views/system/operlog/index.vue | 14 +++++++-------
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/api/system/notice.js b/src/api/system/notice.js
index 0c4dd4c..92fbc1d 100644
--- a/src/api/system/notice.js
+++ b/src/api/system/notice.js
@@ -27,9 +27,9 @@ export function addNotice(data) {
}
// 修改公告
-export function updateNotice(data) {
+export function updateNotice(id,data) {
return request({
- url: '/system/notice',
+ url: '/system/notice/' + id,
method: 'PUT',
data: data
})
@@ -41,4 +41,4 @@ export function delNotice(noticeId) {
url: '/system/notice/' + noticeId,
method: 'DELETE'
})
-}
\ No newline at end of file
+}
diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue
index 1b24bb9..e985b70 100644
--- a/src/views/system/notice/index.vue
+++ b/src/views/system/notice/index.vue
@@ -261,7 +261,7 @@ function submitForm() {
proxy.$refs["noticeRef"].validate(valid => {
if (valid) {
if (form.value.noticeId != undefined) {
- updateNotice(form.value).then(response => {
+ updateNotice(form.value.noticeId,form.value).then(response => {
proxy.$modal.msgSuccess("修改成功");
open.value = false;
getList();
diff --git a/src/views/system/operlog/index.vue b/src/views/system/operlog/index.vue
index 914ef6e..87ff963 100644
--- a/src/views/system/operlog/index.vue
+++ b/src/views/system/operlog/index.vue
@@ -83,7 +83,7 @@
icon="Delete"
:disabled="multiple"
@click="handleDelete"
- v-hasPermi="['monitor:operlog:remove']"
+ v-hasPermi="['system:operlog:remove']"
>删除
@@ -92,7 +92,7 @@
plain
icon="Delete"
@click="handleClean"
- v-hasPermi="['monitor:operlog:remove']"
+ v-hasPermi="['system:operlog:clean']"
>清空
@@ -101,7 +101,7 @@
plain
icon="Download"
@click="handleExport"
- v-hasPermi="['monitor:operlog:export']"
+ v-hasPermi="['system:operlog:export']"
>导出
@@ -123,19 +123,19 @@
-
+
{{ parseTime(scope.row.operTime) }}
-
+
{{ scope.row.costTime }}毫秒
- 详细
+ 详细
@@ -301,7 +301,7 @@ function handleClean() {
/** 导出按钮操作 */
function handleExport() {
- proxy.download("monitor/operlog/export",{
+ proxy.download("system/operlog/export",{
...queryParams.value,
}, `config_${new Date().getTime()}.xlsx`);
}