情景:例如提現列表,轉賬失敗后轉賬金額直接返回用戶余額,所以當前數據不可以再次操作
直接粘貼代碼:
<el-table-column type="selection" width="55" :selectable='checkboxInit'>
methods里
checkboxInit(row,index){
if (row.withdrawState==2)//這個判斷根據你的情況而定
return 0;//不可勾選
else
return 1;//可勾選
},
結束
