孙钊宁 2 lat temu
rodzic
commit
9b6621471c
1 zmienionych plików z 6 dodań i 8 usunięć
  1. 6 8
      src/views/Home/Drawer.vue

+ 6 - 8
src/views/Home/Drawer.vue

@@ -1,5 +1,4 @@
 <template>
- 
   <el-drawer
     ref="drawerRef"
     v-model="props.visible"
@@ -33,7 +32,7 @@
       <el-table-column label="测试状态" align="center">
         <template #default="scope">
           <div class="font-bold">
-            {{ scope.row.conclusion==0?'成功':'失败' }}
+            {{ scope.row.conclusion == 0 ? "成功" : "失败" }}
           </div>
         </template>
       </el-table-column>
@@ -41,7 +40,7 @@
       <el-table-column prop="remark2" label="备注二" align="center" />
       <el-table-column label="创建时间" align="center" width="170">
         <template #default="scope">
-          <div >
+          <div>
             {{ dayjs(scope.row.dateTime).format("YYYY-MM-DD HH:mm:ss") }}
           </div>
         </template>
@@ -63,17 +62,16 @@
 
 <script setup>
 import { productInformationList } from "@/api/login";
-import { getCurrentInstance, onMounted, ref } from "vue";
+import { onMounted, ref } from "vue";
 import dayjs from "dayjs";
 const props = defineProps({
   testId: {
     type: String,
     default: "",
   },
-  deviceId:{
+  deviceId: {
     type: String,
-    default: '',
-
+    default: "",
   },
   visible: {
     type: Boolean,
@@ -93,7 +91,7 @@ const getList = async () => {
   let { code, data } = await productInformationList({
     ...page.value,
     testId: props.testId,
-    deviceId:props.deviceId
+    deviceId: props.deviceId,
   });
   loading.value = false;
   if (code != 200) return;