Commit 861445ab by xiexiaoqin

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

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