|
|
@ -9,6 +9,12 @@ |
|
|
|
</template> |
|
|
|
刷新 |
|
|
|
</ButtonGradient> |
|
|
|
<ButtonGradient @click="openList" class="refresh-btn"> |
|
|
|
<template #prefix> |
|
|
|
<img src="@screen/images/refresh.svg" /> |
|
|
|
</template> |
|
|
|
查看开门设备 |
|
|
|
</ButtonGradient> |
|
|
|
</div> |
|
|
|
|
|
|
|
<InputSearch |
|
|
@ -177,6 +183,20 @@ export default { |
|
|
|
this.searchData.pageSize = pageSize; |
|
|
|
this.searchData.pageNum = 1; |
|
|
|
this.initData(); |
|
|
|
}, |
|
|
|
openList(){ |
|
|
|
request({ |
|
|
|
url: `/business/device/dcDoorOpen`, |
|
|
|
method: "get", |
|
|
|
}).then((result) => { |
|
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
|
result.rows.forEach(e=>{ |
|
|
|
e.deviceTypeName = _.find(deviceTypeOptions,{value:parseInt(e.deviceType)}).label |
|
|
|
e.warningTime = moment(e.createTime).format('YYYY-MM-DD HH:mm:ss') |
|
|
|
}) |
|
|
|
this.tableData = result.rows; |
|
|
|
this.total = result.total; |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|