Commit b80e7362 by xuyl

更新地图代码

1 parent bce94443
// 当月进行中门店--区域(省份_地图)分布(参数:新车洽谈/新车交付/0~12个月/12个月以上)
const getMerchantInProgressThisMonth = params => {
return window.$HTTP.get('saasValueaddedTransformation/getMerchantInProgressThisMonth', params)
}
export default {
getMerchantInProgressThisMonth,
}
...@@ -17,11 +17,11 @@ class Request { ...@@ -17,11 +17,11 @@ class Request {
}, },
method method
} }
params.req.corporateGroupName = '广汇' // params.req.corporateGroupName = '广汇'
const { reportParams } = window.vm.$store.state.app // const { reportParams } = window.vm.$store.state.app
if (reportParams) { // if (reportParams) {
if (reportParams.brand) params.req.brandName = reportParams.brand.name // if (reportParams.brand) params.req.brandName = reportParams.brand.name
} // }
if (method === 'GET') { if (method === 'GET') {
var paramsArray = [] var paramsArray = []
Object.keys(params.req).forEach(key => paramsArray.push('req.' + key + '=' + params.req[key])) Object.keys(params.req).forEach(key => paramsArray.push('req.' + key + '=' + params.req[key]))
......
...@@ -20,6 +20,9 @@ import { fetchConfig, cfg } from '@/config' ...@@ -20,6 +20,9 @@ import { fetchConfig, cfg } from '@/config'
import '@/assets/css/index.scss' import '@/assets/css/index.scss'
import './utils/util' import './utils/util'
import 'components' import 'components'
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts
Vue.prototype.to = function (name, params) { Vue.prototype.to = function (name, params) {
if (name === -1) { if (name === -1) {
router.go(-1) router.go(-1)
......
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
}, },
methods: { methods: {
getClientData() { getClientData() {
let clientApi = !this.isBrand ? 'overalldistribution' : 'merchantOveralldistribution' let clientApi = !this.isBrand ? '' : 'merchantOveralldistribution'
const params = { const params = {
req: { req: {
queryItem: this.type, queryItem: this.type,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!