Commit 1647de3a by 李伟康

commit

1 parent 268a7b9a
...@@ -152,6 +152,7 @@ export default { ...@@ -152,6 +152,7 @@ export default {
}, },
methods: { methods: {
init (params) { init (params) {
this.isGroup = true
let req = { let req = {
queryType: params.reportType || 0 queryType: params.reportType || 0
} }
...@@ -180,6 +181,7 @@ export default { ...@@ -180,6 +181,7 @@ export default {
this.api.overview[this.isGroup ? 'getBrandOverallbase' : 'getMerchantOverallbase'](params).then(({ code, data }) => { this.api.overview[this.isGroup ? 'getBrandOverallbase' : 'getMerchantOverallbase'](params).then(({ code, data }) => {
if (code == 0) { if (code == 0) {
let [dataList] = data.dataList let [dataList] = data.dataList
console.log(dataList)
if (dataList) { if (dataList) {
dataList.top = this.ObjectToArray(dataList.topList) dataList.top = this.ObjectToArray(dataList.topList)
dataList.last = this.ObjectToArray(dataList.lastList) dataList.last = this.ObjectToArray(dataList.lastList)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!