This commit is contained in:
wanglei
2021-12-14 16:10:49 +08:00
parent c57a77ab16
commit c264e4ad47
5 changed files with 13 additions and 12 deletions

View File

@@ -68,9 +68,6 @@ export default {
params: null, params: null,
} }
}, },
created() {
document.title = "会议通知";
},
computed: { computed: {
grid() { grid() {
return [ return [
@@ -134,6 +131,7 @@ export default {
}, },
onShow() { onShow() {
document.title = "会议通知";
this.$dict.load("meetingNoticeBefore", "meetingNoticeAfter"); this.$dict.load("meetingNoticeBefore", "meetingNoticeAfter");
this.getData(); this.getData();
}, },

View File

@@ -63,7 +63,6 @@ export default {
} }
}, },
created() { created() {
document.title = "我发起的";
this.injectJWeixin(['sendChatMessage']).then(() => { this.injectJWeixin(['sendChatMessage']).then(() => {
this.getList() this.getList()
}) })

View File

@@ -132,13 +132,10 @@ export default {
} }
}, },
created() {
document.title = "通知公告";
this.$dict.load("announcementStatus");
},
onShow() { onShow() {
this.current = 1; this.current = 1;
document.title = "通知公告";
this.$dict.load("announcementStatus");
this.injectJWeixin(['sendChatMessage']).then(() => { this.injectJWeixin(['sendChatMessage']).then(() => {
this.getList(); this.getList();
}) })
@@ -219,7 +216,8 @@ export default {
change(val) { change(val) {
this.index = val; this.index = val;
this.current = 1; this.current = 1;
this.getList() this.dataList = [];
this.getList();
}, },
getList() { getList() {
this.$http.post(this.index == 0 ? "/app/appannouncement/list-latest" : "/app/appannouncement/list-mgr", null, { this.$http.post(this.index == 0 ? "/app/appannouncement/list-latest" : "/app/appannouncement/list-mgr", null, {

View File

@@ -99,7 +99,6 @@ export default {
}, },
onLoad(opt) { onLoad(opt) {
document.title = "新增公告";
if(opt.id) { if(opt.id) {
this.form.id = opt.id; this.form.id = opt.id;
this.flag = opt.flag; this.flag = opt.flag;
@@ -171,6 +170,10 @@ export default {
}) })
}, },
}, },
onShow() {
document.title = "新增公告";
},
computed: { computed: {
background() { background() {
return `url(${this.$cdn}/notice/jiaobiao.png) no-repeat; background-size: 46px 48px;position: absolute;bottom: 0;right: 0;` return `url(${this.$cdn}/notice/jiaobiao.png) no-repeat; background-size: 46px 48px;position: absolute;bottom: 0;right: 0;`

View File

@@ -74,7 +74,6 @@
}, },
onLoad(opt) { onLoad(opt) {
document.title = "公告详情";
this.id = opt.id; this.id = opt.id;
this.flag = opt.flag; this.flag = opt.flag;
}, },
@@ -85,6 +84,10 @@
}) })
}, },
onShow() {
document.title = "公告详情";
},
methods: { methods: {
...mapActions(['previewFile', 'injectJWeixin']), ...mapActions(['previewFile', 'injectJWeixin']),
preFile(e) { preFile(e) {