统计
This commit is contained in:
		| @@ -170,24 +170,37 @@ export default { | ||||
|             }) | ||||
|           } | ||||
|  | ||||
|           // var barX = [] | ||||
|           // this.info.typeList.map((item) => { | ||||
|           //   barX.push(item.wordName) | ||||
|           //   this.barData.push(item.c) | ||||
|           // this.info.ranking.map((item, index)=> { | ||||
|           //   if(index < 100) { | ||||
|           //     item.rank = index+1 | ||||
|           //     this.tableData.push(item) | ||||
|           //   } | ||||
|           // }) | ||||
|           // if(this.barData.length) { | ||||
|           //   this.$nextTick(() => { | ||||
|           //     this.barChartInit(barX, this.barData) | ||||
|           //   }) | ||||
|           // } | ||||
|  | ||||
|           // this.info.wordNames.map((item) => { | ||||
|           //   var i = { name: item.wordName, value: item.wordCount }; | ||||
|           //   this.wordData.push(i); | ||||
|         } | ||||
|       }) | ||||
|  | ||||
|       this.instance.post('/app/appmasssendingtaskbaidu/statistics3', null, { | ||||
|         params: { | ||||
|           // deptFullId: departmentId, | ||||
|           areaId: this.areaId, | ||||
|           type: this.type, | ||||
|           startTime: this.startTime, | ||||
|           endTime: this.endTime, | ||||
|         } | ||||
|       }).then(res => { | ||||
|         if (res?.data) { | ||||
|           this.info.ranking = res.data | ||||
|           // var trendX = [] | ||||
|           // this.totalEcount = 0 | ||||
|           // this.info.trend.map((item) => { | ||||
|           //   trendX.push(item.ymd) | ||||
|           //   this.totalEcount = this.totalEcount + item.ecount | ||||
|           //   this.trendData.push(item.ecount) | ||||
|           // }) | ||||
|           // if(this.wordData.length) { | ||||
|           // if(this.trendData.length) { | ||||
|           //   this.$nextTick(() => { | ||||
|           //     this.wordChartInit(this.wordData) | ||||
|           //     this.trendChartInit(trendX, this.trendData) | ||||
|           //   }) | ||||
|           // } | ||||
|  | ||||
|   | ||||
| @@ -229,6 +229,7 @@ export default { | ||||
|     this.getTags() | ||||
|     document.querySelector('html').addEventListener('click', this.bindEvent) | ||||
|     document.addEventListener('keydown', (event) => { | ||||
|     console.log(event) | ||||
|       if (event.ctrlKey && event.shiftKey && event.altKey && event.code === 'KeyD') { | ||||
|         this.getType() | ||||
|       } | ||||
|   | ||||
| @@ -96,7 +96,6 @@ | ||||
| </template> | ||||
|  | ||||
| <script> | ||||
| import { Divider } from 'element-ui'; | ||||
| import { mapState } from "vuex"; | ||||
| export default { | ||||
|   name: "List", | ||||
| @@ -163,12 +162,10 @@ export default { | ||||
|   methods: { | ||||
|     renderHead () { | ||||
|       return( | ||||
|          | ||||
|         <el-tooltip | ||||
|           placement="right" | ||||
|           content="正在执行/待执行"> | ||||
|           <span>任务数<i class="el-icon-warning-outline"></i></span> | ||||
|            | ||||
|         </el-tooltip> | ||||
|       ) | ||||
|     }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user