Commit 1b7bab11 by xiexiaoqin

fix: 增加评论后不调列表接口

parent 9bb010a5
......@@ -172,10 +172,9 @@ create.Page({
iconType: 'icon',
aheadTimesListId: !!res.data.data.aheadTimes ? res.data.data.aheadTimes : [-1],
}
})
this.$store.data.originalData = res.data.data
this.$store.data.originalData = res.data.data;
this.$store.data.locationName = res.data.data.location ? res.data.data.location.locationName : ''
this.$store.data.roomId = res.data.data.meetingRoomId < 0 ? '' : res.data.data.meetingRoomId
this.store.data.scheduleId = res.data.data.groupId
......@@ -1196,7 +1195,18 @@ create.Page({
meetingId: this.store.data.scheduleId,
}).then(res => {
if (res.data.code == 0) {
this.getAffairList(this.store.data.scheduleId);
// 修改列表数据
const [index] = this.getIndexFromAffairList(this.store.data.parentCommentId);
if (index !== -1) {
const addData = res.data.data[0].commentListDataModelList[0];
addData.updateTime = getCreateShowTime(addData.updateTime);
if (this.store.data.affairList[index].replyCommentList) {
this.store.data.affairList[index].replyCommentList.push(addData)
} else {
this.store.data.affairList[index].replyCommentList = [addData];
}
}
// clear
this.store.data.parentCommentId = '';
this.update();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment