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
11004b5d
Commit
11004b5d
authored
Jun 13, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
旅行标签设置
parent
0939dc54
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
569 additions
and
13 deletions
+569
-13
tourManage.js
src/api/tourManage.js
+53
-4
bannerSetting.vue
src/views/baseInfo/bannerSetting.vue
+7
-9
tourLabel.vue
src/views/tourManage/tourLabel.vue
+509
-0
No files found.
src/api/tourManage.js
View file @
11004b5d
...
@@ -29,9 +29,6 @@ export function getOneGoodsById(query) {
...
@@ -29,9 +29,6 @@ export function getOneGoodsById(query) {
params
:
query
params
:
query
});
});
}
}
// api/tour/admin/tourBanner
// api/tour/admin/tourBanner/page?pageNo=0&pageSize=10
/**
/**
* 获取bannerList
* 获取bannerList
*/
*/
...
@@ -65,7 +62,7 @@ export function editBanner(params) {
...
@@ -65,7 +62,7 @@ export function editBanner(params) {
// delBanner
// delBanner
/**
/**
*
修改
banner
*
删除
banner
*/
*/
export
function
delBanner
(
id
)
{
export
function
delBanner
(
id
)
{
return
fetch
({
return
fetch
({
...
@@ -73,3 +70,55 @@ export function delBanner(id) {
...
@@ -73,3 +70,55 @@ export function delBanner(id) {
method
:
'delete'
method
:
'delete'
});
});
}
}
/**
* 获取旅游标签List
*/
export
function
getTourTagList
(
query
)
{
return
fetch
({
url
:
'/api/tour/admin/tourTag/pages'
,
method
:
'get'
,
params
:
query
});
}
/**
* 获取旅游标签List
*/
export
function
tourTagUpdate
(
query
)
{
return
fetch
({
url
:
'/api/tour/admin/tourTag/update'
,
method
:
'put'
,
data
:
query
});
}
/**
* 获取旅游标签List
*/
export
function
tourTagAdd
(
query
)
{
return
fetch
({
url
:
'/api/tour/admin/tourTag/save'
,
method
:
'post'
,
data
:
query
});
}
/**
*热门标签状态
*/
export
function
tourTagHot
(
query
)
{
return
fetch
({
url
:
'/api/tour/admin/tourTag/update/hot'
,
method
:
'put'
,
params
:
query
});
}
/**
*删除旅游标签
*/
export
function
deleteTourTag
(
id
)
{
return
fetch
({
url
:
'/api/tour/admin/tourTag/'
+
id
,
method
:
'delete'
});
}
src/views/baseInfo/bannerSetting.vue
View file @
11004b5d
...
@@ -11,11 +11,16 @@
...
@@ -11,11 +11,16 @@
type=
"index"
type=
"index"
align=
"center"
label=
"序号"
width=
"98"
>
align=
"center"
label=
"序号"
width=
"98"
>
</el-table-column>
</el-table-column>
<el-table-column
width=
"
5
00"
align=
"center"
label=
"标题"
>
<el-table-column
width=
"
3
00"
align=
"center"
label=
"标题"
>
<template
scope=
"scope"
>
<template
scope=
"scope"
>
<span>
{{
scope
.
row
.
title
}}
</span>
<span>
{{
scope
.
row
.
title
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
width=
"200"
align=
"center"
label=
"类型"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
type
==
0
?
"app首页"
:
scope
.
row
.
type
==
1
?
"app旅游页"
:
"租车"
}}
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"300"
align=
"center"
label=
"banner图"
>
<el-table-column
width=
"300"
align=
"center"
label=
"banner图"
>
<
template
scope=
"scope"
>
<
template
scope=
"scope"
>
<img
:src=
"scope.row.cover"
style=
"width:100%;max-height:100px;"
>
<img
:src=
"scope.row.cover"
style=
"width:100%;max-height:100px;"
>
...
@@ -204,13 +209,6 @@
...
@@ -204,13 +209,6 @@
this
.
modalTitle
=
'创建'
;
this
.
modalTitle
=
'创建'
;
this
.
bannerDialogVisible
=
true
;
this
.
bannerDialogVisible
=
true
;
},
},
/**
* 操作-删除
* */
deleteHandler
(
row
)
{
this
.
oneTourRow
=
row
;
this
.
bannerDialogVisible
=
true
;
},
/**
/**
* 操作-编辑
* 操作-编辑
* */
* */
...
@@ -273,7 +271,7 @@
...
@@ -273,7 +271,7 @@
addBanner
(
this
.
form
)
addBanner
(
this
.
form
)
.
then
(
response
=>
{
.
then
(
response
=>
{
if
(
response
.
status
===
200
)
{
if
(
response
.
status
===
200
)
{
this
.
dialogForm
Visible
=
false
;
this
.
bannerDialog
Visible
=
false
;
this
.
getList
();
this
.
getList
();
this
.
$notify
({
this
.
$notify
({
title
:
'成功'
,
title
:
'成功'
,
...
...
src/views/tourManage/tourLabel.vue
0 → 100644
View file @
11004b5d
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