【修改】上传缴费凭证修改

This commit is contained in:
fengachen
2022-12-07 17:52:54 +08:00
parent d10a328df3
commit a012a60174
@@ -59,12 +59,13 @@ export default {
},
},
url: {
add: '111'
add: '/paymentInfo/uploadPaymentRecord'
}
}
},
methods: {
open(record) {
this.form.resetFields()
this.model = Object.assign({}, record)
this.visible = true
},
@@ -73,8 +74,9 @@ export default {
if (!err) {
this.confirmLoading = true
const formData = Object.assign({}, values)
formData.id = this.model.id
let url = this.url.add
httpAction(url, formData, 'post').then(res => {
httpAction(url, formData, 'put').then(res => {
if (res.success) {
this.$emit('ok')
this.$message.success(res.message)