BUG修改 以及消息中心自动刷新
This commit is contained in:
parent
3f24f6feed
commit
2cc2cc4e00
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.wuhongjian
|
* @Author: hisense.wuhongjian
|
||||||
* @Date: 2022-05-06 11:12:00
|
* @Date: 2022-05-06 11:12:00
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.liangjunhua
|
||||||
* @LastEditTime: 2022-07-21 16:00:17
|
* @LastEditTime: 2022-07-21 17:09:10
|
||||||
* @Description: 告诉大家这是什么
|
* @Description: 告诉大家这是什么
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -16,7 +16,9 @@
|
||||||
import zhCN from 'ant-design-vue/es/locale/zh_CN'
|
import zhCN from 'ant-design-vue/es/locale/zh_CN'
|
||||||
import Cookies from 'js-cookie'
|
import Cookies from 'js-cookie'
|
||||||
import { onBeforeUnmount } from 'vue'
|
import { onBeforeUnmount } from 'vue'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
import mybus from '@/myplugins/mybus'
|
import mybus from '@/myplugins/mybus'
|
||||||
|
const router = useRouter()
|
||||||
|
|
||||||
// export default {
|
// export default {
|
||||||
// name: 'App',
|
// name: 'App',
|
||||||
|
@ -37,6 +39,10 @@
|
||||||
ws.onmessage = function (e) {
|
ws.onmessage = function (e) {
|
||||||
console.log('服务器返回的信息: ' + e.data)
|
console.log('服务器返回的信息: ' + e.data)
|
||||||
mybus.emit('getMynotice')
|
mybus.emit('getMynotice')
|
||||||
|
// 判断当前路由是否是消息中心
|
||||||
|
if (router.currentRoute.value.name === 'mynoticeView') {
|
||||||
|
mybus.emit('noticeListInit')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
// 4.卸载前, 关闭链接
|
// 4.卸载前, 关闭链接
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.liangjunhua
|
* @Author: hisense.liangjunhua
|
||||||
* @Date: 2022-06-08 15:25:33
|
* @Date: 2022-06-08 15:25:33
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.liangjunhua
|
||||||
* @LastEditTime: 2022-06-14 11:30:52
|
* @LastEditTime: 2022-07-21 17:02:03
|
||||||
* @Description: 图层展示 视频播放
|
* @Description: 图层展示 视频播放
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -78,4 +78,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.liangjunhua
|
* @Author: hisense.liangjunhua
|
||||||
* @Date: 2022-06-21 11:55:07
|
* @Date: 2022-06-21 11:55:07
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.liangjunhua
|
||||||
* @LastEditTime: 2022-07-01 17:03:24
|
* @LastEditTime: 2022-07-21 17:05:11
|
||||||
* @Description: 告诉大家这是什么
|
* @Description: 告诉大家这是什么
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -111,7 +111,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
// import { SearchOutlined } from '@ant-design/icons-vue'
|
// import { SearchOutlined } from '@ant-design/icons-vue'
|
||||||
import { ref, reactive } from 'vue'
|
import { ref, reactive, onBeforeUnmount } from 'vue'
|
||||||
import mybus from '@/myplugins/mybus'
|
import mybus from '@/myplugins/mybus'
|
||||||
import { message } from 'ant-design-vue'
|
import { message } from 'ant-design-vue'
|
||||||
import { mynotice, mynoticeRead } from '@/api/home'
|
import { mynotice, mynoticeRead } from '@/api/home'
|
||||||
|
@ -283,6 +283,12 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
init()
|
init()
|
||||||
|
mybus.on('noticeListInit', () => {
|
||||||
|
init()
|
||||||
|
})
|
||||||
|
onBeforeUnmount(() => {
|
||||||
|
mybus.off('noticeListInit')
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.notice-list {
|
.notice-list {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.liangjunhua
|
* @Author: hisense.liangjunhua
|
||||||
* @Date: 2022-07-12 09:42:44
|
* @Date: 2022-07-12 09:42:44
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.liangjunhua
|
||||||
* @LastEditTime: 2022-07-21 14:58:34
|
* @LastEditTime: 2022-07-21 16:54:05
|
||||||
* @Description:我的申请 能力申请 查看详情
|
* @Description:我的申请 能力申请 查看详情
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -13,14 +13,17 @@
|
||||||
<p class="item">
|
<p class="item">
|
||||||
<span>申请标题:{{ props.refObj.title }}</span>
|
<span>申请标题:{{ props.refObj.title }}</span>
|
||||||
<span>申请单号:{{ props.refObj.applyNumber || '--' }}</span>
|
<span>申请单号:{{ props.refObj.applyNumber || '--' }}</span>
|
||||||
<span>应用系统:{{ props.refObj.applicationSystem }}</span>
|
<span v-if="props.refObj.applicationSystem">
|
||||||
|
应用系统:{{ props.refObj.applicationSystem }}
|
||||||
|
</span>
|
||||||
|
<span v-else></span>
|
||||||
</p>
|
</p>
|
||||||
<p class="item">
|
<p class="item">
|
||||||
<span>申请人信息:{{ props.refObj.user }}</span>
|
<span>申请人信息:{{ props.refObj.user }}</span>
|
||||||
<span>电话:{{ props.refObj.phone }}</span>
|
<span>电话:{{ props.refObj.phone }}</span>
|
||||||
<span>单位:{{ props.refObj.unit }}</span>
|
<span>单位:{{ props.refObj.unit }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p v-if="props.refObj.applicationScene.length > 0">
|
||||||
<span>应用场景:{{ props.refObj.applicationScene.join(';') }}</span>
|
<span>应用场景:{{ props.refObj.applicationScene.join(';') }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
|
|
Loading…
Reference in New Issue