<div class="device-table-list">
<Table stripe :columns="columns" :data="getTableData(currentPage)" @on-row-click="markerTap($event)" :disabled-hover="true"></Table>
</div>
columns: [
{
title: "",
align: "center",
key: "sn",
width:110,
},
{
title: "",
align: "center",
key: "alias",
width:160,
},
{
title: "",
align: "center",
key: "devtec",
width:140,
},
{
title: "",
align: "center",
key: "devsize",
width:110,
},
{
title: "",
align: "center",
key: "sum_energy",
width:90,
},
{
title: "",
align: "center",
key: "sum_flow",
width:90,
},
{
title: "",
key: "monitor_object_state",
align: "center",
width:90,
render: (h, params) => {
if(params.row.monitor_object_state==1 || params.row.monitor_object_state==2){
return ""
}else if (params.row.monitor_object_state==3){
return ""
}else {
return ""
}
console.log(monitor_object_state);
}
},
{
title: "",
align: "center",
key: "ckxq",
render: (h, params) => {
return params.row.ckxq = "";
}
},
],
if you write it in this way, it will neither show nor report an error. I really can"t find out the reason.
or is there any other way to display it