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
5db2859a
Commit
5db2859a
authored
Apr 26, 2023
by
leon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: tabs select default value
parent
071ce6d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
NormalTabs.vue
components/NormalTabs/NormalTabs.vue
+9
-8
No files found.
components/NormalTabs/NormalTabs.vue
View file @
5db2859a
...
@@ -117,12 +117,18 @@
...
@@ -117,12 +117,18 @@
)
)
}
}
},
},
handleShowSelect
()
{
handleShowSelect
()
{
debugger
this
.
defaultValue
[
0
]
=
[
this
.
elementData
.
dataList
.
series
.
findIndex
(
item
=>
item
.
value
==
this
.
tabsValue
)
]
uni
.
$emit
(
'showSelect'
,
{
uni
.
$emit
(
'showSelect'
,
{
id
:
this
.
elementInfo
.
id
,
id
:
this
.
elementInfo
.
id
,
show
:
true
,
show
:
true
,
list
:
this
.
elementData
.
dataList
.
series
,
list
:
this
.
elementData
.
dataList
.
series
,
defaultValue
:
this
.
tabs
Value
defaultValue
:
this
.
default
Value
})
})
},
},
setTabsValue
(
index
=
0
)
{
setTabsValue
(
index
=
0
)
{
...
@@ -135,14 +141,9 @@
...
@@ -135,14 +141,9 @@
this
.
tabsValueChange
()
this
.
tabsValueChange
()
},
},
handleSelectChange
(
e
)
{
handleSelectChange
(
e
)
{
this
.
selectValue
=
e
[
0
].
label
this
.
selectValue
=
e
[
0
].
label
this
.
tabsValue
=
e
[
0
].
value
this
.
tabsValue
=
e
[
0
].
value
this
.
defaultValue
[
0
]
=
[
this
.
elementData
.
dataList
.
series
.
findIndex
(
item
=>
item
.
value
===
e
[
0
].
value
)
]
this
.
tabsValueChange
()
this
.
tabsValueChange
()
},
},
handleChangeTabValue
(
value
)
{
handleChangeTabValue
(
value
)
{
...
...
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