From 108019e27e8958dbf474b8b9bea3fb5fbf7198d9 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 15 四月 2026 09:18:59 +0800
Subject: [PATCH] 页面
---
admin/src/views/business/driverList.vue | 48 ++++++++++++++++++------------------------------
1 files changed, 18 insertions(+), 30 deletions(-)
diff --git a/admin/src/views/business/driverList.vue b/admin/src/views/business/driverList.vue
index 52fdbdd..4ae814c 100644
--- a/admin/src/views/business/driverList.vue
+++ b/admin/src/views/business/driverList.vue
@@ -1,5 +1,5 @@
<template>
- <TableLayout :permissions="['business:driver:query']">
+ <TableLayout :permissions="['business:driverInfo:query']">
<el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline>
<el-form-item label="鍙告満淇℃伅" prop="keyword">
<el-input v-model="searchForm.keyword" clearable placeholder="璇疯緭鍏ュ徃鏈哄鍚�/鎵嬫満鍙�" @keypress.enter.native="search"></el-input>
@@ -9,8 +9,8 @@
</el-form-item>
<el-form-item label="鐘舵��" prop="status">
<el-select v-model="searchForm.status" clearable placeholder="璇烽�夋嫨鐘舵��" @change="search">
- <el-option label="绂佺敤" :value="0"></el-option>
- <el-option label="鍚敤" :value="1"></el-option>
+ <el-option label="绂佺敤" :value="1"></el-option>
+ <el-option label="鍚敤" :value="0"></el-option>
</el-select>
</el-form-item>
<el-form-item label="鎬у埆" prop="sex">
@@ -26,7 +26,7 @@
<section>
<el-button type="primary" @click="search">鎼滅储</el-button>
<el-button @click="reset">閲嶇疆</el-button>
- <el-button :loading="isWorking.export" @click="handleExport">瀵煎嚭</el-button>
+ <el-button :loading="isWorking.export" @click="exportExcel">瀵煎嚭</el-button>
</section>
</el-form>
<template v-slot:table-wrap>
@@ -36,17 +36,16 @@
:data="tableData.list"
stripe
>
- <el-table-column prop="nickName" label="鐢ㄦ埛鏄电О" min-width="100px"></el-table-column>
<el-table-column prop="name" label="鍙告満濮撳悕" min-width="100px"></el-table-column>
<el-table-column label="鎬у埆" min-width="60px">
- <template slot-scope="{row}">{{ row.sex === 1 ? '鐢�' : row.sex === 2 ? '濂�' : '-' }}</template>
+ <template slot-scope="{row}">{{ row.gender === 1 ? '鐢�' : row.gender === 2 ? '濂�' : '-' }}</template>
</el-table-column>
- <el-table-column prop="phone" label="娉ㄥ唽鎵嬫満鍙�" min-width="120px"></el-table-column>
- <el-table-column prop="idCard" label="韬唤璇佸彿" min-width="160px"></el-table-column>
+ <el-table-column prop="telephone" label="娉ㄥ唽鎵嬫満鍙�" min-width="120px"></el-table-column>
+ <el-table-column prop="idcard" label="韬唤璇佸彿" min-width="160px"></el-table-column>
<el-table-column label="璐︽埛浣欓" min-width="100px">
- <template slot-scope="{row}">楼{{ (row.amount / 100).toFixed(2) }}</template>
+ <template slot-scope="{row}">楼{{ (row.memberAmount / 100).toFixed(2) }}</template>
</el-table-column>
- <el-table-column prop="carNo" label="杞︾墝鍙�" min-width="100px"></el-table-column>
+ <el-table-column prop="carCode" label="杞︾墝鍙�" min-width="100px"></el-table-column>
<el-table-column prop="createTime" label="鍒涘缓鏃堕棿" min-width="160px"></el-table-column>
<el-table-column label="鐘舵��" min-width="80px">
<template slot-scope="{row}">
@@ -55,8 +54,8 @@
v-model="row.status"
active-color="#13ce66"
inactive-color="#ff4949"
- :active-value="1"
- :inactive-value="0"
+ :active-value="0"
+ :inactive-value="1"
></el-switch>
</template>
</el-table-column>
@@ -72,6 +71,7 @@
:pagination="tableData.pagination"
></pagination>
</template>
+ <OperaDriverDetail ref="operaDriverDetail" />
</TableLayout>
</template>
@@ -79,12 +79,13 @@
import BaseTable from '@/components/base/BaseTable'
import TableLayout from '@/layouts/TableLayout'
import Pagination from '@/components/common/Pagination'
-import { fetchList, updateStatus, exportExcel } from '@/api/business/driver'
+import OperaDriverDetail from '@/components/business/OperaDriverDetail'
+import { updateStatus, exportExcel } from '@/api/business/driver'
export default {
name: 'DriverList',
extends: BaseTable,
- components: { TableLayout, Pagination },
+ components: { TableLayout, Pagination, OperaDriverDetail },
data () {
return {
searchForm: {
@@ -94,7 +95,8 @@
sex: '',
createTime: '',
startTime: '',
- endTime: ''
+ endTime: '',
+ auditStatus: 1
}
}
},
@@ -106,21 +108,6 @@
this.search()
},
methods: {
- loadTableData (resolve) {
- this.isWorking.search = true
- fetchList(this.getTableParams())
- .then(data => {
- this.tableData.list = data.list || []
- this.tableData.pagination.total = data.total || 0
- if (resolve) resolve(data)
- })
- .catch(e => {
- this.$tip.apiFailed(e, '鍔犺浇澶辫触')
- })
- .finally(() => {
- this.isWorking.search = false
- })
- },
handleDateChange (val) {
this.searchForm.startTime = val ? val[0] : ''
this.searchForm.endTime = val ? val[1] : ''
@@ -139,6 +126,7 @@
this.search()
},
handleDetail (row) {
+ this.$refs.operaDriverDetail.open('鍙告満璇︽儏', row)
},
handleStatusChange (val, row) {
updateStatus({ id: row.id, status: val }).then(res => {
--
Gitblit v1.9.3