|
@@ -52,7 +52,20 @@
|
|
|
</div>
|
|
|
<div class="card">
|
|
|
<div class="commons-title">
|
|
|
- 业务提醒
|
|
|
+ 在线统计时长
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-table
|
|
|
+ :data="onLineInfoData"
|
|
|
+ style="width: 100%"
|
|
|
+ row-key="deptName"
|
|
|
+ lazy
|
|
|
+ :load="load"
|
|
|
+ :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
|
|
+ >
|
|
|
+ <el-table-column prop="deptName" label="名称" />
|
|
|
+ <el-table-column prop="onLineTime" label="在线时长" />
|
|
|
+ </el-table>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="card">
|
|
@@ -111,6 +124,7 @@ let toBeProcessedData = ref({
|
|
|
total:0,
|
|
|
rows:[]
|
|
|
})
|
|
|
+let onLineInfoData = ref([])
|
|
|
let haveInitiatedData = ref({
|
|
|
total:0,
|
|
|
rows:[]
|
|
@@ -158,6 +172,23 @@ const pushInfo = ref({
|
|
|
rows:[]
|
|
|
})
|
|
|
const getData = (() => {
|
|
|
+
|
|
|
+ proxy.get('/onLineInfo/info',{
|
|
|
+ pageNum:1,
|
|
|
+ pageSize:5,
|
|
|
+ }).then(res=>{
|
|
|
+ onLineInfoData.value = res.data.deptList
|
|
|
+ //递归将数据内的deptList 改成 children
|
|
|
+ const changeData = (data) => {
|
|
|
+ data.forEach(item => {
|
|
|
+ if(item.deptList && item.deptList.length > 0) {
|
|
|
+ item.children = item.deptList
|
|
|
+ changeData(item.deptList)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ changeData(onLineInfoData.value)
|
|
|
+ })
|
|
|
proxy.post('flowExample/getToBeProcessedPage',{
|
|
|
pageNum:1,
|
|
|
pageSize:4,
|