diff --git a/src/api/task/unit.js b/src/api/task/unit.js index a1e6f4e..8cbcf6b 100644 --- a/src/api/task/unit.js +++ b/src/api/task/unit.js @@ -58,3 +58,11 @@ export function saveNotice(data) { data }) } + +export function isRead(params) { + return request({ + url: 'api/admin/notice/read', + method: 'get', + params:params + }) +} diff --git a/src/views/task/list/unit.vue b/src/views/task/list/unit.vue index 064b560..4292fd9 100644 --- a/src/views/task/list/unit.vue +++ b/src/views/task/list/unit.vue @@ -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) => {