|
|
@@ -462,7 +462,7 @@ export default {
|
|
|
{ validator: validateSfz }],
|
|
|
},
|
|
|
formDataDetail: {},
|
|
|
- formDataRulesDetail: {
|
|
|
+ formDataRulesDetail: { //详情信息内容校验规则
|
|
|
// accountno: [{ required: true, message: "请填写开户账号", trigger: "blur" }],
|
|
|
// address: [{ required: true, message: "请填写居住地址", trigger: "blur" }],
|
|
|
// bankName: [{ required: true, message: "请填写开户行", trigger: "blur" }],
|
|
|
@@ -546,7 +546,7 @@ export default {
|
|
|
deptInfo: {}, //选中机构的基本信息
|
|
|
sexoptions: JSON.parse(localStorage.getItem('sexOptions')) ,
|
|
|
user_statusoptions: JSON.parse(localStorage.getItem('user_statusoptions')) ,
|
|
|
- roles: JSON.parse(localStorage.getItem('find_all')) ,
|
|
|
+ roles: [],
|
|
|
option: [], //机构列表
|
|
|
//影像资料
|
|
|
dataForm: {
|
|
|
@@ -570,7 +570,7 @@ export default {
|
|
|
// this.getDictItems("sex");
|
|
|
// this.getDictItems("user_status");
|
|
|
this.findLeftTreeData(); // 获取机构树的数据
|
|
|
-
|
|
|
+ this.getFindRoleByUserId();
|
|
|
},
|
|
|
mounted() {
|
|
|
//用像素初始化左边的split的宽度
|
|
|
@@ -587,6 +587,12 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ //获取角色数据
|
|
|
+ getFindRoleByUserId(){
|
|
|
+ this.$api.role.findRoleByUserId().then(res=>{
|
|
|
+ this.roles = res.data
|
|
|
+ })
|
|
|
+ },
|
|
|
//状态改变时
|
|
|
statusChange(e){
|
|
|
if(e==0){
|
|
|
@@ -601,20 +607,21 @@ export default {
|
|
|
this.isShow=!this.isShow
|
|
|
},
|
|
|
identityChange(iden){
|
|
|
- let sex = null;
|
|
|
- let birth = null;
|
|
|
- let myDate = new Date();
|
|
|
- let month = myDate.getMonth() + 1;
|
|
|
- let day = myDate.getDate();
|
|
|
- sex = iden.substring(16,17);
|
|
|
- birth = iden.substring(6,10)+"-"+iden.substring(10,12)+"-"+iden.substring(12,14);
|
|
|
- if (iden.substring(10, 12) < month || iden.substring(10, 12) == month && iden.substring(12, 14) <= day) age++;
|
|
|
- if(sex%2 === 0)
|
|
|
- sex = '女';
|
|
|
- else
|
|
|
- sex = '男';
|
|
|
- this.formDataDetail.birthday=birth
|
|
|
- this.formDataDetail.sex=this.sexoptions.find(val=>sex==val.label).value
|
|
|
+ let sex = null;
|
|
|
+ let birth = null;
|
|
|
+ let myDate = new Date();
|
|
|
+ let month = myDate.getMonth() + 1;
|
|
|
+ let day = myDate.getDate();
|
|
|
+ sex = iden.substring(16,17);
|
|
|
+ birth = iden.substring(6,10)+"-"+iden.substring(10,12)+"-"+iden.substring(12,14);
|
|
|
+ let age = 0;
|
|
|
+ if (iden.substring(10, 12) < month || iden.substring(10, 12) == month && iden.substring(12, 14) <= day) age++;
|
|
|
+ if(sex%2 === 0)
|
|
|
+ sex = '女';
|
|
|
+ else
|
|
|
+ sex = '男';
|
|
|
+ this.formDataDetail.birthday=birth
|
|
|
+ this.formDataDetail.sex=this.sexoptions.find(val=>sex==val.label).value
|
|
|
},
|
|
|
// 查询Start
|
|
|
queryStaffInfo() {
|
|
|
@@ -704,9 +711,8 @@ export default {
|
|
|
val.status=this.user_statusoptions.find(ele=>ele.value==val.status).label
|
|
|
}
|
|
|
if(val.roleId&& val.roleId!==''&& val.roleId!==null){
|
|
|
- val.roleId=this.roles.find(ele=>ele.id==val.roleId).name
|
|
|
+ val.roleId=val.roleName
|
|
|
}
|
|
|
-
|
|
|
})
|
|
|
this.pageResult = res.data;
|
|
|
})
|