mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	@@ -300,8 +300,8 @@ export default {
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
	  //按钮loading
 | 
			
		||||
	  buttonLoading: false,
 | 
			
		||||
      // 按钮loading
 | 
			
		||||
      buttonLoading: false,
 | 
			
		||||
      // 遮罩层
 | 
			
		||||
      loading: true,
 | 
			
		||||
      // 显示搜索条件
 | 
			
		||||
@@ -510,17 +510,19 @@ export default {
 | 
			
		||||
#end
 | 
			
		||||
          if (this.form.${pkColumn.javaField} != null) {
 | 
			
		||||
            update${BusinessName}(this.form).then(response => {
 | 
			
		||||
			  this.buttonLoading = false;
 | 
			
		||||
              this.msgSuccess("修改成功");
 | 
			
		||||
              this.open = false;
 | 
			
		||||
              this.getList();
 | 
			
		||||
            }).finally(() => {
 | 
			
		||||
              this.buttonLoading = false;
 | 
			
		||||
            });
 | 
			
		||||
          } else {
 | 
			
		||||
            add${BusinessName}(this.form).then(response => {
 | 
			
		||||
			  this.buttonLoading = false;
 | 
			
		||||
              this.msgSuccess("新增成功");
 | 
			
		||||
              this.open = false;
 | 
			
		||||
              this.getList();
 | 
			
		||||
            }).finally(() => {
 | 
			
		||||
              this.buttonLoading = false;
 | 
			
		||||
            });
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -351,8 +351,8 @@ export default {
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
	  //按钮loading
 | 
			
		||||
	  buttonLoading: false,
 | 
			
		||||
      // 按钮loading
 | 
			
		||||
      buttonLoading: false,
 | 
			
		||||
      // 遮罩层
 | 
			
		||||
      loading: true,
 | 
			
		||||
      // 导出遮罩层
 | 
			
		||||
@@ -567,17 +567,19 @@ export default {
 | 
			
		||||
#end
 | 
			
		||||
          if (this.form.${pkColumn.javaField} != null) {
 | 
			
		||||
            update${BusinessName}(this.form).then(response => {
 | 
			
		||||
              this.buttonLoading = false;
 | 
			
		||||
              this.msgSuccess("修改成功");
 | 
			
		||||
              this.open = false;
 | 
			
		||||
              this.getList();
 | 
			
		||||
            }).finally(() => {
 | 
			
		||||
              this.buttonLoading = false;
 | 
			
		||||
            });
 | 
			
		||||
          } else {
 | 
			
		||||
            add${BusinessName}(this.form).then(response => {
 | 
			
		||||
              this.buttonLoading = false;
 | 
			
		||||
              this.msgSuccess("新增成功");
 | 
			
		||||
              this.open = false;
 | 
			
		||||
              this.getList();
 | 
			
		||||
            }).finally(() => {
 | 
			
		||||
              this.buttonLoading = false;
 | 
			
		||||
            });
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user