This commit is contained in:
wanglei
2021-11-30 14:40:57 +08:00
parent 0a48ec5d5f
commit 15f0fe254e

View File

@@ -91,19 +91,6 @@
}
},
created() {
const {id} = this.$route.query
if(id){
this.comp = "detail";
this.params = {
id,
flag: true
};
this.showList = false;
}
this.$dict.load("announcementStatus");
},
computed: {
tabs() {
return [{name: "最新公告"}, {name: "公告管理"}];
@@ -143,7 +130,22 @@
}
},
created() {
this.$dict.load("announcementStatus");
},
methods: {
emitShow(){
const {id} = this.$route.query
if(id){
this.comp = "detail";
this.params = {
id,
flag: true
};
this.showList = false;
}
},
changeState() {
this.$http.post(this.content == '删除' ? '/app/appannouncement/delete' : "/app/appannouncement/update-status", null, {
params: {