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 d7ff000d
authored
Nov 02, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.2.0' into 'master'
V1.2.0 See merge request
!7
2 parents
73c3b55a
848cd703
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
8 deletions
src/components/LineChart.vue
src/components/ViewTitle.vue
src/components/barChart.vue
src/components/lineBar.vue
src/config/index.js
src/views/user/usertab.vue
src/components/LineChart.vue
View file @
d7ff000
...
@@ -93,6 +93,9 @@ export default {
...
@@ -93,6 +93,9 @@ export default {
mounted
()
{
mounted
()
{
this
.
lineDom
=
document
.
getElementById
(
this
.
domId
)
this
.
lineDom
=
document
.
getElementById
(
this
.
domId
)
this
[
this
.
domId
]
=
echarts
.
init
(
this
.
lineDom
)
this
[
this
.
domId
]
=
echarts
.
init
(
this
.
lineDom
)
window
.
addEventListener
(
'resize'
,
()
=>
{
this
[
this
.
domId
].
resize
()
})
},
},
methods
:
{
methods
:
{
chartBindEvent
()
{
chartBindEvent
()
{
...
...
src/components/ViewTitle.vue
View file @
d7ff000
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<
template
>
<
template
>
<div
class=
"content flex"
>
<div
class=
"content flex"
>
<div
class=
"logo user-select"
>
<div
class=
"logo user-select"
>
<img
style=
"height: 3
.17vh
"
src=
"@/assets/images/logo.png"
alt=
"logo"
/>
<img
style=
"height: 3
2px
"
src=
"@/assets/images/logo.png"
alt=
"logo"
/>
</div>
</div>
<div
class=
"view-title user-select"
>
嘀加智慧门店运营看板
</div>
<div
class=
"view-title user-select"
>
嘀加智慧门店运营看板
</div>
<div
class=
"time"
>
<div
class=
"time"
>
...
...
src/components/barChart.vue
View file @
d7ff000
...
@@ -127,6 +127,9 @@ export default {
...
@@ -127,6 +127,9 @@ export default {
this
.
lineDom
=
document
.
getElementById
(
this
.
domId
)
this
.
lineDom
=
document
.
getElementById
(
this
.
domId
)
this
[
this
.
domId
]
=
echarts
.
init
(
this
.
lineDom
)
this
[
this
.
domId
]
=
echarts
.
init
(
this
.
lineDom
)
// this.chartBindEvent()
// this.chartBindEvent()
window
.
addEventListener
(
'resize'
,
()
=>
{
this
[
this
.
domId
].
resize
()
})
},
},
methods
:
{
methods
:
{
chartBindEvent
()
{
chartBindEvent
()
{
...
...
src/components/lineBar.vue
View file @
d7ff000
...
@@ -93,6 +93,9 @@ export default {
...
@@ -93,6 +93,9 @@ export default {
mounted
()
{
mounted
()
{
this
.
lineDom
=
document
.
getElementById
(
this
.
domId
)
this
.
lineDom
=
document
.
getElementById
(
this
.
domId
)
this
[
this
.
domId
]
=
echarts
.
init
(
this
.
lineDom
)
this
[
this
.
domId
]
=
echarts
.
init
(
this
.
lineDom
)
window
.
addEventListener
(
'resize'
,
()
=>
{
this
[
this
.
domId
].
resize
()
})
},
},
methods
:
{
methods
:
{
chartBindEvent
()
{
chartBindEvent
()
{
...
...
src/config/index.js
View file @
d7ff000
...
@@ -10,12 +10,12 @@
...
@@ -10,12 +10,12 @@
let
config
=
require
(
'./conf.js'
)
let
config
=
require
(
'./conf.js'
)
let
timeout
=
30000
//超时时间
let
timeout
=
30000
//超时时间
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
if
(
isEnv
)
{
//
if (isEnv) {
let
{
request
}
=
config
//
let { request } = config
Object
.
assign
(
request
,
{
timeout
})
//
Object.assign(request, { timeout })
return
Promise
.
resolve
(
config
)
//
return Promise.resolve(config)
}
//
}
/**测试mock */
return
window
.
fetch
(
'https://
oss-config.dev.glsx.com.cn/mock/6352681802322627d6b83e8c/dj-data-view/config
'
,
{}).
then
(
res
=>
res
.
json
())
/**测试mock */
return
window
.
fetch
(
'https://
config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=dj-data-view
'
,
{}).
then
(
res
=>
res
.
json
())
// return window.fetch('https://oss-config.test.glsx.com.cn/mock/62cbf569f5137cf37678b828/data-view/config', {}).then(res => res.json())
// return window.fetch('https://oss-config.test.glsx.com.cn/mock/62cbf569f5137cf37678b828/data-view/config', {}).then(res => res.json())
}
}
export
const
cfg
=
{
export
const
cfg
=
{
...
...
src/views/user/usertab.vue
View file @
d7ff000
...
@@ -40,7 +40,7 @@ const TEXT_VIEW = [
...
@@ -40,7 +40,7 @@ const TEXT_VIEW = [
view
:
'applet'
view
:
'applet'
},
},
{
{
text
:
'
个微
客户数'
,
text
:
'
硬件线索
客户数'
,
value
:
'totalsinglewechantnum'
,
value
:
'totalsinglewechantnum'
,
key
:
'incresinglewechantnum'
,
key
:
'incresinglewechantnum'
,
view
:
'individual'
view
:
'individual'
...
...
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