lex-xin пре 6 месеци
родитељ
комит
b565e82e9e

+ 0 - 1
src/TUIKit/TUIComponents/container/TUIChat/components/message-custom.vue

@@ -172,7 +172,6 @@ export default defineComponent({
     };
 
     const handleNotice = async () => {
-      console.log(data.isCustom, 'data.isCustom')
       if(!data.isCustom?.msgId) return
       try {
         await imGroupNoticeDetail(data.isCustom?.msgId)

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

@@ -8,7 +8,7 @@
           <div class="username">
             <div class="users">
               <span class="name">{{ groupDetail.username }}</span>
-              <span class="tag">{{ formatJobType(groupDetail.clientType) }}</span>
+              <span class="tag">{{ formatJobType(groupDetail.jobType) }}</span>
             </div>
             <div class="userTime">
               <span class="time">{{ groupDetail.createTime }}</span>

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

@@ -8,7 +8,7 @@
           <div class="username">
             <div class="users">
               <span class="name">{{ item.username }}</span>
-              <span class="tag">{{ formatJobType(item.clientType) }}</span>
+              <span class="tag">{{ formatJobType(item.jobType) }}</span>
             </div>
             <div class="userTime">
               <span class="time">{{ item.createTime }}</span>
@@ -232,40 +232,6 @@ const ManageNotification = defineComponent({
       return template[jobType];
     };
 
-    // 更新群资料
-    // const updateProfile = async () => {
-    //   if (data.title && data.input) {
-    //     // ctx.emit("update", { key: "notification", value: data.input });
-    //     // data.groupProfile.notification = data.input;
-    //     // data.input = "";
-    //     try {
-    //       const params = {
-    //         clientType: "TEACHER",
-    //         groupId: data.groupProfile.groupID,
-    //         content: data.input,
-    //         title: data.title,
-    //       };
-    //       if (data.groupList.id) {
-    //         await imGroupNoticeUpdate({
-    //           ...params,
-    //           id: data.groupList.id,
-    //         });
-    //       } else {
-    //         await imGroupNoticeSave(params);
-    //       }
-    //       data.groupList.content = data.input;
-    //       ctx.emit("update", { key: "notification", value: data.title });
-    //       data.groupProfile.notification = data.title;
-    //       data.groupList.content = data.input;
-    //       data.groupList.title = data.title;
-    //       data.input = "";
-    //       getNotification();
-    //     } catch {
-    //       //
-    //     }
-    //   }
-    //   data.isEdit = !data.isEdit;
-    // };
 
     const onOperation = async (item: any, type: string, index?: number) => {
       try {