改接口名称

This commit is contained in:
姚亚男
2021-09-17 17:10:25 +08:00
parent fff84aaa2f
commit c418e8daec
2 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -207,12 +207,12 @@ export default {
window.open(`https://www.kuaidi100.com/chaxun?com=${com}&nu=${record.postNo}`)
},
handleAdd: function (id) {
this.$refs.modalForm.add(id)
this.$refs.modalForm.add(id, 1)
this.$refs.modalForm.title = '邮寄'
this.$refs.modalForm.disableSubmit = false
},
handleEdit: function (record) {
this.$refs.modalForm.edit(record)
this.$refs.modalForm.edit(record, 0)
console.log(record)
this.$refs.modalForm.title = '修改'
this.$refs.modalForm.disableSubmit = false
@@ -102,17 +102,19 @@ export default {
validateTrigger: 'blur'
},
},
addData: '',
url: {
add: 'mail/payMailBill/edit',
edit: 'mail/payMailBill/edit2'
edit: 'mail/payMailBill/editTwo'
}
}
},
methods: {
add(id) {
this.edit({id})
add(id,add) {
this.edit({id}, add)
},
edit(record) {
edit(record, add) {
this.addData = add
this.form.resetFields()
this.model = Object.assign({}, record)
this.visible = true
@@ -135,7 +137,7 @@ export default {
that.confirmLoading = true
let httpurl = ''
let method = ''
if (!this.model.id) {
if (this.addData) {
httpurl += this.url.add
method = 'post'
} else {