avue-vrud tab切换

<template slot-scope="scope" slot="hylxForm">
<el-radio-group v-model="radio" @change="hylxTabShow" >
<el-radio-button id="hylx_gr" label="1" >个人</el-radio-button>
<el-radio-button id="hylx_jg" label="2">机构</el-radio-button>
</el-radio-group>
</template>

data中:radio: '1',

然后就是js按钮事件了,value形参接收到的就是点击该radio按钮的label值,所以可以用value和label值比较做相应的动作。

hylxTabShow:function (value) {
this.tableOption.group[0].display=1==value;
this.tableOption.group[1].display=2==value;
this.selectpage=value;
},
————————————————
版权声明:本文为CSDN博主「指标满载」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_44770377/java/article/details/100099391

原文地址:https://www.cnblogs.com/xiaoxiao95/p/12726183.html