فهرست منبع

深圳三院首页样式同步

wangxiaoyi 1 سال پیش
والد
کامیت
24170b7b95
3فایلهای تغییر یافته به همراه12 افزوده شده و 8 حذف شده
  1. 7 7
      src/assets/styles/pages/dashboard.scss
  2. 4 0
      src/filters/index.js
  3. 1 1
      src/views/system/dashboard/templates/bpmApprove.vue

+ 7 - 7
src/assets/styles/pages/dashboard.scss

@@ -57,7 +57,7 @@ $transition: all .5s;
             }
             }
             @media (max-width: 1580px) {
             @media (max-width: 1580px) {
                 .item-header > p {
                 .item-header > p {
-                    font-size: 14px;
+                    font-size: 16px;
                 }
                 }
                 .item-body {
                 .item-body {
                     & > span {
                     & > span {
@@ -69,9 +69,14 @@ $transition: all .5s;
                 }
                 }
                 
                 
             }
             }
+            @media (max-width: 1455px) {
+                .item-bottom {
+                    font-size: 10px;
+                }
+            }
             @media (max-width: 1450px) {
             @media (max-width: 1450px) {
                 .item-header > p {
                 .item-header > p {
-                    font-size: 12px;
+                    font-size: 16px;
                 }
                 }
                 .item-body {
                 .item-body {
                     & > span {
                     & > span {
@@ -79,11 +84,6 @@ $transition: all .5s;
                     }
                     }
                 }
                 }
             }
             }
-            @media (max-width: 1455px) {
-                .item-bottom {
-                    font-size: 10px;
-                }
-            }
             @media (max-width: 1355px) {
             @media (max-width: 1355px) {
                 .item-bottom {
                 .item-bottom {
                     font-size: 9px;
                     font-size: 9px;

+ 4 - 0
src/filters/index.js

@@ -110,6 +110,10 @@ export function firstStr (val) {
     return val.substr(0, 1)
     return val.substr(0, 1)
 }
 }
 
 
+export function fiveStr (val) {
+    return val.substr(0, 5)
+}
+
 export function filterDataMethod (val1, val2) {
 export function filterDataMethod (val1, val2) {
     if (!val1) {
     if (!val1) {
         return 0
         return 0

+ 1 - 1
src/views/system/dashboard/templates/bpmApprove.vue

@@ -16,7 +16,7 @@
                 >
                 >
                     <div :class="'bg-'+item.color" class="item" @click="openPlate(item.url)">
                     <div :class="'bg-'+item.color" class="item" @click="openPlate(item.url)">
                         <div class="item-header">
                         <div class="item-header">
-                            <p>{{ item.dataContent }}</p>
+                            <p>{{ item.dataContent | fiveStr}}</p>
                         </div>
                         </div>
                         <div class="item-body">
                         <div class="item-body">
                             <h2><count-to :end-val="parseInt(item.dataText,10)" :duration="2000" /></h2>
                             <h2><count-to :end-val="parseInt(item.dataText,10)" :duration="2000" /></h2>