diff --git a/src/mock/routes.json b/src/mock/routes.json index bc993cd..36cfd47 100644 --- a/src/mock/routes.json +++ b/src/mock/routes.json @@ -53,7 +53,7 @@ "component": "screenData/index", "name": "screenData", "meta": { - "title": "供暖办", + "title": "供暖办监控", "icon": "document", "hidden": false, "roles": ["biadmin"], diff --git a/src/types/components.d.ts b/src/types/components.d.ts index a666f72..12b6d56 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -9,9 +9,58 @@ declare module '@vue/runtime-core' { export interface GlobalComponents { Breadcrumb: typeof import('./../components/Breadcrumb/index.vue')['default'] Button: typeof import('./../components/Widgets/button.vue')['default'] + ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb'] + ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem'] + ElButton: typeof import('element-plus/es')['ElButton'] + ElCard: typeof import('element-plus/es')['ElCard'] + ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] + ElCol: typeof import('element-plus/es')['ElCol'] + ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] + ElDialog: typeof import('element-plus/es')['ElDialog'] + ElDivider: typeof import('element-plus/es')['ElDivider'] + ElDropdown: typeof import('element-plus/es')['ElDropdown'] + ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] + ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] + ElForm: typeof import('element-plus/es')['ElForm'] + ElFormItem: typeof import('element-plus/es')['ElFormItem'] + ElInput: typeof import('element-plus/es')['ElInput'] + ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] + ElMenu: typeof import('element-plus/es')['ElMenu'] + ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] + ElOption: typeof import('element-plus/es')['ElOption'] + ElPagination: typeof import('element-plus/es')['ElPagination'] + ElPopover: typeof import('element-plus/es')['ElPopover'] + ElRow: typeof import('element-plus/es')['ElRow'] + ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] + ElSelect: typeof import('element-plus/es')['ElSelect'] + ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] + ElSwitch: typeof import('element-plus/es')['ElSwitch'] + ElTable: typeof import('element-plus/es')['ElTable'] + ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] + ElTabPane: typeof import('element-plus/es')['ElTabPane'] + ElTabs: typeof import('element-plus/es')['ElTabs'] + ElTimePicker: typeof import('element-plus/es')['ElTimePicker'] + ElTooltip: typeof import('element-plus/es')['ElTooltip'] + ElTree: typeof import('element-plus/es')['ElTree'] Hamburger: typeof import('./../components/Hamburger/index.vue')['default'] LangSelect: typeof import('./../components/LangSelect/index.vue')['default'] MultiUpload: typeof import('./../components/Upload/MultiUpload.vue')['default'] + NBadge: typeof import('naive-ui')['NBadge'] + NButton: typeof import('naive-ui')['NButton'] + NCard: typeof import('naive-ui')['NCard'] + NCollapse: typeof import('naive-ui')['NCollapse'] + NCollapseItem: typeof import('naive-ui')['NCollapseItem'] + NDrawer: typeof import('naive-ui')['NDrawer'] + NDrawerContent: typeof import('naive-ui')['NDrawerContent'] + NIcon: typeof import('naive-ui')['NIcon'] + NInput: typeof import('naive-ui')['NInput'] + NInputNumber: typeof import('naive-ui')['NInputNumber'] + NMenu: typeof import('naive-ui')['NMenu'] + NModal: typeof import('naive-ui')['NModal'] + NScrollbar: typeof import('naive-ui')['NScrollbar'] + NSpin: typeof import('naive-ui')['NSpin'] + NSwitch: typeof import('naive-ui')['NSwitch'] + NTooltip: typeof import('naive-ui')['NTooltip'] Pagination: typeof import('./../components/Pagination/index.vue')['default'] RightPanel: typeof import('./../components/RightPanel/index.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/views/data-visual/components/header.vue b/src/views/data-visual/components/header.vue index 21a7c48..8910c9b 100644 --- a/src/views/data-visual/components/header.vue +++ b/src/views/data-visual/components/header.vue @@ -132,7 +132,7 @@ function getDeptData() { getDeptList(params).then((res: any) => { if (res.code === 200) { deptData.value = res.data; - counterStore.deptStore(res.data[0].deptId); + counterStore.deptStore(res.data[1].deptId); } }); }