From 7cb61e41b0df3ae82af9bdfd6103f3bdff0a8036 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 6 Sep 2024 10:40:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=B7=B2=E8=AF=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/task/unit.js | 8 ++++++++ src/views/task/list/unit.vue | 22 ++++++++++++++++++---- 2 files changed, 26 insertions(+), 4 deletions(-) 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) => {