Vue uses elementui table to fold inside, some have two levels and some do not have two levels, how to control the display of the triangle on the right side

problem description

vue uses elementui table to fold inside, some have second-level, some do not have second-level, how to control the display of the triangle on the right

the environmental background of the problems and what methods you have tried

1,: type= "variable? "expand":""" this becomes a fixed value. There is no way to control
2, look for $(" td.el-table__expand-column"). Css ("display","none") and find no element

.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

<el-table-column type="expand"  width="5%">
   <template scope="scope" v-if="scope.row.childMessageTypeUserRnVos.length>0"  class="manage_msg">
       <el-table>
           ................
       </el-table>
   </template>
</el-table-column>

getData:function(){
        var _that = this;
        this.$http.post(Util.url+"/stationMessage/getUserMessageTypes").then(function(res){
            if(res.data.code==100){
                _that.tableData5 = res.data.content
                for(var i = 0;i<_that.tableData5.length;iPP){
                    if(_that.tableData5[i].childMessageTypeUserRnVos.length==0){
                         $("td.el-table__expand-column").css("display","none")
                         console.log($(".el-icon-arrow-right").length)
                    }else{
                        
                    }
                }
            }
        })
    }

what result do you expect? What is the error message actually seen?

Mar.29,2021

solved

1<el-table
        :row-class-name="getRowClass"
   </el-table>

2getRowClass:function(row,rowIndex){
        if(row.row.childMessageTypeUserRnVos.length==0){
            return 'row-expand-cover'
        }
    }
3css
    .row-expand-cover td:last-child .el-icon-arrow-right{visibility: hidden;}      
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e2fb-2c3d4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e2fb-2c3d4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?