消息已读

master
lion 1 year ago
parent 3654e93a38
commit 7cb61e41b0

@ -58,3 +58,11 @@ export function saveNotice(data) {
data
})
}
export function isRead(params) {
return request({
url: 'api/admin/notice/read',
method: 'get',
params:params
})
}

@ -128,7 +128,8 @@
import {
listunit,
del,
unDoTotal
unDoTotal,
isRead
} from '@/api/task/unit.js'
import {
listdept
@ -401,7 +402,8 @@
.getMonth() + 1
// this.selectMonth.push(currentMonth)
// this.selectMonth.push(currentMonth)
// this.select.month = currentMonth
// this.select.month = currentMonth
//
if (this.$route.path) {
let path = this.$route.path.split("_")
this.select.type = path[1]
@ -456,11 +458,23 @@
}
this.getUnitTypeList()
this.getUnDoTotal()
this.getList()
this.getList()
console.log("this.$route.query123",this.$route.query)
if (this.$route.query.token && this.$route.query.tp){
if(this.$route.query.notice_id){
this.sendIsRead(this.$route.query.notice_id)
}
}
},
watch: {},
methods: {
sendIsRead(id){
isRead({
id:id
}).then(res=>{
})
},
loadDeptOptions() {
listdept().
then((res) => {

Loading…
Cancel
Save