Commit 59528f06 by fengzhaoyu

Merge branch 'release/2.0.0' of http://gitlab.roboming.com/fengzhaoyu/schedule into release/2.0.0

parents 41abc592 33a42878
...@@ -172,10 +172,9 @@ create.Page({ ...@@ -172,10 +172,9 @@ create.Page({
aheadTimesListId: !!res.data.data.aheadTimes ? res.data.data.aheadTimes : [-1], aheadTimesListId: !!res.data.data.aheadTimes ? res.data.data.aheadTimes : [-1],
}, },
"loading.details": true "loading.details": true
}) })
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.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.roomId = res.data.data.meetingRoomId < 0 ? '' : res.data.data.meetingRoomId
this.store.data.scheduleId = res.data.data.groupId this.store.data.scheduleId = res.data.data.groupId
...@@ -983,13 +982,6 @@ create.Page({ ...@@ -983,13 +982,6 @@ create.Page({
return it return it
}) })
}, },
showPop(e) {
this.setData({
pop: e.target.dataset.pop,
show: true
})
},
// 上传文件 // 上传文件
async handleAddFile() { async handleAddFile() {
this.store.data.description = ''; this.store.data.description = '';
...@@ -1018,37 +1010,11 @@ create.Page({ ...@@ -1018,37 +1010,11 @@ create.Page({
this.update() this.update()
dd.navigateTo({ url: `./../uploadFile/uploadFile?id=${this.store.data.scheduleId}` }) dd.navigateTo({ url: `./../uploadFile/uploadFile?id=${this.store.data.scheduleId}` })
}, },
expand() { expand() {
this.setData({ this.setData({
isExpand: false isExpand: false
}) })
}, },
setCopy(event) {
if (event.currentTarget.dataset.type) {
dd.setClipboard({
text: event.currentTarget.dataset.item,
success: res => {
dd.alert({
buttonText: '确定',
content: '复制成功,请在外部浏览器打开'
})
}
})
} else {
dd.setClipboard({
text: event.currentTarget.dataset.item,
success: res => {
this.setData({
'conToastData.showToast': true,
'conToastData.title': '复制成功',
});
}
})
}
},
//修改任务状态 //修改任务状态
changeTaskStatus(e) { changeTaskStatus(e) {
const data = { const data = {
...@@ -1196,7 +1162,18 @@ create.Page({ ...@@ -1196,7 +1162,18 @@ 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.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 // clear
this.store.data.parentCommentId = ''; this.store.data.parentCommentId = '';
this.update(); 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