大屏缩放问题

This commit is contained in:
jjLv 2024-12-11 14:51:03 +08:00
parent 03e3498de5
commit dcb863bef2
5 changed files with 4059 additions and 20283 deletions

17755
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -33,6 +33,8 @@
"vuex": "^3.6.2" "vuex": "^3.6.2"
}, },
"devDependencies": { "devDependencies": {
"@jiaminghi/data-view": "^2.10.0",
"autofit.js": "^3.1.1",
"autoprefixer": "^7.1.2", "autoprefixer": "^7.1.2",
"babel-core": "^6.22.1", "babel-core": "^6.22.1",
"babel-helper-vue-jsx-merge-props": "^2.0.3", "babel-helper-vue-jsx-merge-props": "^2.0.3",

View File

@ -4,6 +4,7 @@
</div> </div>
</template> </template>
<script> <script>
import autofit from 'autofit.js'
export default { export default {
name: 'app', name: 'app',
created() { created() {
@ -17,6 +18,14 @@ export default {
link.href = require('./assets/img/myImage/logo.png') link.href = require('./assets/img/myImage/logo.png')
document.getElementsByTagName('head')[0].appendChild(link) document.getElementsByTagName('head')[0].appendChild(link)
}, },
mounted() {
autofit.init({
designHeight: 1080, //
designWidth: 1920, //
renderDom: '#app',
resize: true,
})
},
watch: { watch: {
$route: { $route: {
@ -34,16 +43,14 @@ export default {
<style lang="less"> <style lang="less">
.el-dialog { .el-dialog {
// //
background-color: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5) !important;
// background-color: transparent; background-image: url('./assets/img/dialog/window.png') !important;
// background-color: #000; background-size: 100% 100% !important;
background-image: url('./assets/img/dialog/window.png'); background-repeat: no-repeat !important;
background-size: 100% 100%;
background-repeat: no-repeat;
.el-dialog__headerbtn { .el-dialog__headerbtn {
width: 83px; width: 83px;
height: 44px; height: 44px;
background-image: url('./assets/img/dialog/icon_close.png'); background-image: url('./assets/img/dialog/icon_close.png') !important;
background-size: cover; background-size: cover;
// x // x
.el-dialog__close { .el-dialog__close {
@ -51,83 +58,83 @@ export default {
} }
} }
.el-form-item__label { .el-form-item__label {
color: #fff; color: #fff !important;
} }
.el-table th { .el-table th {
// #253855 #30619B // #253855 #30619B
background: linear-gradient(to bottom, #2b313d, #3267a7); background: linear-gradient(to bottom, #2b313d, #3267a7) !important;
color: #fff; color: #fff !important;
border-bottom: 1px solid #84fcfd !important; border-bottom: 1px solid #84fcfd !important;
} }
.el-table tr { .el-table tr {
background-color: #335684; background-color: #335684 !important;
color: #fff; color: #fff !important;
} }
.el-table--striped .el-table__body tr.el-table__row--striped td { .el-table--striped .el-table__body tr.el-table__row--striped td {
background-color: #25447d; background-color: #25447d !important;
color: #fff; color: #fff !important;
} }
.el-table td, .el-table td,
.building-top .el-table th.is-leaf { .building-top .el-table th.is-leaf {
border-bottom: 1px solid #6983a5; border-bottom: 1px solid #6983a5 !important;
} }
.el-table::before { .el-table::before {
border-bottom: 1px solid #6983a5; border-bottom: 1px solid #6983a5 !important;
background-color: #6983a5; background-color: #6983a5 !important;
height: 1px; height: 1px !important;
} }
.el-table--enable-row-hover .el-table__body tr:hover > td { .el-table--enable-row-hover .el-table__body tr:hover > td {
background-color: #6983a5; background-color: #6983a5 !important;
} }
.el-pagination__total { .el-pagination__total {
color: #e1e3e6; color: #e1e3e6 !important;
} }
.el-pagination__jump { .el-pagination__jump {
color: #e1e3e6; color: #e1e3e6 !important;
} }
.el-input__inner { .el-input__inner {
background-color: transparent; background-color: transparent !important;
border: 1px solid #77e2e7; border: 1px solid #77e2e7 !important;
color: #e1e3e6; color: #e1e3e6 !important;
} }
.el-pagination__sizes .el-input .el-input__inner { .el-pagination__sizes .el-input .el-input__inner {
color: #e3e4e7; color: #e3e4e7 !important;
border: 1px solid #e3e4e7; border: 1px solid #e3e4e7 !important;
} }
.el-pagination__editor.el-input .el-input__inner { .el-pagination__editor.el-input .el-input__inner {
color: #e3e4e7; color: #e3e4e7 !important;
border: 1px solid #e3e4e7; border: 1px solid #e3e4e7 !important;
} }
.el-pagination.is-background .btn-prev, .el-pagination.is-background .btn-prev,
.el-pagination.is-background .el-pager li { .el-pagination.is-background .el-pager li {
color: #e3e4e7; color: #e3e4e7 !important;
border: 1px solid #e3e4e7; border: 1px solid #e3e4e7 !important;
background-color: transparent; background-color: transparent !important;
} }
.el-pagination.is-background .btn-next { .el-pagination.is-background .btn-next {
color: #e3e4e7; color: #e3e4e7 !important;
border: 1px solid #e3e4e7; border: 1px solid #e3e4e7 !important;
background-color: transparent; background-color: transparent !important;
} }
.el-pagination.is-background .el-pager li:not(.disabled).active { .el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: #98f4fb; background-color: #98f4fb !important;
color: #000; color: #000 !important;
} }
.el-button--primary { .el-button--primary {
background-color: #84fcfd; background-color: #84fcfd !important;
border: #84fcfd; border: #84fcfd !important;
color: #285050; color: #285050 !important;
} }
.el-button--default { .el-button--default {
background-color: transparent; background-color: transparent !important;
border: 1px solid #84fcfd; border: 1px solid #84fcfd !important;
color: #d5d6da; color: #d5d6da !important;
} }
.el-table__empty-block { .el-table__empty-block {
background-color: #335684; background-color: #335684 !important;
.el-table__empty-text { .el-table__empty-text {
color: #d5d6da; color: #d5d6da !important;
} }
} }
} }

View File

@ -266,8 +266,8 @@ export default {
<style scoped lang="less"> <style scoped lang="less">
.screen-container { .screen-container {
width: 1920px; width: 100%;
height: 1080px; height: 100%;
background: url(../../assets/img/myImage/screenBg.png) no-repeat center; background: url(../../assets/img/myImage/screenBg.png) no-repeat center;
background-size: 100% 100%; background-size: 100% 100%;
color: #fff; color: #fff;
@ -291,7 +291,7 @@ export default {
// display: flex; // display: flex;
.screen-left, .screen-left,
.screen-right { .screen-right {
width: 25%; width: 23%;
margin-top: 87px; margin-top: 87px;
height: calc(100% - 87px); height: calc(100% - 87px);
display: flex; display: flex;
@ -370,7 +370,7 @@ export default {
} }
.screen-center { .screen-center {
width: 50%; width: 54%;
height: 30%; height: 30%;
position: absolute; position: absolute;
bottom: 0; bottom: 0;

6482
yarn.lock

File diff suppressed because it is too large Load Diff