element selection multiple choice selection is prohibited according to the conditions

<el-table class="lin_height" :data="tableData" @selection-change="handleSelectionChange"  @sort-change='sortChange' :default-sort="{prop: 'applyDate', order: 'asc'}" >
<template v-for="(item,index) in ip_list">
<el-table-column :show-overflow-tooltip="true" :min-width="item.minWidth" align="center"
:type="item.selection" :prop="item.prop" :label="item.label" :sortable="item.sortable"
:selectable="item.selectInit"
>
</el-table-column>

</template>


</el-table>

<script>
methods: {
// validate submitted 
selectInit (Row, index) {
the console.log (Row)
IF (row.flowStatus == "submitted") {
return not to false // check
} the else {
return can be checked to true //
}
} ,

}

</script>

Guess you like

Origin www.cnblogs.com/wplcc/p/10967672.html