cuiqian2004
2025-09-12 d87c256a957a6a5c3b40eaf9c52ec68f2fc22c97
pages/task/log-list.vue
@@ -20,7 +20,7 @@
            <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>
@@ -28,7 +28,7 @@
            <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>
@@ -59,6 +59,7 @@
      },
      data() {
         return {
            ip:"",
            sceneId: "",
            list: [],
         }
@@ -245,7 +246,7 @@
               }]*/
               this.list = await this.loadTaskLog()
            } catch (ex) {
               show.showError(ex)
               this.showError(ex)
            }
         },
         async loadTaskLog() {
@@ -302,7 +303,7 @@
               console.log(list)
               return list
            } catch (ex) {
               show.showError(ex)
               this.showError(ex)
               return []
            }
         },
@@ -317,7 +318,7 @@
            if (exStr == "{}")
               exStr = ex
            let tip = typeof ex.msg == "string" ? ex.msg : exStr
            showModal(tip, "错误", false)
            showModal(tip, "错误", false,"确定")
         },
      }
   }
@@ -384,8 +385,16 @@
            .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;
                  /* 右下角 */
               }
            }