Explorar o código

fix:修改履历测试数据分页

luoxiao hai 2 semanas
pai
achega
08cb5b2740
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  1. 6 6
      src/views/pro/traceability/components/testData.vue

+ 6 - 6
src/views/pro/traceability/components/testData.vue

@@ -42,7 +42,7 @@
     <el-pagination
       background
       :page-size="20"
-      :pager-count="8"
+      :pager-count="5"
       layout="->,prev, pager, next"
       :total="pageTotal"
       @current-change="handlePageChange"
@@ -167,11 +167,11 @@ const dialogVisible = ref(false);
 const tableData = ref([]);
 const lookData = (row) => {
   selectRow.value = row;
-  if (row.testData && "[]" !== row.testData) {
-    tableData.value = JSON.parse(row.testData);
-    dialogVisible.value = true;
-    return;
-  }
+  // if (row.testData && "[]" !== row.testData) {
+  //   tableData.value = JSON.parse(row.testData);
+  //   dialogVisible.value = true;
+  //   return;
+  // }
   testData(row.processId, row.deviceNo, currentPage.value.toString()).then(
     (res) => {
       if (res.code === "200") {