<template>
  <view class="all_box">
    <view class="task_list">
      <!-- <taskCard class="task_card" v-for="item in 10" :key="item"></taskCard> -->
      <view v-for="item in 10" :key="item" @click="naviTo('/subpkg/dispatching/dispatching')">
        <task-item></task-item>
      </view>
      <!-- <u-empty icon="/static/img/empty/data.png" text="没有任务"></u-empty> -->
    </view>
    <!-- <u-loadmore v-else :status="loadConfig.status" :loading-text="loadConfig.loadingText"
        :loadmore-text="loadConfig.loadmoreText" :nomore-text="loadConfig.nomoreText" /> -->
  </view>
</template>

<script>
  import { getTaskListApi } from '@/api/oa'
  import { Toast } from '@/libs/uniApi.js'
  import taskItem from "@/components/task/taskItem.vue"
  export default {
    components:{
      taskItem
    },
    data() {
      return {
        loadConfig:{
          page: 1,
          limit: 15,
          lastpage: '',
          loadingText: '努力加载中',
          loadmoreText: '轻轻上拉',
          nomoreText: '我也是有底线的~~',
          status: 'loadmore'
        },
        list: []
      }
    },
    onLoad() {

    },
    onShow() {
      
    },
    methods: {
      naviTo(url) {
        url ?
          uni.navigateTo({
            url: url,
          }) : Toast('暂未开放')
      },
    },
    onPullDownRefresh() {
      this.close()
      uni.stopPullDownRefresh()
    },
    onReachBottom() {
      
    },
  }
</script>

<style lang="scss" scoped>
 .task_list{
   padding-top: 28rpx;
 }
</style>
