| | |
| | | </FormItem> |
| | | <FormItem label="跟车人" prop="followUserId"> |
| | | <Select v-model="carForm.followUserId" filterable> |
| | | <Option v-for="item in userList" :value="item.id" :key="item.id">{{ item.nickname }}</Option> |
| | | <Option v-for="item in driverList" :value="item.id" :key="item.id">{{ item.nickname }}</Option> |
| | | </Select> |
| | | </FormItem> |
| | | </Form> |
| | |
| | | getEquipment, |
| | | addEquipment, |
| | | getUser, |
| | | getDriver, |
| | | deleteEquipment, |
| | | } from "@/api/open"; |
| | | import util from "@/libs/util.js"; |
| | |
| | | carForm: { |
| | | status : 0 |
| | | }, |
| | | type: { |
| | | type : 0 |
| | | }, |
| | | equipmentForm: { |
| | | status : 0 |
| | | }, |
| | |
| | | { |
| | | title: "车牌号", |
| | | key: "carNo", |
| | | width: 100, |
| | | width: 110, |
| | | sortable: true, |
| | | }, |
| | | { |
| | |
| | | depData: [], |
| | | dataType: 0, |
| | | carId: '', |
| | | driverList: [], |
| | | userList: [], |
| | | editDepartments: [], |
| | | buyYear:'' |
| | |
| | | this.getDataList(); |
| | | }, |
| | | getAllUser(){ |
| | | getUser().then((res)=>{ |
| | | getDriver(this.type).then((res)=>{ |
| | | if (res.success){ |
| | | this.userList=res.result; |
| | | } |
| | | }); |
| | | this.type.type=1; |
| | | getDriver(this.type).then((res)=>{ |
| | | if (res.success){ |
| | | this.driverList=res.result; |
| | | } |
| | | }); |
| | | }, |
| | |
| | | if (res.success) { |
| | | this.$Message.success("操作成功"); |
| | | this.getDataList(); |
| | | this.roleModalVisible = false; |
| | | this.roleModalVisible = true; |
| | | } |
| | | }); |
| | | } else { |
| | |
| | | if (res.success) { |
| | | this.$Message.success("操作成功"); |
| | | this.getDataList(); |
| | | this.roleModalVisible = false; |
| | | this.roleModalVisible = true; |
| | | } |
| | | }); |
| | | } |