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
62a9703a
Commit
62a9703a
authored
Aug 16, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
旅游-必填项添加
parent
43fa21bc
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
324 additions
and
309 deletions
+324
-309
oneCampsiteModal.vue
src/views/campsiteManage/modal/oneCampsiteModal.vue
+15
-17
destinationModal.vue
src/views/tourManage/modal/destinationModal.vue
+7
-38
oneTourModal.vue
src/views/tourManage/modal/oneTourModal.vue
+302
-254
No files found.
src/views/campsiteManage/modal/oneCampsiteModal.vue
View file @
62a9703a
...
...
@@ -323,25 +323,24 @@
* 创建
* */
create
(
formName
){
// this.isCreate = true;
let
carouse
=
[];
//营地轮播图
this
.
form
.
carouse
.
map
(
function
(
item
)
{
let
c
=
{
id
:
item
.
id
,
imgUrl
:
item
.
imgUrl
};
carouse
.
push
(
c
);
});
/**
* 营地类别
* */
let
campsiteTagDTOS
=
[];
this
.
form
.
campsiteTagListVos
.
map
(
function
(
item
)
{
campsiteTagDTOS
.
push
(
item
.
id
);
});
const
set
=
this
.
$refs
;
set
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
let
carouse
=
[];
//营地轮播图
this
.
form
.
carouse
.
map
(
function
(
item
)
{
let
c
=
{
id
:
item
.
id
,
imgUrl
:
item
.
imgUrl
};
carouse
.
push
(
c
);
});
/**
* 营地类别
* */
let
campsiteTagDTOS
=
[];
this
.
form
.
campsiteTagListVos
.
map
(
function
(
item
)
{
campsiteTagDTOS
.
push
(
item
.
id
);
});
let
params
=
{
name
:
this
.
form
.
name
,
//营地名称
logo
:
this
.
form
.
logo
,
//封面图
...
...
@@ -455,7 +454,6 @@
return
;
}
});
},
/**
* 更新
...
...
src/views/tourManage/modal/destinationModal.vue
View file @
62a9703a
...
...
@@ -32,12 +32,12 @@
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"经度"
>
<el-form-item
label=
"经度"
prop=
"latitude"
>
<el-input
:value=
"form.latitude"
readonly
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"纬度"
>
<el-form-item
label=
"纬度"
prop=
"longitude"
>
<el-input
:value=
"form.longitude"
readonly
></el-input>
</el-form-item>
</el-col>
...
...
@@ -164,56 +164,26 @@
addrCity
:
undefined
,
},
rules
:
{
name
:
[
{
name
:{
type
:
'string'
,
required
:
true
,
message
:
'请输入名称'
,
trigger
:
'blur'
},
{
min
:
0
,
max
:
2000
,
message
:
'长度小于 2000 个字符'
,
trigger
:
'blur'
}
],
address
:
[
{
address
:
{
type
:
'string'
,
required
:
true
,
message
:
'请输入详细地址'
,
trigger
:
'blur'
},
{
min
:
0
,
max
:
2000
,
message
:
'长度小于 2000 个字符'
,
trigger
:
'blur'
}
],
longitude
:{
type
:
'string'
,
required
:
true
,
message
:
'请输入经纬度'
,
trigger
:
'blur'
message
:
'请选择经纬度'
},
latitude
:{
type
:
'string'
,
required
:
true
,
message
:
'请输入经纬度'
,
trigger
:
'blur'
},
addrProvince
:{
required
:
true
,
message
:
'请选择省份'
,
trigger
:
'blur'
},
addrCity
:{
required
:
true
,
message
:
'请选择城市'
,
trigger
:
'blur'
},
message
:
'请选择经纬度'
}
},
allCompanies
:
{},
allCompaniesArr
:
[],
...
...
@@ -223,7 +193,6 @@
baidumapSwitch
:
false
,
zoom
:
16
,
location
:
"深圳市"
,
}
},
created
()
{
...
...
src/views/tourManage/modal/oneTourModal.vue
View file @
62a9703a
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