diff --git a/src/components/SqlTable/index.vue b/src/components/SqlTable/index.vue index 4f23a89..2bd60b0 100644 --- a/src/components/SqlTable/index.vue +++ b/src/components/SqlTable/index.vue @@ -36,8 +36,7 @@ {{ col }} -
- {{ cellValue }} -
+ >{{ cellText }}
No cell selected to view @@ -113,7 +113,7 @@ :data-set="result" :time="time" :selected-column-index="selectedCell ? +selectedCell.dataset.col : 0" - :rowIndex="selectedCell ? +selectedCell.dataset.record : 0" + :rowIndex="selectedCell ? +selectedCell.dataset.row : 0" @updateSelectedCell="onUpdateSelectedCell" />
@@ -277,8 +277,8 @@ export default { toggleViewRecord () { if (this.viewRecord) { this.defaultSelectedCell = { - row: (this.$refs.recordView.currentRowIndex + this.pageSize) % this.pageSize, - col: this.selectedCell ? +this.selectedCell.dataset.row : 0 + row: this.$refs.recordView.currentRowIndex, + col: this.selectedCell ? +this.selectedCell.dataset.col : 0 } this.defaultPage = Math.ceil( (this.$refs.recordView.currentRowIndex + 1) / this.pageSize