🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
### 获取司机列表 ~~~[api] get:/base/driver id#司机id fleet_id#车队id type#司机类型1:司机,2:押运员, certificate#准驾车型 staff#是否在职:1:是;0:否,默认1 keywords#司机搜索(姓名、电话、身份证) <<< success { "code":"0", "msg":"success", “data”:{"code":0,"msg":"获取成功","count":5,"data":\[{"id":63,"fleet\_id":0,"type":"2","name":"333","certificate":"A2","mobile":"13118856099","idCard":"440224198607140030","file":"","age":35,"staff":1,"staff\_time":"2021-02-28 11:07:55","seniority":"7个月","resign\_time":null,"resign\_reason":null,"create\_time":"2021-09-30 13:48:50","update\_time":"2021-09-30 13:48:50","certificate\_list":\[{"id":10,"type":2,"certificate":"A2","driver\_id":63,"number":"222222","files":"","expire":"2020-02-28","warn":7,"create\_time":"2021-09-30 13:48:50","update\_time":"2021-09-30 13:48:50"}\]},} } <<< error { "code":"1", "msg":"error", } ~~~ ### 返回字段说明 | 字段 | 说明 | | --- | --- | | code | 返回判断:0:成功;其他:失败 | | msg| 返回信息说明 | | data| 信息列表| | data.id| 通知id| | data.fleet_id| 车队id| | data.type| 司机类型1:司机,2:押运员,| | data.name|司机姓名| | data.mobile| 手机| | data.idCard| 身份证| | data.file| 附件| | data.age| 年龄| | data.seniority| 工龄| | data.staff| 是否在职:1:是;0:否,默认1| | data.staff_time| 离职时间| | data.resign_reason| 离职原因| | data.update_time| 修改时间| | data.create_time| 创建时间| | data.certificate_list| 证件列表| | data.certificate_list.certificate_type_id| 证件分类id| | data.certificate_list.certificate| 证件名| | data.certificate_list.id| 证件id| | data.certificate_list.expire| 有效期| | data.certificate_list.warn| 预警天数| | data.certificate_list.number| 证件编号| | data.certificate_list.files| 证件文件| | data.certificate_list.visa_time| 发证日期| | data.certificate_list.审核日期| 证件列表|