|
@@ -47,6 +47,7 @@
|
|
|
dayjs.extend(duration);
|
|
|
var config_gyq = require('../../common/config_gyq.js');
|
|
|
var request = require('../../common/request');
|
|
|
+ var common = require('../../common/common.js');
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -67,10 +68,11 @@
|
|
|
})
|
|
|
if (data.code == 200) {
|
|
|
this.list = data.data.list
|
|
|
- this.list.btn_battery = data.data.list.btn_battery ? data.data.list.btn_battery.join(',') : ''
|
|
|
- this.list.bor_battery = data.data.list.bor_battery ? data.data.list.bor_battery.join(',') : ''
|
|
|
- this.list.ctime = dayjs(data.data.list.ctime * 1000).format('YYYY-MM-DD')
|
|
|
- console.log(this.list.ctime)
|
|
|
+ this.list.map(item=>{
|
|
|
+ item.btn_battery = item.btn_battery ? item.btn_battery.join(',') : ''
|
|
|
+ item.bor_battery = item.bor_battery ? item.bor_battery.join(',') : ''
|
|
|
+ item.ctime = common.formatTime(item.ctime)
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
}
|