|
@@ -156,6 +156,9 @@ const clickItem =(row) =>{
|
|
|
if(row.msgId === '5'){
|
|
|
window.open("/storage/warningInfo",'_blank')
|
|
|
}
|
|
|
+ if(row.msgId === '6'){
|
|
|
+ window.open("/requisition",'_blank')
|
|
|
+ }
|
|
|
}
|
|
|
const openMessageDialog = () => {
|
|
|
handleQuery();
|
|
@@ -272,10 +275,19 @@ const handleQuery1 = (params, done) => {
|
|
|
queryMessageList(querySearch, page1, pageData1, done);
|
|
|
};
|
|
|
|
|
|
+const timer = ref(null)
|
|
|
onMounted(() => {
|
|
|
checkUnReadMessageNum();
|
|
|
+ timer.value = setInterval(() => {
|
|
|
+ checkUnReadMessageNum();
|
|
|
+ }, 20000);
|
|
|
+});
|
|
|
+onBeforeUnmount(()=>{
|
|
|
+ clearInterval(timer.value)
|
|
|
+})
|
|
|
+onUnmounted(()=>{
|
|
|
+ clearInterval(timer.value)
|
|
|
});
|
|
|
-
|
|
|
const userCenterRef = ref();
|
|
|
const userCenter = () => {
|
|
|
userCenterRef.value && userCenterRef.value?.show();
|