Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
dj-data-view
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b80e7362
authored
Oct 25, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新地图代码
1 parent
bce94443
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
6 deletions
src/api/modules/map.js
src/api/request.js
src/main.js
src/mixins/clientMixin.js
src/views/map/index.vue
src/api/modules/map.js
0 → 100644
View file @
b80e736
// 当月进行中门店--区域(省份_地图)分布(参数:新车洽谈/新车交付/0~12个月/12个月以上)
const
getMerchantInProgressThisMonth
=
params
=>
{
return
window
.
$HTTP
.
get
(
'saasValueaddedTransformation/getMerchantInProgressThisMonth'
,
params
)
}
export
default
{
getMerchantInProgressThisMonth
,
}
src/api/request.js
View file @
b80e736
...
@@ -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
]))
...
...
src/main.js
View file @
b80e736
...
@@ -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
)
...
...
src/mixins/clientMixin.js
View file @
b80e736
...
@@ -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
,
...
...
src/views/map/index.vue
View file @
b80e736
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment