智慧农业后台管理页面
农场选择变为多选,修复第一次加载新增用户时农场选择和角色选择无数据的问题
1 files modified
6 ■■■■ changed files
src/views/system/user.vue 6 ●●●● patch | view | raw | blame | history
src/views/system/user.vue
@@ -513,7 +513,7 @@
                  prop: "farmId",
                  labelWidth:110,
                  type: "tree",
                  // multiple: true,
                  multiple: true,
                  dicData: [],
                  props: {
                    label: "farmName",
@@ -952,6 +952,10 @@
        })
      },
      beforeOpen(done, type) {
        const column = this.findObject(this.option.group, "farmId");
        if(type == "add"&& column.dicData == ""){
          this.initData(website.tenantId)
        }
        if (["edit", "view"].includes(type)) {
          getUser(this.form.id).then(res => {
            this.form = res.data.data;