|
@@ -64,6 +64,7 @@
|
|
|
@refresh-change="refreshChange"
|
|
|
@selection-change="selectionChange"
|
|
|
@on-load="onLoad"
|
|
|
+ @saveColumn="saveColumn"
|
|
|
@tree-load="treeLoad">
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
@@ -100,7 +101,7 @@ export default {
|
|
|
dicData: [],
|
|
|
dialogVisible: false,
|
|
|
value: '',
|
|
|
- option: option,
|
|
|
+ option: {},
|
|
|
parentId: 0,
|
|
|
dataList: [],
|
|
|
selection: [],
|
|
@@ -141,7 +142,9 @@ export default {
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
+ async created() {
|
|
|
+ this.option = option
|
|
|
+ // this.option = await this.getColumnData(this.getColumnName(49), option);
|
|
|
// this.option.searchShow = this.configuration.searchShow ? this.configuration.searchShow : false
|
|
|
this.remoteMethod()
|
|
|
},
|
|
@@ -291,6 +294,18 @@ export default {
|
|
|
return current
|
|
|
}, [])
|
|
|
},
|
|
|
+ //列保存触发
|
|
|
+ async saveColumn() {
|
|
|
+ const inSave = await this.saveColumnData(
|
|
|
+ this.getColumnName(49),
|
|
|
+ this.option
|
|
|
+ );
|
|
|
+ if (inSave) {
|
|
|
+ this.$message.success("保存成功");
|
|
|
+ //关闭窗口
|
|
|
+ this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|