Commit 57b11294 authored by 刘杰's avatar 刘杰

老板看板 日期修改

parent e8d6e552
......@@ -65,10 +65,10 @@
<view class="nav-item2 " style="font-size: 14px;color: #1890FF;" v-if="!showDropdown"
@click="closeDropdown"></view>
<view class="dropdown-menu" v-if="showDropdown">
<view v-for="(item,index) in days" :key="index" class="dropdown-item">
<text v-if="activeDay!==item" @click.stop="selectDays(item)">{{item}}</text>
<text v-if="activeDay===item" style="font-size: 14px;color: #1890FF;"
@click.stop="selectDays(item)">{{item}}</text>
<view v-for="(item,index) in days" :key="index" class="dropdown-item"
@click.stop="selectDays(item)">
<text :class="activeDay===item? 'select-item':''">{{item}}</text>
<!-- <text v-if="activeDay===item" style="">{{item}}</text> -->
</view>
</view>
</view>
......@@ -417,19 +417,10 @@
}
},
computed: {
// switchTime2(time) {
// this.activeTime = time
// },
// 当前选中时间的数据
currentData() {
//todo 调用后端接口,直接返回对应时间区间的数据
return this.timeData["activeTime"]
},
currentSearchData() {
//todo 调用后端接口,直接返回对应时间区间的数据
return this.timeData["activeTime"]
},
// 应付现结比例
......@@ -497,8 +488,9 @@
this.showDropdown = false
this.day = "T-" + item
this.day2 = item + "天内"
this.initData()
if (this.activeTime === 'yesterday' || this.activeTime === 'today') {
this.initData()
}
},
orderEventClose() {
this.showOrderEvent = false
......@@ -2096,4 +2088,10 @@
.dropdown-item:hover {
background-color: #f0f0f0;
}
.select-item {
// font-size: 14px;
color: #1890FF;
font-weight: bold;
}
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment