let data = this.$route.params.data;
let flag = this.$route.params.flag;
if(!data) {
this.$router.push({ path: '/setting/user'});
}
if (flag == 'add') {
console.log("新增:", data);
this.editType = 1;
this.isShowUserCount = false;
}
console.log('data',data);
if(flag == 'edit'){
console.log("传过来的数据:", data);
//记录回显的密码
this.recordPassword = data.password;
this.isShowUserCount = true;
this.editType = 0;
this.form = Object.assign(this.form, data);
this.form.departId = data.sysDepartQueryModel.bid;
this.form.roleId = data.sysRoleQueryModel.bid;
//添加逻辑 根据departId请求 得到list数据
let data = {
departId: data.sysDepartQueryModel.bid,
}
treeBidListByDepartId(data).then(res=>{
this.treeBidList = res;
})
}