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 767f9edb
authored
May 30, 2021
by
冒粤蓉
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix checklist
1 parent
8b223115
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
10 deletions
src/config/config.js
src/views/specialShop/index.vue
src/views/testDrive/checkList.vue
src/config/config.js
View file @
767f9ed
...
...
@@ -24,7 +24,8 @@ const SPECIALSHOP_API = {
SHOP_SEARCH
:
'/trialdrive/specialshop/search'
,
GET_FENCE_DETAIL
:
'/trialdrive/specialshop/info'
,
SAVE_FENCE
:
'/trialdrive/specialshop/add'
,
UPDATE_FENCE
:
'/trialdrive/specialshop/edit'
UPDATE_FENCE
:
'/trialdrive/specialshop/edit'
,
EXPORT_TABLE
:
'/trialdrive/specialshop/export'
}
// 试驾报表
const
REPORT_API
=
{
...
...
src/views/specialShop/index.vue
View file @
767f9ed
...
...
@@ -111,6 +111,8 @@
<
script
>
import
{
getList
}
from
'services/specialshop'
import
{
getSimpleRoot
,
getSimpleList
}
from
'services/common'
import
{
SPECIALSHOP_API
}
from
'@/config/config'
import
store
from
'@/store'
export
default
{
data
()
{
return
{
...
...
@@ -184,12 +186,12 @@ export default {
type
:
'primary'
,
pType
:
'create'
},
{
id
:
2
,
name
:
'批量删除'
,
type
:
'default'
,
pType
:
'delete'
},
//
{
//
id: 2,
//
name: '批量删除',
//
type: 'default',
//
pType: 'delete'
//
},
{
id
:
3
,
name
:
'导出'
,
...
...
@@ -213,12 +215,20 @@ export default {
this
.
searchForm
=
{}
},
btnClick
(
pType
,
scope
)
{
console
.
log
(
scope
)
const
{
shopId
}
=
scope
;
if
(
scope
)
{
const
{
shopId
}
=
scope
;
}
switch
(
pType
)
{
case
'create'
:
this
.
$router
.
push
({
name
:
'addShop'
})
break
case
'export'
:
this
.
$Common
.
exportExcel
({
url
:
`
${
store
.
state
.
baseURL
}${
SPECIALSHOP_API
.
EXPORT_TABLE
}
`
,
method
:
'GET'
,
data
:
this
.
searchForm
})
break
case
'edit'
:
this
.
$router
.
push
({
name
:
'addShop'
,
...
...
src/views/testDrive/checkList.vue
View file @
767f9ed
...
...
@@ -54,7 +54,17 @@
@
click=
"btnClick(j.pType, scope.scope)"
>
{{
j
.
name
}}
</el-button>
</
template
>
<
template
v-if=
"(j.pType !== 'pass' && j.pType !== 'reject') && scope.scope.approvalStatus != 1"
>
<
template
v-if=
"(j.pType !== 'pass' && j.pType !== 'reject') && scope.scope.approvalStatus != 1 && scope.scope.isAdd == 2"
>
<el-button
:key=
"idx"
:type=
"j.type || 'text'"
size=
"mini"
plain
@
click=
"btnClick(j.pType, scope.scope)"
>
{{
j
.
name
}}
</el-button>
</
template
>
<!-- isAdd => 1: 只展示查看原围栏 2: 展示查看原围栏和修改后的围栏 -->
<
template
v-if=
"(j.remark == 'viewOrigin') && scope.scope.approvalStatus != 1 && scope.scope.isAdd == 1"
>
<el-button
:key=
"idx"
:type=
"j.type || 'text'"
...
...
@@ -142,18 +152,22 @@ export default {
{
name
:
'查看原围栏'
,
pType
:
'view'
,
remark
:
'viewOrigin'
},
{
name
:
'查看修改后围栏'
,
pType
:
'view'
,
remark
:
'viewUpdated'
},
{
name
:
'通过'
,
pType
:
'pass'
,
remark
:
''
},
{
name
:
'驳回'
,
pType
:
'reject'
,
remark
:
''
}
]
}
...
...
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