diff --git a/src/views/material/part/partAcceptTwo/detail.vue b/src/views/material/part/partAcceptTwo/detail.vue index 34b30005..d3c5270c 100644 --- a/src/views/material/part/partAcceptTwo/detail.vue +++ b/src/views/material/part/partAcceptTwo/detail.vue @@ -330,6 +330,8 @@ export default { const isView = this.$route.query && this.$route.query.isView this.taskId = taskId this.Id = Id + console.log("this.taskId",taskId); + console.log("this.Id",Id); if (isView == 'true') { this.isView = true } else { @@ -340,6 +342,30 @@ export default { this.getList() this.getSignList() }, +watch:{ + '$route.query.taskId':function(newId, oldId) { + if(newId){ + const taskId = this.$route.query && this.$route.query.taskId + const Id = this.$route.query && this.$route.query.Id + const isView = this.$route.query && this.$route.query.isView + this.taskId = taskId + this.Id = Id + console.log("this.taskId",taskId); + console.log("this.Id",Id); + if (isView == 'true') { + this.isView = true + } else { + this.isView = false + } + this.getPartType() + console.log(this.isView) + this.getList() + this.getSignList() + }else{ + console.log("newId2",newId) + } + }, + }, methods: { // 流程图 async getSignList() {