formatter_time(row, column, cellValue, index) {
console.log(cellValue);
if (cellValue) {
const t = new Date(cellValue); // row 表示一行数据, updateTime 表示要格式化的字段名称
let year = t.getFullYear(),
month = t.getMonth() + 1,
day = t.getDate();
const newTime =
year +
"-" +
(month < 10 ? "0" + month : month) +
"-" +
(day < 10 ? "0" + day : day);
return newTime;
}
},