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

老板看板 日期修改

parent e8d6e552
...@@ -65,10 +65,10 @@ ...@@ -65,10 +65,10 @@
<view class="nav-item2 " style="font-size: 14px;color: #1890FF;" v-if="!showDropdown" <view class="nav-item2 " style="font-size: 14px;color: #1890FF;" v-if="!showDropdown"
@click="closeDropdown"></view> @click="closeDropdown"></view>
<view class="dropdown-menu" v-if="showDropdown"> <view class="dropdown-menu" v-if="showDropdown">
<view v-for="(item,index) in days" :key="index" class="dropdown-item"> <view v-for="(item,index) in days" :key="index" class="dropdown-item"
<text v-if="activeDay!==item" @click.stop="selectDays(item)">{{item}}</text> @click.stop="selectDays(item)">
<text v-if="activeDay===item" style="font-size: 14px;color: #1890FF;" <text :class="activeDay===item? 'select-item':''">{{item}}</text>
@click.stop="selectDays(item)">{{item}}</text> <!-- <text v-if="activeDay===item" style="">{{item}}</text> -->
</view> </view>
</view> </view>
</view> </view>
...@@ -417,19 +417,10 @@ ...@@ -417,19 +417,10 @@
} }
}, },
computed: { computed: {
// switchTime2(time) {
// this.activeTime = time
// },
// 当前选中时间的数据
currentData() { currentData() {
//todo 调用后端接口,直接返回对应时间区间的数据
return this.timeData["activeTime"] return this.timeData["activeTime"]
}, },
currentSearchData() { currentSearchData() {
//todo 调用后端接口,直接返回对应时间区间的数据
return this.timeData["activeTime"] return this.timeData["activeTime"]
}, },
// 应付现结比例 // 应付现结比例
...@@ -497,8 +488,9 @@ ...@@ -497,8 +488,9 @@
this.showDropdown = false this.showDropdown = false
this.day = "T-" + item this.day = "T-" + item
this.day2 = item + "天内" this.day2 = item + "天内"
if (this.activeTime === 'yesterday' || this.activeTime === 'today') {
this.initData() this.initData()
}
}, },
orderEventClose() { orderEventClose() {
this.showOrderEvent = false this.showOrderEvent = false
...@@ -2096,4 +2088,10 @@ ...@@ -2096,4 +2088,10 @@
.dropdown-item:hover { .dropdown-item:hover {
background-color: #f0f0f0; background-color: #f0f0f0;
} }
.select-item {
// font-size: 14px;
color: #1890FF;
font-weight: bold;
}
</style> </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