gz-att-web/src/views/dashboard/topTwo.vue

110 lines
2.6 KiB
Vue
Raw Normal View History

<template>
2025-01-03 15:30:58 +08:00
<div class="content">
<div class="content-box">
<div class="title-box">
2025-01-03 15:30:58 +08:00
<div style="margin-left: 10px;font-size: 22px;font-weight: bold;">当月轮休临时外出异常情况</div>
</div>
<div class="list-box">
2024-10-16 15:09:57 +08:00
<div class="listItem" style="background-color: #FFF7F1;" @click="toggleDialog(10)">
<div><img src="../../assets/img/take.png" width="24" height="24" alt=""></div>
<div>已处理数据</div>
2024-10-14 11:19:01 +08:00
<h2>{{pageData.processedData}}</h2>
</div>
2024-10-16 15:09:57 +08:00
<div class="listItem" style="background-color: #F7F8FA;" @click="toggleDialog(11)">
<div><img src="../../assets/img/unTake.png" width="24" height="24" alt=""></div>
<div>未处理数据</div>
2024-10-14 11:19:01 +08:00
<h2>{{pageData.unProcessedData}}</h2>
</div>
</div>
</div>
</div>
</template>
<script>
import * as echarts from 'echarts';
2024-10-14 11:19:01 +08:00
import { getHomePageData } from '@/api/dashboard'
export default {
components: {
2025-01-03 15:30:58 +08:00
},
name: 'topOne',
2024-10-14 11:19:01 +08:00
props: {
pageData: {
// required: true,
2024-10-22 15:34:01 +08:00
type: Object,
default:{
2025-01-03 15:30:58 +08:00
2024-10-22 15:34:01 +08:00
}
2024-10-14 11:19:01 +08:00
},
2025-01-03 15:30:58 +08:00
2024-10-14 11:19:01 +08:00
},
data() {
return {
pieCharts: null,
2024-10-14 11:19:01 +08:00
// pageData:{},
}
},
created() {
},
2025-01-03 15:30:58 +08:00
mounted() {
2024-10-14 11:19:01 +08:00
// this.getInitData()
},
methods: {
toggleDialog(v) {
2024-10-16 15:09:57 +08:00
if(v==10){
this.$emit('openDialog', { order: v, isExamine:'0'})
}else if(v==11){
this.$emit('openDialog', { order: v, isExamine:'1'})
}
2025-01-03 15:30:58 +08:00
},
},
}
</script>
<style lang="scss" scoped>
.content{
width: 100%;
height: 100%;
padding-top: 20px;
.content-box{
width: 100%;
height: 100%;
padding: 10px;
background-color: #fff;
border-radius: 10px;
}
.title-box{
width: 100%;
height: 30px;
display: flex;
justify-content: space-between;
align-items: center;
}
.list-box{
width: 100%;
height: 250px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.listItem{
width: 80%;
height: 70px;
display: flex;
align-items: center;
justify-content: space-between;
border-radius: 10px;
padding: 10px;
margin-bottom: 20px;
cursor: pointer;
}
}
2025-01-03 15:30:58 +08:00
}
</style>