From cefe914628acd813a729a8a7ec697fe9810812f3 Mon Sep 17 00:00:00 2001 From: zhangzeli <123456> Date: 星期三, 05 一月 2022 11:37:06 +0800 Subject: [PATCH] 优化 --- src/views/your/car-manage/carManage.vue | 45 +++++++++++++++++++++++++++++++++++++-------- 1 files changed, 37 insertions(+), 8 deletions(-) diff --git a/src/views/your/car-manage/carManage.vue b/src/views/your/car-manage/carManage.vue index 6c89acb..5559641 100644 --- a/src/views/your/car-manage/carManage.vue +++ b/src/views/your/car-manage/carManage.vue @@ -80,14 +80,17 @@ <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">{{ item.nickname }}</Option> + <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 userList" :value="item.id">{{ item.nickname }}</Option> + <Option v-for="item in driverList" :value="item.id" :key="item.id">{{ item.nickname }}</Option> </Select> </FormItem> </Form> @@ -243,6 +246,7 @@ getEquipment, addEquipment, getUser, + getDriver, deleteEquipment, } from "@/api/open"; import util from "@/libs/util.js"; @@ -280,6 +284,9 @@ carForm: { status : 0 }, + type: { + type : 0 + }, equipmentForm: { status : 0 }, @@ -307,7 +314,7 @@ { title: "杞︾墝鍙�", key: "carNo", - width: 100, + width: 110, sortable: true, }, { @@ -345,12 +352,12 @@ sortable: true, }, { - title: "椹鹃┒浜�", + title: "鍙告満", key: "nickName", width: 100, }, { - title: "璺熻溅浜�", + title: "閰嶉�佸憳", key: "followNickName", width: 100, }, @@ -371,9 +378,21 @@ sortable: true, }, { + title: "鍔犳补鍗″彿", + key: "addOilCode", + minWidth: 120, + sortable: true, + }, + { title: "璐疆骞翠唤", key: "buyYear", minWidth: 120, + sortable: true, + }, + { + title: "鐧昏鏃ユ湡", + key: "createTime", + minWidth: 180, sortable: true, }, { @@ -592,6 +611,7 @@ depData: [], dataType: 0, carId: '', + driverList: [], userList: [], editDepartments: [], buyYear:'' @@ -662,11 +682,20 @@ this.getDataList(); }, getAllUser(){ - getUser().then((res)=>{ + getDriver({type:0}).then((res)=>{ if (res.success){ this.userList=res.result; } }); + //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; -- Gitblit v1.9.1