【update】 起草组列表和详情、跳转会议

This commit is contained in:
danshihao
2024-01-15 10:58:07 +08:00
parent 500e51096b
commit d2a8498a27
5 changed files with 116 additions and 40 deletions
+13 -3
View File
@@ -87,9 +87,19 @@ Page({
},
// 项目详情
projectDetail(e){
wx.navigateTo({
url: `../projectDetail/projectDetail?id=${e.currentTarget.dataset.project.id}&type=${this.data.type}&workingGroupId=${e.currentTarget.dataset.project.workingGroupId}`,
})
// 工作组id
const workingGroupId = e.currentTarget.dataset.project.workingGroupId
// 起草组id
const draftingGroupId = e.currentTarget.dataset.project.draftingGroupId
if (workingGroupId) {
wx.navigateTo({
url: `../projectDetail/projectDetail?id=${e.currentTarget.dataset.project.id}&type=${this.data.type}&workingGroupId=${workingGroupId}`,
})
} else if (draftingGroupId) {
wx.navigateTo({
url: `../projectDetail/projectDetail?id=${e.currentTarget.dataset.project.id}&type=${this.data.type}&draftingGroupId=${draftingGroupId}`,
})
}
},
loadData(){
const that = this