任务数
This commit is contained in:
@@ -34,9 +34,10 @@
|
|||||||
<img :src="row.avatar ? row.avatar : 'https://cdn.cunwuyun.cn/dvcp/group-img.png'" alt="" class="group-avatar">
|
<img :src="row.avatar ? row.avatar : 'https://cdn.cunwuyun.cn/dvcp/group-img.png'" alt="" class="group-avatar">
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column slot="groupCount" label="监控群聊" align="center">
|
<el-table-column slot="groupCount" align="center" :render-header="renderHead">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div>{{row.monitorGroupCount}}</div>
|
<div>{{row.executingTaskCount}}/{{row.pendingTaskCount}}
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column slot="areaName" label="所属地区" align="center">
|
<el-table-column slot="areaName" label="所属地区" align="center">
|
||||||
@@ -95,6 +96,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { Divider } from 'element-ui';
|
||||||
import { mapState } from "vuex";
|
import { mapState } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: "List",
|
name: "List",
|
||||||
@@ -159,6 +161,17 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
renderHead () {
|
||||||
|
return(
|
||||||
|
|
||||||
|
<el-tooltip
|
||||||
|
placement="right"
|
||||||
|
content="正在执行/待执行">
|
||||||
|
<span>任务数<i class="el-icon-warning-outline"></i></span>
|
||||||
|
|
||||||
|
</el-tooltip>
|
||||||
|
)
|
||||||
|
},
|
||||||
getConfigList() {
|
getConfigList() {
|
||||||
this.instance.post(`/app/appxbotconfig/list?size=1000`).then(res => {
|
this.instance.post(`/app/appxbotconfig/list?size=1000`).then(res => {
|
||||||
if(res?.data) {
|
if(res?.data) {
|
||||||
@@ -198,7 +211,7 @@ export default {
|
|||||||
this.getTableData()
|
this.getTableData()
|
||||||
},
|
},
|
||||||
getTableData() {
|
getTableData() {
|
||||||
this.instance.post(`/app/xbotCallback/list`,null,{
|
this.instance.post(`/app/xbotCallback/list3`,null,{
|
||||||
params: {
|
params: {
|
||||||
...this.search,
|
...this.search,
|
||||||
xbotId: this.configInfo.id ? this.configInfo.id : ''
|
xbotId: this.configInfo.id ? this.configInfo.id : ''
|
||||||
|
|||||||
Reference in New Issue
Block a user