统计
This commit is contained in:
@@ -170,24 +170,37 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// var barX = []
|
// this.info.ranking.map((item, index)=> {
|
||||||
// this.info.typeList.map((item) => {
|
// if(index < 100) {
|
||||||
// barX.push(item.wordName)
|
// item.rank = index+1
|
||||||
// this.barData.push(item.c)
|
// 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.$nextTick(() => {
|
||||||
// this.wordChartInit(this.wordData)
|
// this.trendChartInit(trendX, this.trendData)
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|||||||
@@ -229,6 +229,7 @@ export default {
|
|||||||
this.getTags()
|
this.getTags()
|
||||||
document.querySelector('html').addEventListener('click', this.bindEvent)
|
document.querySelector('html').addEventListener('click', this.bindEvent)
|
||||||
document.addEventListener('keydown', (event) => {
|
document.addEventListener('keydown', (event) => {
|
||||||
|
console.log(event)
|
||||||
if (event.ctrlKey && event.shiftKey && event.altKey && event.code === 'KeyD') {
|
if (event.ctrlKey && event.shiftKey && event.altKey && event.code === 'KeyD') {
|
||||||
this.getType()
|
this.getType()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,7 +96,6 @@
|
|||||||
</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",
|
||||||
@@ -163,12 +162,10 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
renderHead () {
|
renderHead () {
|
||||||
return(
|
return(
|
||||||
|
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
placement="right"
|
placement="right"
|
||||||
content="正在执行/待执行">
|
content="正在执行/待执行">
|
||||||
<span>任务数<i class="el-icon-warning-outline"></i></span>
|
<span>任务数<i class="el-icon-warning-outline"></i></span>
|
||||||
|
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user