改接口名称
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user