Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform-ui
Commits
d18e5a3b
Commit
d18e5a3b
authored
Aug 29, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
官网活动地址选择修改
parent
905b306f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
29 deletions
+12
-29
activityList.vue
src/views/xxOfficialWebsite/activityList.vue
+2
-1
campsiteModal.vue
src/views/xxOfficialWebsite/modal/campsiteModal.vue
+2
-3
oneCampsiteModal.vue
src/views/xxOfficialWebsite/modal/oneCampsiteModal.vue
+8
-25
No files found.
src/views/xxOfficialWebsite/activityList.vue
View file @
d18e5a3b
...
...
@@ -138,7 +138,8 @@
import
{
getActivityList
,
isShowStatus
,
isPublishStatus
isPublishStatus
,
deleteActivityTag
}
from
'../../api/officialWebsit/activity'
;
import
Element1
from
"../admin/menu/components/element"
;
import
ElRow
from
"element-ui/packages/row/src/row"
;
...
...
src/views/xxOfficialWebsite/modal/campsiteModal.vue
View file @
d18e5a3b
...
...
@@ -344,9 +344,8 @@
});
return
;
}
console
.
log
(
this
.
listQuery
)
this
.
form
.
provinceCode
=
this
.
listQuery
.
addrProvince
;
this
.
form
.
cityCode
=
this
.
listQuery
.
addrCity
;
this
.
form
.
province
=
this
.
listQuery
.
addrProvince
;
this
.
form
.
city
=
this
.
listQuery
.
addrCity
;
this
.
form
.
townCode
=
this
.
listQuery
.
addrTown
set
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
...
...
src/views/xxOfficialWebsite/modal/oneCampsiteModal.vue
View file @
d18e5a3b
...
...
@@ -303,6 +303,7 @@
},
isExistCampsiteShop
(
type
,
datas
){
console
.
log
(
datas
)
if
(
type
==
"update"
){
//编辑
this
.
toUpdate
(
datas
);
}
...
...
@@ -480,11 +481,16 @@ create(formName){
this
.
showCampsiteVisible
=
false
;
if
(
obj
){
this
.
campsiteObj
=
obj
;
console
.
log
(
obj
)
debugger
let
provinceObj
=
getRegionByCodes
([
obj
.
province
]);
let
cityObj
=
getRegionByCodes
([
obj
.
city
]);
let
townObj
=
getRegionByCodes
([
obj
.
townCode
])
this
.
campsiteObj
.
provinceName
=
provinceObj
[
0
].
name
;
this
.
campsiteObj
.
cityName
=
cityObj
[
0
].
name
;
this
.
form
.
addressStr
=
this
.
campsiteObj
.
provinceName
+
this
.
campsiteObj
.
cityName
+
this
.
campsiteObj
.
address
;
this
.
campsiteObj
.
town
=
townObj
[
0
].
name
this
.
campsiteObj
.
townCode
=
obj
.
townCode
this
.
form
.
addressStr
=
this
.
campsiteObj
.
provinceName
+
this
.
campsiteObj
.
cityName
+
this
.
campsiteObj
.
town
+
this
.
campsiteObj
.
address
;
console
.
log
(
this
.
campsiteObj
);
}
},
...
...
@@ -493,33 +499,12 @@ create(formName){
* */
selectDestination
(){
let
that
=
this
;
console
.
log
(
this
.
campsiteObj
)
this
.
campsiteObj
.
showTitle
=
"活动地址编辑"
;
this
.
campsiteObj
.
eventName
=
'campsiteEvent'
;
this
.
campsiteObj
.
keyword
=
this
.
campsiteObj
.
address
;
this
.
showCampsiteVisible
=
true
;
},
/**
* 关闭营地标签弹框
* */
tourLabelEvent
(
obj
){
let
that
=
this
;
this
.
editLableVisible
=
false
;
let
arr
=
[];
let
ckeckList
=
[];
if
(
obj
){
this
.
allLabelList
.
map
(
function
(
item
){
obj
.
map
(
function
(
b
){
if
(
item
.
name
==
b
){
arr
.
push
(
item
);
ckeckList
.
push
(
b
);
}
});
});
this
.
form
.
campsiteTagListVos
=
arr
;
this
.
checkList
=
ckeckList
;
console
.
log
(
obj
);
}
},
/**
* 获取一条营地
* */
...
...
@@ -533,8 +518,6 @@ create(formName){
provinceName
:
response
.
data
.
province
,
city
:
response
.
data
.
cityCode
,
cityName
:
response
.
data
.
city
,
townCode
:
response
.
data
.
townCode
,
town
:
response
.
data
.
town
,
latitude
:
response
.
data
.
latitude
,
longitude
:
response
.
data
.
longitude
,
townCode
:
response
.
data
.
townCode
,
...
...
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