西海岸-基础设施:点击消息通知列表中的数据,跳转到流程详情页面

This commit is contained in:
guoyue 2022-10-18 14:11:20 +08:00
parent 5f3aad2539
commit dd100d3867
2 changed files with 14 additions and 26 deletions

View File

@ -262,35 +262,27 @@ const goPage = (item) => {
} }
} }
} }
let isQingDao = whoShow.itShowQingDao;
// //
const read = (item) => { const read = (item) => {
if (selectData.value.length === 0 && !item) { if (selectData.value.length === 0 && !item) {
message.error('未选择消息!') return message.error('未选择消息!')
return
} }
console.log(selectData.value) console.log(selectData.value)
if (item) { if (item) {
// // ,
if (item.readStatus === 1) { if (item.readStatus === 1) {
if(isQingDao) { return goPage(item)
goPage(item)
}
//
return
} }
mynoticeRead(item.id).then((res) => { mynoticeRead(item.id).then((res) => {
if (res.data.code == 0) { if (res.data.code == 0) {
message.success('通知已读!') message.success('通知已读!')
mybus.emit('getMynotice') mybus.emit('getMynotice')
init() init()
if (isQingDao) {
// //
setTimeout(() => { setTimeout(() => {
goPage(item) goPage(item)
}, 1000) }, 1500)
}
} else { } else {
message.error('操作失败!') message.error('操作失败!')
} }

View File

@ -85,9 +85,6 @@ export default defineComponent({
} }
onMounted(() => { onMounted(() => {
if (itShowXiHaiAn) {
handleClick(menuList[0])
} else {
if (type) { if (type) {
console.log('type---------->', type) console.log('type---------->', type)
let _obj = menuList.find(v => v.key == type) let _obj = menuList.find(v => v.key == type)
@ -99,7 +96,6 @@ export default defineComponent({
handleClick(menuList[0]) handleClick(menuList[0])
} }
} }
}
}) })
return { return {