添加参会人状态

This commit is contained in:
wanglei
2021-12-01 09:58:32 +08:00
parent 8cbb38a1b0
commit 133761458b

View File

@@ -108,15 +108,24 @@
{name: this.count(0) + "人未确认"}, {name: this.count(0) + "人未确认"},
{name: this.count(1) + "人已确认"}, {name: this.count(1) + "人已确认"},
{name: this.count(2) + "人已请假"}, {name: this.count(2) + "人已请假"},
{name: this.count(3) + "人待定"},
] ]
}, },
}, },
methods: { methods: {
toDo(){ toDo(){
this.$u.toast("会议待定"); this.$http.post("/app/appmeetinginfo/tobeConfirm", null, {
setTimeout(_=>{ params: {
uni.navigateBack(); meetingId: this.id,
},800) }
}).then(res => {
if (res.code == 0) {
this.$u.toast("会议待定");
setTimeout(_=>{
uni.navigateBack();
},800)
}
})
}, },
count(sta) { count(sta) {
return this.detail.attendees?.filter(e => e.joinStatus == sta)?.length; return this.detail.attendees?.filter(e => e.joinStatus == sta)?.length;