| | |
| | | </el-form> |
| | | <template v-slot:table-wrap> |
| | | <el-table |
| | | :height="tableHeightNew" |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | | :height="tableHeightNew" |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | | > |
| | | <el-table-column prop="name" label="司机姓名" min-width="100px"></el-table-column> |
| | | <el-table-column label="性别" min-width="60px"> |
| | |
| | | <span style="color: #13ce66;" v-else >审批通过</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="状态" min-width="80px"> |
| | | <template slot-scope="{row}"> |
| | | <el-switch |
| | | @change="handleStatusChange($event, row)" |
| | | v-model="row.status" |
| | | active-color="#13ce66" |
| | | inactive-color="#ff4949" |
| | | :active-value="0" |
| | | :inactive-value="1" |
| | | ></el-switch> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column label="状态" min-width="80px"> |
| | | <template slot-scope="{row}"> |
| | | <el-switch |
| | | @change="handleStatusChange($event, row)" |
| | | v-model="row.status" |
| | | active-color="#13ce66" |
| | | inactive-color="#ff4949" |
| | | :active-value="0" |
| | | :inactive-value="1" |
| | | ></el-switch> |
| | | </template> |
| | | </el-table-column>--> |
| | | <el-table-column label="操作" min-width="100" fixed="right"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="handleDetail(row)">详情</el-button> |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handlePageChange" |
| | | :pagination="tableData.pagination" |
| | | @size-change="handleSizeChange" |
| | | @current-change="handlePageChange" |
| | | :pagination="tableData.pagination" |
| | | ></pagination> |
| | | </template> |
| | | <OperaDriverApproval ref="operaDriverApproval" @success="handleApprovalSuccess" /> |
| | |
| | | handleExport () { |
| | | this.isWorking.export = true |
| | | exportExcel(this.getTableParams()) |
| | | .then(res => { |
| | | this.download(res) |
| | | this.$tip.apiSuccess('导出成功') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking.export = false |
| | | }) |
| | | .then(res => { |
| | | this.download(res) |
| | | this.$tip.apiSuccess('导出成功') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking.export = false |
| | | }) |
| | | } |
| | | } |
| | | } |