|  | @@ -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,11 @@ export default {
 | 
	
		
			
				|  |  |      url: {
 | 
	
		
			
				|  |  |        type: String
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    // 路由地址 用于关闭页面
 | 
	
		
			
				|  |  | +    routerTag: {
 | 
	
		
			
				|  |  | +      type: String,
 | 
	
		
			
				|  |  | +      default: ''
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
	
		
			
				|  | @@ -67,6 +72,7 @@ export default {
 | 
	
		
			
				|  |  |          auditUserId: [{required: true, message: " ", trigger: "change"}],
 | 
	
		
			
				|  |  |          // messageBody: [{required: true, message: " ", trigger: "blur"}],
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | +      buttonLoading: false,
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    created() {
 | 
	
	
		
			
				|  | @@ -89,10 +95,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;
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        })
 |