改接口名称
This commit is contained in:
@@ -207,12 +207,12 @@ export default {
|
|||||||
window.open(`https://www.kuaidi100.com/chaxun?com=${com}&nu=${record.postNo}`)
|
window.open(`https://www.kuaidi100.com/chaxun?com=${com}&nu=${record.postNo}`)
|
||||||
},
|
},
|
||||||
handleAdd: function (id) {
|
handleAdd: function (id) {
|
||||||
this.$refs.modalForm.add(id)
|
this.$refs.modalForm.add(id, 1)
|
||||||
this.$refs.modalForm.title = '邮寄'
|
this.$refs.modalForm.title = '邮寄'
|
||||||
this.$refs.modalForm.disableSubmit = false
|
this.$refs.modalForm.disableSubmit = false
|
||||||
},
|
},
|
||||||
handleEdit: function (record) {
|
handleEdit: function (record) {
|
||||||
this.$refs.modalForm.edit(record)
|
this.$refs.modalForm.edit(record, 0)
|
||||||
console.log(record)
|
console.log(record)
|
||||||
this.$refs.modalForm.title = '修改'
|
this.$refs.modalForm.title = '修改'
|
||||||
this.$refs.modalForm.disableSubmit = false
|
this.$refs.modalForm.disableSubmit = false
|
||||||
|
|||||||
@@ -102,17 +102,19 @@ export default {
|
|||||||
validateTrigger: 'blur'
|
validateTrigger: 'blur'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
addData: '',
|
||||||
url: {
|
url: {
|
||||||
add: 'mail/payMailBill/edit',
|
add: 'mail/payMailBill/edit',
|
||||||
edit: 'mail/payMailBill/edit2'
|
edit: 'mail/payMailBill/editTwo'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
add(id) {
|
add(id,add) {
|
||||||
this.edit({id})
|
this.edit({id}, add)
|
||||||
},
|
},
|
||||||
edit(record) {
|
edit(record, add) {
|
||||||
|
this.addData = add
|
||||||
this.form.resetFields()
|
this.form.resetFields()
|
||||||
this.model = Object.assign({}, record)
|
this.model = Object.assign({}, record)
|
||||||
this.visible = true
|
this.visible = true
|
||||||
@@ -135,7 +137,7 @@ export default {
|
|||||||
that.confirmLoading = true
|
that.confirmLoading = true
|
||||||
let httpurl = ''
|
let httpurl = ''
|
||||||
let method = ''
|
let method = ''
|
||||||
if (!this.model.id) {
|
if (this.addData) {
|
||||||
httpurl += this.url.add
|
httpurl += this.url.add
|
||||||
method = 'post'
|
method = 'post'
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user