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 fda5320f
authored
Jun 03, 2021
by
冒粤蓉
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
0c68ad61
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
13 deletions
src/App.vue
src/components/basic-table/index.vue
src/main.js
src/views/specialShop/addShop/index.vue
src/views/specialShop/index.vue
src/views/testDrive/checkList.vue
src/views/vehicleManage/index.vue
src/views/vehicleSubmit/vehicleCheck/index.vue
src/App.vue
View file @
fda5320
...
@@ -72,7 +72,8 @@ export default {
...
@@ -72,7 +72,8 @@ export default {
this
.
$root
.
parentRouter
.
push
(
path
);
this
.
$root
.
parentRouter
.
push
(
path
);
}
}
},
},
created
()
{
mounted
()
{
}
}
}
}
</
script
>
</
script
>
...
...
src/components/basic-table/index.vue
View file @
fda5320
...
@@ -288,6 +288,7 @@ export default {
...
@@ -288,6 +288,7 @@ export default {
this
.
data
=
data
[
this
.
tableParams
.
listName
]
this
.
data
=
data
[
this
.
tableParams
.
listName
]
this
.
total
=
data
.
totalElements
this
.
total
=
data
.
totalElements
this
.
loading
=
false
this
.
loading
=
false
this
.
$emit
(
'dataFinished'
);
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
})
})
...
...
src/main.js
View file @
fda5320
...
@@ -34,7 +34,8 @@ function render({ data = {} , container } = {}) {
...
@@ -34,7 +34,8 @@ function render({ data = {} , container } = {}) {
data
(){
data
(){
return
{
return
{
parentRouter
:
data
.
router
,
parentRouter
:
data
.
router
,
parentVuex
:
data
.
store
parentVuex
:
data
.
store
,
parentCommon
:
data
.
common
}
}
},
},
render
:
h
=>
h
(
App
),
render
:
h
=>
h
(
App
),
...
...
src/views/specialShop/addShop/index.vue
View file @
fda5320
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<el-form-item
class=
"special-shop-input"
label=
"特约店名称:"
prop=
"specialShop"
>
<el-form-item
class=
"special-shop-input"
label=
"特约店名称:"
prop=
"specialShop"
>
<el-cascader
<el-cascader
ref=
"specialShopCascader"
ref=
"specialShopCascader"
v-model=
"form.specialShop
Id
"
v-model=
"form.specialShop
Name
"
:value=
"form.specialShopName"
:value=
"form.specialShopName"
placeholder=
"请选择特约店名称"
placeholder=
"请选择特约店名称"
:options=
"specialShopOptions"
:options=
"specialShopOptions"
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"特约店编码:"
>
<el-form-item
label=
"特约店编码:"
>
<el-input
<el-input
v-model=
"form.specialShop
Id
"
v-model=
"form.specialShop
Code
"
:size=
"btn_size"
:size=
"btn_size"
readonly
readonly
disabled
disabled
...
@@ -346,8 +346,8 @@ export default {
...
@@ -346,8 +346,8 @@ export default {
// 特约店级联选项
// 特约店级联选项
if
(
val
&&
val
.
length
>
1
)
{
if
(
val
&&
val
.
length
>
1
)
{
const
thisNodes
=
this
.
$refs
[
'specialShopCascader'
].
getCheckedNodes
()[
0
];
const
thisNodes
=
this
.
$refs
[
'specialShopCascader'
].
getCheckedNodes
()[
0
];
this
.
form
.
specialShopId
=
val
[
1
]
;
this
.
form
.
specialShopId
=
thisNodes
.
data
.
id
;
this
.
form
.
specialShop
Name
=
thisNodes
.
label
;
this
.
form
.
specialShop
Code
=
thisNodes
.
data
.
code
;
}
}
},
},
updateFence
(){
updateFence
(){
...
...
src/views/specialShop/index.vue
View file @
fda5320
...
@@ -80,6 +80,7 @@
...
@@ -80,6 +80,7 @@
:tableParams=
"shopTableParams"
:tableParams=
"shopTableParams"
:getListApi=
"getListApi"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
@
dataFinished=
"tableDataFinished"
:hasNum=
"false"
:hasNum=
"false"
>
>
<span
<span
...
@@ -211,6 +212,11 @@ export default {
...
@@ -211,6 +212,11 @@ export default {
})
})
},
},
methods
:
{
methods
:
{
tableDataFinished
()
{
this
.
$nextTick
(()
=>
{
this
.
$root
.
parentCommon
.
setAuthBtn
();
})
},
refresh
()
{
refresh
()
{
this
.
searchForm
=
{}
this
.
searchForm
=
{}
this
.
$refs
.
shopTable
.
refreshTable
()
this
.
$refs
.
shopTable
.
refreshTable
()
...
...
src/views/testDrive/checkList.vue
View file @
fda5320
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
:getListApi=
"getListApi"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
:hasNum=
"false"
:hasNum=
"false"
@
dataFinished=
"tableDataFinished"
>
>
<span
<span
slot=
"status"
slot=
"status"
...
@@ -48,13 +49,13 @@
...
@@ -48,13 +49,13 @@
>
>
<template
v-for=
"(j, idx) in testDriveTableParams.tableOption.btnList"
>
<template
v-for=
"(j, idx) in testDriveTableParams.tableOption.btnList"
>
<!-- approvalStatus为1也就是未审核状态展示全部按钮 -->
<!-- approvalStatus为1也就是未审核状态展示全部按钮 -->
<template
v-if=
"scope.scope.approvalStatus == 1"
>
<template
v-if=
"scope.scope.approvalStatus == 1
&& j.remark !== 'viewOrigin'
"
>
<el-button
<el-button
:key=
"idx"
:key=
"idx"
:type=
"j.type || 'text'"
:type=
"j.type || 'text'"
size=
"mini"
size=
"mini"
plain
plain
@
click=
"btnClick(j.pType, scope.scope)"
@
click=
"btnClick(j.pType, scope.scope
, j.remark
)"
>
{{
j
.
name
}}
</el-button>
>
{{
j
.
name
}}
</el-button>
</
template
>
</
template
>
<
template
v-if=
"(j.pType !== 'pass' && j.pType !== 'reject') && scope.scope.approvalStatus != 1 && scope.scope.isAdd == 2"
>
<
template
v-if=
"(j.pType !== 'pass' && j.pType !== 'reject') && scope.scope.approvalStatus != 1 && scope.scope.isAdd == 2"
>
...
@@ -63,17 +64,17 @@
...
@@ -63,17 +64,17 @@
:type=
"j.type || 'text'"
:type=
"j.type || 'text'"
size=
"mini"
size=
"mini"
plain
plain
@
click=
"btnClick(j.pType, scope.scope)"
@
click=
"btnClick(j.pType, scope.scope
, j.remark
)"
>
{{
j
.
name
}}
</el-button>
>
{{
j
.
name
}}
</el-button>
</
template
>
</
template
>
<!-- isAdd => 1: 只展示查看原围栏 2: 展示查看原围栏和修改后的围栏 -->
<!-- isAdd => 1: 只展示查看原围栏 2: 展示查看原围栏和修改后的围栏 -->
<
template
v-if=
"(j.remark == 'view
Origin
') && scope.scope.approvalStatus != 1 && scope.scope.isAdd == 1"
>
<
template
v-if=
"(j.remark == 'view
Updated
') && scope.scope.approvalStatus != 1 && scope.scope.isAdd == 1"
>
<el-button
<el-button
:key=
"idx"
:key=
"idx"
:type=
"j.type || 'text'"
:type=
"j.type || 'text'"
size=
"mini"
size=
"mini"
plain
plain
@
click=
"btnClick(j.pType, scope.scope)"
@
click=
"btnClick(j.pType, scope.scope
, j.remark
)"
>
{{
j
.
name
}}
</el-button>
>
{{
j
.
name
}}
</el-button>
</
template
>
</
template
>
</template>
</template>
...
@@ -200,7 +201,12 @@ export default {
...
@@ -200,7 +201,12 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
btnClick
(
pType
,
scope
)
{
tableDataFinished
()
{
this
.
$nextTick
(()
=>
{
this
.
$root
.
parentCommon
.
setAuthBtn
();
})
},
btnClick
(
pType
,
scope
,
remark
)
{
const
{
approvalId
}
=
scope
;
const
{
approvalId
}
=
scope
;
this
.
approvalParams
.
id
=
approvalId
;
this
.
approvalParams
.
id
=
approvalId
;
switch
(
pType
)
{
switch
(
pType
)
{
...
@@ -215,7 +221,8 @@ export default {
...
@@ -215,7 +221,8 @@ export default {
break
break
case
'view'
:
case
'view'
:
let
query
=
{
let
query
=
{
fenceId
:
scope
.
bizId
,
fenceId
:
remark
===
'viewUpdated'
?
scope
.
bizId
:
scope
.
fenceId
,
btnRemark
:
remark
,
readonlyStatus
:
true
readonlyStatus
:
true
};
};
const
path
=
'/oEshield#/monitor/editFence'
;
const
path
=
'/oEshield#/monitor/editFence'
;
...
...
src/views/vehicleManage/index.vue
View file @
fda5320
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
:tableParams=
"vehicleTableParams"
:tableParams=
"vehicleTableParams"
:getListApi=
"getListApi"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
@
dataFinished=
"tableDataFinished"
:hasNum=
"false"
:hasNum=
"false"
>
>
<span
<span
...
@@ -370,6 +371,11 @@ export default {
...
@@ -370,6 +371,11 @@ export default {
},
},
methods
:
{
methods
:
{
tableDataFinished
()
{
this
.
$nextTick
(()
=>
{
this
.
$root
.
parentCommon
.
setAuthBtn
();
})
},
refresh
()
{
refresh
()
{
this
.
searchForm
=
{}
this
.
searchForm
=
{}
this
.
$refs
.
vehicleForm
.
refreshTable
()
this
.
$refs
.
vehicleForm
.
refreshTable
()
...
...
src/views/vehicleSubmit/vehicleCheck/index.vue
View file @
fda5320
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
:tableParams=
"checkTableParams"
:tableParams=
"checkTableParams"
:getListApi=
"getListApi"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
@
dataFinished=
"tableDataFinished"
:hasNum=
"false"
:hasNum=
"false"
>
>
<span
<span
...
@@ -192,6 +193,11 @@ export default {
...
@@ -192,6 +193,11 @@ export default {
})
})
},
},
methods
:
{
methods
:
{
tableDataFinished
()
{
this
.
$nextTick
(()
=>
{
this
.
$root
.
parentCommon
.
setAuthBtn
();
})
},
refresh
()
{
refresh
()
{
this
.
searchForm
=
{}
this
.
searchForm
=
{}
this
.
$refs
.
vehicleCheckTable
.
refreshTable
()
this
.
$refs
.
vehicleCheckTable
.
refreshTable
()
...
...
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