【修改】修改bug
This commit is contained in:
@@ -110,10 +110,11 @@
|
|||||||
prcId: this.prcId,
|
prcId: this.prcId,
|
||||||
prcType: this.prcType
|
prcType: this.prcType
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
|
let that=this
|
||||||
let data=res.data
|
let data=res.data
|
||||||
this.processOld=data
|
this.processOld=data
|
||||||
console.log( this.processOld,"processOld")
|
console.log( this.processOld,"processOld")
|
||||||
resolve(this)
|
resolve(that)
|
||||||
}).catch(err=>{
|
}).catch(err=>{
|
||||||
reject()
|
reject()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -161,15 +161,15 @@ export default {
|
|||||||
this.disabled=true
|
this.disabled=true
|
||||||
}
|
}
|
||||||
this.getProcessDetail(params).then(res=>{
|
this.getProcessDetail(params).then(res=>{
|
||||||
this.tableData = JSON.parse(this.processOld.dataJson)
|
this.tableData = JSON.parse(res.processOld.dataJson)
|
||||||
this.applicationForm.power = this.tableData[0].power
|
this.applicationForm.power = res.tableData[0].power
|
||||||
this.applicationForm.applyReason = this.tableData[0].applyReason
|
this.applicationForm.applyReason = res.tableData[0].applyReason
|
||||||
this.processForm.prcName = this.prcName
|
this.processForm.prcName = res.prcName
|
||||||
this.disabled=false
|
this.disabled=false
|
||||||
this.formControl= true
|
this.formControl= true
|
||||||
if(this.$route.query.type=='yiban'){
|
if(this.$route.query.type=='yiban'){
|
||||||
this.disabled=true
|
this.disabled=true
|
||||||
this.submitjson=JSON.parse(this.processOld.submitJson)
|
this.submitjson=JSON.parse(res.processOld.submitJson)
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -219,11 +219,15 @@ export default {
|
|||||||
if(tableData[0].reportId){
|
if(tableData[0].reportId){
|
||||||
this.tableData=tableData
|
this.tableData=tableData
|
||||||
}
|
}
|
||||||
debugger
|
|
||||||
if(this.processOld.submitJson !== '{}'){
|
if(this.processOld.submitJson !== '{}'){
|
||||||
this.assignForm =JSON.parse(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' ) {
|
if (this.$route.query.taskDefinitionKey == 'aid4' ) {
|
||||||
this.taskId = this.$store.getters.handleProcess.taskId
|
this.taskId = this.$store.getters.handleProcess.taskId
|
||||||
@@ -237,8 +241,9 @@ export default {
|
|||||||
console.log("122")
|
console.log("122")
|
||||||
this.getProcessDetail().then(res => {
|
this.getProcessDetail().then(res => {
|
||||||
//基础信息
|
//基础信息
|
||||||
this.tableData = JSON.parse(this.processOld.dataJson)
|
console.log(res.prcName)
|
||||||
this.applicationForm.power = this.tableData[0].power
|
this.tableData = JSON.parse(res.processOld.dataJson)
|
||||||
|
this.applicationForm.power = res.tableData[0].power
|
||||||
this.applicationForm.applyReason = this.tableData[0].applyReason
|
this.applicationForm.applyReason = this.tableData[0].applyReason
|
||||||
|
|
||||||
//指派信息
|
//指派信息
|
||||||
@@ -253,18 +258,17 @@ export default {
|
|||||||
this.formControl = true
|
this.formControl = true
|
||||||
this.initShow = true
|
this.initShow = true
|
||||||
this.showTableD = true
|
this.showTableD = true
|
||||||
this.getProcessDetail().then(() => {
|
this.getProcessDetail().then((res) => {
|
||||||
this.tableData = JSON.parse(this.processOld.dataJson)
|
res.tableData = JSON.parse(res.processOld.dataJson)
|
||||||
this.applicationForm.power = this.tableData[0].power
|
res.applicationForm.power = res.tableData[0].power
|
||||||
this.applicationForm.applyReason = this.tableData[0].applyReason
|
res.applicationForm.applyReason = res.tableData[0].applyReason
|
||||||
this.processForm.prcName = this.prcName
|
res.processForm.prcName = res.prcName
|
||||||
//指派信息
|
//指派信息
|
||||||
// ({ name: a.name, age: a.age } = b)
|
// ({ 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: {
|
methods: {
|
||||||
handleCheck(name) {
|
handleCheck(name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user