查询
重置
{{month.name}}
{{ scope.$index + 1 }}
{{
(() => {
const createDate = new Date(scope.row.createtime * 1000); // 时间戳转Date(注意乘以1000)
const createMonth = createDate.getMonth() + 1; // 月份从0开始,需+1
const createDay = createDate.getDate();
return `${createMonth}-${createDay}`;
})()
}}
-
{{
(() => {
const expireDate = new Date(scope.row.expire_time); // 日期字符串直接转Date
const expireMonth = expireDate.getMonth() + 1;
const expireDay = expireDate.getDate();
return `${expireMonth}-${expireDay}`;
})()
}}