Commit 11004b5d authored by lixy's avatar lixy

旅行标签设置

parent 0939dc54
...@@ -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'
});
}
...@@ -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="500" align="center" label="标题"> <el-table-column width="300" 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.dialogFormVisible = false; this.bannerDialogVisible = false;
this.getList(); this.getList();
this.$notify({ this.$notify({
title: '成功', title: '成功',
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment