diff --git a/pages/realName/workPlan-details/index.vue b/pages/realName/workPlan-details/index.vue index 891355c..28c8f8a 100644 --- a/pages/realName/workPlan-details/index.vue +++ b/pages/realName/workPlan-details/index.vue @@ -1,9 +1,176 @@ - + diff --git a/pages/realName/workPlan/index.vue b/pages/realName/workPlan/index.vue index c142842..d247ace 100644 --- a/pages/realName/workPlan/index.vue +++ b/pages/realName/workPlan/index.vue @@ -35,6 +35,12 @@ {{ index + 1 }} {{ item.proName }} + {{ item.subComName }} @@ -133,7 +139,7 @@ export default { this.companyList = this.companyList.concat(res.subList) }, leftClick() { - uni.navigateTo({ url: '/pages/realName/index/index' }) + uni.navigateTo({ url: `/pages/realName/index/index` }) }, onSearchFilter() { // 打开底部弹框 @@ -162,7 +168,35 @@ export default { }, /* 点击跳转作业计划详情 */ onViewWorkDetails(row) { - uni.navigateTo({ url: '/pages/realName/workPlan-details/index' }) + uni.navigateTo({ url: `/pages/realName/workPlan-details/index?query=${JSON.stringify(row)}` }) + }, + /* 收藏与取消收藏 */ + onCollection(e, row) { + e.stopPropagation() + // const params = { + // id: row.collectId, + // userId: uni.getStorageSync('realNameUser').userId, + // foreignId: row.proId, + // type: 1 + // } + + // // console.log('params参数', params) + + // uni.request({ + // url: `${config.loginBaseUrl}${ + // row.isCollect == 0 ? '/app/offLine/insertCollect' : '/app/offLine/deleteCollect' + // }`, + // method: 'POST', + // data: JSON.stringify(params), + // header: { + // 'Content-Type': 'application/json', + // token: this.token + // }, + // success: res => { + // console.log('res收藏结果', res) + // }, + // fail: err => {} + // }) } } }