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
c38f6c6c
Commit
c38f6c6c
authored
May 10, 2022
by
Jenny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改tab组件下拉刷新状态不变问题
parent
fee85e7f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
NormalTabs.vue
components/NormalTabs/NormalTabs.vue
+11
-3
index.vue
pages/index/index.vue
+1
-0
No files found.
components/NormalTabs/NormalTabs.vue
View file @
c38f6c6c
...
...
@@ -59,6 +59,14 @@
tabsValue
:
''
};
},
mounted
()
{
uni
.
$on
(
'handlePullDownRefresh'
,
()
=>
{
this
.
initChart
()
})
},
destroy
()
{
uni
.
$off
(
'handlePullDownRefresh'
)
},
computed
:
{
tabsGroup
()
{
const
{
type
,
count
}
=
this
.
elementInfo
.
option
.
tabs
...
...
@@ -83,12 +91,12 @@
}
},
methods
:
{
initChart
()
{
initChart
(
index
=
0
)
{
this
.
currentTabs
=
index
this
.
tabsValue
=
this
.
elementData
.
dataList
.
series
[
this
.
currentTabs
].
value
},
handleTabsChange
(
index
)
{
this
.
currentTabs
=
index
this
.
initChart
()
this
.
initChart
(
index
)
this
.
tabsValueChange
()
},
handleSelectChange
(
e
)
{
...
...
pages/index/index.vue
View file @
c38f6c6c
...
...
@@ -212,6 +212,7 @@
const
that
=
this
let
res
=
await
that
.
$u
.
api
.
getReportCharts
({
id
:
'6274f095460633568801a709'
})
uni
.
stopPullDownRefresh
()
uni
.
$emit
(
'handlePullDownRefresh'
)
const
{
Status
,
Result
:
{
info
,
list
}
}
=
res
.
data
if
(
Status
===
'true'
)
{
if
(
info
.
dataUrl
)
{
...
...
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