|
@@ -23,8 +23,7 @@
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
- <Page uri="/mapi/app/delivery/page" :request-params="queryParams" ref="pagination">
|
|
|
- <el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table v-loading="loading" :data="deliveryList" @selection-change="handleSelectionChange" fit highlight-current-row border stripe>
|
|
|
<el-table-column label="姓名" align="center" prop="realName" width="150" />
|
|
|
<el-table-column label="手机号" align="center" prop="phoneNumber" width="150" />
|
|
|
<el-table-column label="简介" align="center" prop="description" width="220" show-overflow-tooltip />
|
|
@@ -56,7 +55,9 @@
|
|
|
<el-button type="text" icon="el-icon-delete" @click="recordDetail(scope.row)" v-hasPermi="['app:delivery:edit']">接单记录</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- </Page>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
|
|
|
|
|
|
<!-- 添加或修改配送员对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" size="50%" append-to-body>
|
|
@@ -103,7 +104,7 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 接单记录 -->
|
|
|
- <el-dialog v-loading="loading" :title="recordDetailTitle" :visible.sync="openDetail" size="80%" append-to-body :before-close="checkCloseDetail">
|
|
|
+ <el-dialog v-loading="loading" :title="recordDetailTitle" :visible.sync="openDetail" size="80%" append-to-body>
|
|
|
<div class="head-column1" style="margin-top: 40px">
|
|
|
<el-table v-loading="loading" :data="recordDetailList">
|
|
|
<el-table-column label="订单编号" align="center" prop="orderNo" width="200" />
|
|
@@ -164,6 +165,8 @@ export default {
|
|
|
openDetail: false,
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
appUserName: null,
|
|
|
phoneNumber: null
|
|
|
},
|
|
@@ -209,8 +212,11 @@ export default {
|
|
|
},
|
|
|
/** 查询配送员列表 */
|
|
|
getList() {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.pagination.handleSearch(true)
|
|
|
+ this.loading = true
|
|
|
+ listDelivery(this.queryParams).then((response) => {
|
|
|
+ this.deliveryList = response.data
|
|
|
+ this.total = response.data.length
|
|
|
+ this.loading = false
|
|
|
})
|
|
|
},
|
|
|
// 取消按钮
|