From e52f07d1929ffb264f86e9e9fd18dd410b7b29b5 Mon Sep 17 00:00:00 2001
From: cccccyb <995134776@qq.com>
Date: Thu, 8 Jun 2023 02:43:39 +0800
Subject: [PATCH] add the rightClick menu to update the top of notice
---
.../components/notice/NoticeManageTable.vue | 132 ++++++++++++++++--
ui/src/components/notice/NoticeShowDialog.vue | 39 +++++-
ui/src/components/notice/NoticeViewCard.vue | 26 ----
ui/src/pages/notice/NoticeTypeManage.vue | 33 ++++-
4 files changed, 185 insertions(+), 45 deletions(-)
diff --git a/ui/src/components/notice/NoticeManageTable.vue b/ui/src/components/notice/NoticeManageTable.vue
index fb17e30..b9acee4 100644
--- a/ui/src/components/notice/NoticeManageTable.vue
+++ b/ui/src/components/notice/NoticeManageTable.vue
@@ -7,6 +7,8 @@
border
highlight-current-row
@selection-change="handleSelectionChange"
+ @row-contextmenu="openClickMenu"
+ @row-click="handleShow"
:header-cell-style="{
background: 'darksalmon',
'text-align': 'center',
@@ -36,6 +38,7 @@
{{ scope.row.noticeType.name }}
-
+
+
+ {{
+ scope.row.priority <= 4
+ ? '普通'
+ : scope.row.priority <= 10
+ ? '优先'
+ : '紧急'
+ }}
+
+
- {{ scope.row.sender.username }}
-
+ {{ scope.row.sender.username }}
@@ -146,12 +166,37 @@
+
+