|
|
@@ -14,6 +14,7 @@
|
|
|
@refresh-change="refreshChange"
|
|
|
@on-load="onLoad"
|
|
|
:table-loading="loading"
|
|
|
+ @saveColumn="saveColumn"
|
|
|
>
|
|
|
<template slot="menuLeft">
|
|
|
<el-button type="info" size="small">报表</el-button>
|
|
|
@@ -38,7 +39,7 @@
|
|
|
type="text"
|
|
|
icon="el-icon-view"
|
|
|
size="small"
|
|
|
- @click.stop="beforeOpenPage(scope.row,1)"
|
|
|
+ @click.stop="beforeOpenPage(scope.row, 1)"
|
|
|
>查看
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
@@ -79,7 +80,7 @@ export default {
|
|
|
dicData: []
|
|
|
},
|
|
|
search: {},
|
|
|
- option: option,
|
|
|
+ option:{},
|
|
|
parentId: 0,
|
|
|
dataList: [],
|
|
|
page: {
|
|
|
@@ -93,7 +94,8 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
components: { detailPage },
|
|
|
- created() {
|
|
|
+ async created() {
|
|
|
+ this.option = await this.getColumnData(this.getColumnName(10), option);
|
|
|
let _this = this;
|
|
|
this.option.column.forEach(e => {
|
|
|
if (e.prop == "exchangeRate") {
|
|
|
@@ -137,14 +139,14 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
//查看跳转页面
|
|
|
- beforeOpenPage(row,status) {
|
|
|
+ beforeOpenPage(row, status) {
|
|
|
this.detailData = {
|
|
|
id: row.id,
|
|
|
status: status
|
|
|
};
|
|
|
this.show = false;
|
|
|
},
|
|
|
- editOpen(row,status) {
|
|
|
+ editOpen(row, status) {
|
|
|
this.detailData = {
|
|
|
id: row.id,
|
|
|
status: status
|
|
|
@@ -189,6 +191,17 @@ export default {
|
|
|
goBack() {
|
|
|
this.detailData = this.$options.data().detailData;
|
|
|
this.show = true;
|
|
|
+ },
|
|
|
+ async saveColumn() {
|
|
|
+ const inSave = await this.saveColumnData(
|
|
|
+ this.getColumnName(10),
|
|
|
+ this.option
|
|
|
+ );
|
|
|
+ if (inSave) {
|
|
|
+ this.$message.success("保存成功");
|
|
|
+ //关闭窗口
|
|
|
+ this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|