Commit 220d258298471381106280d15bfe49fe961dab90
1 parent
6e4e805b
fix:DEFECT-369 修改问题单号的pc端和min-pro筛选时间数据不同意问题,修改返回顶部时间为10ms,feat:新增无数据显示默认图片
Showing
1 changed file
with
9 additions
and
5 deletions
... | ... | @@ -30,7 +30,12 @@ |
30 | 30 | <!-- 吸顶组件 --> |
31 | 31 | <!-- 自带分页组件 --> |
32 | 32 | <mescroll-body ref="mescrollRef" :up="upOption" @init="mescrollInit" :down="downOption" @down="downCallback" @up="upCallback"> |
33 | - <view class="device-list"> | |
33 | + <!-- 无数据图片 --> | |
34 | + <view v-if="list.length == 0" style="position: relative;top: 100rpx;flex-direction: column;" class="u-flex"> | |
35 | + <view><image style="width: 280rpx;height: 250rpx;" src="../../static/empty.png"></image></view> | |
36 | + <view style="text-align: center;"><text style="font-size: 12px;color: gray;">~ 空空如也 ~</text></view> | |
37 | + </view> | |
38 | + <view v-else class="device-list"> | |
34 | 39 | <view @click="openAlertDetail(item)" class="list-item" v-for="(item, index) in list" :key="index"> |
35 | 40 | <view class="u-flex item"> |
36 | 41 | <view class="item-text text-clip"> |
... | ... | @@ -164,7 +169,7 @@ |
164 | 169 | <view class="u-flex popup-alarm-child"> |
165 | 170 | <view class="home-text-muted">选择日期</view> |
166 | 171 | <view style="width: 623rpx;margin-left: 5rpx;margin-right: 70rpx;margin-top: 35rpx;"> |
167 | - <uni-datetime-picker v-model="range" type="daterange" /> | |
172 | + <uni-datetime-picker v-model="range" type="datetimerange" rangeSeparator="至" /> | |
168 | 173 | </view> |
169 | 174 | </view> |
170 | 175 | </view> |
... | ... | @@ -197,7 +202,7 @@ export default { |
197 | 202 | }, |
198 | 203 | data() { |
199 | 204 | return { |
200 | - range: ['', ''], | |
205 | + range: [], | |
201 | 206 | alertStatusVal: '', |
202 | 207 | deviceTypeVal: '', |
203 | 208 | alertLevelVal: '', |
... | ... | @@ -378,7 +383,7 @@ export default { |
378 | 383 | topBack() { |
379 | 384 | uni.pageScrollTo({ |
380 | 385 | scrollTop: 0, // 滚动到页面的目标位置 这个是滚动到顶部, 0 |
381 | - duration: 300 // 滚动动画的时长 | |
386 | + duration: 10 // 滚动动画的时长 | |
382 | 387 | }); |
383 | 388 | }, |
384 | 389 | /*下拉刷新的回调 */ |
... | ... | @@ -451,7 +456,6 @@ export default { |
451 | 456 | } |
452 | 457 | }) |
453 | 458 | .catch(e => { |
454 | - uni.$u.toast(e.data?.message); | |
455 | 459 | //联网失败, 结束加载 |
456 | 460 | that.mescroll.endErr(); |
457 | 461 | }); | ... | ... |