预警的日期分隔交给后端做了
This commit is contained in:
@@ -439,8 +439,6 @@ export default {
|
||||
}, {
|
||||
_this: this,
|
||||
}, res => {
|
||||
console.log('608',res)
|
||||
// console.log('608',res.data.records[0].zccssrq.replace(' 00:00:00',''))
|
||||
// 适用车型转换
|
||||
for (let a = 0; a < res.data.records.length; a++) {
|
||||
if (res.data.records[a].applyType !== null) {
|
||||
@@ -455,26 +453,6 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
for (let i = 0; i < res.data.records.length; i++) {
|
||||
let putTimeReplaceTimes = res.data.records[i].putTime.length/19
|
||||
let ssrqReplaceTimes = res.data.records[i].ssrq.length/19
|
||||
let xcxssrqReplaceTimes = res.data.records[i].xcxssrq.length/19
|
||||
let zccssrqReplaceTimes = res.data.records[i].zccssrq.length/19
|
||||
|
||||
for (let j = 0; j < putTimeReplaceTimes; j++) {
|
||||
res.data.records[i].putTime = res.data.records[i].putTime.replace(' 00:00:00','')
|
||||
}
|
||||
for (let j = 0; j < ssrqReplaceTimes; j++) {
|
||||
res.data.records[i].ssrq = res.data.records[i].ssrq.replace(' 00:00:00','')
|
||||
}
|
||||
for (let j = 0; j < xcxssrqReplaceTimes; j++) {
|
||||
res.data.records[i].xcxssrq = res.data.records[i].xcxssrq.replace(' 00:00:00','')
|
||||
}
|
||||
for (let j = 0; j < zccssrqReplaceTimes; j++) {
|
||||
res.data.records[i].zccssrq = res.data.records[i].zccssrq.replace(' 00:00:00','')
|
||||
}
|
||||
|
||||
}
|
||||
this.warningTableDatas = res.data.records
|
||||
this.pageConfig.page = res.data.current
|
||||
if ((this.warningTableDatas.length === 0 || this.warningTableDatas === []) && this.pageConfig.page !== 1) {
|
||||
|
||||
Reference in New Issue
Block a user