| | |
| | | <view class="text-[#0D867F] font-medium py-2 text-lg"> |
| | | <text>亨旺特导线缆上报系统</text> |
| | | </view> |
| | | <view> |
| | | <ReportWorkTime /> |
| | | </view> |
| | | </view> |
| | | <WorkerCallingCard /> |
| | | |
| | |
| | | </template> |
| | | </wd-notice-bar> |
| | | <!-- 快捷导航 --> |
| | | <wd-grid clickable :column="4" class="mt-2"> |
| | | <wd-grid-item |
| | | v-for="(item, index) in navList" |
| | | :key="index" |
| | | use-slot |
| | | link-type="navigateTo" |
| | | :url="item.url" |
| | | > |
| | | <view class="p-2"> |
| | | <image class="w-72rpx h-72rpx rounded-8rpx" :src="item.icon" /> |
| | | </view> |
| | | <view class="text">{{ item.title }}</view> |
| | | </wd-grid-item> |
| | | <wd-grid clickable :column="1" class="mt-2"> |
| | | <view v-for="(item, index) in navList"> |
| | | <wd-grid-item v-if="item.show" :key="index" use-slot link-type="navigateTo" :url="item.url"> |
| | | <view class="p-2"> |
| | | <image class="w-72rpx h-72rpx rounded-8rpx" :src="item.icon" /> |
| | | </view> |
| | | <view class="text">{{ item.title }}</view> |
| | | </wd-grid-item> |
| | | </view> |
| | | </wd-grid> |
| | | |
| | | <!-- 数据统计 --> |
| | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { reactive } from "vue"; |
| | | import { dayjs } from "wot-design-uni"; |
| | | import LogAPI, { VisitStatsVO } from "@/api/system/log"; |
| | | import WorkerCallingCard from "@/components/worker-calling-card/index.vue"; |
| | | import ReportWorkTime from "./components/ReportWorkTime.vue"; |
| | | import HomeApi from "@/api/home"; |
| | | |
| | | const visitStatsData = ref<VisitStatsVO>({ |
| | | todayUvCount: 0, |
| | |
| | | icon: "/static/icons/user.png", |
| | | title: "生产管理", |
| | | url: "/pages/production/index", |
| | | show: false, |
| | | }, |
| | | // { |
| | | // icon: "/static/icons/role.png", |
| | | // title: "角色管理", |
| | | // url: "/pages/work/role/index", |
| | | // prem: "sys:role:query", |
| | | // }, |
| | | // { |
| | | // icon: "/static/icons/notice.png", |
| | | // title: "通知公告", |
| | | // url: "/pages/work/notice/index", |
| | | // prem: "sys:notice:query", |
| | | // }, |
| | | // { |
| | | // icon: "/static/icons/setting.png", |
| | | // title: "系统配置", |
| | | // url: "/pages/work/config/index", |
| | | // prem: "sys:config:query", |
| | | // }, |
| | | { |
| | | icon: "/static/icons/role.png", |
| | | title: "角色管理", |
| | | url: "/pages/work/role/index", |
| | | prem: "sys:role:query", |
| | | }, |
| | | { |
| | | icon: "/static/icons/notice.png", |
| | | title: "通知公告", |
| | | url: "/pages/work/notice/index", |
| | | prem: "sys:notice:query", |
| | | }, |
| | | { |
| | | icon: "/static/icons/setting.png", |
| | | title: "系统配置", |
| | | url: "/pages/work/config/index", |
| | | prem: "sys:config:query", |
| | | icon: "/static/icons/log.png", |
| | | title: "时效报工", |
| | | url: "/pages/timely/index", |
| | | show: false, |
| | | }, |
| | | ]); |
| | | |
| | |
| | | loadVisitTrendData(); |
| | | }; |
| | | |
| | | onReady(() => { |
| | | // loadVisitStatsData(); |
| | | // loadVisitTrendData(); |
| | | const init = async () => { |
| | | const { data } = await HomeApi.getIndex(); |
| | | if (data.deviceGroupName == "时效组") { |
| | | navList[1].show = true; |
| | | } else { |
| | | navList[0].show = true; |
| | | } |
| | | }; |
| | | |
| | | onMounted(() => { |
| | | init(); |
| | | }); |
| | | </script> |
| | | |