Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
voltaic
Project
Project
Details
Activity
Releases
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
limeimei
voltaic
Commits
00086ae4
Commit
00086ae4
authored
Mar 15, 2024
by
limeimei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1b590ec1
Pipeline
#2352
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
0 deletions
+66
-0
exchange.vue
src/components/exchange.vue
+66
-0
No files found.
src/components/exchange.vue
View file @
00086ae4
<
script
setup
lang=
"ts"
>
import
{
ref
,
onMounted
}
from
'vue'
import
Direct
from
'./direct.vue'
import
{
UserService
}
from
'/src/utils/api.ts'
onMounted
(()
=>
{
// login1()
})
const
login1
=
async
()
=>
{
const
loginParams
=
{
autoLogin
:
true
,
username
:
'sixiang'
,
password
:
'qwe123'
,
}
const
res
=
await
UserService
.
login1
(
loginParams
)
// console.log(res)
}
let
activeName
=
ref
(
0
)
const
handleClick
=
(
tab
)
=>
{
console
.
log
(
tab
.
props
.
name
)
}
</
script
>
<
template
>
<div
class=
"wrapper"
>
<div
class=
"header"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"光伏智能直流汇流箱"
name=
"0"
>
<Direct
/>
</el-tab-pane>
<el-tab-pane
label=
"配置管理"
name=
"second"
>
光伏智能交流汇流箱
</el-tab-pane>
<el-tab-pane
label=
"角色管理"
name=
"third"
>
光伏智能并网箱
</el-tab-pane>
</el-tabs>
</div>
</div>
</
template
>
<
style
scoped
>
.wrapper
{
/* background: #F4F7FC; */
}
:deep
(
.el-tabs
)
{
--el-tabs-header-height
:
70px
;
}
:deep
(
.el-tabs__header
)
{
margin
:
0
;
background
:
white
;
margin-left
:
50px
;
}
:deep
(
.el-tabs__nav-wrap
::after
)
{
height
:
0px
;
}
</
style
>
\ No newline at end of file
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