| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.getDyColumn() |
| | | if (this.$route.path.concat("equipment")) { |
| | | this.getDyColumn() |
| | | } |
| | | if (this.showColumnsType == 'transfer') { |
| | | // 显隐列初始默认隐藏列 |
| | | for (let item in this.columns) { |
| | |
| | | }, |
| | | methods: { |
| | | getDyColumn() { |
| | | if (this.$route.path.concat("equipment")) { |
| | | // 查询动态列 |
| | | let params = { |
| | | tableName: 't_monitor' |
| | | } |
| | | getDynamicColumnList(params).then(res => { |
| | | this.dynamicColumnList = res.data |
| | | }) |
| | | // 查询动态列 |
| | | let params = { |
| | | tableName: 't_monitor' |
| | | } |
| | | getDynamicColumnList(params).then(res => { |
| | | this.dynamicColumnList = res.data |
| | | }) |
| | | }, |
| | | addDynamicColumn() { |
| | | this.showDynamicColumn = true |