Bonus-AI-LargeScreen/src/views/updateIDCard/updateIDCard.vue

107 lines
3.3 KiB
Vue
Raw Normal View History

2024-07-26 18:26:40 +08:00
<template>
<div class="main">
<largeScreenHeader></largeScreenHeader>
<div class="mainContent">
<div class="boxLevelOne sideBoxLevelOne">
<div class="boxLevelTwo boxLevelTwoFst">
<boxHeader :boxHeaderText="'识别结果统计'"></boxHeader>
<pieIDResultCount ref="pieData"></pieIDResultCount>
2024-07-26 18:26:40 +08:00
</div>
<div class="boxLevelTwo">
<boxHeader :boxHeaderText="'识别结果展示'"></boxHeader>
<listIDResultShow ref="listResult"></listIDResultShow>
2024-07-26 18:26:40 +08:00
</div>
</div>
<div class="boxLevelOne midBoxLevelOne">
<boxHeader :boxHeaderText="'OCR识别应用'"></boxHeader>
2024-07-29 17:49:56 +08:00
<checkChangeUrl :thisUrlPage="'1'"></checkChangeUrl>
<midPic></midPic>
<IDrecognition @custom-event="updateOtherData"></IDrecognition>
2024-07-26 18:26:40 +08:00
</div>
<div class="boxLevelOne sideBoxLevelOne">
<div class="boxLevelTwo boxLevelTwoFst">
<boxHeader :boxHeaderText="'识别结果统计'"></boxHeader>
<rectangleIDInvokeCount ref="rectData"></rectangleIDInvokeCount>
2024-07-26 18:26:40 +08:00
</div>
<div class="boxLevelTwo boxLevelTwoSnd">
<boxHeader :boxHeaderText="'服务响应监控'"></boxHeader>
<listSevericeResWatch ref="listWatch"></listSevericeResWatch>
2024-07-26 18:26:40 +08:00
</div>
</div>
</div>
</div>
</template>
<script>
2024-07-29 17:49:56 +08:00
2024-07-26 18:26:40 +08:00
import largeScreenHeader from '@/components/LargeScreen'
import boxHeader from '@/views/components/boxHeader.vue'
2024-07-29 17:49:56 +08:00
import IDrecognition from '@/views/components/IDrecognition.vue'
import checkChangeUrl from '@/views/components/checkChangeUrl.vue'
2024-07-26 18:26:40 +08:00
import pieIDResultCount from '@/views/updateIDCard/pieIDResultCount.vue'
import RectangleIDInvokeCount from '@/views/updateIDCard/rectangleIDInvokeCount.vue'
2024-07-29 17:49:56 +08:00
import listIDResultShow from '@/views/updateIDCard/listIDResultShow.vue'
import listSevericeResWatch from '@/views/updateIDCard/listSevericeResWatch.vue'
import midPic from '@/views/updateIDCard/midPic.vue'
2024-07-26 18:26:40 +08:00
export default {
components: {
RectangleIDInvokeCount,
boxHeader,
largeScreenHeader,
pieIDResultCount,
2024-07-29 17:49:56 +08:00
IDrecognition,
listIDResultShow,
listSevericeResWatch,
checkChangeUrl,
midPic
2024-07-26 18:26:40 +08:00
},
props: {
value: [String, Object, Array],
// 图片数量限制
// 大小限制(MB)
fileSize: {
type: Number,
default: 5,
},
// 文件类型, 例如['png', 'jpg', 'jpeg']
fileType: {
type: Array,
default: () => ["png", "jpg", "jpeg"],
},
// 是否显示提示
isShowTip: {
type: Boolean,
default: true,
},
showSize: {
type: Boolean,
default: true,
},
},
computed: {
// 是否显示提示
showTip() {
return this.isShowTip && (this.fileType || this.fileSize);
},
},
data() {
2024-07-29 17:49:56 +08:00
return {
2024-07-30 16:19:07 +08:00
dataList: [],
2024-07-26 18:26:40 +08:00
}
},
methods: {
updateOtherData(data) {
this.$refs.pieData.getPieDataID();
this.$refs.listResult.getListSearchData();
this.$refs.rectData.getRectIDData();
this.$refs.listWatch.getListWatchData();
}
}
2024-07-26 18:26:40 +08:00
}
</script>
<style scoped>
@import url('./../../assets/styles/updateIDCard.css');
</style>