Commit 339f2100 authored by lixy's avatar lixy

出车记录

parent e7316078
...@@ -49,8 +49,22 @@ ...@@ -49,8 +49,22 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<el-button class="filter-item" type="primary" :icon=" showMoreMoreCol ? 'caret-left' : 'caret-right' " v-waves
@click="showMoreMoreCol=!showMoreMoreCol">
更多列
</el-button>
<el-table :key='tableKey' :data="list" v-loading.body="listLoading" border fit highlight-current-row <el-table :key='tableKey' :data="list" v-loading.body="listLoading" border fit highlight-current-row
style="width: 100%"> style="width: 100%">
<el-table-column
type="index"
label="编号"
width="65">
</el-table-column>
<!--<el-table-column align="center" label="编号" width="65">-->
<!--<template scope="scope">-->
<!--<span>{{scope.row.id}}</span>-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column align="center" label="车牌号" width="120"> <el-table-column align="center" label="车牌号" width="120">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.numberPlate}}</span> <span>{{scope.row.numberPlate}}</span>
...@@ -76,6 +90,11 @@ ...@@ -76,6 +90,11 @@
<span>{{scope.row.arrivalTime}}</span> <span>{{scope.row.arrivalTime}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="100" align="center" label="还车人">
<template scope="scope">
<span>{{scope.row.recycleMan}}</span>
</template>
</el-table-column>
<el-table-column width="250" align="center" label="还车地点"> <el-table-column width="250" align="center" label="还车地点">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.arrivalName}}</span> <span>{{scope.row.arrivalName}}</span>
...@@ -102,25 +121,25 @@ ...@@ -102,25 +121,25 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="200" align="center" label="使用人电话"> <el-table-column width="200" align="center" label="使用人电话" v-if="showMoreMoreCol" >
<template scope="scope"> <template scope="scope">
<span>{{scope.row.userTel}}</span> <span>{{scope.row.userTel}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="200" align="center" label="验车人电话"> <el-table-column width="200" align="center" label="验车人电话" v-if="showMoreMoreCol" >
<template scope="scope"> <template scope="scope">
<span>{{scope.row.checkManTel}}</span> <span>{{scope.row.checkManTel}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="100" align="center" label="开始公里数"> <el-table-column width="100" align="center" label="开始公里数" v-if="showMoreMoreCol" >
<template scope="scope"> <template scope="scope">
<span>{{scope.row.mileageStart}}</span> <span>{{scope.row.mileageStart}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="100" align="center" label="结束公里数"> <el-table-column width="100" align="center" label="结束公里数" v-if="showMoreMoreCol" >
<template scope="scope"> <template scope="scope">
<span>{{scope.row.mileageEnd}}</span> <span>{{scope.row.mileageEnd}}</span>
</template> </template>
...@@ -172,6 +191,7 @@ ...@@ -172,6 +191,7 @@
name: 'vehicleDepartureLog', name: 'vehicleDepartureLog',
data() { data() {
return { return {
showMoreMoreCol: false,
form: { form: {
id: null, id: null,
numberPlate: null, numberPlate: null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment