<custom-table v-loading="loading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.8)" @size-changes="list" @pagination-change="list" :data="tableData" :columns="columns" :pagination="pagination"> <template v-slot:action> <el-table-column fixed="right" label="操作"> <template slot-scope="scope"> <el-button @click="handleEdit(scope.row)" type="text"> 编辑 </el-button> <el-button type="text" @click="deleteRecord(scope.row)"> 删除 </el-button> <!--绑定数据使用当前的id--> <el-button type="text" @click="BindAccount(scope.row)"> 绑定 </el-button> </template> </el-table-column> </template> </custom-table>
判断账号是否绑定
/*判断账号是否绑定的数据逻辑*/ BindAccount(record) { this.dialogVisible = true console.log(record) getAction("/account/ff_account_list",{content_type:record.content_type}).then(res => { /*通过account_id接收*/ this.account_id = record.id this.BindData = res.data.data this.RomoteData=res.data.remoteAccountIds }) },