智慧农业后台管理页面
guoshilong
2022-08-16 a6bcae5a62c6cb80dd5a87ce0165a3fc394fb469
修改添加新用户时没地方输密码的问题
1 files modified
15 ■■■■ changed files
src/views/system/user.vue 15 ●●●● patch | view | raw | blame | history
src/views/system/user.vue
@@ -35,13 +35,13 @@
              :type="type"
              :size="size"
              icon="el-icon-edit"
              :disabled="row.roleId == 1123598816738675201"
              :disabled="row.roleId == '1123598816738675201' "
              @click="update(row)">编辑</el-button>
            <el-button 
              :type="type"
              :size="size"
              icon="el-icon-delete"
              :disabled="row.roleId == 1123598816738675201"
              :disabled="row.roleId == '1123598816738675201' "
              @click="rowDel(row)">删除</el-button>
          </template>
          <template slot="menuLeft">
@@ -866,6 +866,10 @@
          roleId:row.roleId.split(','),
          farmId : row.farmId.split(",")
        }
        var passwordColumn = this.findObject(this.option.group,"password");
        var password2Column = this.findObject(this.option.group,"password2")
        passwordColumn.display = false;
        password2Column.display = false;
        this.dialogVisible = true
      },
      submitUpdate(row, done, loading){
@@ -1032,12 +1036,17 @@
      },
      beforeOpen(done, type) {
        const column = this.findObject(this.option.group, "farmId");
        var passwordColumn = this.findObject(this.option.group,"password");
        var password2Column = this.findObject(this.option.group,"password2")
        passwordColumn.display = true;
        password2Column.display = true;
        if(type == "add"&& column.dicData == ""){
          this.form = {}
          this.initData(website.tenantId)
        }
        if (["edit", "view"].includes(type)) {
          console.log(this.form.id)
          passwordColumn.display = false;
          password2Column.display = false;
          getUser(this.form.id).then(res => {
            this.form = res.data.data;
            if(this.form.hasOwnProperty("deptId")){