Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
Overview
Overview
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
hooloo
mp
user
Commits
37622212
Commit
37622212
authored
2 years ago
by
宋冰琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复地区选择切换的bug
parent
32c4fda8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
pages/menu/menu.vue
+17
-2
No files found.
pages/menu/menu.vue
View file @
37622212
...
...
@@ -79,7 +79,8 @@ export default {
customerName
:
''
,
show
:
false
,
columns
:
[],
loginInfo
:
""
loginInfo
:
""
,
cityInfo
:[]
};
},
computed
:
{
...
...
@@ -194,7 +195,21 @@ export default {
this
.
show
=
true
;
})
},
changeHandler
()
{
},
changeHandler
(
e
)
{
const
{
columnIndex
,
index
,
picker
=
this
.
$refs
.
uPicker
}
=
e
if
(
columnIndex
===
0
){
this
.
cityInfo
=
this
.
columns
[
0
][
index
].
children
?
this
.
columns
[
0
][
index
].
children
:[]
picker
.
setColumnValues
(
1
,
this
.
cityInfo
)
picker
.
setColumnValues
(
2
,
this
.
cityInfo
[
0
].
children
?
this
.
cityInfo
[
0
].
children
:[])
}
if
(
columnIndex
===
1
){
picker
.
setColumnValues
(
2
,
this
.
cityInfo
[
index
].
children
?
this
.
cityInfo
[
index
].
children
:[])
}
},
confirm
(
res
)
{
const
{
value
}
=
res
;
console
.
log
(
value
)
...
...
This diff is collapsed.
Click to expand it.
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