消息已读

master
lion 1 year ago
parent 3654e93a38
commit 7cb61e41b0

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

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

Loading…
Cancel
Save