根据数据的前端测试
{{$t('liot_fault.fault_code')}}:{{item.faultCode}}
{{$t('liot_lift.Current_floor')}}:{{item.CurrentFloor}}
{{$t('liot_lift.Running_direction')}}:{{item.RunningDirection}}
{{$t('liot_lift.Door_status')}}:{{item.DoorStatu}}
return {
dataForm: {
key: this.$t('comm.filter_condition'),
queryParam: {},
checked: localStorage.getItem("auto@checked")=='true'?true:false,
t1: parseInt(localStorage.getItem("auto@t1")||'60'),
t2: parseInt(localStorage.getItem("auto@t2")||'30')
},
dataList: [],
pageIndex: 1,
pageSize: parseInt(localStorage.getItem("auto@barSize")||'12'),
totalPage: 0,
dataListLoading: false,
options: [],
liftSearchVisible: false,
timer1: null,
timer2: null
}// 获取数据列表
getDataList () {
this.dataListLoading = false
var params = this.dataForm.queryParam
params.page = this.pageIndex
params.limit = this.pageSize
params.liftStatusList = this.dataForm.liftStatusList.toString()
params.monitor = 1
console.log(qs.stringify(params))
API.liotmyattention.listLift(params).then(({data}) => {
console.log(data,"181")
if (data && data.code === 0) {
this.dataList = data.page.list
//测试数据
var yi=new Date();
var d = yi.getFullYear()+"-"+(yi.getMonth()+1<10?"0"+(yi.getMonth()+1):yi.getMonth()+1)+"-"+(yi.getDate()<10?"0"+yi.getDate():yi.getDate())+" "+(yi.getHours()<10?"0"+yi.getHours():yi.getHours())+":"+(yi.getMinutes()<10?"0"+yi.getMinutes():yi.getMinutes())+":"+(yi.getSeconds()<10?"0"+yi.getSeconds():yi.getSeconds());
//测试数据7.21
for(let i=0;i
var r = Math.floor(Math.random()*100-1)+1;
this.dataList[i].faultCode='E'+r%10;
this.dataList[i].CurrentFloor=r;
this.dataList[i].RunningDirection=r%2==0?"上":"下";
this.dataList[i].DoorStatu=(r+1)%2==0?"开":"关";
}
{{$t('button.query')}}
{{$t('button.download')}}
{{scope.row.erpId}}
{scope.row.handleStatus}}
-->
{$t('button.details')}}
{{$t('button.lm_show')}} -->
{{$t('button.details')}}
{{$t('button.lm_show')}}
{{$t('button.query')}}
{{$t('button.export')}}
{{scope.row.liftId}}



