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