【修改】修改bug

This commit is contained in:
zhoulingpo
2023-04-28 11:56:34 +08:00
parent 83acaf9dc9
commit 4aec2f6de7
3 changed files with 21 additions and 16 deletions
+2 -1
View File
@@ -110,10 +110,11 @@
prcId: this.prcId,
prcType: this.prcType
}).then(res=>{
let that=this
let data=res.data
this.processOld=data
console.log( this.processOld,"processOld")
resolve(this)
resolve(that)
}).catch(err=>{
reject()
})
+5 -5
View File
@@ -161,15 +161,15 @@ export default {
this.disabled=true
}
this.getProcessDetail(params).then(res=>{
this.tableData = JSON.parse(this.processOld.dataJson)
this.applicationForm.power = this.tableData[0].power
this.applicationForm.applyReason = this.tableData[0].applyReason
this.processForm.prcName = this.prcName
this.tableData = JSON.parse(res.processOld.dataJson)
this.applicationForm.power = res.tableData[0].power
this.applicationForm.applyReason = res.tableData[0].applyReason
this.processForm.prcName = res.prcName
this.disabled=false
this.formControl= true
if(this.$route.query.type=='yiban'){
this.disabled=true
this.submitjson=JSON.parse(this.processOld.submitJson)
this.submitjson=JSON.parse(res.processOld.submitJson)
}else{
}
+14 -10
View File
@@ -219,11 +219,15 @@ export default {
if(tableData[0].reportId){
this.tableData=tableData
}
debugger
if(this.processOld.submitJson !== '{}'){
this.assignForm =JSON.parse(this.processOld.submitJson)
}
this.$nextTick(()=>{
this.$refs.applicationFormRef.clearValidate()
this.$refs.assignFormRef.clearValidate()
})
})
}
if (this.$route.query.taskDefinitionKey == 'aid4' ) {
this.taskId = this.$store.getters.handleProcess.taskId
@@ -237,8 +241,9 @@ export default {
console.log("122")
this.getProcessDetail().then(res => {
//基础信息
this.tableData = JSON.parse(this.processOld.dataJson)
this.applicationForm.power = this.tableData[0].power
console.log(res.prcName)
this.tableData = JSON.parse(res.processOld.dataJson)
this.applicationForm.power = res.tableData[0].power
this.applicationForm.applyReason = this.tableData[0].applyReason
//指派信息
@@ -253,18 +258,17 @@ export default {
this.formControl = true
this.initShow = true
this.showTableD = true
this.getProcessDetail().then(() => {
this.tableData = JSON.parse(this.processOld.dataJson)
this.applicationForm.power = this.tableData[0].power
this.applicationForm.applyReason = this.tableData[0].applyReason
this.processForm.prcName = this.prcName
this.getProcessDetail().then((res) => {
res.tableData = JSON.parse(res.processOld.dataJson)
res.applicationForm.power = res.tableData[0].power
res.applicationForm.applyReason = res.tableData[0].applyReason
res.processForm.prcName = res.prcName
//指派信息
// ({ name: a.name, age: a.age } = b)
this.assignForm = JSON.parse(this.processOld.submitJson)
this.assignForm = JSON.parse(res.processOld.submitJson)
})
}
console.log(this.PERMISSION, 'ddd')
},
methods: {
handleCheck(name) {