|  | @@ -55,7 +55,8 @@ export default {
 | 
	
		
			
				|  |  |          total: 0,
 | 
	
		
			
				|  |  |          pageSizes: [10, 20, 30, 40, 50, 100, 200, 300, 400, 500]
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      option: {
 | 
	
		
			
				|  |  | +      option: {},
 | 
	
		
			
				|  |  | +      defaultOption: {
 | 
	
		
			
				|  |  |          searchShow: true,
 | 
	
		
			
				|  |  |          align: "center",
 | 
	
		
			
				|  |  |          searchSpan: 8,
 | 
	
	
		
			
				|  | @@ -165,7 +166,7 @@ export default {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    async created() {
 | 
	
		
			
				|  |  | -    // this.option = await this.getColumnData(this.getColumnName(126), option);
 | 
	
		
			
				|  |  | +    this.option = await this.getColumnData(this.getColumnName(126), this.defaultOption);
 | 
	
		
			
				|  |  |      let i = 0;
 | 
	
		
			
				|  |  |      this.option.column.forEach(item => {
 | 
	
		
			
				|  |  |        if (item.search) i++
 | 
	
	
		
			
				|  | @@ -294,28 +295,22 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //列保存触发
 | 
	
		
			
				|  |  |      async saveColumn() {
 | 
	
		
			
				|  |  | -      /**
 | 
	
		
			
				|  |  | -       * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
 | 
	
		
			
				|  |  | -       * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
 | 
	
		
			
				|  |  | -       * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
 | 
	
		
			
				|  |  | -       */
 | 
	
		
			
				|  |  |        const inSave = await this.saveColumnData(
 | 
	
		
			
				|  |  |          this.getColumnName(126),
 | 
	
		
			
				|  |  |          this.option
 | 
	
		
			
				|  |  |        );
 | 
	
		
			
				|  |  |        if (inSave) {
 | 
	
		
			
				|  |  | +        this.$nextTick(() => {
 | 
	
		
			
				|  |  | +          this.$refs.crud.doLayout();
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  |          this.$message.success("保存成功");
 | 
	
		
			
				|  |  |          //关闭窗口
 | 
	
		
			
				|  |  |          this.$refs.crud.$refs.dialogColumn.columnBox = false;
 | 
	
		
			
				|  |  | -        this.$nextTick(() => {
 | 
	
		
			
				|  |  | -          this.$refs.crud.doLayout()
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      async resetColumn() {
 | 
	
		
			
				|  |  | -      this.option = option;
 | 
	
		
			
				|  |  | -      const inSave = await this.delColumnData(this.getColumnName(126),option);
 | 
	
		
			
				|  |  | +      this.option = this.defaultOption;
 | 
	
		
			
				|  |  | +      const inSave = await this.delColumnData(this.getColumnName(126), this.defaultOption);
 | 
	
		
			
				|  |  |        if (inSave) {
 | 
	
		
			
				|  |  |          this.$nextTick(() => {
 | 
	
		
			
				|  |  |            this.$refs.crud.doLayout()
 |