| | |
| | | submitBtn: false, |
| | | emptyBtn: false, |
| | | height: 300, |
| | | column: this.formColumn(this.componentVO.tableDefineVO.cols[0]) |
| | | column: this.getColumnData(0) |
| | | } |
| | | }, |
| | | slotData() { |
| | | return this.formColumn(this.componentVO.tableDefineVO.cols[0]) |
| | | return this.getColumnData(0) |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | message: `请输入${item.text}!`, |
| | | trigger: "blur" |
| | | }] |
| | | } |
| | | }) |
| | | }; |
| | | }); |
| | | }, |
| | | |
| | | //数据判空 |
| | | getColumnData(index) { |
| | | if (this.componentVO && this.componentVO.tableDefineVO && this.componentVO.tableDefineVO.cols && this.componentVO.tableDefineVO.cols.length > 0) { |
| | | return this.formColumn(this.componentVO.tableDefineVO.cols[index]) |
| | | } else { |
| | | return null; |
| | | } |
| | | }, |
| | | |
| | | buttonClick(item) { |
| | | console.log(item.id) |
| | | }, |