|  | @ -161,6 +161,17 @@ export default { | 
		
	
		
			
				|  |  |         } |  |  |         } | 
		
	
		
			
				|  |  |         callback() |  |  |         callback() | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |  |  |  |       var validataPassword = (rule, value, callback) => { | 
		
	
		
			
				|  |  |  |  |  |         if (value && value.length >= 8) { | 
		
	
		
			
				|  |  |  |  |  |           const weakReg = /^[0-9]{8,}$|^[a-zA-Z]{8,}$/ | 
		
	
		
			
				|  |  |  |  |  |           if (weakReg.test(value)) { | 
		
	
		
			
				|  |  |  |  |  |             return callback(new Error('密码过于简单')) | 
		
	
		
			
				|  |  |  |  |  |           } | 
		
	
		
			
				|  |  |  |  |  |         } else { | 
		
	
		
			
				|  |  |  |  |  |           return callback(new Error('请输入密码')) | 
		
	
		
			
				|  |  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |  |         callback() | 
		
	
		
			
				|  |  |  |  |  |       } | 
		
	
		
			
				|  |  |       return { |  |  |       return { | 
		
	
		
			
				|  |  |         employeeId: [ |  |  |         employeeId: [ | 
		
	
		
			
				|  |  |           { required: true, message: '请输入医生工号', trigger: 'blur' } |  |  |           { required: true, message: '请输入医生工号', trigger: 'blur' } | 
		
	
	
		
			
				|  | @ -169,7 +180,7 @@ export default { | 
		
	
		
			
				|  |  |           { required: true, message: '请输入医生姓名', trigger: 'blur' } |  |  |           { required: true, message: '请输入医生姓名', trigger: 'blur' } | 
		
	
		
			
				|  |  |         ], |  |  |         ], | 
		
	
		
			
				|  |  |         password: [ |  |  |         password: [ | 
		
	
		
			
				|  |  |           { required: true, message: '请输入密码', trigger: 'blur' } |  |  |  | 
		
	
		
			
				|  |  |  |  |  |           { required: true, validator: validataPassword, trigger: 'blur' } | 
		
	
		
			
				|  |  |         ], |  |  |         ], | 
		
	
		
			
				|  |  |         gender: [ |  |  |         gender: [ | 
		
	
		
			
				|  |  |           { required: true, message: '请选择性别', trigger: 'change' } |  |  |           { required: true, message: '请选择性别', trigger: 'change' } | 
		
	
	
		
			
				|  | @ -180,9 +191,6 @@ export default { | 
		
	
		
			
				|  |  |         mobile: [ |  |  |         mobile: [ | 
		
	
		
			
				|  |  |           { required: true, validator: validataMobile, trigger: 'blur' } |  |  |           { required: true, validator: validataMobile, trigger: 'blur' } | 
		
	
		
			
				|  |  |         ] |  |  |         ] | 
		
	
		
			
				|  |  |         // doctorJob: [ |  |  |  | 
		
	
		
			
				|  |  |         //   { required: true, message: '请输入医生职位', trigger: 'blur' } |  |  |  | 
		
	
		
			
				|  |  |         // ], |  |  |  | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
	
		
			
				|  | @ -191,8 +199,6 @@ export default { | 
		
	
		
			
				|  |  |       this.visible = true |  |  |       this.visible = true | 
		
	
		
			
				|  |  |       this.$nextTick(() => { |  |  |       this.$nextTick(() => { | 
		
	
		
			
				|  |  |         // 获取中心 |  |  |         // 获取中心 | 
		
	
		
			
				|  |  |         // this.getCentreList() |  |  |  | 
		
	
		
			
				|  |  |         // this.getCentreJobList() |  |  |  | 
		
	
		
			
				|  |  |         this.loginInfo = window.sessionStorage.getItem('qg-userData') |  |  |         this.loginInfo = window.sessionStorage.getItem('qg-userData') | 
		
	
		
			
				|  |  |         this.$refs.dataForm.resetFields() // 重置表单 |  |  |         this.$refs.dataForm.resetFields() // 重置表单 | 
		
	
		
			
				|  |  |         if (this.dataForm.id) { |  |  |         if (this.dataForm.id) { | 
		
	
	
		
			
				|  | @ -207,17 +213,6 @@ export default { | 
		
	
		
			
				|  |  |         this.centerList = res.data |  |  |         this.centerList = res.data | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 获取职位列表 --- 1:职位,2:手术方式,3:手术间,4:麻醉方式 |  |  |  | 
		
	
		
			
				|  |  |     async getCentreJobList() { |  |  |  | 
		
	
		
			
				|  |  |       const { data: res } = await this.$http.get('/sys/param/getList', { |  |  |  | 
		
	
		
			
				|  |  |         params: { |  |  |  | 
		
	
		
			
				|  |  |           type: 1 |  |  |  | 
		
	
		
			
				|  |  |         } |  |  |  | 
		
	
		
			
				|  |  |       }) |  |  |  | 
		
	
		
			
				|  |  |       if (res.code === 0) { |  |  |  | 
		
	
		
			
				|  |  |         this.positionList = res.data |  |  |  | 
		
	
		
			
				|  |  |       } |  |  |  | 
		
	
		
			
				|  |  |     }, |  |  |  | 
		
	
		
			
				|  |  |     // 获取信息 |  |  |     // 获取信息 | 
		
	
		
			
				|  |  |     getInfo() { |  |  |     getInfo() { | 
		
	
		
			
				|  |  |       this.$http.get(`/sys/user/${this.dataForm.id}`).then(({ data: res }) => { |  |  |       this.$http.get(`/sys/user/${this.dataForm.id}`).then(({ data: res }) => { | 
		
	
	
		
			
				|  | @ -231,17 +226,11 @@ export default { | 
		
	
		
			
				|  |  |         res.data.roleIdList.forEach(item => { |  |  |         res.data.roleIdList.forEach(item => { | 
		
	
		
			
				|  |  |           roleArr.push([item]) |  |  |           roleArr.push([item]) | 
		
	
		
			
				|  |  |         }) |  |  |         }) | 
		
	
		
			
				|  |  |         // if (res.data.positionIdList && res.data.positionIdList.length) { |  |  |  | 
		
	
		
			
				|  |  |         //   res.data.positionIdList.forEach(item => { |  |  |  | 
		
	
		
			
				|  |  |         //     postionArr.push([item]) |  |  |  | 
		
	
		
			
				|  |  |         //   }) |  |  |  | 
		
	
		
			
				|  |  |         // } |  |  |  | 
		
	
		
			
				|  |  |         this.dataForm = { |  |  |         this.dataForm = { | 
		
	
		
			
				|  |  |           ...this.dataForm, |  |  |           ...this.dataForm, | 
		
	
		
			
				|  |  |           ...res.data |  |  |           ...res.data | 
		
	
		
			
				|  |  |         } |  |  |         } | 
		
	
		
			
				|  |  |         this.dataForm.roleNameListValue = roleArr |  |  |         this.dataForm.roleNameListValue = roleArr | 
		
	
		
			
				|  |  |         // this.dataForm.positionListValue = postionArr |  |  |  | 
		
	
		
			
				|  |  |       }).catch(() => { }) |  |  |       }).catch(() => { }) | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 角色级联选择器选择 |  |  |     // 角色级联选择器选择 | 
		
	
	
		
			
				|  | @ -251,15 +240,6 @@ export default { | 
		
	
		
			
				|  |  |         this.dataForm.roleIdList.push(item[0]) |  |  |         this.dataForm.roleIdList.push(item[0]) | 
		
	
		
			
				|  |  |       }) |  |  |       }) | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 职位级联选择器选择 |  |  |  | 
		
	
		
			
				|  |  |     positionChange(val) { |  |  |  | 
		
	
		
			
				|  |  |       console.log(val) |  |  |  | 
		
	
		
			
				|  |  |       this.dataForm.positionIdList = [] |  |  |  | 
		
	
		
			
				|  |  |       val.forEach(item => { |  |  |  | 
		
	
		
			
				|  |  |         this.dataForm.positionIdList.push(item[0]) |  |  |  | 
		
	
		
			
				|  |  |       }) |  |  |  | 
		
	
		
			
				|  |  |       console.log(this.dataForm.positionIdList) |  |  |  | 
		
	
		
			
				|  |  |     }, |  |  |  | 
		
	
		
			
				|  |  |     // 上传文件转换 |  |  |     // 上传文件转换 | 
		
	
		
			
				|  |  |     uploadFileBaseHandle(data) { |  |  |     uploadFileBaseHandle(data) { | 
		
	
		
			
				|  |  |       const _this = this |  |  |       const _this = this | 
		
	
	
		
			
				|  | 
 |