| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -83,7 +83,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      <div class="left"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <div class="flex-div"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <div>模板名称:</div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <el-input v-model="form.name" class="wd200 mr10" /> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <el-input v-model="form.name" maxlength="20" class="wd200 mr10" /> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          <el-checkbox v-model="form.isSaveTemp">保存为常用模板</el-checkbox> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      </div> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -330,13 +330,17 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      await this.$http({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        method: 'POST', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        url, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        responseType: 'blob', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        // responseType: 'blob', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        data: params | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        .then(res => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          console.log('res----dddd', res) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          // this.download(res.data, title + '.xls') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          this.getTemplateList() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          // this.getTemplateList() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          this.exportLoading = false | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if (res.data.code && res.data.code == 9999) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return this.$message.error(res.data.msg) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if (res.headers["content-disposition"]) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1]) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            console.log('filename', fileName) | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -353,7 +357,6 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.$message.success('导出成功') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.$emit('close') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } else this.$message.error('下载失败') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          this.exportLoading = false | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        .catch(err => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          console.log('err', err) | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |