|
|
@@ -29,6 +29,18 @@
|
|
|
>
|
|
|
总在线时长报表
|
|
|
</button>
|
|
|
+ <button
|
|
|
+ class="o-button"
|
|
|
+ @click="getDeviceStatusExcel"
|
|
|
+ >
|
|
|
+ 设备状况报表
|
|
|
+ </button>
|
|
|
+ <button
|
|
|
+ class="o-button"
|
|
|
+ @click="getDeviceWarnExcel"
|
|
|
+ >
|
|
|
+ 设备预警报表
|
|
|
+ </button>
|
|
|
</div>
|
|
|
</template>
|
|
|
<div class="c-sibling-item--v u-font-size--sm u-bold">
|
|
|
@@ -142,6 +154,8 @@
|
|
|
@added="showServerAsyncTask"
|
|
|
/>
|
|
|
<server-async-task-dialog ref="serverAsyncTaskDialog" />
|
|
|
+ <device-status-dialog ref="deviceStatusDialog" />
|
|
|
+ <device-warn-dialog ref="deviceWarnDialog" />
|
|
|
</wrapper>
|
|
|
</template>
|
|
|
|
|
|
@@ -163,6 +177,8 @@ import PeopleCountingDialog from './components/PeopleCountingDialog.vue'
|
|
|
import ScreenOnlineDialog from './components/ScreenOnlineDialog.vue'
|
|
|
import ScreenBroadcastDialog from './components/ScreenBroadcastDialog.vue'
|
|
|
import ServerAsyncTaskDialog from './components/ServerAsyncTaskDialog.vue'
|
|
|
+import DeviceStatusDialog from './components/DeviceStatusDialog.vue'
|
|
|
+import DeviceWarnDialog from './components/DeviceWarnDialog.vue'
|
|
|
|
|
|
export default {
|
|
|
name: 'Report',
|
|
|
@@ -178,12 +194,17 @@ export default {
|
|
|
PeopleCountingDialog,
|
|
|
ScreenOnlineDialog,
|
|
|
ScreenBroadcastDialog,
|
|
|
- ServerAsyncTaskDialog
|
|
|
+ ServerAsyncTaskDialog,
|
|
|
+ DeviceStatusDialog,
|
|
|
+ DeviceWarnDialog
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(['isGroupAdmin', 'isTopGroup'])
|
|
|
},
|
|
|
methods: {
|
|
|
+ showServerAsyncTask (type) {
|
|
|
+ this.$refs.serverAsyncTaskDialog.show(type)
|
|
|
+ },
|
|
|
getDeviceExcel () {
|
|
|
getDeviceExcel()
|
|
|
},
|
|
|
@@ -209,7 +230,9 @@ export default {
|
|
|
this.$refs.programPlaysDialog.show()
|
|
|
},
|
|
|
getOnlineDurationExcel () {
|
|
|
- getOnlineDurationExcel({ type: 'DEVICE_ONLINE_TOTAL' })
|
|
|
+ getOnlineDurationExcel().then(({ data: { type } }) => {
|
|
|
+ this.showServerAsyncTask(type)
|
|
|
+ })
|
|
|
},
|
|
|
getDepartmentOnlineDurationExcel () {
|
|
|
this.$refs.onlineDurationDialog.show()
|
|
|
@@ -223,8 +246,11 @@ export default {
|
|
|
addScreenBroadcastTask () {
|
|
|
this.$refs.screenBroadcastDialog.show()
|
|
|
},
|
|
|
- showServerAsyncTask (type) {
|
|
|
- this.$refs.serverAsyncTaskDialog.show(type)
|
|
|
+ getDeviceStatusExcel () {
|
|
|
+ this.$refs.deviceStatusDialog.show()
|
|
|
+ },
|
|
|
+ getDeviceWarnExcel () {
|
|
|
+ this.$refs.deviceWarnDialog.show()
|
|
|
}
|
|
|
}
|
|
|
}
|