Commit ab9dc8ad719f39493a9175da9ad8f49492f78419

Authored by wgs7909
1 parent d8e49fa0

新增用户时,给部门增加默认值。

对应Issue,Cloud版本库。
https://gitee.com/zhijiantianya/yudao-cloud/issues/I8C4B5
yudao-ui-admin/src/views/system/user/index.vue
1 1 <template>
2 2 <div class="app-container">
3   - <doc-alert title="用户体系" url="https://doc.iocoder.cn/user-center/" />
4   - <doc-alert title="三方登陆" url="https://doc.iocoder.cn/social-user/" />
5   - <doc-alert title="Excel 导入导出" url="https://doc.iocoder.cn/excel-import-and-export/" />
6 3 <!-- 搜索工作栏 -->
7 4 <el-row :gutter="20">
8 5 <!--部门数据-->
... ... @@ -479,6 +476,8 @@ export default {
479 476 // 打开表单,并设置初始化
480 477 this.open = true;
481 478 this.title = "添加用户";
  479 + // 为部门增加默认值
  480 + this.form.deptId = this.queryParams.deptId;
482 481 this.form.password = this.initPassword;
483 482 },
484 483 /** 修改按钮操作 */
... ...