Ver código fonte

日报

trunk1017
corala 1 ano atrás
pai
commit
6cf6a88d33
2 arquivos alterados com 54 adições e 36 exclusões
  1. +23
    -12
      pages/reportExcel/dayReport.vue
  2. +31
    -24
      pages/reportExcel/weekReport.vue

+ 23
- 12
pages/reportExcel/dayReport.vue Ver arquivo

@@ -12,8 +12,9 @@
生成时间:{{ weekObj.createTime || '--' }}
</view>
</view>
<view class="nodata-box" style="background: url(../../static/images/nodata.png)no-repeat;background-size: contain;" v-if="nodata">
此项目今日还没有接待量哦~
<view class="nodata-box" v-if="nodata">
<image class="img" src="/static/images/nodata.png" mode="" />
<view class="text">此项目今日还没有接待量哦~</view>
</view>
<view v-if="!nodata">
<!-- 循环渲染的数据 -->
@@ -752,16 +753,26 @@
font-weight: bold !important;
}
.nodata-box{
width: 400rpx;
height: 400rpx;
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
line-height: 40rpx;
padding-top: 360rpx;
margin: 0 auto;
text-align: center;
width: 750rpx;
margin: 20rpx auto 0;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: #fff;
.img{
width: 400rpx;
height: 400rpx;
}
.text{
text-align: center;
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
line-height: 40rpx;
// margin-top: -40rpx;
}
}
}
</style>

+ 31
- 24
pages/reportExcel/weekReport.vue Ver arquivo

@@ -13,9 +13,10 @@
</view>
</view>
</view>
<view class="nodata-box" v-if="nodata" style="background: url(../../static/images/nodata.png)no-repeat;background-size: contain;" >
此项目本周还没有接待量哦~
</view>
<view class="nodata-box" v-if="nodata">
<image class="img" src="/static/images/nodata.png" mode="" />
<view class="text">此项目本周还没有接待量哦~</view>
</view>
<view v-if="!nodata" >
<!-- 简报 -->
<view class="briefing">
@@ -577,24 +578,20 @@
let data = {}
if(res.zkMessage.content){
data = JSON.parse(res.zkMessage.content)
this.bubbleSort(data.customerInfo1, 'pk')
this.bubbleSort(data.customerInfo2, 'pk')
data.customerInfo1.reverse()
data.customerInfo2.reverse()
this.weekObj = {
...res.zkMessage,
...data
}
}else{
this.nodata = true
this.weekObj = {
...res.zkMessage,
}
}
this.bubbleSort(data.customerInfo1, 'pk')
this.bubbleSort(data.customerInfo2, 'pk')
data.customerInfo1.reverse()
data.customerInfo2.reverse()
if(res.zkMessage.content){
data = JSON.parse(res.zkMessage.content)
this.weekObj = {
...res.zkMessage,
...data
}
}
this.weekObj.createTimeName = this.getTimeLines(this.weekObj.weekDate, 1)
console.log(this.weekObj, 'this.weekObj')
this.projectName = res.projectName
@@ -825,16 +822,26 @@
}

.nodata-box{
width: 400rpx;
height: 400rpx;
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
line-height: 40rpx;
padding-top: 360rpx;
width: 750rpx;
flex: 1;
margin: 0 auto;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: #fff;
.img{
width: 400rpx;
height: 400rpx;
}
.text{
text-align: center;
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
line-height: 40rpx;
}
}

.briefing {


Carregando…
Cancelar
Salvar