|
@@ -5,6 +5,7 @@ export default {
|
|
|
</script>
|
|
|
<script setup>
|
|
|
import { ref, reactive, toRaw, toRefs } from "vue";
|
|
|
+import { useRouter, useRoute } from "vue-router";
|
|
|
import useUserStore from "@/store/modules/user";
|
|
|
import word from "@/assets/images/word2.png";
|
|
|
import chat from "@/assets/images/profile.jpg";
|
|
@@ -21,6 +22,8 @@ import forwordTree from "@/components/forwordTree/index.vue"; //选择文件发
|
|
|
//websocket连接====
|
|
|
import useWebsoctStore from "@/store/modules/websocket";
|
|
|
import { ElMessage } from "element-plus";
|
|
|
+const route = useRoute();
|
|
|
+console.log('route===', route)
|
|
|
const websoctStore = useWebsoctStore();
|
|
|
//====
|
|
|
const { proxy } = getCurrentInstance();
|
|
@@ -33,6 +36,7 @@ const sendId = ref(""); //选择发送的文件id
|
|
|
const isForward = ref(false);
|
|
|
const openFile = ref(false); //文件目录
|
|
|
const openForwardFile = ref(false); //转发目录
|
|
|
+const showCircel=ref('') //是否 显示圆点
|
|
|
const chatRecords = reactive({ data: [] });
|
|
|
const sendCont = reactive({
|
|
|
//发送聊天内容数据组装
|
|
@@ -190,6 +194,9 @@ const handleNewMessage = () => {
|
|
|
};
|
|
|
watchEffect(() => {
|
|
|
if (websoctStore.messOne?.fromId) {
|
|
|
+ if(websoctStore.messOne.fromId==personList.data[0]?.fromId){
|
|
|
+ showCircel.value=websoctStore.messOne.fromId
|
|
|
+ }
|
|
|
msgRecordEvent(websoctStore.messOne.fromId);
|
|
|
}
|
|
|
});
|
|
@@ -238,7 +245,6 @@ const forwardClick = async (indexs,docIds) => {
|
|
|
//获取最上层树的id
|
|
|
const topSpaceid = await spaceInfo(3);
|
|
|
spaceId.value = topSpaceid.data.spaceId.toString();
|
|
|
- console.log("topSpaceid", topSpaceid);
|
|
|
openForwardFile.value = true;
|
|
|
};
|
|
|
const forwardChangeMsg = async (val) => {};
|
|
@@ -246,7 +252,6 @@ const forwardChangeMsg = async (val) => {};
|
|
|
const downClick =async (fileId) => {
|
|
|
// location.href=await fileDownload(fileId)
|
|
|
location.href=`${import.meta.env.VITE_APP_BASE_API}/api/download/${fileId}`;
|
|
|
- console.log('downRes===', downRes)
|
|
|
}
|
|
|
// 滚动翻页========
|
|
|
onMounted(() => {
|
|
@@ -316,6 +321,7 @@ onMounted(() => {
|
|
|
{{ item.cont ? item.cont : item.content }}</span
|
|
|
>
|
|
|
</div>
|
|
|
+ <span class="yuandian" v-if="showCircel==item.fromId&&$route.path=='/index'"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 右侧聊天 -->
|
|
@@ -454,4 +460,16 @@ onMounted(() => {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
@import "@/assets/styles/my-common.scss";
|
|
|
+.left-container{
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+.yuandian{
|
|
|
+ width: 8px;
|
|
|
+ height: 8px;
|
|
|
+ position: absolute;
|
|
|
+ right: 8px;
|
|
|
+ top: 6px;
|
|
|
+ background: #FA5151;
|
|
|
+ border-radius: 4px;
|
|
|
+}
|
|
|
</style>
|