Commit 995ac0b3 authored by 吴春's avatar 吴春

联盟移除门店

parent 9cd41ff0
......@@ -32,6 +32,9 @@
<el-tooltip class="item" effect="dark" content="设置主门店" placement="top">
<i class="iconfont icon-guanli2"@click="setAdmin(item)"></i>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="移除门店" placement="top">
<i class="iconfont icon-img_delete_small icon-guanli2" @click="DelAllianceChild(item)"></i>
</el-tooltip>
</td>
</tr>
</table>
......@@ -82,6 +85,31 @@ export default {
message: '已取消'
});
});
},
DelAllianceChild: function(obj) {
let ParentId = this.$route.query.id
this.$confirm('确认移除“'+ obj.CustomerName + '”门店?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.apipost(
"app_customer_DelAllianceChild",
{ Id: obj.ID},
res => {
if (res.data.resultCode === 1) {
this.$message.success(res.data.message)
this.getList(ParentId);
}
},
null
);
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
});
},
getList: function (id) {
this.loading = true
......
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