|  | @ -389,15 +389,16 @@ export default { | 
		
	
		
			
				|  |  |                   'search': data.echo.host_department |  |  |                   'search': data.echo.host_department | 
		
	
		
			
				|  |  |                 } |  |  |                 } | 
		
	
		
			
				|  |  |                 FetchBorrowerdsByIds(hostParams).then(res => { |  |  |                 FetchBorrowerdsByIds(hostParams).then(res => { | 
		
	
		
			
				|  |  |                   console.log('res', res) |  |  |  | 
		
	
		
			
				|  |  |                   if (res && res.length !== 0) { |  |  |                   if (res && res.length !== 0) { | 
		
	
		
			
				|  |  |                     this.$refs.previewForm.hostDepartmentTags = res |  |  |                     this.$refs.previewForm.hostDepartmentTags = res | 
		
	
		
			
				|  |  |                     // const ids = res.map(item => item.id) |  |  |  | 
		
	
		
			
				|  |  |                     // this.$set(this.$refs.previewForm.addOrUpdateForm, 'miodDepts', ids) |  |  |  | 
		
	
		
			
				|  |  |  |  |  |                     const ids = res.map(item => item.id) | 
		
	
		
			
				|  |  |  |  |  |                     this.$set(this.$refs.previewForm.addOrUpdateForm, 'host_department', ids) | 
		
	
		
			
				|  |  |                   } else { |  |  |                   } else { | 
		
	
		
			
				|  |  |                     // this.$set(this.$refs.previewForm.addOrUpdateForm, 'miodDepts', null) |  |  |  | 
		
	
		
			
				|  |  |  |  |  |                     this.$set(this.$refs.previewForm.addOrUpdateForm, 'host_department', null) | 
		
	
		
			
				|  |  |                   } |  |  |                   } | 
		
	
		
			
				|  |  |                 }) |  |  |                 }) | 
		
	
		
			
				|  |  |  |  |  |               } else { | 
		
	
		
			
				|  |  |  |  |  |                 this.$refs.previewForm.hostDepartmentTags = [] | 
		
	
		
			
				|  |  |               } |  |  |               } | 
		
	
		
			
				|  |  |             } else { |  |  |             } else { | 
		
	
		
			
				|  |  |               console.log('add') |  |  |               console.log('add') | 
		
	
	
		
			
				|  | @ -647,6 +648,8 @@ export default { | 
		
	
		
			
				|  |  |       this.formVisible = false |  |  |       this.formVisible = false | 
		
	
		
			
				|  |  |       this.$refs.previewForm.miodDeptsTags = [] |  |  |       this.$refs.previewForm.miodDeptsTags = [] | 
		
	
		
			
				|  |  |       this.$refs.previewForm.miodDeptsSelections = [] |  |  |       this.$refs.previewForm.miodDeptsSelections = [] | 
		
	
		
			
				|  |  |  |  |  |       this.$refs.previewForm.hostDepartmentTags = [] | 
		
	
		
			
				|  |  |  |  |  |       this.$refs.previewForm.hostDepartmentSelections = [] | 
		
	
		
			
				|  |  |       this.$refs.previewForm.deptsValid = false |  |  |       this.$refs.previewForm.deptsValid = false | 
		
	
		
			
				|  |  |       if (this.$refs.previewForm.$refs['addOrUpdateForm']) { |  |  |       if (this.$refs.previewForm.$refs['addOrUpdateForm']) { | 
		
	
		
			
				|  |  |         this.$refs.previewForm.$refs['addOrUpdateForm'].clearValidate() |  |  |         this.$refs.previewForm.$refs['addOrUpdateForm'].clearValidate() | 
		
	
	
		
			
				|  | 
 |