30584
This commit is contained in:
@@ -159,6 +159,7 @@
|
||||
deptList: [],
|
||||
selectDeptName: '',
|
||||
isDepartData: true,
|
||||
departBarData: [],
|
||||
type: '',
|
||||
}
|
||||
},
|
||||
@@ -323,6 +324,7 @@
|
||||
this.isDepartData = true
|
||||
var items = [], xData = [], yData = []
|
||||
res.data.map((item) => {
|
||||
this.departBarData.push(item)
|
||||
var i = {type: 'departmentName', id: item.deptId, corpid: this.user.info.corpId}
|
||||
items.push(i)
|
||||
yData.push(item.taskCount)
|
||||
@@ -366,6 +368,10 @@
|
||||
trigger: 'axis',
|
||||
axisPointer: {
|
||||
type: 'shadow'
|
||||
},
|
||||
formatter: function(data) {
|
||||
let name = `<ai-open-data type="userName" :openid="${this.departBarData[data[0].dataIndex].deptId}" class="name"></ai-open-data><br/>宣发任务数:${data[0].data}`
|
||||
return name
|
||||
}
|
||||
},
|
||||
dataZoom: [
|
||||
|
||||
Reference in New Issue
Block a user