|
|
|
@ -205,7 +205,6 @@ |
|
|
|
label: 'displayName', |
|
|
|
children: 'treeChildren', |
|
|
|
}" |
|
|
|
|
|
|
|
:default-checked-keys="defaultchekedKeys" |
|
|
|
:default-expand-all="true" |
|
|
|
show-checkbox |
|
|
|
@ -408,13 +407,13 @@ |
|
|
|
</el-dialog> |
|
|
|
<!-- 修改密码弹框 --> |
|
|
|
<el-dialog |
|
|
|
title="修改密码" |
|
|
|
:title="'修改密码' + '当前用户' + usersName" |
|
|
|
:visible.sync="editpassworddialogVisible" |
|
|
|
width="30%" |
|
|
|
> |
|
|
|
<el-form ref="form" :model="form" label-width="80px"> |
|
|
|
<el-form-item label="新密码"> |
|
|
|
<el-input v-model="newPassWord"></el-input> |
|
|
|
<el-input v-model="newPassWord" max="16" min="6"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
@ -445,6 +444,7 @@ import { |
|
|
|
lognis, |
|
|
|
} from "../../request/ruquset"; |
|
|
|
import { mapState } from "vuex"; |
|
|
|
import { isValid } from "@/utlis/validate"; |
|
|
|
import { getapi, postapi } from "@/api/api"; |
|
|
|
// let validatePassword = (rule, value, callback) => { |
|
|
|
// var reg1 = |
|
|
|
@ -458,11 +458,12 @@ import { getapi, postapi } from "@/api/api"; |
|
|
|
// callback(); |
|
|
|
// } |
|
|
|
// }; |
|
|
|
let validatePassword = /^[a-zA-Z]\w{5,8}$/; |
|
|
|
let validatePassword = /^[a-zA-Z0-9@\$\^\.\*\\?]\{6,15}$/; |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
defaultchekedKeys:[],//默认选中的科室 |
|
|
|
usersName: "", //用户名 |
|
|
|
defaultchekedKeys: [], //默认选中的科室 |
|
|
|
department: [], //选中的科室 |
|
|
|
setupdepartments: [], //设置科室 |
|
|
|
newPassWord: "", //新密码 |
|
|
|
@ -492,10 +493,16 @@ export default { |
|
|
|
message: "密码不能为空", |
|
|
|
}, |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
min: 6, |
|
|
|
max: 15, |
|
|
|
message: "长度在 6 到 15 个字符", |
|
|
|
trigger: "blur", |
|
|
|
validator: validatePassword, |
|
|
|
}, |
|
|
|
// { |
|
|
|
// required: true, |
|
|
|
// trigger: "blur", |
|
|
|
// validator: validatePassword, |
|
|
|
// }, |
|
|
|
], |
|
|
|
email: [ |
|
|
|
{ |
|
|
|
@ -539,7 +546,7 @@ export default { |
|
|
|
checkList: [], //多选框 |
|
|
|
pages: { |
|
|
|
SkipCount: 0, |
|
|
|
MaxResultCount: 5, |
|
|
|
MaxResultCount: 100, |
|
|
|
Filter: "", |
|
|
|
// Filter:{ |
|
|
|
// userName:this.form.userName, |
|
|
|
@ -595,6 +602,7 @@ export default { |
|
|
|
editpassword(row) { |
|
|
|
this.editpassworddialogVisible = true; |
|
|
|
this.passwordid = row.id; |
|
|
|
this.usersName = row.userName; |
|
|
|
}, |
|
|
|
//新增选择的 |
|
|
|
ischesc() { |
|
|
|
@ -821,14 +829,20 @@ export default { |
|
|
|
orgId: this.defaultKeys, |
|
|
|
}).then((res) => { |
|
|
|
console.log(res); |
|
|
|
// this.$message.success("修改绑定组织成功"); |
|
|
|
}); |
|
|
|
postapi( |
|
|
|
`/api/app/abpuserdepartment/createmany?UserId=${this.form.id}`, |
|
|
|
this.department |
|
|
|
).then((res) => { |
|
|
|
// this.$message.success("操作成功"); |
|
|
|
}); |
|
|
|
// this.$message.success("修改绑定组织成功"); |
|
|
|
}); |
|
|
|
// postapi( |
|
|
|
// `/api/app/abpuserdepartment/createmany?UserId=${this.form.id}`, |
|
|
|
// this.department |
|
|
|
// ).then((res) => { |
|
|
|
// // this.$message.success("操作成功"); |
|
|
|
// }); |
|
|
|
console.log("aaaaaa"); |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -893,7 +907,7 @@ export default { |
|
|
|
`/api/app/abpuserdepartment/getuserdepartment?UserId=${row.id}` |
|
|
|
).then((res) => { |
|
|
|
// default-checked-keys |
|
|
|
this.defaultchekedKeys=res.data |
|
|
|
this.defaultchekedKeys = res.data; |
|
|
|
console.log(res, "科室"); |
|
|
|
}); |
|
|
|
} |
|
|
|
|