From d39cce94b1e2ac194fbf8c76b4925c7dcb41160e Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 06 九月 2024 18:20:45 +0800
Subject: [PATCH] ll
---
admin/src/views/platform/LogisticsRecord/waybill.vue | 51 ++++++++++++++++++++++++++++++++++++++-------------
1 files changed, 38 insertions(+), 13 deletions(-)
diff --git a/admin/src/views/platform/LogisticsRecord/waybill.vue b/admin/src/views/platform/LogisticsRecord/waybill.vue
index 887f2ab..2f39dd4 100644
--- a/admin/src/views/platform/LogisticsRecord/waybill.vue
+++ b/admin/src/views/platform/LogisticsRecord/waybill.vue
@@ -84,7 +84,13 @@
width="480px"
>
<el-form :model="param" :rules="rules" ref="ruleForm" label-width="100px">
- <el-form-item label="杩愯緭鍗曞彿" prop="name">
+ <el-form-item label="鍏ュ洯鍘熷洜" prop="name">
+ <el-input v-model="param.aaa" placeholder="璇疯緭鍏�"></el-input>
+ </el-form-item>
+ <el-form-item label="鍚堝悓鍙�" prop="name">
+ <el-input v-model="param.aaa" placeholder="璇疯緭鍏�"></el-input>
+ </el-form-item>
+ <el-form-item label="鍒板満鏃堕棿" prop="name">
<el-input v-model="param.aaa" placeholder="璇疯緭鍏�"></el-input>
</el-form-item>
<el-form-item label="杞﹀墠鐗岀収鍙�" prop="name">
@@ -115,6 +121,7 @@
<script>
import Pagination from '@/components/common/Pagination'
import QueryForm from '@/components/common/QueryForm'
+import { platformJobPage } from '@/api'
export default {
components: {
Pagination,
@@ -124,29 +131,29 @@
return {
loading: false,
pagination: {
- capacity: 10,
- page: 1
+ pageSize: 10,
+ page: 1,
+ total: 0
},
filters: {},
list: [],
- total: 0,
isShowEdit: false,
param: {},
rules: {},
queryFormConfig: {
formItems: [
{
- filed: 'aaaa',
+ filed: 'carCodeFront',
type: 'input',
label: '杞︾墝鍙�'
},
{
- filed: 'bbb',
+ filed: 'driverName',
type: 'input',
label: '椹鹃┒鍛�'
},
{
- filed: 'cc',
+ filed: 'code',
type: 'input',
label: '杩愯緭鍗曞彿'
},
@@ -160,6 +167,9 @@
},
}
},
+ created() {
+ this.getList()
+ },
methods: {
handleSub () {
this.$refs.ruleForm.validate((valid) => {
@@ -168,18 +178,33 @@
}
})
},
- getList (page) { },
- clear () { },
+ getList (page) {
+ const { pagination, filters } = this
+ this.loading = true
+ platformJobPage({
+ model: { ...filters, jobType: 0 },
+ capacity: pagination.pageSize,
+ page: pagination.page,
+ }).then(res => {
+ this.loading = false
+ this.list = res.records || []
+ this.pagination.total = res.total || 0
+ }, () => {
+ this.loading = false
+ })
+ },
+ clear () {
+ this.pagination.page = 1
+ this.filters = {}
+ this.getList()
+ },
handleEdit (row) {
this.isShowEdit = true
},
handleDel () { },
handleSizeChange (capacity) {
- this.pagination.capacity = capacity
+ this.pagination.pageSize = capacity
}
}
}
</script>
-
-<style>
-</style>
--
Gitblit v1.9.3