Files
his/openhis-ui-vue3/src/views/index.vue
2025-10-16 17:38:49 +08:00

131 lines
2.4 KiB
Vue

<template>
<div class="container">
<div class="awaitingBtn">
<el-button @click="awaitingMedicineBtn">效期预警 <span>{{total}}</span></el-button>
</div>
<!-- <div class="logo"> -->
<!-- <img src="/src/assets/images/jlau.jpg" /> -->
<!-- </div> -->
</div>
</template>
<script setup name="Index">
import {
getExpirationWarning,
} from "./medicationmanagement/statisticalManagement/statisticalManagent";
const router = useRouter();
const version = ref('3.8.7');
const total = ref(0)
function awaitingMedicineBtn(){
router.push({ path: '/medicationmanagement/statisticalManagement/earlyWarning' })
}
function goTarget(url) {
window.open(url, '__blank');
}
function getExpirationWarningCount(){
getExpirationWarning({pageNo: 1,pageSize: 10}).then((res) => {
total.value = res.data.total||0
});
}
getExpirationWarningCount()
</script>
<style scoped lang="scss">
.home {
blockquote {
padding: 10px 20px;
margin: 0 0 20px;
font-size: 17.5px;
border-left: 5px solid #eee;
}
hr {
margin-top: 20px;
margin-bottom: 20px;
border: 0;
border-top: 1px solid #eee;
}
.col-item {
margin-bottom: 20px;
}
ul {
padding: 0;
margin: 0;
}
font-family: 'open sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 13px;
color: #676a6c;
overflow-x: hidden;
ul {
list-style-type: none;
}
h4 {
margin-top: 0px;
}
h2 {
margin-top: 10px;
font-size: 26px;
font-weight: 100;
}
p {
margin-top: 10px;
b {
font-weight: 700;
}
}
.update-log {
ol {
display: block;
list-style-type: decimal;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0;
margin-inline-end: 0;
padding-inline-start: 40px;
}
}
}
.container {
display: flex;
justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */
height: 70vh; /* 确保容器高度至少为视口高度 */
width: 100%;
}
.awaitingBtn{
.el-button{
border: 1px #166773 solid;
span{
color: red;
margin-left: 5px;
}
}
.el-button:hover{
border: 1px #166773 solid;
color: #166773;
span{
color: red;
margin-left: 5px;
}
}
position: absolute;
top:20px;
left: 20px;
}
.logo {
width: 1000px;
margin: 0 auto;
background: url(../assets/images/logo_bg.jpg) no-repeat right bottom;
overflow: hidden;
}
</style>