bug
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user