Contract_Manage_Vue/src/App.vue
2025-10-16 14:53:58 +08:00

214 lines
4.5 KiB
Vue

<template>
<div id="app">
<router-view />
<theme-picker />
</div>
</template>
<script>
import ThemePicker from "@/components/ThemePicker";
export default {
name: "App",
components: { ThemePicker },
metaInfo() {
return {
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
titleTemplate: title => {
return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
}
}
}
};
</script>
<style>
#app {
transform: scale(0.7, 0.7); /* 缩放88% */
transform-origin: top left; /* 缩放原点 */
width: 142.86%; /* 1 / 0.88 = 1.136,放大宽度以避免缩放后内容溢出 */
height: 142.86%; /* 1 / 0.88 = 1.136,放大高度以避免缩放后内容溢出 */
}
.procurement-contract * {
font-size: 18px !important; /* 设置字体大小 */
}
#app .theme-picker {
display: none;
}
@font-face {
font-family: 'font-pfsc-reg';
src: url('./assets/font/PingFang Regular.ttf');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'font-pfsc-med';
src: url('./assets/font/PingFang Medium.ttf');
font-weight: normal;
font-style: normal;
}
.flexRowStart {
display: flex;
flex-direction: row;
align-items: flex-start;
flex-shrink: 0;
}
.flexRowCenter {
display: flex;
flex-direction: row;
align-items: center;
flex-shrink: 0;
}
.flexRowEnd {
display: flex;
flex-direction: row;
align-items: flex-end;
flex-shrink: 0;
}
.flexRowStartCenter {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
flex-shrink: 0;
}
.flexCenterCenter {
display: flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
}
.flexEndCenter {
display: flex;
justify-content: flex-end;
align-items: center;
flex-shrink: 0;
}
.flexRowCenterCenter {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
flex-shrink: 0;
}
.flexColumnCenterCenter {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex-shrink: 0;
}
.flexColumn0Center {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
flex-shrink: 0;
}
.flexSpaceBetweenCenter {
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
}
.flexSpaceBetweenStart {
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-shrink: 0;
}
.flexSpaceBetweenEnd {
display: flex;
justify-content: space-between;
align-items: flex-end;
flex-shrink: 0;
}
.pubBtn {
width: 80px;
height: 34px;
background: #B92D2C;
border-radius: 8px;
font-family: Microsoft YaHei;
font-weight: 400;
font-size: 16px;
color: #FFFFFF;
margin-right: 10px;
cursor: pointer;
}
.downText {
position: fixed;
right: 40px;
top: 40px;
background-color: #FFFFFF;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .12), 0 0 3px 0 rgba(0, 0, 0, .04);
height: 140px;
width: 500px;
border-radius: 15px;
z-index: 9000;
}
.closeDownText {
position: absolute;
right: 15px;
top: 15px;
z-index: 10000;
font-size: 16px;
}
.el-select-dropdown__item {
font-size: 12px !important; /* 调整字号大小 */
}
.el-select-dropdown__item.selected {
font-size: 12px !important; /* 确保选中的项也调整字号 */
}
/* 自定义 el-table 滚动条样式 */
.el-table__body-wrapper::-webkit-scrollbar {
width: 20px !important; /* 垂直滚动条的宽度 */
height: 20px !important; /* 水平滚动条的高度 */
}
.el-scrollbar__wrap::-webkit-scrollbar{
width: 20px;
height: 20px;
}
.el-table__body-wrapper::-webkit-scrollbar-thumb {
background-color: #bfbfbf; /* 滚动条的颜色 */
border-radius: 8px; /* 滚动条圆角 */
border: 4px solid transparent !important; /* 增加滚动条的宽度 */
background-clip: padding-box;
}
.el-table__body-wrapper::-webkit-scrollbar-thumb:hover {
background-color: #999; /* 滚动条悬停时的颜色 */
}
.el-table__body-wrapper::-webkit-scrollbar-track {
background-color: #f5f5f5; /* 滚动条轨道的颜色 */
border-radius: 8px; /* 滚动条轨道圆角 */
}
/* For Chrome, Safari, Edge, Opera */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* For Firefox */
input[type='number'] {
-moz-appearance: textfield;
}
.custom-clear-icon {
cursor: pointer;
color: #409eff;
margin-left: 8px;
position: relative;
top: -8px;
}
</style>