Browse Source

fix:修改生产履历设备数据页面

luoxiao 1 tháng trước cách đây
mục cha
commit
11475d9052
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      src/views/pro/traceability/components/testData.vue

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

@@ -152,6 +152,10 @@ option.value = Object.assign(option.value, {
       prop: "creator",
     },
     {
+      label: "测试设备",
+      prop: "deviceName",
+    },
+    {
       label: "物料名称",
       prop: "materialName",
     },
@@ -183,9 +187,9 @@ const lookData = (row) => {
   testData(row.processId, row.deviceNo, currentPage.value.toString()).then(
     (res) => {
       if (res.code === "200") {
-        tableData.value = JSON.parse(res.testData);
-        pageTotal.value = res.data.total;
         dialogVisible.value = true;
+        tableData.value = JSON.parse(res.data.testData);
+        pageTotal.value = res.data.total;
       }
     }
   );