Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
ec-report-refactor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lihuizhen
ec-report-refactor
Commits
ecdd5c23
Commit
ecdd5c23
authored
Feb 28, 2022
by
leon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://106.15.103.105/lihuizhen/ec-report-refactor
into develop
parents
19e9ae9f
280dfa8c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
9 deletions
+12
-9
http.interceptor.js
common/http.interceptor.js
+2
-1
BarMixMap.vue
components/BarMixMap/BarMixMap.vue
+3
-0
BasicText.vue
components/BasicText/BasicText.vue
+2
-4
echartElementData.js
mixins/echartElementData.js
+1
-0
index.vue
pages/index/index.vue
+4
-4
No files found.
common/http.interceptor.js
View file @
ecdd5c23
...
...
@@ -11,7 +11,8 @@ const install = (Vue, vm) => {
},
// 配置请求头信息
config
.
header
=
{
"Content-Type"
:
"application/json"
"Content-Type"
:
"application/json"
,
"Type"
:
"wx"
}
return
config
})
...
...
components/BarMixMap/BarMixMap.vue
View file @
ecdd5c23
...
...
@@ -27,6 +27,9 @@
components
:
{
uniEcCanvas
},
onHide
()
{
clearInterval
(
this
.
changeTimer
)
},
methods
:
{
initChart
()
{
this
.
$nextTick
(()
=>
{
...
...
components/BasicText/BasicText.vue
View file @
ecdd5c23
...
...
@@ -10,7 +10,7 @@
'animation-duration':`${elementInfo.marquee.speed ? elementInfo.marquee.speed : defaultSpeed}s`
}"
>
{{
text
}}
{{
elementData
.
dataList
.
text
||
elementInfo
.
option
.
title
.
text
}}
</p>
</view>
</
template
>
...
...
@@ -27,9 +27,7 @@ export default {
};
},
methods
:
{
initChart
()
{
this
.
text
=
this
.
elementData
.
dataList
.
text
||
this
.
elementInfo
.
option
.
title
.
text
}
initChart
()
{}
}
}
</
script
>
...
...
mixins/echartElementData.js
View file @
ecdd5c23
...
...
@@ -85,6 +85,7 @@ export default {
watch
:
{
'elementInfo.data'
:
{
handler
(
newVal
)
{
if
(
this
.
elementInfo
.
hide
)
return
false
if
(
newVal
.
dataType
===
'static'
)
{
this
.
handleStaticData
(
newVal
)
}
...
...
pages/index/index.vue
View file @
ecdd5c23
...
...
@@ -3,7 +3,7 @@
<template
v-for=
"(element, index) in reportData"
>
<view
class=
"view-element"
v-
if
=
"!element.hide"
v-
show
=
"!element.hide"
:key=
"element.id"
:style=
"
{
width: `${element.width * scale}px`,
...
...
@@ -94,7 +94,7 @@
* 组件交互 - 组件
*/
uni
.
$on
(
'handleLinkComp'
,
({
showData
,
hideData
})
=>
{
this
.
reportData
.
map
(
item
=>
{
this
.
reportData
=
this
.
reportData
.
map
(
item
=>
{
if
(
showData
.
includes
(
item
.
id
))
item
.
hide
=
false
if
(
hideData
.
includes
(
item
.
id
))
item
.
hide
=
true
return
item
...
...
@@ -174,7 +174,7 @@
*/
handleValueChange
(
index
,
paramName
,
value
)
{
if
(
index
.
length
&&
paramName
&&
value
)
{
this
.
reportData
.
map
(
item
=>
{
this
.
reportData
=
this
.
reportData
.
map
(
item
=>
{
const
flag
=
index
.
includes
(
item
.
id
)
if
(
flag
&&
item
.
type
===
'BasicText'
&&
item
.
data
.
dataType
===
'static'
)
{
this
.
$set
(
item
.
data
.
dataList
,
'text'
,
value
)
...
...
@@ -206,7 +206,7 @@
position
:
relative
;
height
:
100%
;
user-select
:
none
;
overflow
:
auto
;
//
overflow: auto;
background-repeat
:
no-repeat
;
background-size
:
cover
;
background-position
:
center
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment