From 9db558324bafc153052ab3af6d9235af6c5452d0 Mon Sep 17 00:00:00 2001
From: zhangzeli <123456>
Date: 星期三, 05 一月 2022 09:57:01 +0800
Subject: [PATCH] 车辆管理

---
 src/views/your/area-manage/areaManage.vue |   27 ++++++++++++++-------------
 1 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/src/views/your/area-manage/areaManage.vue b/src/views/your/area-manage/areaManage.vue
index 8b49c36..2b8be6b 100644
--- a/src/views/your/area-manage/areaManage.vue
+++ b/src/views/your/area-manage/areaManage.vue
@@ -84,10 +84,8 @@
         <Button @click="addEquipment" type="primary" icon="md-add">娣诲姞鐗囧尯娈�</Button>
         <Button @click="init" icon="md-refresh">鍒锋柊</Button>
       </Row>
-      <Table :loading="loading" border :columns="columns2" :data="data2" ref="table"
-             sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
-
-
+      <Table :loading="loading" border :columns="columns2" :data="data2" ref="table" style="height: 400px" >
+             sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect" >
       </Table>
     </Modal>
     <Modal :title="modalTitle3" v-model="customerVisible" :mask-closable="false" :width="1050">
@@ -97,7 +95,7 @@
         <Input v-model="searchForm.name" suffix="ios-search" @on-change="getCustList" placeholder="杈撳叆鍟嗘埛鍚嶇О鎼滅储" clearable style="width: 250px"
         />
       </Row>
-      <Table :loading="loading" border :columns="columns3" :data="data3" ref="table"
+      <Table :loading="loading" border :columns="columns3" :data="data3" ref="table" style="height: 350px"
              sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
       </Table>
       <Row type="flex" justify="end" class="page">
@@ -113,10 +111,10 @@
         ></Page>
       </Row>
     </Modal>
-    <Modal :title="modalTitle" v-model="addEquipmentVisible" :mask-closable="false" :width="500">
+    <Modal :title="modalTitle" v-model="addEquipmentVisible" :mask-closable="false" :width="500" >
       <Form ref="areaSectionForm" :model="areaSectionForm" :label-width="80" :rules="areaSectionFormValidate">
         <FormItem label="鐗囧尯鍚嶇О" prop="code">
-          <Input v-model="areaSectionForm.code" />
+          <Input v-model="areaSectionForm.name" />
         </FormItem>
 
       </Form>
@@ -128,7 +126,7 @@
       </div>
     </Modal>
     <Modal :title="modalTitle" v-model="addCustomerVisible" :mask-closable="false" :width="550">
-      <Form ref="customerForm" :model="customerForm" :label-width="80" :rules="areaSectionFormValidate">
+      <Form ref="customerForm" :model="customerForm" :label-width="120" :rules="areaSectionFormValidate">
         <FormItem label="鍟嗘埛鍚嶇О" prop="name">
           <Input v-model="customerForm.name" />
         </FormItem>
@@ -171,7 +169,7 @@
         <FormItem label="鑱旂郴浜�" prop="linker">
           <Input v-model="customerForm.linker" />
         </FormItem>
-        <FormItem label="闆跺敭璁稿彲璇佷俊鎭�" prop="licence">
+        <FormItem label="闆跺敭璁稿彲璇佷俊鎭�" prop="licence" >
           <Input v-model="customerForm.licence" />
         </FormItem>
       </Form>
@@ -279,6 +277,7 @@
   addCar,
   getCarList,
   getUser,
+  getDriver,
   addArea,
   deleteArea,
   getAreaSection,
@@ -434,8 +433,8 @@
           align: "center",
         },
         {
-          title: "鍒嗘缂栧彿鎴栧悕绉�",
-          key: "code",
+          title: "鍒嗘鍚嶇О",
+          key: "name",
         },
         {
           title: "鎿嶄綔",
@@ -602,7 +601,9 @@
       data2: [],
       data3: [],
       total: 0,
-
+      type: {
+        type : 1
+      },
       total2: 0,
       permData: [],
       editRolePermId: "",
@@ -708,7 +709,7 @@
       });
     },
     getAllUser(){
-      getUser().then((res)=>{
+      getDriver(this.type).then((res)=>{
         if (res.success){
           this.userList=res.result;
         }

--
Gitblit v1.9.1