|
@@ -8,7 +8,9 @@
|
|
|
@load="load"
|
|
|
:src="isOnlyDay"
|
|
|
/>
|
|
|
- <span class="days">{{ times.join(' 到 ') }}</span>
|
|
|
+ <span class="days" :style="'font-size:' + fontSizeFunc() + 'px'">{{
|
|
|
+ times.join(' 到 ')
|
|
|
+ }}</span>
|
|
|
</div>
|
|
|
|
|
|
<van-cell-group inset v-for="pitem in centerList" :key="pitem.platform">
|
|
@@ -20,7 +22,7 @@
|
|
|
:key="item.nickName + 'c'"
|
|
|
>
|
|
|
<div class="headTitle" v-text="item.nickName"></div>
|
|
|
- <div class="label">
|
|
|
+ <div class="label" :style="'font-size:' + fontSizeFunc() + 'px'">
|
|
|
<van-row>
|
|
|
<van-col span="6"> 实发 / 应发(件) </van-col>
|
|
|
<van-col span="6">完成率</van-col>
|
|
@@ -57,7 +59,7 @@ import {
|
|
|
Row as VanRow,
|
|
|
NavBar as VanNavBar,
|
|
|
} from 'vant';
|
|
|
-import "vant/lib/nav-bar/style/index";
|
|
|
+import 'vant/lib/nav-bar/style/index';
|
|
|
import 'vant/lib/image/style/index';
|
|
|
import 'vant/lib/col/style/index';
|
|
|
import 'vant/lib/row/style/index';
|
|
@@ -100,7 +102,8 @@ export default {
|
|
|
let times = (this.$route.params.time || '').split('+');
|
|
|
if (times.length > 1 && times[0] === times[1]) times = [times[0]];
|
|
|
this.times = times;
|
|
|
- this.title = document.title + (this.times.length > 1 ? "累计报表" : "日报表");
|
|
|
+ this.title =
|
|
|
+ document.title + (this.times.length > 1 ? '累计报表' : '日报表');
|
|
|
document.title = this.title;
|
|
|
if (this.times.length > 1)
|
|
|
this.isOnlyDay = require('@/assets/image/2023slcw.jpg');
|
|
@@ -117,7 +120,14 @@ export default {
|
|
|
const ele = e.path[0];
|
|
|
this.height = this.width * (ele.naturalHeight / ele.naturalWidth);
|
|
|
},
|
|
|
- onClickLeft(){ this.$router.go(-1) }
|
|
|
+ fontSizeFunc() {
|
|
|
+ let size = this.width / 30;
|
|
|
+ if (size > 18) return 18;
|
|
|
+ return size;
|
|
|
+ },
|
|
|
+ onClickLeft() {
|
|
|
+ this.$router.go(-1);
|
|
|
+ },
|
|
|
},
|
|
|
beforeUnmount() {},
|
|
|
components: {
|
|
@@ -152,7 +162,6 @@ export default {
|
|
|
}
|
|
|
|
|
|
.SilkRoadDetail .label {
|
|
|
- font-size: 14px;
|
|
|
line-height: 1.5em;
|
|
|
text-align: center;
|
|
|
color: #969799;
|
|
@@ -172,6 +181,5 @@ export default {
|
|
|
left: 5%;
|
|
|
top: 72%;
|
|
|
color: #ffffff;
|
|
|
- font-size: 14px;
|
|
|
}
|
|
|
</style>
|