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
8f88fe2d
Commit
8f88fe2d
authored
Jun 21, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营地标签-车型
parent
956f08d4
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
535 additions
and
2 deletions
+535
-2
campsiteManage.js
src/api/campsiteManage.js
+133
-0
vehicleType.js
src/api/vehicleType.js
+10
-0
campsiteLabel.vue
src/views/campsiteManage/campsiteLabel.vue
+390
-0
index.vue
src/views/vehicleType/index.vue
+2
-2
No files found.
src/api/campsiteManage.js
0 → 100644
View file @
8f88fe2d
import
fetch
from
'utils/fetch'
;
/**
* 获取营地标签List
*/
export
function
campsiteTagList
(
query
)
{
return
fetch
({
url
:
'/api/campsite/admin/campsiteTag/pages'
,
method
:
'get'
,
params
:
query
});
}
/**
* 是否是筛选条件
* */
export
function
setSearchById
(
query
)
{
return
fetch
({
url
:
'/api/campsite/admin/campsiteTag/searchStatus?id='
+
query
.
id
+
'&status='
+
query
.
status
,
method
:
'put'
});
}
/**
* 删除营地标签
*/
export
function
delCampsiteTag
(
id
)
{
return
fetch
({
url
:
'/api/campsite/admin/campsiteTag/'
+
id
,
method
:
'delete'
});
}
/**
* 编辑营地标签
* */
export
function
editCampsiteTag
(
query
)
{
return
fetch
({
url
:
'/api/campsite/admin/campsiteTag/'
+
query
.
id
,
method
:
'put'
,
data
:
query
});
}
/**
* 创建营地标签
* */
export
function
addCampsiteTag
(
params
)
{
return
fetch
({
url
:
'/api/campsite/admin/campsiteTag'
,
method
:
'post'
,
data
:
params
});
}
/**
* 判断标签是否已存在
* @param id
*/
export
function
existTag
(
query
)
{
return
fetch
({
url
:
'/api/campsite/admin/campsiteTag/exist'
,
method
:
'get'
,
params
:
query
});
}
/**
* 获取营地List
*/
export
function
getCampsiteList
(
query
)
{
return
fetch
({
url
:
'/api/campsite/admin/campsiteShop/pages'
,
method
:
'post'
,
params
:
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'
});
}
/**
* 获取全部旅游标签
* @param query
*/
export
function
getAllTourTag
(
query
)
{
return
fetch
({
url
:
'/api/tour/admin/tourTag/tags'
,
method
:
'get'
,
params
:
query
});
}
/**
* 获取全部旅游标签
* @param query
*/
export
function
goodDel
(
id
)
{
return
fetch
({
url
:
'/api/tour/good/admin/goodDel/'
+
id
,
method
:
'get'
});
}
/**
* 上架、下架
* */
export
function
upStatusChange
(
query
)
{
return
fetch
({
url
:
'/api/tour/good/admin/upStatus'
,
method
:
'get'
,
params
:
query
});
}
src/api/vehicleType.js
View file @
8f88fe2d
...
...
@@ -121,3 +121,13 @@ export function addVehicleModel(params) {
data
:
params
});
}
/*
* 删除一条车型数据
* */
export
function
delVehicleModel
(
id
)
{
return
fetch
({
url
:
'/vehicle/vehicleModel/app/'
+
id
,
method
:
'delete'
});
}
src/views/campsiteManage/campsiteLabel.vue
0 → 100644
View file @
8f88fe2d
This diff is collapsed.
Click to expand it.
src/views/vehicleType/index.vue
View file @
8f88fe2d
...
...
@@ -129,7 +129,7 @@
import
{
page
,
getOneGoodsById
,
del
eteVehicleType
,
del
VehicleModel
,
getLabelList
,
getLabelByParentId
,
}
from
'api/vehicleType'
;
...
...
@@ -211,7 +211,7 @@
* 删除
* */
deleteHandler
(
row
)
{
del
eteVehicleType
(
row
.
id
).
then
(
response
=>
{
del
VehicleModel
(
row
.
id
).
then
(
response
=>
{
if
(
response
.
status
===
200
)
{
this
.
$notify
({
title
:
'成功'
,
...
...
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