zhangzeli
2022-01-04 7ebd84a4ad1f6561f450d5e92d987d22924d59ec
src/views/your/car-manage/carManage.vue
@@ -87,7 +87,7 @@
        </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>
@@ -243,6 +243,7 @@
  getEquipment,
  addEquipment,
  getUser,
  getDriver,
  deleteEquipment,
} from "@/api/open";
import util from "@/libs/util.js";
@@ -280,6 +281,9 @@
      carForm: {
        status : 0
      },
      type: {
        type : 0
      },
      equipmentForm: {
        status : 0
      },
@@ -307,7 +311,7 @@
        {
          title: "车牌号",
          key: "carNo",
          width: 100,
          width: 110,
          sortable: true,
        },
        {
@@ -592,6 +596,7 @@
      depData: [],
      dataType: 0,
      carId: '',
      driverList: [],
      userList: [],
      editDepartments: [],
      buyYear:''
@@ -662,9 +667,15 @@
      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;
        }
      });
    },
@@ -735,7 +746,7 @@
              if (res.success) {
                this.$Message.success("操作成功");
                this.getDataList();
                this.roleModalVisible = false;
                this.roleModalVisible = true;
              }
            });
          } else {
@@ -745,7 +756,7 @@
              if (res.success) {
                this.$Message.success("操作成功");
                this.getDataList();
                this.roleModalVisible = false;
                this.roleModalVisible = true;
              }
            });
          }