Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2021-12-01 16:07:01 +08:00
2 changed files with 22 additions and 6 deletions

View File

@@ -65,10 +65,10 @@
]
}
},
created() {
this.getList()
},
methods: {
emitShow(){
this.getList()
},
emitReachBottom(){
this.current = this.current + 1;
this.getList()

View File

@@ -52,6 +52,7 @@
<div class="footer" v-if="['1','2'].includes(detail.status) && detail.joinStatus==0">
<div @click="updateStatus(0)">请假</div>
<div @click="toDo">待定</div>
<div @click="updateStatus(1)">确认会议</div>
</div>
@@ -77,7 +78,7 @@
</div>
</div>
</template>
<AiBack visible eventName="back" @back="list=false"/>
<AiBack/>
</div>
</template>
@@ -107,10 +108,25 @@
{name: this.count(0) + "人未确认"},
{name: this.count(1) + "人已确认"},
{name: this.count(2) + "人已请假"},
{name: this.count(3) + "人待定"},
]
},
},
methods: {
toDo(){
this.$http.post("/app/appmeetinginfo/tobeConfirm", null, {
params: {
meetingId: this.id,
}
}).then(res => {
if (res.code == 0) {
this.$u.toast("会议待定");
setTimeout(_=>{
uni.navigateBack();
},800)
}
})
},
count(sta) {
return this.detail.attendees?.filter(e => e.joinStatus == sta)?.length;
},
@@ -448,8 +464,8 @@
color: #333333;
}
& > div:first-child {
width: 270px;
& > div:nth-child(1), & > div:nth-child(2){
width: 135px;
height: 100%;
display: flex;
align-items: center;