任务数
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"> | ||||
|             </template> | ||||
|           </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 }"> | ||||
|               <div>{{row.monitorGroupCount}}</div> | ||||
|               <div>{{row.executingTaskCount}}/{{row.pendingTaskCount}} | ||||
|             </div> | ||||
|             </template> | ||||
|           </el-table-column> | ||||
|           <el-table-column slot="areaName" label="所属地区"  align="center"> | ||||
| @@ -95,6 +96,7 @@ | ||||
| </template> | ||||
|  | ||||
| <script> | ||||
| import { Divider } from 'element-ui'; | ||||
| import { mapState } from "vuex"; | ||||
| export default { | ||||
|   name: "List", | ||||
| @@ -159,6 +161,17 @@ export default { | ||||
|     }, | ||||
|   }, | ||||
|   methods: { | ||||
|     renderHead () { | ||||
|       return( | ||||
|          | ||||
|         <el-tooltip | ||||
|           placement="right" | ||||
|           content="正在执行/待执行"> | ||||
|           <span>任务数<i class="el-icon-warning-outline"></i></span> | ||||
|            | ||||
|         </el-tooltip> | ||||
|       ) | ||||
|     }, | ||||
|     getConfigList() { | ||||
|       this.instance.post(`/app/appxbotconfig/list?size=1000`).then(res => { | ||||
|         if(res?.data) { | ||||
| @@ -198,7 +211,7 @@ export default { | ||||
|       this.getTableData() | ||||
|     }, | ||||
|     getTableData() { | ||||
|       this.instance.post(`/app/xbotCallback/list`,null,{ | ||||
|       this.instance.post(`/app/xbotCallback/list3`,null,{ | ||||
|         params: { | ||||
|           ...this.search, | ||||
|           xbotId: this.configInfo.id ? this.configInfo.id : '' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user