lex-xin 8 mēneši atpakaļ
vecāks
revīzija
3d25d009e4

+ 6 - 17
src/TUIKit/TUIComponents/container/TUIChat/manage-components/manage-notification-detail.vue

@@ -8,7 +8,6 @@
           <div class="username">
             <div class="users">
               <span class="name">{{ groupDetail.username }}</span>
-              <span class="tag">{{ formatJobType(groupDetail.jobType) }}</span>
             </div>
             <div class="userTime">
               <span class="time">{{ groupDetail.createTime }}</span>
@@ -204,15 +203,6 @@ const ManageNotification = defineComponent({
       getNotification();
     });
 
-    const formatJobType = (jobType: string) => {
-      const template = {
-        TEACHER: "音乐老师",
-        ADMIN: "管理员",
-        HEADMASTER: "校长",
-      } as any;
-      return template[jobType];
-    };
-
 
     const onOperation = async (item: any, type: string) => {
       try {
@@ -308,7 +298,6 @@ const ManageNotification = defineComponent({
     return {
       ...toRefs(data),
       popoverRef,
-      formatJobType,
       onMore,
       onTopFlag,
       // updateProfile,
@@ -382,7 +371,7 @@ export default ManageNotification;
     align-items: center;
     .name {
       font-weight: 600;
-      font-size: 16px;
+      font-size: 14px;
       color: #333333;
       line-height: 22px;
     }
@@ -419,14 +408,14 @@ export default ManageNotification;
   .section-content {
     h2 {
       font-weight: 600;
-      font-size: 16px;
+      font-size: 14px;
       color: #333333;
       line-height: 24px;
       word-wrap: break-word;
       word-break: break-all;
     }
     .content {
-      font-size: 16px;
+      font-size: 14px;
       color: #777777;
       line-height: 24px;
       word-wrap: break-word;
@@ -459,7 +448,7 @@ export default ManageNotification;
   }
 
   p {
-    font-size: 16px;
+    font-size: 14px;
     color: #aaaaaa;
     line-height: 22px;
   }
@@ -488,7 +477,7 @@ export default ManageNotification;
   .input-title {
     display: flex;
     align-items: center;
-    font-size: 16px;
+    font-size: 14px;
     color: #333333;
     line-height: 22px;
     padding-bottom: 10px;
@@ -560,7 +549,7 @@ export default ManageNotification;
 
   .p-item {
     margin-bottom: 8px;
-    font-size: 16px;
+    font-size: 14px;
     color: #131415;
     border-radius: 8px;
     padding: 12px 0;

+ 5 - 5
src/TUIKit/TUIComponents/container/TUIChat/manage-components/manage-notification.vue

@@ -431,14 +431,14 @@ export default ManageNotification;
   .section-content {
     h2 {
       font-weight: 600;
-      font-size: 16px;
+      font-size: 14px;
       color: #333333;
       line-height: 24px;
       word-wrap: break-word;
       word-break: break-all;
     }
     .content {
-      font-size: 16px;
+      font-size: 14px;
       color: #777777;
       line-height: 24px;
       word-wrap: break-word;
@@ -471,7 +471,7 @@ export default ManageNotification;
   }
 
   p {
-    font-size: 16px;
+    font-size: 14px;
     color: #aaaaaa;
     line-height: 22px;
   }
@@ -500,7 +500,7 @@ export default ManageNotification;
   .input-title {
     display: flex;
     align-items: center;
-    font-size: 16px;
+    font-size: 14px;
     color: #333333;
     line-height: 22px;
     padding-bottom: 10px;
@@ -572,7 +572,7 @@ export default ManageNotification;
 
   .p-item {
     margin-bottom: 8px;
-    font-size: 16px;
+    font-size: 14px;
     color: #131415;
     border-radius: 8px;
     padding: 12px 0;

+ 3 - 1
src/TUIKit/api.ts

@@ -107,7 +107,9 @@ export const imGroupNoticeUpdate = (params?: object) => {
  * 即时通讯 - 详情
  */
 export const imGroupNoticeDetail = (id?: any) => {
-  return request.get(api + "/imGroupNotice/detail/" + id);
+  return request.get(api + "/imGroupNotice/getNotice", { 
+    params: { id}
+   });
 };