| 
					
				 | 
			
			
				@@ -22,7 +22,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <el-drawer v-if="stepsVisible" :visible.sync="stepsVisible" :title="modifyTitle" :append-to-body="true" size="70%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <round-setting-steps :settingModel="settingModel" :default-active-step="activeStep" :year-options="yearOptions" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                           @do-post="handleSubmit"></round-setting-steps> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                           @do-post="handleSubmit" v-loading="loading"></round-setting-steps> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </el-drawer> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -32,14 +32,7 @@ import * as ext from '@/utils' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import selectTranslateMixin from '@/components/Cache/modules/mx-select-translate-mixin' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import RoundModelConvert from './round-model-convert' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import MxCondition from '@/components/MxCondition/mx-condition' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  addRound, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  deleteRound, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  getScoreImportConfig, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  roundList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  saveScoreImportConfig, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  updateRound 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} from '@/api/webApi/selection' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { deleteRound, getScoreImportConfig, roundList, saveScoreImportConfig } from '@/api/webApi/selection' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import RoundSettingSteps from '@/views/elective/publish/components/steps/round-setting-steps' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -48,6 +41,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   components: { RoundSettingSteps, MxCondition }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      loading: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // drawer 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       stepsVisible: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       activeStep: 0, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -162,13 +156,14 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleSubmit(commit) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.loading = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const round = this.toApiModel(commit) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 提交 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       saveScoreImportConfig(round).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.stepsVisible = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.msgSuccess('保存成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.handleQuery() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }).finally(() => this.loading = false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |