| | |
| | | <template v-for="(group) in fixedList" :key="group.date"> |
| | | <view class="task-header">{{group.date}}</view> |
| | | <view class="task-list-view"> |
| | | <TaskLogItemView v-for="(item,index) in group.list" :key="index" :taskData="item"> |
| | | <TaskLogItemView class="list-item" v-for="(item,index) in group.list" :key="index" :taskData="item"> |
| | | </TaskLogItemView> |
| | | </view> |
| | | </template> |
| | |
| | | <template v-for="(group) in tempList" :key="group.date"> |
| | | <view class="task-header">{{group.date}}</view> |
| | | <view class="task-list-view"> |
| | | <TaskLogItemView v-for="(item,index) in group.list" :key="index" :taskData="item"> |
| | | <TaskLogItemView class="list-item" v-for="(item,index) in group.list" :key="index" :taskData="item"> |
| | | |
| | | </TaskLogItemView> |
| | | </view> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | ip:"", |
| | | sceneId: "", |
| | | list: [], |
| | | } |
| | |
| | | }]*/ |
| | | this.list = await this.loadTaskLog() |
| | | } catch (ex) { |
| | | show.showError(ex) |
| | | this.showError(ex) |
| | | } |
| | | }, |
| | | async loadTaskLog() { |
| | |
| | | console.log(list) |
| | | return list |
| | | } catch (ex) { |
| | | show.showError(ex) |
| | | this.showError(ex) |
| | | return [] |
| | | } |
| | | }, |
| | |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.msg == "string" ? ex.msg : exStr |
| | | showModal(tip, "错误", false) |
| | | showModal(tip, "错误", false,"确定") |
| | | }, |
| | | } |
| | | } |
| | |
| | | .task-list-view { |
| | | width: 100% ; |
| | | border-radius: 10rpx; |
| | | padding: 0 10rpx; |
| | | // padding: 0 10rpx; |
| | | background-color: #fff; |
| | | .list-item { |
| | | |
| | | border-bottom: 1px solid #ddd; |
| | | } |
| | | .list-item:last-child { |
| | | border-bottom: 0; |
| | | /* 右下角 */ |
| | | } |
| | | } |
| | | |
| | | |