Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5c216463
authored
May 28, 2021
by
冒粤蓉
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
special shop
1 parent
2c8e4fb1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
4 deletions
src/config/config.js
src/services/specialshop.js
src/views/specialShop/addShop/index.vue
src/views/specialShop/index.vue
src/config/config.js
View file @
5c21646
...
...
@@ -21,7 +21,10 @@ const COMMON_API = {
}
// 特约店接口
const
SPECIALSHOP_API
=
{
SHOP_SEARCH
:
'/trialdrive/specialshop/search'
SHOP_SEARCH
:
'/trialdrive/specialshop/search'
,
GET_FENCE_DETAIL
:
'/trialdrive/specialshop/info'
,
SAVE_FENCE
:
'/trialdrive/specialshop/add'
,
UPDATE_FENCE
:
'/trialdrive/specialshop/edit'
}
// 试驾报表
const
REPORT_API
=
{
...
...
src/services/specialshop.js
View file @
5c21646
...
...
@@ -7,4 +7,19 @@ function getList (params) {
return
request
(
params
,
url
)
}
export
{
getList
}
function
getFenceDetailById
(
params
)
{
const
url
=
SPECIALSHOP_API
.
GET_FENCE_DETAIL
return
request
(
params
,
url
)
}
function
saveFence
(
params
)
{
const
url
=
SPECIALSHOP_API
.
SAVE_FENCE
return
request
(
params
,
url
,
'post'
)
}
function
updateFence
(
params
)
{
const
url
=
SPECIALSHOP_API
.
UPDATE_FENCE
return
request
(
params
,
url
,
'post'
)
}
export
{
getList
,
getFenceDetailById
,
saveFence
,
updateFence
}
src/views/specialShop/addShop/index.vue
View file @
5c21646
This diff is collapsed.
Click to expand it.
src/views/specialShop/index.vue
View file @
5c21646
...
...
@@ -172,7 +172,7 @@ export default {
{
type
:
'primary'
,
name
:
'查看'
,
pType
:
'
edit
'
pType
:
'
view
'
}
]
}
...
...
@@ -214,11 +214,24 @@ export default {
this
.
searchForm
=
{}
},
btnClick
(
pType
,
scope
)
{
console
.
log
(
pType
)
console
.
log
(
scope
)
const
{
shopId
}
=
scope
;
switch
(
pType
)
{
case
'create'
:
this
.
$router
.
push
({
name
:
'addShop'
})
break
case
'edit'
:
this
.
$router
.
push
({
name
:
'addShop'
,
query
:
{
id
:
shopId
}
})
break
case
'view'
:
this
.
$router
.
push
({
name
:
'addShop'
,
query
:
{
id
:
shopId
,
readonlyStatus
:
true
}
})
break
}
},
change
(
name
,
val
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment