Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 960f4843
authored
Apr 30, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
- 修复当 carModelId 不存在时显示全部工具列表的问题
- 在 watch 中调用 setPageToolList 方法,提高代码复用性
1 parent
b49e5905
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
pages/equity/detail/detail.vue
pages/equity/detail/detail.vue
View file @
960f484
...
...
@@ -174,7 +174,7 @@ export default {
customerInfo
()
{
return
this
.
$store
.
state
.
user
.
customerInfo
},
viewKey
()
{
viewKey
()
{
return
this
.
$store
.
state
.
user
.
viewKey
}
},
...
...
@@ -188,19 +188,13 @@ export default {
viewKey
:
{
immediate
:
true
,
handler
(
newval
)
{
if
(
this
.
channelType
==
1
)
{
let
{
carModelId
}
=
this
.
customerInfo
const
isAito
=
this
.
aitoCarModelIds
?.
findIndex
(
e
=>
e
==
carModelId
)
if
(
isAito
==
-
1
)
{
this
.
pageToolList
=
this
.
toolList
.
filter
(
e
=>
!
e
.
isAito
)
}
else
this
.
pageToolList
=
this
.
toolList
}
this
.
setPageToolList
()
}
},
toolList
:
{
immediate
:
true
,
handler
(
newval
)
{
this
.
pageToolList
=
newval
this
.
setPageToolList
()
}
},
},
...
...
@@ -296,6 +290,15 @@ export default {
scale
(
e
)
{
let
{
id
}
=
this
this
.
scaleValueObject
[
id
]
=
e
},
setPageToolList
()
{
if
(
this
.
channelType
==
1
)
{
let
{
carModelId
}
=
this
.
customerInfo
const
isAito
=
this
.
aitoCarModelIds
?.
findIndex
(
e
=>
e
==
carModelId
)
if
(
carModelId
&&
isAito
==
-
1
)
{
this
.
pageToolList
=
this
.
toolList
.
filter
(
e
=>
!
e
.
isAito
)
}
else
this
.
pageToolList
=
this
.
toolList
}
else
this
.
pageToolList
=
this
.
toolList
}
}
}
...
...
Write
Preview
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