| | |
| | | <z-paging ref="paging" v-model="dataList" @query="queryList" show-refresher-update-time> |
| | | <template #top> |
| | | <!-- 增加一个搜索栏 --> |
| | | <wd-search v-model="searchValue" @search="handleSearch"> |
| | | </wd-search> |
| | | <wd-search v-model="searchValue" @search="handleSearch"></wd-search> |
| | | <wd-tabs v-model="activeTab" @change="handleTabChange"> |
| | | <wd-tab title="待点检"></wd-tab> |
| | | <wd-tab title="待确认"></wd-tab> |
| | |
| | | <view class="text-color-gray text-sm mt-1 flex"> |
| | | <text class="mr-3">总数: {{ item.recordCount }}</text> |
| | | | |
| | | <template v-if="activeTab === 0"> |
| | | <text class="mx-3">未点检: {{ item.unCheckCount }}</text> |
| | | | |
| | | </template> |
| | | <template v-else> |
| | | <text class="mx-3">待确认: {{ item.dqrCount }}</text> |
| | | | |
| | | </template> |
| | | <text class="mx-3">已点检: {{ item.checkCount }}</text> |
| | | | |
| | | <text class="ml-3">未点检: {{ item.unCheckCount }}</text> |
| | | </view> |
| | | <view class="text-color-gray text-sm mt-2 flex"> |
| | | <text class="mr-3">正常: {{ item.normalNum }}</text> |
| | |
| | | import { getInspStList } from '@/service/inspect' |
| | | import dayjs from 'dayjs' |
| | | import { useUserStore, useAccessStore, useSystemConfigStore } from '@/store' |
| | | import { isLeader, isLineOrRepair, isOperator } from "@/utils/RoleUtils"; |
| | | import { isLeader, isLineOrRepair, isOperator } from '@/utils/RoleUtils' |
| | | // 标签页相关 |
| | | const activeTab = ref(0) // 默认选中第一个标签页(待点检) |
| | | |