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

@@ -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, {

View File

@@ -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;`

View File

@@ -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) {