//时间戳转为标准时间
new Date(row.create_time * 1000).format(
"yyyy-MM-dd hh:mm:ss"
)
//table里时间转换且加转换符
{
type: "text",
title: "开始时间",
key: "start_time",
align: "center",
render: (h, params) => {
const type = new Date(params.row.start_time * 1000).format(
"yyyy-MM-dd<br/>hh:mm:ss"
);
return h("div", {
domProps: {
innerHTML: type,
},
});
},
},
//标准时间转换为时间戳
this.execute_time = parseInt(Date.parse(this.execute_time) / 1000)
//=new Date(this.execute_time).getTime()/1000