通知公告

This commit is contained in:
wanglei
2021-11-22 11:30:26 +08:00
parent dddbbc6faf
commit 4857e4c124
2 changed files with 39 additions and 14 deletions

View File

@@ -57,9 +57,9 @@
<div class="btn" @click="show=false">关闭</div>
</div>
</u-popup>
<u-modal v-model="modal" :content="'是否确定' + content + '该公告?'" title="" show-confirm-button
<u-modal :show="modal" :content="'是否确定' + content + '该公告?'" title="" show-confirm-button
show-cancel-button confirm-text="确定" cancel-text="取消"
@confirm="confirm"></u-modal>
@confirm="confirm" :closeOnClickOverlay="true" @cancel="modal=false"></u-modal>
</template>
<component :is="comp" v-else :params="params"></component>
</div>
@@ -143,6 +143,7 @@
}).then(res => {
if (res.code == 0) {
this.$u.toast(this.content + "成功");
this.modal = false;
this.getList();
}
})
@@ -160,9 +161,13 @@
if (item.val == 0) {
this.show = false;
return uni.navigateTo({
url: "/pages/notification/components/detail?id=" + this.detail.id
});
this.comp = "detail";
this.params = {
id: this.detail.id,
flag: true
};
this.showList = false;
return
}
if ([1, 2, 4].includes(item.val)) {
@@ -171,9 +176,13 @@
if (item.val == 3) {
this.show = false;
return uni.navigateTo({
url: "/pages/notification/components/add?id=" + this.detail.id + "&flag=" + false
});
this.comp = "add";
this.params = {
id: this.detail.id,
flag: false
};
this.showList = false;
return
}
},
color(status) {
@@ -199,6 +208,10 @@
},
add() {
this.comp = "add";
this.params = {
id: null,
flag: false
};
this.showList = false;
},
change(val) {