|
@@ -15,6 +15,7 @@
|
|
|
@selection-change="selectionChange"
|
|
|
@current-change="currentChange"
|
|
|
@size-change="sizeChange"
|
|
|
+ @saveColumn="saveColumn"
|
|
|
@refresh-change="refreshChange"
|
|
|
@on-load="onLoad">
|
|
|
<template slot="menuLeft">
|
|
@@ -90,14 +91,19 @@ export default {
|
|
|
components:{
|
|
|
detailPage
|
|
|
},
|
|
|
- created() {
|
|
|
- if(this.$route.query.form){
|
|
|
- this.detailData={
|
|
|
- form:this.$route.query.form
|
|
|
+ async created() {
|
|
|
+ this.option = await this.getColumnData(this.getColumnName(43), option);
|
|
|
+ },
|
|
|
+ activated() {
|
|
|
+ setTimeout(() => {
|
|
|
+ if(this.$route.query.form){
|
|
|
+ this.detailData={
|
|
|
+ form:this.$route.query.form
|
|
|
+ }
|
|
|
+ this.show = false;
|
|
|
+ this.$store.commit("GO_IN_DETAIL");
|
|
|
}
|
|
|
- this.show = false;
|
|
|
- this.$store.commit("GO_IN_DETAIL");
|
|
|
- }
|
|
|
+ }, 100);
|
|
|
},
|
|
|
methods: {
|
|
|
//删除列表后面的删除按钮触发触发(row, index, done)
|
|
@@ -221,7 +227,19 @@ export default {
|
|
|
goBack() {
|
|
|
this.detailData=this.$options.data().detailData
|
|
|
this.show = true;
|
|
|
- }
|
|
|
+ },
|
|
|
+ //列保存触发
|
|
|
+ async saveColumn() {
|
|
|
+ const inSave = await this.saveColumnData(
|
|
|
+ this.getColumnName(43),
|
|
|
+ this.option
|
|
|
+ );
|
|
|
+ if (inSave) {
|
|
|
+ this.$message.success("保存成功");
|
|
|
+ //关闭窗口
|
|
|
+ this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|