This commit is contained in:
parent
2a6e8ade9e
commit
52d859a60b
|
@ -178,6 +178,7 @@
|
|||
}
|
||||
],
|
||||
loadData1: parameter => {
|
||||
if (!this.orgId) return []
|
||||
return dataOrgStatistics(Object.assign(parameter, this.queryParam)).then((res) => {
|
||||
const data = res.rows
|
||||
data.forEach(function (val) {
|
||||
|
@ -210,6 +211,7 @@
|
|||
}
|
||||
],
|
||||
loadData2: parameter => {
|
||||
if (!this.orgId) return []
|
||||
return dataPersonalStatistics(Object.assign(parameter, this.queryParam)).then((res) => {
|
||||
return res
|
||||
})
|
||||
|
@ -245,6 +247,7 @@
|
|||
}
|
||||
],
|
||||
loadDataTop1: parameter => {
|
||||
if (!this.orgId) return []
|
||||
return dataClassHourTop(Object.assign(parameter, this.queryParam)).then((res) => {
|
||||
return res.data
|
||||
})
|
||||
|
@ -280,6 +283,7 @@
|
|||
}
|
||||
],
|
||||
loadDataTop2: parameter => {
|
||||
if (!this.orgId) return []
|
||||
return dataClassHourTop(Object.assign(parameter, this.queryParam)).then((res) => {
|
||||
return res.data
|
||||
})
|
||||
|
@ -338,6 +342,7 @@
|
|||
this.orgTree.forEach(item => {
|
||||
this.expandedKeys.push(item.id)
|
||||
})
|
||||
this.handleClick(this.orgId)
|
||||
})
|
||||
},
|
||||
/**
|
||||
|
@ -345,6 +350,7 @@
|
|||
*/
|
||||
handleClick (e) {
|
||||
this.queryParam.orgId = e.toString()
|
||||
this.orgId = e.toString()
|
||||
if (this.keyType === '1') {
|
||||
this.$refs.table1.refresh(true)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue