| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <TableLayout :permissions="['business:visitpark:query']"> |
| | | <!-- æç´¢è¡¨å --> |
| | | <div ref="QueryFormRef" slot="search-form"> |
| | | <el-form ref="searchForm" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item title="车çå·" prop="carCode"> |
| | | <el-input v-model="searchForm.carCode" placeholder="车çå·" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button @click="reset">éç½®</el-button> |
| | | </section> |
| | | </el-form> |
| | | </div> |
| | | |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:visitpark:create', 'business:visitpark:delete']"> |
| | | </ul> |
| | | <el-table :height="tableHeightNew" v-loading="isWorking.search" :data="tableData.list" stripe |
| | | @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55"></el-table-column> |
| | | <el-table-column prop="carCode" label="车çå·" fixed min-width="100px"></el-table-column> |
| | | <el-table-column prop="parksName" label="å车åº" fixed min-width="100px"></el-table-column> |
| | | <el-table-column prop="startTime" label="æææ" align="center" fixed min-width="150px"> |
| | | <template slot-scope="{row}"> |
| | | <div v-if="!row.startTime || !row.endTime">é¿æææ</div> |
| | | <div v-else> |
| | | <span style="color: green">èµ·ï¼{{ row.startTime }}</span><br /> |
| | | <span style="color: red">æ¢ï¼{{ row.endTime }}</span> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="startTime" label="ç¶æ" fixed min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.isdeleted == 1" style="color: red">å·²å é¤</div> |
| | | <div v-else style="color: green"> |
| | | <span v-if="row.hkStatus == 0" style="color: #435EBE">å¾
ä¸å</span> |
| | | <span v-if="row.hkStatus == 1" style="color: green">é¢çº¦æå</span> |
| | | <span v-if="row.hkStatus == 2" style="color: red">é¢çº¦å¤±è´¥</span> |
| | | <span v-if="row.hkStatus == 2" style="color: red">已忶</span> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="remark" label="夿³¨" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.isdeleted != 2">{{ row.remark }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="createDate" label="å建æ¶é´" min-width="140px"></el-table-column> |
| | | </el-table> |
| | | <pagination @size-change="handleSizeChange" @current-change="handlePageChange" :pagination="tableData.pagination"> |
| | | </pagination> |
| | | </template> |
| | | <!-- æ°å»º/ä¿®æ¹ --> |
| | | <OperaCarsWindow ref="operaCarsWindow" @success="handlePageChange" /> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaCarsWindow from '@/components/business/OperaCarsWindow' |
| | | import { validity } from '@/utils/util' |
| | | export default { |
| | | name: 'parkBook', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaCarsWindow }, |
| | | data() { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | carCode: '', |
| | | memberName: '', |
| | | parksName: '', |
| | | companyName: '' |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | // this.$nextTick(() => { |
| | | // this.tableHeight = document.body.scrollHeight - this.$refs.QueryFormRef.offsetHeight - 260 |
| | | // }) |
| | | }, |
| | | created() { |
| | | this.config({ |
| | | module: '车è¾ä¿¡æ¯è¡¨', |
| | | api: '/business/visitPark', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | validity(startTime, endTime) { |
| | | return validity(startTime, endTime) |
| | | } |
| | | } |
| | | } |
| | | </script> |