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

物流公司渠道页面完善

parent c599cf0e
......@@ -27,7 +27,7 @@
<el-table-column prop="contactWay" label="联系方式"/>
<el-table-column label="操作">
<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>
</template>
</el-table-column>
......@@ -373,26 +373,38 @@ export default {
}
})
},
updateChannel() {
removeCompany(item) {
this.$confirm('确定删除该物流公司?', '删除', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.axios({
data: this.insertChannelParams,
url: 'logisticsConfig/logisticsCompany/updateChannel',
method: 'post'
}).then(res => {
if (res.success) {
this.$message("更新成功")
this.getChannelPage();
url: 'logisticsConfig/logisticsCompany/removeCompany',
method: 'post',
data: {
id: item.id
}
}).then(result => {
if (result.success) {
this.$message({
type: 'success',
message: '删除成功!'
});
this.getCompanyPage();
}
})
}).catch(() => {});
},
removeCompany(item) {
this.$confirm('确定删除该物流公司?', '删除', {
removeChannel(item) {
this.$confirm('确定删除该渠道?', '删除', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.axios({
url: 'logisticsConfig/logisticsCompany/removeCompany',
url: 'logisticsConfig/logisticsCompany/removeChannel',
method: 'post',
data: {
id: item.id
......@@ -403,7 +415,7 @@ export default {
type: 'success',
message: '删除成功!'
});
this.getProductList();
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