|
@@ -15,6 +15,7 @@
|
|
|
@on-load="onLoad"
|
|
|
:table-loading="loading"
|
|
|
@saveColumn="saveColumn"
|
|
|
+ @resetColumn="resetColumn"
|
|
|
@expand-change="expandChange"
|
|
|
>
|
|
|
<template slot-scope="scope" slot="expand">
|
|
@@ -28,7 +29,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="创建时间" prop="createTime" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
- <el-table-column label="创建人" prop="createUser" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
+ <el-table-column label="创建人" prop="createUserName" align="center" show-overflow-tooltip width="200"></el-table-column>
|
|
|
</el-table>
|
|
|
</template>
|
|
|
<template slot="corpIdSearch">
|
|
@@ -65,8 +66,9 @@ export default {
|
|
|
loading: false,
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
- this.option = option
|
|
|
+ async created() {
|
|
|
+ // this.option = option
|
|
|
+ this.option = await this.getColumnData(this.getColumnName(53), option);
|
|
|
let i = 0;
|
|
|
this.option.column.forEach(item => {
|
|
|
if (item.search) i++
|
|
@@ -123,7 +125,29 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- async saveColumn() {},
|
|
|
+ async saveColumn() {
|
|
|
+ const inSave = await this.saveColumnData(
|
|
|
+ this.getColumnName(53),
|
|
|
+ this.option
|
|
|
+ );
|
|
|
+ if (inSave) {
|
|
|
+ this.$message.success("保存成功");
|
|
|
+ //关闭窗口
|
|
|
+ this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ async resetColumn() {
|
|
|
+ const inSave = await this.delColumnData(
|
|
|
+ this.getColumnName(53),
|
|
|
+ option
|
|
|
+ );
|
|
|
+ if (inSave) {
|
|
|
+ this.$message.success("重置成功");
|
|
|
+ this.option = option;
|
|
|
+ //关闭窗口
|
|
|
+ this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|