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
98e08535
Commit
98e08535
authored
Aug 26, 2019
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123321
parent
3e5eea31
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
13 deletions
+66
-13
achieveRegion.vue
public/appnew/src/components/achieveMain/achieveRegion.vue
+1
-1
citySelect.vue
public/appnew/src/components/achieveMain/citySelect.vue
+4
-12
citySelectIn.vue
public/appnew/src/components/achieveMain/citySelectIn.vue
+61
-0
No files found.
public/appnew/src/components/achieveMain/achieveRegion.vue
View file @
98e08535
...
...
@@ -77,7 +77,7 @@
</
template
>
<
script
>
import
citySelect
from
'@/components/achieveMain/citySelect'
;
import
citySelect
from
'@/components/achieveMain/citySelect
In
'
;
import
achieveSearchBlock
from
'@/components/achieveMain/achieveSearchBlock'
;
export
default
{
name
:
''
,
...
...
public/appnew/src/components/achieveMain/citySelect.vue
View file @
98e08535
<
template
>
<div
style=
"position:relative"
>
<div
style=
"background:rgba(0,0,0,0);width:100%;height:.8rem;position:absolute;"
v-if=
"isBoss==0"
></div>
<select
@
change=
"changeCity($event)"
>
<!--
<option
v-for=
"(item, index) in siteList"
:value=
"JSON.stringify(item)"
:selected=
"item.site_id==datasiteid"
>
{{
item
.
city
}}
</option>
-->
<option
v-for=
"(item, index) in siteList"
:value=
"JSON.stringify(item)"
:selected=
"item.id==datasiteid"
>
{{
item
.
city
}}
</option>
</select>
</div>
<select
@
change=
"changeCity($event)"
>
<!--
<option
v-for=
"(item, index) in siteList"
:value=
"JSON.stringify(item)"
:selected=
"item.site_id==datasiteid"
>
{{
item
.
city
}}
</option>
-->
<option
v-for=
"(item, index) in siteList"
:value=
"JSON.stringify(item)"
:selected=
"item.id==datasiteid"
>
{{
item
.
city
}}
</option>
</select>
</
template
>
<
script
>
...
...
@@ -20,12 +17,10 @@
data
()
{
return
{
siteList
:
[],
isBoss
:
1
}
},
created
()
{
let
_this
=
this
;
this
.
isBoss
=
localStorage
.
getItem
(
'isBoss'
)
?
localStorage
.
getItem
(
'isBoss'
)
:
1
;
let
_tempData
=
localStorage
.
getItem
(
'tlAppSiteList'
);
if
(
_tempData
){
this
.
siteList
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'tlAppSiteList'
)));
...
...
@@ -33,9 +28,6 @@
},
methods
:
{
changeCity
(
e
)
{
if
(
localStorage
.
getItem
(
'isBoss'
)
==
0
){
return
false
;
}
let
_this
=
this
;
let
_tempValue
=
JSON
.
parse
(
e
.
target
.
value
);
localStorage
.
setItem
(
'tlSiteid'
,
_tempValue
.
site_id
);
...
...
public/appnew/src/components/achieveMain/citySelectIn.vue
0 → 100644
View file @
98e08535
<
template
>
<div
style=
"position:relative"
>
<div
style=
"background:rgba(0,0,0,0);width:100%;height:.8rem;position:absolute;"
v-if=
"isBoss==0"
></div>
<select
@
change=
"changeCity($event)"
>
<!--
<option
v-for=
"(item, index) in siteList"
:value=
"JSON.stringify(item)"
:selected=
"item.site_id==datasiteid"
>
{{
item
.
city
}}
</option>
-->
<option
v-for=
"(item, index) in siteList"
:value=
"JSON.stringify(item)"
:selected=
"item.id==datasiteid"
>
{{
item
.
city
}}
</option>
</select>
</div>
</
template
>
<
script
>
export
default
{
name
:
''
,
props
:
{
datasiteid
:
{
type
:
[
String
,
Number
],
default
:
'10001'
}
},
data
()
{
return
{
siteList
:
[],
isBoss
:
1
}
},
created
()
{
let
_this
=
this
;
this
.
isBoss
=
localStorage
.
getItem
(
'isBoss'
)
?
localStorage
.
getItem
(
'isBoss'
)
:
1
;
let
_tempData
=
localStorage
.
getItem
(
'tlAppSiteList'
);
if
(
_tempData
){
this
.
siteList
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'tlAppSiteList'
)));
};
},
methods
:
{
changeCity
(
e
)
{
if
(
localStorage
.
getItem
(
'isBoss'
)
==
0
){
return
false
;
}
let
_this
=
this
;
let
_tempValue
=
JSON
.
parse
(
e
.
target
.
value
);
localStorage
.
setItem
(
'tlSiteid'
,
_tempValue
.
site_id
);
// localStorage.setItem('tlSiteid', _tempValue.id);
// localStorage.setItem('tlYjAgentId', _tempValue.id);//业绩里业务员id会变
_this
.
$emit
(
'changeCity'
,
_tempValue
.
id
);
}
},
watch
:
{
datasiteid
(
newValue
,
oldVal
)
{
this
.
siteList
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'tlAppSiteList'
)));
}
}
}
</
script
>
<
style
scoped
>
select
{
color
:
#333
;
font-size
:
.28rem
;
}
</
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