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,7 +30,12 @@ | ||
| 30 | <!-- 吸顶组件 --> | 30 | <!-- 吸顶组件 --> |
| 31 | <!-- 自带分页组件 --> | 31 | <!-- 自带分页组件 --> |
| 32 | <mescroll-body ref="mescrollRef" :up="upOption" @init="mescrollInit" :down="downOption" @down="downCallback" @up="upCallback"> | 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 | <view @click="openAlertDetail(item)" class="list-item" v-for="(item, index) in list" :key="index"> | 39 | <view @click="openAlertDetail(item)" class="list-item" v-for="(item, index) in list" :key="index"> |
| 35 | <view class="u-flex item"> | 40 | <view class="u-flex item"> |
| 36 | <view class="item-text text-clip"> | 41 | <view class="item-text text-clip"> |
| @@ -164,7 +169,7 @@ | @@ -164,7 +169,7 @@ | ||
| 164 | <view class="u-flex popup-alarm-child"> | 169 | <view class="u-flex popup-alarm-child"> |
| 165 | <view class="home-text-muted">选择日期</view> | 170 | <view class="home-text-muted">选择日期</view> |
| 166 | <view style="width: 623rpx;margin-left: 5rpx;margin-right: 70rpx;margin-top: 35rpx;"> | 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 | </view> | 173 | </view> |
| 169 | </view> | 174 | </view> |
| 170 | </view> | 175 | </view> |
| @@ -197,7 +202,7 @@ export default { | @@ -197,7 +202,7 @@ export default { | ||
| 197 | }, | 202 | }, |
| 198 | data() { | 203 | data() { |
| 199 | return { | 204 | return { |
| 200 | - range: ['', ''], | 205 | + range: [], |
| 201 | alertStatusVal: '', | 206 | alertStatusVal: '', |
| 202 | deviceTypeVal: '', | 207 | deviceTypeVal: '', |
| 203 | alertLevelVal: '', | 208 | alertLevelVal: '', |
| @@ -378,7 +383,7 @@ export default { | @@ -378,7 +383,7 @@ export default { | ||
| 378 | topBack() { | 383 | topBack() { |
| 379 | uni.pageScrollTo({ | 384 | uni.pageScrollTo({ |
| 380 | scrollTop: 0, // 滚动到页面的目标位置 这个是滚动到顶部, 0 | 385 | scrollTop: 0, // 滚动到页面的目标位置 这个是滚动到顶部, 0 |
| 381 | - duration: 300 // 滚动动画的时长 | 386 | + duration: 10 // 滚动动画的时长 |
| 382 | }); | 387 | }); |
| 383 | }, | 388 | }, |
| 384 | /*下拉刷新的回调 */ | 389 | /*下拉刷新的回调 */ |
| @@ -451,7 +456,6 @@ export default { | @@ -451,7 +456,6 @@ export default { | ||
| 451 | } | 456 | } |
| 452 | }) | 457 | }) |
| 453 | .catch(e => { | 458 | .catch(e => { |
| 454 | - uni.$u.toast(e.data?.message); | ||
| 455 | //联网失败, 结束加载 | 459 | //联网失败, 结束加载 |
| 456 | that.mescroll.endErr(); | 460 | that.mescroll.endErr(); |
| 457 | }); | 461 | }); |