Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
03402fac
authored
2025-05-30 10:48:15 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
票务
1 parent
8340c88d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
40 deletions
src/viewsPc/center/index.vue
src/viewsPc/center/index.vue
View file @
03402fa
...
...
@@ -2,11 +2,12 @@
<div
class=
"app-container"
>
<div
class=
"box"
>
<el-row
:gutter=
"20"
>
<el-col
:lg=
"5"
:md=
"5"
:
xl=
"6"
:sm=
"8
"
:xs=
"8"
>
<el-col
:lg=
"5"
:md=
"5"
:
sm=
"8"
:xl=
"6
"
:xs=
"8"
>
<el-card
class=
"mb20"
>
<div
:class=
"language==0?'center-menu':'center-menu en-menu'"
>
<ul
v-if=
"user.utype=='2'&&language==0"
>
<li
v-for=
"(m, i) in menus"
<li
v-for=
"(m, i) in menus"
:key=
"i"
:class=
"
{ active: m.isActive }"
>
...
...
@@ -17,7 +18,8 @@
</li>
</ul>
<ul
v-if=
"user.utype=='2'&&language==1"
>
<li
v-for=
"(m, i) in menusEn"
<li
v-for=
"(m, i) in menusEn"
:key=
"i"
:class=
"
{ active: m.isActive }"
>
...
...
@@ -78,8 +80,8 @@
</div>
</el-card>
</el-col>
<el-col
:lg=
"19"
:md=
"19"
:
xl=
"18"
:sm=
"16
"
:xs=
"16"
>
<router-view
:user=
"user"
class=
"rightPart"
/>
<el-col
:lg=
"19"
:md=
"19"
:
sm=
"16"
:xl=
"18
"
:xs=
"16"
>
<router-view
:user=
"user"
class=
"rightPart"
/>
</el-col>
</el-row>
</div>
...
...
@@ -87,12 +89,12 @@
</
template
>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
useRoute
,
useRouter
}
from
'vue-router'
import
{
onMounted
}
from
'@vue/runtime-core'
import
{
ref
}
from
'vue'
import
{
useRoute
,
useRouter
}
from
'vue-router'
import
{
onMounted
}
from
'@vue/runtime-core'
import
useUserStore
from
'@/store/modules/user'
import
_
from
'lodash'
import
{
useStorage
}
from
"@vueuse/core/index"
;
import
{
useStorage
}
from
'@vueuse/core/index'
const
language
=
useStorage
(
'language'
,
0
)
...
...
@@ -245,13 +247,13 @@ const menus3 = ref([
picUrl2
:
'/img/nav_29_dwn.png'
,
isActive
:
false
},
{
name
:
language
.
value
==
0
?
'票务预订'
:
'Ticket Reservation'
,
routeName
:
'seat_order'
,
picUrl1
:
'/img/c7.png'
,
picUrl2
:
'/img/c7.png'
,
isActive
:
false
},
//
{
//
name: language.value == 0 ? '票务预订' : 'Ticket Reservation',
//
routeName: 'seat_order',
//
picUrl1: '/img/c7.png',
//
picUrl2: '/img/c7.png',
//
isActive: false
//
},
{
name
:
language
.
value
==
0
?
'发票申请'
:
'Electronic invoice'
,
routeName
:
'myKP'
,
...
...
@@ -281,14 +283,14 @@ const menus3En = ref([
picUrl1
:
'/img/nav_29.png'
,
picUrl2
:
'/img/nav_29_dwn.png'
,
isActive
:
false
},
{
name
:
language
.
value
==
0
?
'票务预订'
:
'Ticket Reservation'
,
routeName
:
'seat_order'
,
picUrl1
:
'/img/c7.png'
,
picUrl2
:
'/img/c7.png'
,
isActive
:
false
}
// {
// name: language.value == 0 ? '票务预订' : 'Ticket Reservation',
// routeName: 'seat_order',
// picUrl1: '/img/c7.png',
// picUrl2: '/img/c7.png',
// isActive: false
// }
])
const
menusPersonal
=
ref
([
{
...
...
@@ -319,13 +321,13 @@ const menusPersonal = ref([
picUrl2
:
'/img/nav_29_dwn.png'
,
isActive
:
false
},
{
name
:
language
.
value
==
0
?
'票务预订'
:
'Ticket Reservation'
,
routeName
:
'seat_order'
,
picUrl1
:
'/img/c7.png'
,
picUrl2
:
'/img/c7.png'
,
isActive
:
false
},
//
{
//
name: language.value == 0 ? '票务预订' : 'Ticket Reservation',
//
routeName: 'seat_order',
//
picUrl1: '/img/c7.png',
//
picUrl2: '/img/c7.png',
//
isActive: false
//
},
{
name
:
language
.
value
==
0
?
'系统消息'
:
'System messages'
,
routeName
:
'mySms'
,
...
...
@@ -370,13 +372,13 @@ const menusPersonalEn = ref([
picUrl2
:
'/img/nav_29_dwn.png'
,
isActive
:
false
},
{
name
:
language
.
value
==
0
?
'票务预订'
:
'Ticket Reservation'
,
routeName
:
'seat_order'
,
picUrl1
:
'/img/c7.png'
,
picUrl2
:
'/img/c7.png'
,
isActive
:
false
},
//
{
//
name: language.value == 0 ? '票务预订' : 'Ticket Reservation',
//
routeName: 'seat_order',
//
picUrl1: '/img/c7.png',
//
picUrl2: '/img/c7.png',
//
isActive: false
//
},
{
name
:
language
.
value
==
0
?
'系统消息'
:
'System messages'
,
routeName
:
'mySms'
,
...
...
@@ -389,7 +391,7 @@ let currMenu
onMounted
(()
=>
{
console
.
log
(
route
.
query
)
if
(
!
user
.
utype
)
{
router
.
push
({
name
:
'home'
})
router
.
push
({
name
:
'home'
})
return
}
if
(
user
.
utype
==
'1'
)
{
...
...
@@ -412,7 +414,6 @@ onMounted(() => {
})
currMenu
.
isActive
=
true
}
})
const
toInfo
=
(
item
,
list
)
=>
{
...
...
@@ -427,7 +428,7 @@ const toInfo = (item, list) => {
}
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
:deep
(
.el-tabs__nav-wrap
)
{
padding
:
0
15px
;
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment