From c264e4ad472e6f64ac5a5e0fd974c3779b83993b Mon Sep 17 00:00:00 2001 From: wanglei <1336977847@qq.com> Date: Tue, 14 Dec 2021 16:10:49 +0800 Subject: [PATCH] bug --- src/apps/AppMeetingNotice/AppMeetingNotice.vue | 4 +--- src/apps/AppMeetingNotice/belongToMe.vue | 1 - src/apps/AppNotification/AppNotification.vue | 10 ++++------ src/apps/AppNotification/add.vue | 5 ++++- src/apps/AppNotification/detail.vue | 5 ++++- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/apps/AppMeetingNotice/AppMeetingNotice.vue b/src/apps/AppMeetingNotice/AppMeetingNotice.vue index 6d7389e9..ce4651df 100644 --- a/src/apps/AppMeetingNotice/AppMeetingNotice.vue +++ b/src/apps/AppMeetingNotice/AppMeetingNotice.vue @@ -68,9 +68,6 @@ export default { params: null, } }, - created() { - document.title = "会议通知"; - }, computed: { grid() { return [ @@ -134,6 +131,7 @@ export default { }, onShow() { + document.title = "会议通知"; this.$dict.load("meetingNoticeBefore", "meetingNoticeAfter"); this.getData(); }, diff --git a/src/apps/AppMeetingNotice/belongToMe.vue b/src/apps/AppMeetingNotice/belongToMe.vue index c99b4f09..ec1cad0c 100644 --- a/src/apps/AppMeetingNotice/belongToMe.vue +++ b/src/apps/AppMeetingNotice/belongToMe.vue @@ -63,7 +63,6 @@ export default { } }, created() { - document.title = "我发起的"; this.injectJWeixin(['sendChatMessage']).then(() => { this.getList() }) diff --git a/src/apps/AppNotification/AppNotification.vue b/src/apps/AppNotification/AppNotification.vue index 9614015a..1f934c45 100644 --- a/src/apps/AppNotification/AppNotification.vue +++ b/src/apps/AppNotification/AppNotification.vue @@ -132,13 +132,10 @@ export default { } }, - created() { - document.title = "通知公告"; - this.$dict.load("announcementStatus"); - }, - onShow() { this.current = 1; + document.title = "通知公告"; + this.$dict.load("announcementStatus"); this.injectJWeixin(['sendChatMessage']).then(() => { this.getList(); }) @@ -219,7 +216,8 @@ export default { change(val) { this.index = val; this.current = 1; - this.getList() + this.dataList = []; + this.getList(); }, getList() { this.$http.post(this.index == 0 ? "/app/appannouncement/list-latest" : "/app/appannouncement/list-mgr", null, { diff --git a/src/apps/AppNotification/add.vue b/src/apps/AppNotification/add.vue index 64adf982..9011ca69 100644 --- a/src/apps/AppNotification/add.vue +++ b/src/apps/AppNotification/add.vue @@ -99,7 +99,6 @@ export default { }, onLoad(opt) { - document.title = "新增公告"; if(opt.id) { this.form.id = opt.id; this.flag = opt.flag; @@ -171,6 +170,10 @@ export default { }) }, }, + + onShow() { + document.title = "新增公告"; + }, computed: { background() { return `url(${this.$cdn}/notice/jiaobiao.png) no-repeat; background-size: 46px 48px;position: absolute;bottom: 0;right: 0;` diff --git a/src/apps/AppNotification/detail.vue b/src/apps/AppNotification/detail.vue index 8df3e907..adc62dd3 100644 --- a/src/apps/AppNotification/detail.vue +++ b/src/apps/AppNotification/detail.vue @@ -74,7 +74,6 @@ }, onLoad(opt) { - document.title = "公告详情"; this.id = opt.id; this.flag = opt.flag; }, @@ -85,6 +84,10 @@ }) }, + onShow() { + document.title = "公告详情"; + }, + methods: { ...mapActions(['previewFile', 'injectJWeixin']), preFile(e) {