修改测试bug

This commit is contained in:
gyj
2024-02-20 17:21:44 +08:00
parent b831a8ed4c
commit 83f6a92d84
5 changed files with 118 additions and 62 deletions
+18 -7
View File
@@ -86,14 +86,27 @@
payType: 1,
payOrderList: [],
caseId: null
}
},
dataType:{},
formDataVal:{}
}
},
methods: {
/**获取案件缴费信息*/
getData(parms) {
selectById(parms).then(res => {
this.formData = res.data
this.formData = res.data
if(this.dataType.type==4){
this.formDataVal ={
annexType: 4,
id: this.formData.id
}
}else if(this.dataType.type==9){
this.formDataVal ={
annexType: 9,
id: this.formData.id
}
}
})
},
/**生成二维码*/
@@ -129,10 +142,7 @@
header: {
Authorization: getToken() || '',
},
formData: {
annexType: 4,
id: this.formData.id
},
formData:this.formDataVal,
name: 'file',
success: (res) => {
let {
@@ -207,7 +217,8 @@
this.confirmPaymentFn(this.submitForm);
}
},
onLoad(data) {
onLoad(data) {
this.dataType = data
this.getData({
id: data.id
});