|
@@ -93,12 +93,11 @@
|
|
|
<a-tag v-else :bordered="false" color="#ccc">无</a-tag>
|
|
|
</a-space>
|
|
|
</template>
|
|
|
- <!-- <template v-if="column.key === 'activeState'">
|
|
|
- <a-tag v-if="isToday(record.presenceChangeTime)" :bordered="false" color="green"
|
|
|
- >有</a-tag
|
|
|
- >
|
|
|
- <a-tag v-else :bordered="false" color="#ccc">无</a-tag>
|
|
|
- </template> -->
|
|
|
+ <template v-if="column.key === 'offlineCount'">
|
|
|
+ <div>{{ record.offlineCount }}</div>
|
|
|
+ <div>{{ record.inOutCount }}</div>
|
|
|
+ </template>
|
|
|
+
|
|
|
<template v-if="column.key === 'action'">
|
|
|
<a-button type="link" @click="detailHandler(record.devId, record.clientId)"
|
|
|
>查看详情</a-button
|
|
@@ -241,7 +240,7 @@ const fetchList = async () => {
|
|
|
const allDeviceRes = await deviceAPI.getDeviceList({
|
|
|
pageNo: current.value,
|
|
|
pageSize: pageSize.value,
|
|
|
- clientId: searchState.deviceId,
|
|
|
+ clientId: '',
|
|
|
devName: searchState.deviceName,
|
|
|
createTimeStart: searchState.createTimeStart,
|
|
|
createTimeEnd: searchState.createTimeEnd,
|
|
@@ -250,7 +249,7 @@ const fetchList = async () => {
|
|
|
const onlineDeviceRes = await deviceAPI.getDeviceList({
|
|
|
pageNo: current.value,
|
|
|
pageSize: pageSize.value,
|
|
|
- clientId: searchState.deviceId,
|
|
|
+ clientId: '',
|
|
|
devName: searchState.deviceName,
|
|
|
createTimeStart: searchState.createTimeStart,
|
|
|
createTimeEnd: searchState.createTimeEnd,
|