From c1d3065ba059da09ca951d8095d1a4634bb083a7 Mon Sep 17 00:00:00 2001 From: yiming Date: Mon, 9 May 2022 14:28:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=98=E7=82=B9=E7=95=8C=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E8=A1=8C=E5=8F=B7=E6=8E=92=E5=88=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/checkManage/Subsection.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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));