| | |
| | | </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-button type="text" @click="handleEdit(row)">编辑</el-button> |
| | | <el-button type="text" @click="handleDetail(row)">司机详情</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | ></pagination> |
| | | </template> |
| | | <OperaDriverDetail ref="operaDriverDetail" /> |
| | | <OperaDriverEditWindow ref="operaDriverEditWindow" @success="handlePageChange" /> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaDriverDetail from '@/components/business/OperaDriverDetail' |
| | | import OperaDriverEditWindow from '@/components/business/OperaDriverEditWindow' |
| | | import { updateStatus, exportExcel } from '@/api/business/driver' |
| | | |
| | | export default { |
| | | name: 'DriverList', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaDriverDetail }, |
| | | components: { TableLayout, Pagination, OperaDriverDetail, OperaDriverEditWindow }, |
| | | data () { |
| | | return { |
| | | searchForm: { |
| | |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | handleEdit (row) { |
| | | this.$refs.operaDriverEditWindow.open('编辑门店', row) |
| | | }, |
| | | handleDateChange (val) { |
| | | this.searchForm.startTime = val ? val[0] : '' |
| | | this.searchForm.endTime = val ? val[1] : '' |