Browse Source

更新打包

lex 1 year ago
parent
commit
6eecbf595c

File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-15e52f93.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-25f7074f.css


+ 2 - 2
dist/index.html

@@ -6,8 +6,8 @@
   <link rel="icon" type="image/svg+xml" href="./vite.svg" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <title>IM</title>
-  <script type="module" crossorigin src="./assets/index-dac4194e.js"></script>
-  <link rel="stylesheet" href="./assets/index-fcfb117f.css">
+  <script type="module" crossorigin src="./assets/index-15e52f93.js"></script>
+  <link rel="stylesheet" href="./assets/index-25f7074f.css">
 </head>
 
 <body>

+ 5 - 0
src/TUIKit/TUIComponents/container/TUIChat/components/index.vue

@@ -123,6 +123,11 @@ onMounted(async () => {
   if (props.message?.payload?.operatorID && props.message?.payload?.operatorID.indexOf("KT") != -1) {
     const operatorInfo = await TUIServer.getUserProfile([props.message?.payload?.operatorID]);
     message.value.payload.operatorID = operatorInfo.data[0]?.nick;
+
+    if (props.message?.payload?.newGroupProfile?.ownerID) {
+      const newOperatorInfo = await TUIServer.getUserProfile([props.message?.payload?.newGroupProfile?.ownerID]);
+      message.value.payload.newGroupProfile.ownerID = newOperatorInfo.data[0]?.nick;
+    }
   }
 });
 

+ 14 - 13
src/TUIKit/TUIComponents/container/TUIChat/components/message-merger.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="message-merger">
-    <div class="merger-box" :data-value="data.message">
+    <!-- <div class="merger-box" :data-value="data.message">
       <p class="merger-title">{{ data.title }}</p>
       <p
         class="merger-text"
@@ -10,44 +10,45 @@
         {{ item }}
       </p>
     </div>
-    <span class="merger-label">聊天记录</span>
+    <span class="merger-label">聊天记录</span> -->
+    当前版本不支持查看此消息
   </div>
 </template>
 
 <script lang="ts">
-import { defineComponent, watchEffect, reactive, toRefs } from 'vue';
+import { defineComponent, watchEffect, reactive, toRefs } from "vue";
 
 export default defineComponent({
   props: {
     data: {
       type: Object,
-      default: () => ({})
-    }
+      default: () => ({}),
+    },
   },
   setup(props: any, ctx: any) {
     const data = reactive({
-      data: {}
+      data: {},
     });
 
     watchEffect(() => {
       data.data = props.data;
     });
     return {
-      ...toRefs(data)
+      ...toRefs(data),
     };
-  }
+  },
 });
 </script>
 <style lang="scss" scoped>
-@import url('../../../styles/common.scss');
-@import url('../../../styles/icon.scss');
+@import url("../../../styles/common.scss");
+@import url("../../../styles/icon.scss");
 .message-merger {
   display: flex;
   flex-direction: column;
   .merger-label {
-    border-top: 1Px solid #dddddd;
-    margin-top: 10Px;
-    padding-top: 5Px;
+    border-top: 1px solid #dddddd;
+    margin-top: 10px;
+    padding-top: 5px;
   }
 }
 </style>

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

@@ -76,6 +76,7 @@ const ManageNotification = defineComponent({
             clientType: "TEACHER",
             groupId: data.groupProfile.groupID,
             content: data.input,
+            title: data.input,
           };
           if (data.groupList.id) {
             await imGroupNoticeUpdate({
@@ -86,8 +87,9 @@ const ManageNotification = defineComponent({
             await imGroupNoticeSave(params);
           }
           data.groupList.content = data.input;
+          ctx.emit("update", { key: "notification", value: data.input });
+          data.groupProfile.notification = data.input;
           data.input = "";
-          console.log(data.groupList, "groupList");
         } catch {
           //
         }

Some files were not shown because too many files changed in this diff