|
|
|
@ -682,10 +682,17 @@ export default { |
|
|
|
|
}) |
|
|
|
|
let dataArr = list.filter(e=>{// 数据平台 |
|
|
|
|
if(this.renewDisabled){/* 处于续费 */ |
|
|
|
|
let time = e.endTime.split(" ")[0] |
|
|
|
|
let arr = time.split('-') |
|
|
|
|
e.startTime = arr[0]+'-'+arr[1]+'-'+'0'+(+arr[2]+1) |
|
|
|
|
e.endTime = "" |
|
|
|
|
let end = Date.parse(e.endTime); |
|
|
|
|
let now = +new Date() |
|
|
|
|
console.log(end,now,'时间'); |
|
|
|
|
if(now<end){ |
|
|
|
|
let time = e.endTime.split(" ")[0] |
|
|
|
|
let arr = time.split('-') |
|
|
|
|
e.startTime = arr[0]+'-'+arr[1]+'-'+'0'+(+arr[2]+1) |
|
|
|
|
}else{/* 过期 */ |
|
|
|
|
e.startTime = '' |
|
|
|
|
} |
|
|
|
|
e.endTime = '' |
|
|
|
|
e.periodOfUse = '' |
|
|
|
|
}else{ |
|
|
|
|
e.startTime = e.startTime.split(" ")[0] |
|
|
|
|