diff --git a/src/views/routine/enlistmentReserve/enlistmentReserveAttach/index.vue b/src/views/routine/enlistmentReserve/enlistmentReserveAttach/index.vue index 97dd45e..b68e15c 100644 --- a/src/views/routine/enlistmentReserve/enlistmentReserveAttach/index.vue +++ b/src/views/routine/enlistmentReserve/enlistmentReserveAttach/index.vue @@ -17,7 +17,7 @@ - + @@ -63,10 +63,12 @@ @@ -229,14 +231,21 @@ export default { this.title = "添加保留学籍申请附件(入伍通知书等)"; }, /** 修改按钮操作 */ - handleUpdate(row) { + handleUpdate(row, data) { this.reset(); const id = row.id || this.ids - getEnlistmentReserveAttach(id).then(response => { - this.form = response.data; - this.open = true; - this.title = "修改保留学籍申请附件(入伍通知书等)"; - }); + // getEnlistmentReserveAttach(id).then(response => { + // this.form = response.data; + // this.open = true; + // this.title = "修改保留学籍申请附件(入伍通知书等)"; + // }); + this.$modal.confirm('如果要' + data + '附件信息,请到申请表' + data + ',是否跳转到申请表?').then(() => { + this.$router.push({ + path: "/routine/enlistmentReserve/applicationForm", + query: { id: row.rtEnlistmentReserves[0].id } // 将 row.id 放在 query 中 + }); + }).catch(() => { }); + }, /** 提交按钮 */ submitForm() { @@ -273,7 +282,13 @@ export default { this.download('routine/enlistmentReserveAttach/export', { ...this.queryParams }, `enlistmentReserveAttach_${new Date().getTime()}.xlsx`) - } + }, + detail(row) { + this.$router.push({ + path: "/routine/enlistmentReserve/applicationForm", + query: { id: row.rtEnlistmentReserves[0].id, type: 'detail',deployId: row.rtEnlistmentReserves[0].deployId, processInstanceId: row.rtEnlistmentReserves[0].processInstanceId } // 将 row.id 放在 query 中 + }) + }, } };