Commit 11004b5d authored by lixy's avatar lixy

旅行标签设置

parent 0939dc54
......@@ -29,9 +29,6 @@ export function getOneGoodsById(query) {
params: query
});
}
// api/tour/admin/tourBanner
// api/tour/admin/tourBanner/page?pageNo=0&pageSize=10
/**
* 获取bannerList
*/
......@@ -65,7 +62,7 @@ export function editBanner(params) {
// delBanner
/**
* 修改banner
* 删除banner
*/
export function delBanner(id) {
return fetch({
......@@ -73,3 +70,55 @@ export function delBanner(id) {
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 @@
type="index"
align="center" label="序号" width="98">
</el-table-column>
<el-table-column width="500" align="center" label="标题">
<el-table-column width="300" align="center" label="标题">
<template scope="scope">
<span>{{scope.row.title}}</span>
</template>
</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图">
<template scope="scope">
<img :src="scope.row.cover" style="width:100%;max-height:100px;">
......@@ -204,13 +209,6 @@
this.modalTitle = '创建';
this.bannerDialogVisible = true;
},
/**
* 操作-删除
* */
deleteHandler(row) {
this.oneTourRow = row;
this.bannerDialogVisible = true;
},
/**
* 操作-编辑
* */
......@@ -273,7 +271,7 @@
addBanner(this.form)
.then(response => {
if (response.status === 200) {
this.dialogFormVisible = false;
this.bannerDialogVisible = false;
this.getList();
this.$notify({
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