Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
74c40a4f
Commit
74c40a4f
authored
Oct 25, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
af8d1646
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
22 deletions
+20
-22
citySelect.vue
public/appnew/src/components/achieveMain/citySelect.vue
+18
-21
entrance.vue
public/appnew/src/components/publicEg/entrance.vue
+2
-1
No files found.
public/appnew/src/components/achieveMain/citySelect.vue
View file @
74c40a4f
<
template
>
<select>
<option
v-for=
"(item, index) in
cityList"
:data=
"item"
:value=
"item.cityvalue"
:selected=
"item.cityvalue==data.cityname"
>
{{
item
.
cityname
}}
</option>
<select
@
change=
"changeCity($event)"
>
<option
v-for=
"(item, index) in
siteList"
:value=
"item.id"
:selected=
"item.id==datasiteid"
>
{{
item
.
city
}}
</option>
</select>
</
template
>
...
...
@@ -8,34 +8,31 @@
export
default
{
name
:
''
,
props
:
{
data
:
{
type
:
Object
,
default
:
()
=>
({
cityname
:
'上海'
})
datasiteid
:
{
type
:
[
String
,
Number
],
default
:
'10001'
}
},
components
:
{
data
()
{
return
{
siteList
:
[],
}
},
data
:
()
=>
({
'cityList'
:
[{
'cityname'
:
'上海'
,
'cityvalue'
:
'上海'
,
},{
'cityname'
:
'杭州'
,
'cityvalue'
:
'杭州'
,
}]
}),
created
()
{
let
_this
=
this
;
},
methods
:
{
changeCity
(
e
)
{
let
_this
=
this
;
localStorage
.
setItem
(
'tlSiteid'
,
e
.
target
.
value
);
_this
.
$emit
(
'changeCity'
,
e
.
target
.
value
);
}
},
computed
:
{
watch
:
{
datasiteid
(
newValue
,
oldVal
)
{
this
.
siteList
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'tlAppSiteList'
)));
}
}
}
</
script
>
...
...
public/appnew/src/components/publicEg/entrance.vue
View file @
74c40a4f
...
...
@@ -19,7 +19,8 @@
'path'
:
'/achieveFork'
,
'nameCustom'
:
'业绩总入口'
,
'query'
:
{
'token'
:
_token
'token'
:
_token
,
'siteId'
:
'10004'
}
},
{
...
...
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