jsk 解决 配件验收 查看明细后返回再查看其它记录后第一次记录缓存未清除的问题

This commit is contained in:
jiask 2026-01-20 13:41:05 +08:00
parent 34296f4266
commit 59a278899c
1 changed files with 26 additions and 0 deletions

View File

@ -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() {