Pārlūkot izejas kodu

修改测试文件类型

plg 8 mēneši atpakaļ
vecāks
revīzija
86b46918c8

+ 4 - 2
vue/src/views/Category.vue

@@ -64,10 +64,10 @@ const startFun = () => {
     .post(`/v1/record/create`, formData)
     .then((res) => {
       console.log(res);
-      debugger;
+      disableFlag.value = false;
       //如果结果是返回的是正确的
       if (res?.data?.code == 200) {
-        disableFlag.value = false;
+
         flag.value = res.data.data;
         //   chartList = arr2;
         //开始调用 //查询记录详情
@@ -244,6 +244,8 @@ onMounted(() => {
     height: 40px;
     // line-height: 40px;
     padding-left: 20px;
+    display: flex;
+    align-items: center;
   }
 }
 </style>

+ 4 - 3
vue/src/views/Direction.vue

@@ -64,10 +64,9 @@ const startFun = () => {
     .post(`/v1/record/create`, formData)
     .then((res) => {
       console.log(res);
-      debugger;
-      //如果结果是返回的是正确的
+
+      disableFlag.value = false;
       if (res?.data?.code == 200) {
-        disableFlag.value = false;
         flag.value = res.data.data;
         //   chartList = arr2;
         //开始调用 //查询记录详情
@@ -245,6 +244,8 @@ onMounted(() => {
     height: 40px;
     word-break: break-all;
     padding-left: 20px;
+    display: flex;
+    align-items: center;
   }
 }
 </style>

+ 9 - 7
vue/src/views/DirectionAndCategory.vue

@@ -65,10 +65,10 @@ const startFun = () => {
     .post(`/v1/record/create`, formData)
     .then((res) => {
       console.log(res);
-      debugger;
+      disableFlag.value = false;
       //如果结果是返回的是正确的
       if (res?.data?.code == 200) {
-        disableFlag.value = false;
+
         flag.value = res.data.data;
         //   chartList = arr2;
         //开始调用 //查询记录详情
@@ -102,9 +102,9 @@ const queryDetail = () => {
         //查看是否包含;
         //判断字符串中是否包含分号 ;
         let a =res.data.data.Result;
-       
-        if( a.inclides(';')){
-            let b = res.data.data.Result
+       debugger;
+        if( a.includes(';')){
+            let b = res.data.data.Result.split(';')
             car_type.value = b[0];
             direction_run.value =b[1];
         }else{
@@ -208,9 +208,9 @@ onMounted(() => {
         <div class="start_pg">
           <el-button @click="startFun" :disabled="disableFlag">开始检测</el-button>
         </div>
-        <div></div>
+        <div>检测结果:</div>
         <div class="run_dir">
-          <div>检测结果:</div>
+          <div>车辆类别</div>
           <div class="run_input">{{ car_type }}</div>
         </div>
         <div class="run_dir">
@@ -261,6 +261,8 @@ onMounted(() => {
     height: 40px;
     // line-height: 40px;
     padding-left: 20px;
+    display: flex;
+    align-items: center;
   }
 }
 </style>

+ 1 - 1
vue/src/views/RecordList.vue

@@ -116,7 +116,7 @@ const typeFunformatter=(val:any)=>{
     return '车辆分类与方向检测'
   }else if(val.TaskType=='car_direction'){
     return '车辆方向检测'
-  }else if(val.TaskType=='car_classification '){
+  }else if(val.TaskType=='car_classification'){
     return '车辆分类检测'
   }else{
     return ''