早安,管理员, 请开始您一天的工作吧!
-- - 今日晴,0℃ - 10℃,天气寒冷,注意添加衣物。 -
-diff --git a/web/src/App.vue b/web/src/App.vue
index b79771fe..4564d38a 100644
--- a/web/src/App.vue
+++ b/web/src/App.vue
@@ -15,6 +15,7 @@ export default {
// 引入初始化样式
@import '@/style/main.scss';
@import '@/style/base.scss';
+@import '@/style/mobile.scss';
#app {
background: #eee;
height: 100vh;
diff --git a/web/src/style/basics.scss b/web/src/style/basics.scss
index 1280dfee..767a99e5 100644
--- a/web/src/style/basics.scss
+++ b/web/src/style/basics.scss
@@ -32,3 +32,6 @@ $color-table-tbody:#595959;
$color-table-thead:#262626;
// dashboard
$height-car:68px;
+// mobile
+$padding-xs: 5px;
+$margin-xs: 5px;
diff --git a/web/src/style/main.scss b/web/src/style/main.scss
index b849814e..432b1cb6 100644
--- a/web/src/style/main.scss
+++ b/web/src/style/main.scss
@@ -1204,6 +1204,14 @@ $mainHight: 100vh;
top: 0;
box-sizing: border-box;
z-index: 999;
+ >.el-row{
+ padding: 0;
+ .el-col-lg-14{
+ height: 60px;
+ }
+ }
+
+
}
@@ -1387,14 +1395,14 @@ $mainHight: 100vh;
.car-left {
height: $height-car;
- width: 70%;
- float: left;
+ // width: 70%;
+ // float: left;
}
.car-right {
height: $height-car;
- width: 29%;
- float: left;
+ // width: 29%;
+ // float: left;
.flow,
.user-number,
diff --git a/web/src/style/mobile.scss b/web/src/style/mobile.scss
new file mode 100644
index 00000000..4bc840b4
--- /dev/null
+++ b/web/src/style/mobile.scss
@@ -0,0 +1,89 @@
+
+@import '@/style/basics.scss';
+@media screen and (min-width: 320px)and (max-width: 750px){
+ .el-header{
+ padding: 0 $padding-xs;
+ }
+ .layout-cont {
+ .main-cont{
+ .breadcrumb{
+ padding: 0 $padding-xs;
+ }
+ }
+ }
+ .layout-cont{
+ .right-box{
+ margin-right: $margin-xs;
+ }
+ }
+ .search-component{
+ width: 30px;
+ }
+ .screenfull{
+ width: 26px;
+ text-align: center;
+ }
+ .el-main{
+ .admin-box{
+ margin-left: 0;
+ margin-right: 0;
+ }
+ .big.admin-box{
+ padding: 0 0 15px 0;
+ }
+ .big {
+ .bottom {
+ .chart-player{
+ height: auto!important;
+ margin-bottom: 15px;
+ }
+ .todoapp{
+ background-color: #fff;
+ padding-bottom: 10px;
+ }
+ }
+ }
+ }
+
+ .card .car-left,
+ .card .car-right{
+ width: 100%;
+ height: 100%;
+ }
+ .card{
+ padding-left: $padding-xs;
+ padding-right: $padding-xs;
+
+ }
+ .card {
+ .text{
+ width: 100%;
+ h4{
+ white-space: break-spaces;
+ }
+ }
+ }
+ .shadow{
+ margin-left: 5px;
+ margin-right: 5px;
+ .grid-content{
+ margin-bottom: 10px;
+ padding: 0;
+ }
+ }
+ .el-dialog{
+ width: 90%;
+ }
+ .el-transfer{
+ .el-transfer-panel{
+ width: 40%;
+ display: inline-block;
+ }
+ .el-transfer__buttons{
+ padding: 0 5px;
+ display: inline-block;
+ }
+
+ }
+
+}
\ No newline at end of file
diff --git a/web/src/view/dashboard/index.vue b/web/src/view/dashboard/index.vue
index 3f93b575..4b7b45b2 100644
--- a/web/src/view/dashboard/index.vue
+++ b/web/src/view/dashboard/index.vue
@@ -1,179 +1,204 @@
-
-
- 今日晴,0℃ - 10℃,天气寒冷,注意添加衣物。
- {{card.label}}
+
+ 今日晴,0℃ - 10℃,天气寒冷,注意添加衣物。
+ {{ card.label }}
-
早安,管理员, 请开始您一天的工作吧!
-
+
+
早安,管理员, 请开始您一天的工作吧!
+