智慧农业后台管理页面
guoshilong
2022-08-16 255b84b1cce39b96a7b3f21019801a8f86911b9c
解决查看用户详情时报错
1 files modified
3 ■■■■ changed files
src/views/system/user.vue 3 ●●●● patch | view | raw | blame | history
src/views/system/user.vue
@@ -1033,10 +1033,11 @@
      beforeOpen(done, type) {
        const column = this.findObject(this.option.group, "farmId");
        if(type == "add"&& column.dicData == ""){
          this.form = {}
          this.initData(website.tenantId)
        }
        this.form = {}
        if (["edit", "view"].includes(type)) {
          console.log(this.form.id)
          getUser(this.form.id).then(res => {
            this.form = res.data.data;
            if(this.form.hasOwnProperty("deptId")){