|
@@ -32,7 +32,7 @@
|
|
|
<span style="display: inline;">即登录账号</span>
|
|
|
<div class="c-item">
|
|
|
<label class="c-label"><span style="color: red;">*</span>部门:</label>
|
|
|
- <el-select v-model="m.deptId" :disabled="currentUser.deptId!==9999999">
|
|
|
+ <el-select v-model="deptIds" multiple :disabled="currentUser.deptId!=='9999999'">
|
|
|
<el-option label="请选择" v-for="(item,index) in deptList" :key="item.id" :label="item.name"
|
|
|
:value="item.id"></el-option>
|
|
|
|
|
@@ -71,6 +71,7 @@
|
|
|
roleList: [],
|
|
|
deptList: [],
|
|
|
currentUser: sa.$sys.getCurrUser(),
|
|
|
+ deptIds: [],
|
|
|
},
|
|
|
methods: {
|
|
|
getDeptList() {
|
|
@@ -80,8 +81,9 @@
|
|
|
}, function(resp) {
|
|
|
let list = resp.data;
|
|
|
let deptId = this.currentUser.deptId;
|
|
|
- if (deptId != 9999999) {
|
|
|
- this.m.deptId = deptId;
|
|
|
+ if (deptId != '9999999') {
|
|
|
+ //this.m.deptId = deptId;
|
|
|
+ this.deptIds = deptId.split(',');
|
|
|
}
|
|
|
this.deptList = list;
|
|
|
}.bind(this))
|
|
@@ -91,6 +93,7 @@
|
|
|
ok: function() {
|
|
|
// 表单校验
|
|
|
let m = this.m;
|
|
|
+ m.deptId = this.deptIds.join(",");
|
|
|
sa.checkNull(m.nickname, '请输入姓名');
|
|
|
let phone = m.phone;
|
|
|
if (!sa.isPhone(phone)) {
|