|
|
@ -2,7 +2,7 @@
|
|
|
|
* @Author: ch
|
|
|
|
* @Author: ch
|
|
|
|
* @Date: 2022-05-04 17:48:12
|
|
|
|
* @Date: 2022-05-04 17:48:12
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditTime: 2022-05-27 10:30:25
|
|
|
|
* @LastEditTime: 2022-05-27 11:09:52
|
|
|
|
* @Description: file content
|
|
|
|
* @Description: file content
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
@ -13,7 +13,7 @@
|
|
|
|
<section class="section">
|
|
|
|
<section class="section">
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
class="section__item flex"
|
|
|
|
class="section__item flex"
|
|
|
|
:class="item.payload.customType === 'orderAutoDelivery' && 'section__pointer'"
|
|
|
|
:class="item.payload.customType !== 'orderAutoDelivery' && 'section__pointer'"
|
|
|
|
v-for="item in msgData"
|
|
|
|
v-for="item in msgData"
|
|
|
|
:key="item.id"
|
|
|
|
:key="item.id"
|
|
|
|
@click="handleDetail(item)"
|
|
|
|
@click="handleDetail(item)"
|
|
|
@ -49,7 +49,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import UiEmpty from "@/components/UiEmpty.vue";
|
|
|
|
import UiEmpty from "@/components/UiEmpty.vue";
|
|
|
|
import {FormatDate} from '@/plugins/utils'
|
|
|
|
import {FormatDate, CreatUuid} from '@/plugins/utils'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: { UiEmpty },
|
|
|
|
components: { UiEmpty },
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
@ -66,9 +66,27 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
console.log(`socketMsgData`, this.$store.state);
|
|
|
|
// console.log(`socketMsgData`, this.$store.state);
|
|
|
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
|
|
|
this.readMsg();
|
|
|
|
|
|
|
|
},5000)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 把当前会话消息置为已读
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
readMsg(){
|
|
|
|
|
|
|
|
this.Socket.send(JSON.stringify({
|
|
|
|
|
|
|
|
traceId : CreatUuid(),
|
|
|
|
|
|
|
|
traceType : "6",
|
|
|
|
|
|
|
|
content: {
|
|
|
|
|
|
|
|
sessionId : this.msgData[0].sessionId
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$store.commit("setUnreadCount", 0);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 点击详情跳转
|
|
|
|
* 点击详情跳转
|
|
|
|