From 57223eca102ab58ae181c71bf02f84e2f647b233 Mon Sep 17 00:00:00 2001
From: zhangzeli <123456>
Date: 星期五, 07 一月 2022 14:45:40 +0800
Subject: [PATCH] bug

---
 src/views/your/car-manage/carManage.vue |   38 +++++++++++++++++++++++++++++---------
 1 files changed, 29 insertions(+), 9 deletions(-)

diff --git a/src/views/your/car-manage/carManage.vue b/src/views/your/car-manage/carManage.vue
index d6ddb11..5c60506 100644
--- a/src/views/your/car-manage/carManage.vue
+++ b/src/views/your/car-manage/carManage.vue
@@ -80,12 +80,15 @@
         <FormItem label="鐗岀収" prop="carNo">
           <Input v-model="carForm.carNo" />
         </FormItem>
-        <FormItem label="椹鹃┒浜�" prop="userId">
+        <FormItem label="鍔犳补鍗″彿" prop="addOilCode">
+          <Input v-model="carForm.addOilCode" />
+        </FormItem>
+        <FormItem label="鍙告満" prop="userId">
           <Select v-model="carForm.userId" filterable>
             <Option v-for="item in userList" :value="item.id" :key="item.id">{{ item.nickname }}</Option>
           </Select>
         </FormItem>
-        <FormItem label="璺熻溅浜�" prop="followUserId">
+        <FormItem label="閰嶉�佸憳" prop="followUserId">
           <Select v-model="carForm.followUserId" filterable>
             <Option v-for="item in driverList" :value="item.id" :key="item.id">{{ item.nickname }}</Option>
           </Select>
@@ -349,12 +352,12 @@
           sortable: true,
         },
         {
-          title: "椹鹃┒浜�",
+          title: "鍙告満",
           key: "nickName",
           width: 100,
         },
         {
-          title: "璺熻溅浜�",
+          title: "閰嶉�佸憳",
           key: "followNickName",
           width: 100,
         },
@@ -372,12 +375,26 @@
           title: "鎺掗噺",
           key: "displacement",
           width: 100,
+        },
+        {
+          title: "鍔犳补鍗″彿",
+          key: "addOilCode",
+          minWidth: 120,
           sortable: true,
+          render: (h, params) => {
+            return h("div",params.row.addOilCode=="undefined" ? '':params.row.addOilCode);
+          }
         },
         {
           title: "璐疆骞翠唤",
           key: "buyYear",
           minWidth: 120,
+          sortable: true,
+        },
+        {
+          title: "鐧昏鏃ユ湡",
+          key: "createTime",
+          minWidth: 180,
           sortable: true,
         },
         {
@@ -667,17 +684,20 @@
       this.getDataList();
     },
     getAllUser(){
-      getDriver(this.type).then((res)=>{
+      getDriver({type:0}).then((res)=>{
         if (res.success){
           this.userList=res.result;
         }
       });
-      this.type.type=1;
-      getDriver(this.type).then((res)=>{
+      //this.type.type=1;
+      getDriver({type:1}).then((res)=>{
         if (res.success){
           this.driverList=res.result;
         }
       });
+      this.type.type=0;
+      console.log(this.userList);
+      console.log(this.driverList);
     },
     changeSort(e) {
       this.searchForm.sort = e.key;
@@ -746,7 +766,7 @@
               if (res.success) {
                 this.$Message.success("鎿嶄綔鎴愬姛");
                 this.getDataList();
-                this.roleModalVisible = true;
+                this.roleModalVisible = false;
               }
             });
           } else {
@@ -756,7 +776,7 @@
               if (res.success) {
                 this.$Message.success("鎿嶄綔鎴愬姛");
                 this.getDataList();
-                this.roleModalVisible = true;
+                this.roleModalVisible = false;
               }
             });
           }

--
Gitblit v1.9.1