|
|
@@ -81,6 +81,15 @@
|
|
|
设备汇总
|
|
|
</button>
|
|
|
</div>
|
|
|
+ <span class="c-sibling-item--v far u-font-size--sm u-bold">数据</span>
|
|
|
+ <div class="c-sibling-item--v l-grid--info mini">
|
|
|
+ <button
|
|
|
+ class="o-button"
|
|
|
+ @click="onGetDepartmentDeviceTree"
|
|
|
+ >
|
|
|
+ 部门设备树
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="l-flex__none c-sibling-item far u-width--lg u-font-size--sm u-overflow-y--auto">
|
|
|
<pre
|
|
|
@@ -106,6 +115,7 @@ import {
|
|
|
getAdReport,
|
|
|
getAdCollect
|
|
|
} from '@/api/statistics'
|
|
|
+import { getDepartmentDeviceTree } from '@/api/device'
|
|
|
|
|
|
export default {
|
|
|
name: 'TestApi',
|
|
|
@@ -154,7 +164,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onTriggerOnlineDurationSnap () {
|
|
|
- triggetOnlineDurationSnap().then(() => {
|
|
|
+ triggetOnlineDurationSnap({ endDate: parseTime(new Date(), '{y}-{m}-{d}') }).then(() => {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: '触发完成'
|
|
|
@@ -213,6 +223,9 @@ export default {
|
|
|
},
|
|
|
onGetAdCollectForDevice () {
|
|
|
this.checkDevice() && getAdCollect({ deviceId: this.deviceId }).then(this.onData)
|
|
|
+ },
|
|
|
+ onGetDepartmentDeviceTree () {
|
|
|
+ getDepartmentDeviceTree({ tenant: this.$store.getters.tenant }).then(this.onData)
|
|
|
}
|
|
|
}
|
|
|
}
|