Files
Mediation-Frontend/src/views/index.vue
T

150 lines
3.0 KiB
Vue
Raw Normal View History

2024-01-05 16:50:43 +08:00
<template>
<div class="app-container home">
2024-02-28 18:13:28 +08:00
<div class="header">
<div class="iconTitle"></div>
<div class="headerMain">我的待办</div>
</div>
<div class="homeMain">
2024-03-01 18:14:15 +08:00
<div
class="cardList"
v-for="(item, index) in pendingTasks"
:key="index"
@click="pushPage(item.caseFlowId)"
>
<div class="badge">{{ item.caseCount }}</div>
2024-02-28 18:13:28 +08:00
<div class="cardMain">
2024-03-01 18:14:15 +08:00
<img class="iconImg" :src="iconHead + item.fileName" alt="" />
2024-02-28 18:13:28 +08:00
</div>
2024-03-01 18:14:15 +08:00
<div class="cardMain1">
2024-02-28 18:13:28 +08:00
<div class="imgTitle">{{ item.caseStatusName }}</div>
</div>
</div>
</div>
2024-01-05 16:50:43 +08:00
</div>
</template>
<script>
2024-02-28 18:13:28 +08:00
import { todoCount } from "@/api/system/homepage.js";
2024-01-05 16:50:43 +08:00
export default {
name: "Index",
data() {
return {
// 版本号
2024-02-28 18:13:28 +08:00
version: "3.8.6",
pendingTasks: [], //案件代办状态
2024-03-01 18:14:15 +08:00
iconHead: process.env.VUE_APP_BASE_API
2024-01-05 16:50:43 +08:00
};
},
2024-03-05 16:29:54 +08:00
watch: {
$route(val) {
if (val) {
this.gettodoCount();
}
}
},
2024-02-28 18:13:28 +08:00
created() {
this.gettodoCount();
},
2024-01-05 16:50:43 +08:00
methods: {
goTarget(href) {
window.open(href, "_blank");
2024-02-28 18:13:28 +08:00
},
// 查询代办状态
gettodoCount() {
todoCount({}).then((res) => {
2024-03-01 18:14:15 +08:00
this.pendingTasks = res.data.toDoCountList;
console.log(res.data.toDoCountList, "this.pendingTasks");
2024-02-28 18:13:28 +08:00
});
},
// 点击待办按钮跳转
pushPage(status) {
2024-03-01 18:14:15 +08:00
this.$router.push({
path: "/caseManagement/caseManagement/caseList",
query: { caseFlowId: status + "" },
});
},
2024-02-28 18:13:28 +08:00
},
2024-01-05 16:50:43 +08:00
};
</script>
<style scoped lang="scss">
2024-02-28 18:13:28 +08:00
.home {
font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
color: #676a6c;
overflow-x: hidden;
background-color: #f1f1f1;
height: 100vh;
2024-01-05 16:50:43 +08:00
2024-02-28 18:13:28 +08:00
.header {
width: 100%;
height: 80px;
display: flex;
align-items: center;
.iconTitle {
width: 5px;
height: 25px;
background-color: #0f5c9b;
margin-right: 25px;
}
.headerMain {
font-size: 20px;
}
}
.homeMain {
width: 100%;
display: flex;
flex-wrap: wrap;
.cardList {
width: 13%;
height: 200px;
border-radius: 30px;
background-color: #ffffff;
position: relative;
margin-right: 38px;
margin-bottom: 30px;
2024-03-04 17:41:52 +08:00
cursor: pointer;
2024-02-28 18:13:28 +08:00
.badge {
width: 50px;
height: 30px;
text-align: center;
line-height: 30px;
font-size: 18px;
font-weight: 500;
2024-03-01 18:14:15 +08:00
color: red;
2024-02-28 18:13:28 +08:00
border-radius: 10px 30px 10px 30px;
2024-03-01 18:14:15 +08:00
background-color: #1296DB;
2024-02-28 18:13:28 +08:00
position: absolute;
right: 0;
}
.cardMain {
width: 100%;
display: flex;
justify-content: center;
2024-03-01 18:14:15 +08:00
margin-top: 40px;
2024-02-28 18:13:28 +08:00
.iconImg {
width: 100px;
height: 110px;
}
2024-03-01 18:14:15 +08:00
}
.cardMain1 {
width: 100%;
display: flex;
justify-content: center;
2024-02-28 18:13:28 +08:00
.imgTitle {
font-size: 15px;
font-weight: 900;
}
}
}
}
}
2024-01-05 16:50:43 +08:00
</style>