|
@@ -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;
|