123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- <template>
- <el-config-provider :locale="locale">
- <router-view v-slot="{ Component }">
- <keep-alive>
- <component :is="Component"/>
- </keep-alive>
- </router-view>
- </el-config-provider>
- </template>
- <script>
- import {defineComponent} from 'vue'
- import locale from 'element-plus/lib/locale/lang/zh-cn'
- import {useStore} from 'vuex'
- export default defineComponent({
- name: 'App',
- setup() {
- const store = useStore()
- let windowSize = getWindowSize()
- store.commit('app/setWindowSize', windowSize)
- store.commit('app/setJdt', {
- title: '数据上传',
- isOpen: false,
- abnormalClosing: false,
- })
- window.onresize = () => {
- store.commit('app/setWindowSize', getWindowSize())
- }
- return {
- locale,
- }
- },
- })
- function getWindowSize() {
- const w = window.innerWidth
- const h = window.innerHeight - 96
- return {w, h}
- }
- </script>
- <style>
- #app {
- font-family: Avenir, Helvetica, Arial, sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- color: #2c3e50;
- width: 100%;
- height: 100vh;
- font-size: 13px;
- }
- .ellipsis-text {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- .sex-icon {
- width: 15px;
- height: 15px;
- }
- .el-table .cell {
- padding-left: 4px;
- padding-right: 4px;
- }
- .el-header {
- padding: 0 14px;
- }
- .el-main {
- padding: 0 14px;
- }
- .el-table__body tr.current-row > td,
- .el-table--striped .el-table__body tr.el-table__row--striped.current-row td {
- background-color: #a7d3ff !important;
- }
- .el-input.is-disabled .el-input__inner {
- color: blue;
- }
- .icon-shangxiatuodong {
- cursor: move;
- font-size: 12px;
- }
- .shangxiatuodong {
- cursor: move;
- }
- .el-checkbox__inner {
- width: 16px;
- height: 16px;
- border: 1px solid #000;
- border-radius: 4px;
- }
- .axios-loading2 {
- animation: axiosloading 1s;
- background-image: url('/src/assets/images/loading.gif');
- -webkit-background-image: url('/src/assets/images/loading.gif');
- background-repeat: no-repeat;
- background-position: center;
- }
- .el-dialog__header {
- border-bottom: 1px solid #ebeef5;
- background-color: #f8f8f8;
- border-radius: 4px;
- }
- .el-dialog {
- border-radius: 4px;
- }
- @keyframes axiosloading {
- 0% {
- opacity: 0;
- }
- 99% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
- }
- .component-box-wrapper__fullscreen {
- position: fixed;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- background: white;
- padding: 20px;
- z-index: 10000;
- height: 100%;
- overflow: auto;
- }
- .component-box-wrapper__half-transparent {
- position: fixed;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- background: rgba(0, 0, 0, 0.7);
- padding: 20px;
- z-index: 1000;
- height: 100%;
- overflow: auto;
- display: flex;
- align-items: flex-start;
- justify-content: center;
- }
- .component-content-box__dialog-like {
- width: 60%;
- padding: 20px;
- background: white;
- margin-top: 15vh;
- }
- .component-header-box {
- position: relative;
- width: 100%;
- display: flex;
- padding: 0 0 12px 0;
- }
- .component-header__title {
- width: 70%;
- font-size: 16px;
- display: flex;
- align-items: center;
- }
- .component-header__close-button {
- width: 30%;
- text-align: right;
- }
- table th.star div::before {
- content: '*';
- color: #f56c6cff;
- margin-right: 4px;
- }
- .bi_tian .el-form-item__label::before {
- content: '*';
- color: #f56c6cff;
- margin-right: 4px;
- }
- .el-select-dropdown__item.selected {
- background-color: #71abed66;
- }
- .el-select-dropdown__item.hover, .el-select-dropdown__item:hover {
- background-color: #fac44d;
- color: white;
- }
- </style>
|