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
d974d9e8
Commit
d974d9e8
authored
Jan 18, 2022
by
Jenny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 配置全局数据修改
parent
8e70f7dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
echartElementData.js
mixins/echartElementData.js
+4
-4
No files found.
mixins/echartElementData.js
View file @
d974d9e8
...
...
@@ -41,10 +41,11 @@ export default {
if
(
!
this
.
globalData
)
return
const
{
dataProcessing
}
=
{
...
value
}
if
(
dataProcessing
)
{
elementData
.
value
.
dataList
=
this
.
$u
.
common
.
converFunction
(
dataProcessing
,
JSON
.
parse
(
this
.
globalData
))
return
false
this
.
elementData
.
dataList
=
this
.
$u
.
common
.
converFunction
(
dataProcessing
,
JSON
.
parse
(
this
.
globalData
))
}
else
{
this
.
elementData
.
dataList
=
JSON
.
parse
(
this
.
globalData
)
}
elementData
.
value
.
dataList
=
JSON
.
parse
(
this
.
globalData
)
this
.
initChart
(
)
},
/**
* 配置数据 - 数据集
...
...
@@ -112,7 +113,6 @@ export default {
* 全局数据更新监测
*/
globalData
()
{
console
.
log
(
'----globalData----'
,
this
.
globalData
)
if
(
this
.
elementInfo
.
data
.
dataType
===
'public'
)
this
.
handlePublicData
(
this
.
elementInfo
.
data
)
}
}
...
...
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