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
12ce7999
Commit
12ce7999
authored
Jun 18, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车型标签
parent
7acf9aac
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
692 additions
and
0 deletions
+692
-0
vehicleType.js
src/api/vehicleType.js
+91
-0
vehicleTypeLabel.vue
src/views/vehicleType/vehicleTypeLabel.vue
+601
-0
No files found.
src/api/vehicleType.js
0 → 100644
View file @
12ce7999
import
fetch
from
'utils/fetch'
;
/**
* 获取车型列表
* @param query
*/
export
function
page
(
query
)
{
return
fetch
({
url
:
'/vehicle/vehicleModel/app/findVehicleModelPage'
,
method
:
'post'
,
data
:
query
});
}
/**
* 根据车型id获取车型详情
*/
export
function
getOneTypeById
(
id
)
{
return
fetch
({
url
:
'/vehicle/vehicleModel/'
+
id
,
method
:
'get'
});
}
/**
* 获取全部一级标签
*/
export
function
getAllParentLabel
()
{
return
fetch
({
url
:
'/vehicle/cata/add/fingCatasByParentId/'
+
0
,
method
:
'get'
});
}
/**
* 获取标签列表
*/
// 0-不分页,1-分页(标签列表)
export
function
getLabelList
(
query
)
{
return
fetch
({
url
:
'/vehicle/cata/add/getCascades/'
+
query
.
page
+
'/'
+
query
.
limit
+
'/'
+
query
.
sort
,
method
:
'get'
});
}
/**
* 删除车型标签deleteVehicleType
*/
export
function
deleteVehicleType
(
id
)
{
return
fetch
({
url
:
'/vehicle/cata/add/deleteCascadeById/'
+
id
,
method
:
'delete'
});
}
/**
* 车型标签是否多选
*/
export
function
setIsMoreById
(
query
)
{
return
fetch
({
url
:
'/vehicle/cata/add/setIsMore/'
+
query
.
id
+
'/'
+
query
.
isMore
,
method
:
'put'
});
}
/**
* 是否是筛选条件
* */
export
function
setStartUsingById
(
query
)
{
return
fetch
({
url
:
'/vehicle/cata/add/setStartUsingById/'
+
query
.
id
+
'/'
+
query
.
startUsing
,
method
:
'put'
});
}
/**
* 修改标签排序
*/
export
function
updateParentRank
(
query
)
{
return
fetch
({
url
:
'/vehicle/cata/add/updateParentRank/'
+
query
.
id
+
'/'
+
query
.
rank
,
method
:
'put'
});
}
/**
* 修改和增加一二级标签
* */
export
function
updateAndAdd
(
params
)
{
return
fetch
({
url
:
'/vehicle/cata/add/updateAndAdd'
,
method
:
'post'
,
data
:
params
});
}
\ No newline at end of file
src/views/vehicleType/vehicleTypeLabel.vue
0 → 100644
View file @
12ce7999
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