yaozc
2023-07-10 8d965e584b9be28a81d3f9fa587f6d0b18cd8dff
eladmin-web-master/src/views/system/userContract/index.vue
@@ -230,11 +230,10 @@
    // 根据员工选择公司
    getComp(data) {
      if (data !== '') {
        var form = JSON.stringify({
          'userId': data
        })
        crudSysCompany.getCompName(form).then(res => {
          this.form.companyId = res.label
        crudUser.getAll({
          id: data
        }).then(res => {
          this.form.companyId = res[0].company.id
        })
      } else {
        this.form.companyId = null