前端工作总结262-理解绑定逻辑

<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
})
},

posted @   前端导师歌谣  阅读(6)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!
点击右上角即可分享
微信分享提示