| 
					
				 | 
			
			
				@@ -35,8 +35,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </el-form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <span slot="footer" class="dialog-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-button type="primary" @click="sendHandle">发送</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-button @click="closeDialog">取消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-button type="primary" @click="sendHandle" :loading="buttonLoading">发送</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <el-button @click="closeDialog" :loading="buttonLoading">取消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -54,6 +54,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     url: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       type: String 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    routerTag: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      type: String, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      default: '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -67,6 +71,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         auditUserId: [{required: true, message: " ", trigger: "change"}], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // messageBody: [{required: true, message: " ", trigger: "blur"}], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      buttonLoading: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   created() { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -89,10 +94,22 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     sendHandle() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$refs["form"].validate(valid => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (valid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.buttonLoading = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           changeApprove(this.url, {...this.form, id: this.auditId}).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$message.success('修改成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.closeDialog() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$router.$avueRouter.closeTag(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$router.push({path: `/approveData/index`}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (this.routerTag !== '') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.$router.$avueRouter.closeTag(this.routerTag); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$router.$avueRouter.closeTag('/approveData/index'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$router.push({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              path: `/approveData/index`, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              query: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                check: 'refresh' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }).finally(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.buttonLoading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 |