改接口名称

This commit is contained in:
姚亚男
2021-09-22 09:33:01 +08:00
parent e488da6b5e
commit 7caa9134a1
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -89,7 +89,7 @@
<a-button type="primary" :disabled="record.sendMethod === 1 ? false : true">打印</a-button> <a-button type="primary" :disabled="record.sendMethod === 1 ? false : true">打印</a-button>
</span> </span>
<span slot="action" slot-scope="text, record" class="action-span-cell"> <span slot="action" slot-scope="text, record" class="action-span-cell">
<a @click="handleAdd(record.id)" v-if="record.postStatus === 0">邮寄</a> <a @click="handleAdd(record)" v-if="record.postStatus === 0">邮寄</a>
<a @click="handleEdit(record)" v-if="record.postStatus === 1">修改</a> <a @click="handleEdit(record)" v-if="record.postStatus === 1">修改</a>
<a @click="goLogistics(record)" v-if="record.postStatus === 1">查看物流</a> <a @click="goLogistics(record)" v-if="record.postStatus === 1">查看物流</a>
</span> </span>
@@ -206,8 +206,8 @@ export default {
const com = Number(record.sendMethod) === 1 && 'ems' || 'shunfeng' const com = Number(record.sendMethod) === 1 && 'ems' || 'shunfeng'
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 (record) {
this.$refs.modalForm.add(id, 1) this.$refs.modalForm.add(record, 1)
this.$refs.modalForm.title = '邮寄' this.$refs.modalForm.title = '邮寄'
this.$refs.modalForm.disableSubmit = false this.$refs.modalForm.disableSubmit = false
}, },
@@ -110,8 +110,8 @@ export default {
} }
}, },
methods: { methods: {
add(id,add) { add(record,add) {
this.edit({id}, add) this.edit(record, add)
}, },
edit(record, add) { edit(record, add) {
this.addData = add this.addData = add