Commit 7b5f1c9f authored by 冯腾骁's avatar 冯腾骁

物流公司渠道页面完善

parent c599cf0e
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<el-table-column prop="contactWay" label="联系方式"/> <el-table-column prop="contactWay" label="联系方式"/>
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="poi textButton" @click="editCompany(scope.row)">编辑</span> <span class="poi textButton" @click="updateCompany(scope.row)">编辑</span>
<span class="poi textButton" @click="removeCompany(scope.row)">删除</span> <span class="poi textButton" @click="removeCompany(scope.row)">删除</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -373,18 +373,6 @@ export default { ...@@ -373,18 +373,6 @@ export default {
} }
}) })
}, },
updateChannel() {
this.axios({
data: this.insertChannelParams,
url: 'logisticsConfig/logisticsCompany/updateChannel',
method: 'post'
}).then(res => {
if (res.success) {
this.$message("更新成功")
this.getChannelPage();
}
})
},
removeCompany(item) { removeCompany(item) {
this.$confirm('确定删除该物流公司?', '删除', { this.$confirm('确定删除该物流公司?', '删除', {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -403,7 +391,31 @@ export default { ...@@ -403,7 +391,31 @@ export default {
type: 'success', type: 'success',
message: '删除成功!' message: '删除成功!'
}); });
this.getProductList(); this.getCompanyPage();
}
})
}).catch(() => {});
},
removeChannel(item) {
this.$confirm('确定删除该渠道?', '删除', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.axios({
url: 'logisticsConfig/logisticsCompany/removeChannel',
method: 'post',
data: {
id: item.id
}
}).then(result => {
if (result.success) {
this.$message({
type: 'success',
message: '删除成功!'
});
this.getChannelPage();
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment