通知公告
This commit is contained in:
@@ -171,7 +171,7 @@ export default {
|
||||
this.show = false;
|
||||
this.changeState();
|
||||
},
|
||||
handleOpt(item) {
|
||||
handleOpt(item){
|
||||
this.content = {
|
||||
1: "撤回",
|
||||
2: "发布",
|
||||
@@ -180,27 +180,20 @@ export default {
|
||||
|
||||
if (item.val == 0) {
|
||||
this.show = false;
|
||||
this.comp = "detail";
|
||||
this.params = {
|
||||
id: this.detail.id,
|
||||
flag: true
|
||||
};
|
||||
this.showList = false;
|
||||
return
|
||||
return uni.navigateTo({
|
||||
url: "/apps/notification/detail?id=" + this.detail.id
|
||||
});
|
||||
}
|
||||
|
||||
if ([1, 2, 4].includes(item.val)) {
|
||||
if ([1,2,4].includes(item.val)) {
|
||||
return this.modal = true;
|
||||
}
|
||||
|
||||
if (item.val == 3) {
|
||||
if(item.val==3){
|
||||
this.show = false;
|
||||
this.comp = "add";
|
||||
this.params = {
|
||||
id: this.detail.id,
|
||||
flag: false
|
||||
};
|
||||
this.showList = false;
|
||||
return uni.navigateTo({
|
||||
url:"/apps/notification/add?id=" + this.detail.id + "&flag=" + false
|
||||
});
|
||||
}
|
||||
},
|
||||
color(status) {
|
||||
@@ -215,22 +208,16 @@ export default {
|
||||
this.detail = item;
|
||||
if (this.index == 1) {
|
||||
this.show = true;
|
||||
} else {
|
||||
this.comp = "detail";
|
||||
this.params = {
|
||||
id: this.detail.id,
|
||||
flag: true
|
||||
};
|
||||
this.showList = false;
|
||||
}else {
|
||||
uni.navigateTo({
|
||||
url: "/apps/notification/detail?id=" + this.detail.id + "&flag=" + true
|
||||
})
|
||||
}
|
||||
},
|
||||
add() {
|
||||
this.comp = "add";
|
||||
this.params = {
|
||||
id: null,
|
||||
flag: false
|
||||
};
|
||||
this.showList = false;
|
||||
add(){
|
||||
uni.navigateTo({
|
||||
url: "/apps/notification/add"
|
||||
})
|
||||
},
|
||||
change(val) {
|
||||
this.index = val;
|
||||
|
||||
Reference in New Issue
Block a user