|
|
@@ -231,13 +231,17 @@
|
|
231
|
231
|
},
|
|
232
|
232
|
onLoad(option) {
|
|
233
|
233
|
this.reportType = option.reportType
|
|
234
|
|
- if (option.reportType == 1 && !option.starttime) {
|
|
|
234
|
+ if(option.reportType == 1){
|
|
235
|
235
|
uni.setNavigationBarTitle({
|
|
236
|
236
|
title: '月报'
|
|
237
|
237
|
})
|
|
|
238
|
+ }
|
|
|
239
|
+ //默认页面入口日期
|
|
|
240
|
+ if (option.reportType == 1 && !option.starttime) {
|
|
238
|
241
|
this.defaultStartTime = this.getDateFirstTime()
|
|
239
|
242
|
this.defaultEndTime = this.getDateLastTime()
|
|
240
|
243
|
}
|
|
|
244
|
+ //获取消息入口日期
|
|
241
|
245
|
if(option.starttime){
|
|
242
|
246
|
this.defaultStartTime = option.starttime
|
|
243
|
247
|
this.defaultEndTime = option.endtime
|
|
|
@@ -295,10 +299,10 @@
|
|
295
|
299
|
}
|
|
296
|
300
|
var rowData = []
|
|
297
|
301
|
var colData = []
|
|
298
|
|
- if (response.data.dt > 0) {
|
|
|
302
|
+ if (response.data.dt.length > 0) {
|
|
299
|
303
|
response.data.dt.forEach((item, index) => {
|
|
300
|
304
|
rowData.push(item.dateshownew)
|
|
301
|
|
- colData.push(item.allcountnew)
|
|
|
305
|
+ colData.push(Number(item.allcountnew))
|
|
302
|
306
|
this.chartData(rowData, colData)
|
|
303
|
307
|
})
|
|
304
|
308
|
} else {
|
|
|
@@ -553,25 +557,29 @@
|
|
553
|
557
|
margin-right: 10rpx;
|
|
554
|
558
|
text-align: right;
|
|
555
|
559
|
color: #333;
|
|
556
|
|
- font-size: 18rpx;
|
|
|
560
|
+ font-size: 20rpx;
|
|
557
|
561
|
}
|
|
558
|
562
|
|
|
559
|
563
|
.pertitcon {
|
|
560
|
564
|
width: 10%;
|
|
561
|
565
|
display: inline-block;
|
|
562
|
|
- margin-right: 10rpx;
|
|
563
|
|
- text-align: right;
|
|
|
566
|
+ /* margin-left: 10rpx; */
|
|
|
567
|
+ text-align: center;
|
|
564
|
568
|
color: #333;
|
|
565
|
|
- font-size: 17rpx;
|
|
|
569
|
+ font-size: 20rpx;
|
|
566
|
570
|
}
|
|
567
|
571
|
|
|
568
|
572
|
.perbox {
|
|
569
|
573
|
margin-bottom: 30rpx;
|
|
|
574
|
+ height: 22px;
|
|
|
575
|
+ line-height: 22px;
|
|
570
|
576
|
}
|
|
571
|
577
|
|
|
572
|
578
|
.lineper {
|
|
573
|
579
|
display: inline-block;
|
|
574
|
580
|
width: 60%;
|
|
|
581
|
+ line-height: 22px;
|
|
|
582
|
+ vertical-align: middle;
|
|
575
|
583
|
}
|
|
576
|
584
|
|
|
577
|
585
|
#echartbox {
|