diff --git a/src/views/checkManage/Subsection.vue b/src/views/checkManage/Subsection.vue index e8782e1..a2f22a1 100644 --- a/src/views/checkManage/Subsection.vue +++ b/src/views/checkManage/Subsection.vue @@ -9,7 +9,7 @@ :key="index" > - {{ getRandom(index, latticeRow, nums.row, total.row) }} + {{ getRandom(latticeRow + 1 -index, latticeRow, nums.row, total.row) }} @@ -22,15 +22,15 @@
-
+
- {{row}}-{{column}} + :id="`${shelveId}-${random.row[0] + random.row[1] - rowIndex - 1}-${column}`" + @click="tocheckPage(random.row[0] + random.row[1] - rowIndex - 1,column)"> + {{ random.row[0] + random.row[1] - rowIndex - 1}}-{{column}}
@@ -207,7 +207,8 @@ export default { }, // 获取行和列的范围数组 getRandomRow(val) { - return this.getRandom(val, this.latticeRow, this.nums.row, this.total.row).split(' - ').map(item => Number(item)); + console.log(this.latticeRow + 1 - val, this.latticeRow, this.nums.row, this.total.row) + return this.getRandom(this.latticeRow + 1 - val, this.latticeRow, this.nums.row, this.total.row).split(' - ').map(item => Number(item)); }, getRandomColumn(val) { return this.getRandom(val, this.latticeColumn, this.nums.column, this.total.column).split(' - ').map(item => Number(item));