| | |
| | | import titleImg5 from '@/assets/images/workbench/st8.png' |
| | | import titleImg6 from '@/assets/images/workbench/st9.png' |
| | | import { getStatics } from '@/api/home/index' |
| | | import { useRouter } from 'vue-router' |
| | | const router = useRouter() |
| | | const store = useStore() |
| | | // Object.key; |
| | | // 运维人员:1912328766238597121 |
| | | // 政企专员:1912467025014923265 |
| | | const refresh = () => { |
| | | getStaticsList() |
| | | } |
| | | const jumppage = () => { |
| | | console.log('跳转') |
| | | router.push({ |
| | | path: '/device/index', |
| | | }) |
| | | |
| | | } |
| | | const userInfo = computed(() => store.getters.userInfo) |
| | | const permission = computed(() => store.getters.permission) |
| | | |
| | | console.log(permission, 'permission') |
| | | |
| | | const newtitleData = ref({}) |
| | | const titleData = ref([ |
| | | { |
| | |
| | | } |
| | | } |
| | | const getStaticsList = () => { |
| | | getStatics(userInfo.value.detail.areaCode,).then(res => { |
| | | console.log(permission, 111) |
| | | getStatics(userInfo.value.detail.areaCode).then(res => { |
| | | console.log('userInfo.value.detail.areaCode',permission.value); |
| | | if (permission.value?.device_statistics_six) { |
| | | newtitleData.value = res.data.data |
| | | return |