/*绑定第三方账号id*/
BindAccount(id) {
this.dialogVisible = true
getAction("/account/ff_account_list").then(res => {
/*通过account_id接收*/
this.account_id = id
this.BindData = res.data.data
})
},
<el-form class="left-right">
<el-form-item label="分发账号名称" label-width="100px">
<el-select v-model="form.index" placeholder="选择绑定的分发账号">
<el-option v-for="(item,index) in BindData" :key="item.id" :label="item.account_name" :value="index"></el-option>
</el-select>
</el-form-item>
</el-form>
/*传给当前的account_id进行接收*/
putAction("/account/" + this.account_id + "/bind_ff_account_id", {
remote_account_id: this.BindData[this.form.index].id,
pavg: this.BindData[this.form.index].avatar_url,
plugin_key: this.BindData[this.form.index].plugin_key,
plugin_name: this.BindData[this.form.index].plugin_name,
plugin_icon_url: this.BindData[this.form.index].plugin_icon_url,
brand_id: this.BindData[this.form.index].brand_id
}).then(res=>{
this.$message.success("绑定成功")
}).catch(error=>{
this.$message.success("未绑定")
})
秒呀