读取配置是否展示车侧身或车牌照片

main
gaoshuguang 2 years ago
parent 56cce484ba
commit c65e44a37c

@ -2,7 +2,13 @@ package com.nmgs.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nmgs.config.Constant;
import com.nmgs.entity.Res;
import com.nmgs.service.EntranceQueryService;
import com.nmgs.util.PropertiesUtil;
import com.nmgs.util.UuidUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@ -16,9 +22,20 @@ import java.util.Map;
* @description:
*/
@RestController
@Slf4j
public class EntranceQueryController {
@Resource
private EntranceQueryService entranceQueryService;
@PostMapping("/EntranceQuery/displayedSideImage")
public Res displayedSideImage() {
String uuid = UuidUtil.getUuid();
log.info("[uuid:{}]-查询当前系统是否展示车侧身照片", uuid);
String displayedSideImage = PropertiesUtil.getValue("displayedSideImage");
//displayedSideImage为空则为展示不为空且等于1不展示侧身照片展示车牌照片
boolean isValid= !StringUtils.isNotBlank(displayedSideImage) || !Constant.STR_ONE.equals(displayedSideImage);
log.info("[uuid:{}]-查询当前系统是否展示车侧身照片,结果为{}", uuid,isValid);
return Res.success(isValid);
}
@PostMapping("/EntranceQuery/getPage")
public IPage getPage(@RequestBody Map<String,Object> map) {
return entranceQueryService.getPage(map);

@ -5,7 +5,7 @@
<meta charset="UTF-8"/>
<title></title>
<script type="module" crossorigin src="./assets/index.e35b9e7a.js"></script>
<script type="module" crossorigin src="./assets/index.9f9b909a.js"></script>
<link rel="stylesheet" href="./assets/index.799f34c4.css">
</head>
<body>

@ -1,3 +1,4 @@
序号 日期 版本号 说明
1 2023年12月25日 1.0.0 初始版本号
2 2024年03月27日 1.0.1 读取配置是否展示车侧身或车牌照片

@ -5,7 +5,7 @@
<meta charset="UTF-8"/>
<title></title>
<script type="module" crossorigin src="./assets/index.e35b9e7a.js"></script>
<script type="module" crossorigin src="./assets/index.9f9b909a.js"></script>
<link rel="stylesheet" href="./assets/index.799f34c4.css">
</head>
<body>

@ -1,3 +1,4 @@
序号 日期 版本号 说明
1 2023年12月25日 1.0.0 初始版本号
2 2024年03月27日 1.0.1 读取配置是否展示车侧身或车牌照片

@ -5,7 +5,7 @@
<meta charset="UTF-8"/>
<title></title>
<script type="module" crossorigin src="./assets/index.e35b9e7a.js"></script>
<script type="module" crossorigin src="./assets/index.9f9b909a.js"></script>
<link rel="stylesheet" href="./assets/index.799f34c4.css">
</head>
<body>

@ -1,3 +1,4 @@
序号 日期 版本号 说明
1 2023年12月25日 1.0.0 初始版本号
2 2024年03月27日 1.0.1 读取配置是否展示车侧身或车牌照片

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,31 @@
<!DOCTYPE html>
<!--<html lang="en" class="dark">-->
<html lang="en" class="light">
<head>
<meta charset="UTF-8"/>
<title></title>
<script type="module" crossorigin src="./assets/index.9f9b909a.js"></script>
<link rel="stylesheet" href="./assets/index.799f34c4.css">
</head>
<body>
<div id="app">
<div class="loading">
<div class="loading-wrap">
<div class="loading-dots">
<span class="dot dot-spin">
<i></i>
<i></i>
<i></i>
<i></i>
</span>
</div>
<div class="loading-title">
正在缓冲...
</div>
</div>
</div>
</div>
</body>
</html>

@ -11,4 +11,5 @@ export const getJurisdictionStaList = data => post("/ZCDataQuery/common/getJuris
export const getExportPage = data => post("/ZCDataQuery/ExportQuery/getPage", data)
export const selectOverLimitRatio = data => post("/ZCDataQuery/selectOverLimitRatio", data)
export const displayedSideImage = data => post("/ZCDataQuery/EntranceQuery/displayedSideImage", data)

@ -289,8 +289,8 @@
</el-row>
<el-divider/>
<el-row>
<el-col :span="12" v-loading="platePicLoad">
<span style="font-size: 15px;">
<el-col :span="12" v-loading="platePicLoad" v-if="isDisplayed">
<span style="font-size: 15px;" >
车侧身照片</span>
<el-image style="width: 400px; height: 300px;left: 80px" :src="platePic"
:zoom-rate="1.2"
@ -300,6 +300,17 @@
<br/>
未查询到车侧身照片</span>
</el-col>
<el-col :span="12" v-loading="platePicLoad" v-if="!isDisplayed">
<span style="font-size: 15px;" >
车牌照片</span>
<el-image style="width: 400px; height: 300px;left: 80px" :src="platePic"
:zoom-rate="1.2"
:preview-src-list="platePicList"
v-if="showPlatePic"/>
<span v-if="notPlatePic" style="font-size: 15px;left: 50px">
<br/>
未查询到车牌照片</span>
</el-col>
<el-col :span="12" v-loading="shortVideoLoad">
<span style="font-size: 15px;">短视频</span>
<!-- <br v-if="showShortVideo"/>-->
@ -466,7 +477,12 @@
<script>
// import zhCn from 'element-plus/lib/locale/lang/zh-cn'
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import {getCarTypeList, getEntrancePage, getJurisdictionStaList} from "../../util/api/NoParkOverLoad/api.js";
import {
displayedSideImage,
getCarTypeList,
getEntrancePage,
getJurisdictionStaList
} from "../../util/api/NoParkOverLoad/api.js";
import pro from '../../util/tool.js';
import {CloseBold, Delete, Edit, Reading, Select, Switch, View, ZoomIn} from '@element-plus/icons-vue'
import {ElMessage} from "element-plus";
@ -481,6 +497,8 @@ export default {
data() {
return {
isDisplayed:false,
videoSrc:'',
carFrontPic: '',
carFrontPicList: [],
@ -677,7 +695,16 @@ export default {
},
queryPlatePic() {
this.platePicLoad = true;
const platepic = this.viewThisRow.BAK8;
let platepic ='';
let imgType ='';
if (this.isDisplayed){
platepic = this.viewThisRow.BAK8;
imgType='1'
}else {
platepic = this.viewThisRow.vehicleSignId;
imgType='15'
}
// console.log(platepic)
if (platepic === null || platepic === '' || platepic === undefined || platepic === 'undefined') {
this.notPlatePic = true;
@ -686,7 +713,7 @@ export default {
}
queryImageInfo({
"listNO": platepic,
"imgType": "1"
"imgType": imgType
}).then((res) => {
if (res.code === 0) {
// console.log(res)
@ -844,6 +871,11 @@ export default {
getCarTypeList().then((res) => {
this.CarTypeList = res;
})
displayedSideImage().then((res) => {
this.isDisplayed = res.data;
})
// document.documentElement.style.setProperty('--el-bg-color', '#2f39a4')

@ -31,6 +31,7 @@
</el-menu>
</el-col>
<el-col :span="22">
<router-view>
</router-view>
@ -42,8 +43,11 @@
<script>
// import tags from '../tags/tags';
export default {
name: "index",
components: {
},
data() {
return {

@ -0,0 +1,63 @@
<template>
<div class="tags-container">
<div
v-for="(tag, index) in tags"
:key="index"
class="tag"
@click="closeTag(index)"
>
{{ tag }}
</div>
<button @click="addTag"></button>
</div>
</template>
<script>
export default {
data() {
return {
tags: [],
newTag: "",
};
},
methods: {
addTag() {
if (this.newTag && !this.tags.includes(this.newTag)) {
this.tags.push(this.newTag);
this.newTag = "";
}
},
closeTag(index) {
if (index > 0) {
this.tags.splice(index, 1);
this.tags.forEach((tag, i) => {
if (i >= index) {
this.$set(this.tags, i, tag);
}
});
} else {
this.tags.shift();
}
},
},
};
</script>
<style scoped>
.tags-container {
display: flex;
flex-wrap: wrap;
}
.tag {
background-color: #f1f1f1;
border: 1px solid #ccc;
padding: 5px 10px;
margin: 2px;
cursor: pointer;
}
.tag:hover {
background-color: #e1e1e1;
}
</style>
Loading…
Cancel
Save