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