This commit is contained in:
cclu 2024-05-20 09:34:54 +08:00
parent a75bc5d821
commit 779a1d1597
2 changed files with 12 additions and 2 deletions

View File

@ -993,8 +993,18 @@ export default {
} }
}, },
async handleChangMonth(index){ async handleChangMonth(index){
console.log('index',index)
this.selectStart = `${this.curYear}-01` this.selectStart = `${this.curYear}-01`
this.selectEnd = '' const date = new Date()
let y = date.getFullYear()
let m = date.getMonth() + 1
if (index===0 && y === this.curYear){
this.selectEnd = m<10?'0'+m:m
}else if(index===0){
this.selectEnd = 12
} else{
this.selectEnd = ''
}
this.selectIndex = index this.selectIndex = index
this.currentScroll = 'item' + index this.currentScroll = 'item' + index
this.thisMonth = index this.thisMonth = index

View File

@ -38,7 +38,7 @@
</view> </view>
<view class="modalBox"> <view class="modalBox">
<view class="modalTitleBox"> <view class="modalTitleBox">
<view class="modalTitleItem" :style="{width: 'calc(100% - 390rpx)',textAlign:'left'}"> <view class="modalTitleItem" :style="{width: 'calc(100% - 300rpx)',textAlign:'left'}">
<view class="modalIndex"></view> <view class="modalIndex"></view>
<text class="modalText">{{ type===1?'对客销售':type===2?'营业收入':type===3?'入区车流':'' }}</text> <text class="modalText">{{ type===1?'对客销售':type===2?'营业收入':type===3?'入区车流':'' }}</text>
<text class="modalUnit">{{type===3?'/万辆':'/万元'+`${type===2?' (除税)':''}`}}</text> <text class="modalUnit">{{type===3?'/万辆':'/万元'+`${type===2?' (除税)':''}`}}</text>