Commit 861445ab by xiexiaoqin

fix: 动态列表去详情页传groupId

parent 22b0868b
......@@ -167,6 +167,12 @@ create.Page({
scheduleTemplateId: this.data.scheduleItem.scheduleTemplateId,
planDate: !!this.data.scheduleItem.planDate ? this.data.scheduleItem.planDate.replace(/\//g, '-') : null
}
//动态列表进来的详情传groupId
if (this.data.scheduleItem.groupId) {
data.groupId = this.data.scheduleItem.groupId;
delete data.id;
delete data.planDate;
}
getScheduleDetail(data).then(res => {
if (res.data.code !== 0) {
return
......@@ -1720,7 +1726,7 @@ create.Page({
meetingId: this.store.data.scheduleId
}).then(res => {
if (res.data.code == 0) {
this.closePopup();
this.closePopup1();
// clear
this.store.data.notes = null;
this.update();
......@@ -1739,7 +1745,7 @@ create.Page({
}).then(res => {
if (res.data.code == 0) {
this.getAffairList(this.store.data.scheduleId);
this.closePopup();
this.closePopup1();
}
})
},
......@@ -1766,7 +1772,7 @@ create.Page({
// clear
this.store.data.parentCommentId = '';
this.update();
this.closePopup();
this.closePopup1();
}
})
},
......@@ -1819,7 +1825,7 @@ create.Page({
notice: true,
}).then(res => {
if (res.data.code == 0) {
this.closePopup();
this.closePopup1();
const [index] = this.getIndexFromAffairList(commentId);
if (index !== -1) {
this.store.data.affairList[index].remark = remark;
......
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