caojunjie 3 年之前
父节点
当前提交
86094bb1e5
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      src/views/statisticAnalysis/salesProfitN/index.vue

+ 5 - 4
src/views/statisticAnalysis/salesProfitN/index.vue

@@ -46,7 +46,8 @@ export default {
         total: 0,
         pageSizes: [10, 20, 30, 40, 50, 100, 200, 300, 400, 500]
       },
-      option: {
+      option:{},
+      optionBack: {
         searchShow: true,
         searchMenuSpan: 8,
         align: "center",
@@ -183,7 +184,7 @@ export default {
     };
   },
   async created() {
-    this.option = await this.getColumnData(this.getColumnName(185), this.option);
+    this.option = await this.getColumnData(this.getColumnName(185), this.optionBack);
     this.getWorkDicts('brand').then(res => {
       this.brandOption = res.data.data;
     })
@@ -255,8 +256,8 @@ export default {
       }
     },
     async resetColumn() {
-      this.option = this.option;
-      const inSave = await this.delColumnData(this.getColumnName(185), this.option);
+      this.option = this.optionBack;
+      const inSave = await this.delColumnData(this.getColumnName(185), this.optionBack);
       if (inSave) {
         this.$message.success("重置成功");
         this.$refs.crud.$refs.dialogColumn.columnBox = false;