diff --git a/components.d.ts b/components.d.ts index 3d1de6e0..36a3eb55 100644 --- a/components.d.ts +++ b/components.d.ts @@ -7,37 +7,10 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { - ABreadcrumb: typeof import('ant-design-vue/es')['Breadcrumb'] - ABreadcrumbItem: typeof import('ant-design-vue/es')['BreadcrumbItem'] - AButton: typeof import('ant-design-vue/es')['Button'] - ACheckbox: typeof import('ant-design-vue/es')['Checkbox'] + ACard: typeof import('ant-design-vue/es')['Card'] ACol: typeof import('ant-design-vue/es')['Col'] - ADatePicker: typeof import('ant-design-vue/es')['DatePicker'] - ADescriptions: typeof import('ant-design-vue/es')['Descriptions'] - ADescriptionsItem: typeof import('ant-design-vue/es')['DescriptionsItem'] - ADivider: typeof import('ant-design-vue/es')['Divider'] - ADrawer: typeof import('ant-design-vue/es')['Drawer'] - AForm: typeof import('ant-design-vue/es')['Form'] - AFormItem: typeof import('ant-design-vue/es')['FormItem'] - AInput: typeof import('ant-design-vue/es')['Input'] - AInputNumber: typeof import('ant-design-vue/es')['InputNumber'] - AInputPassword: typeof import('ant-design-vue/es')['InputPassword'] - AModal: typeof import('ant-design-vue/es')['Modal'] - APopover: typeof import('ant-design-vue/es')['Popover'] - ARadioButton: typeof import('ant-design-vue/es')['RadioButton'] - ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup'] ARow: typeof import('ant-design-vue/es')['Row'] - ASelect: typeof import('ant-design-vue/es')['Select'] - ASpace: typeof import('ant-design-vue/es')['Space'] - ASpin: typeof import('ant-design-vue/es')['Spin'] - AStep: typeof import('ant-design-vue/es')['Step'] - ASteps: typeof import('ant-design-vue/es')['Steps'] - ASwitch: typeof import('ant-design-vue/es')['Switch'] - ATable: typeof import('ant-design-vue/es')['Table'] - ATabPane: typeof import('ant-design-vue/es')['TabPane'] - ATabs: typeof import('ant-design-vue/es')['Tabs'] - ATextarea: typeof import('ant-design-vue/es')['Textarea'] - AUpload: typeof import('ant-design-vue/es')['Upload'] + ATooltip: typeof import('ant-design-vue/es')['Tooltip'] GeoComponent: typeof import('./src/components/GeoComponent/index.vue')['default'] MonacoEditor: typeof import('./src/components/MonacoEditor/index.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/router/menu.ts b/src/router/menu.ts index 7b35793d..6110e81b 100644 --- a/src/router/menu.ts +++ b/src/router/menu.ts @@ -23,6 +23,10 @@ export default [ { path: '/demo', component: () => import('@/views/demo/index.vue') - } + }, + { + path: '/iot/home', + component: () => import('@/views/iot/home/index.vue') + }, // end: 测试用, 可删除 ] \ No newline at end of file diff --git a/src/views/iot/home/components/BasicCountCard.vue b/src/views/iot/home/components/BasicCountCard.vue new file mode 100644 index 00000000..0473f566 --- /dev/null +++ b/src/views/iot/home/components/BasicCountCard.vue @@ -0,0 +1,99 @@ + + + + 基础统计 + + + 详情 + + + + + CPU使用率 + {{ cpu }} + + + + JVM内存 + {{ jvm }} + + + + + + + + + diff --git a/src/views/iot/home/components/BootCard.vue b/src/views/iot/home/components/BootCard.vue new file mode 100644 index 00000000..0aed8007 --- /dev/null +++ b/src/views/iot/home/components/BootCard.vue @@ -0,0 +1,126 @@ + + + + {{ cardTitle }} + + + + {{ item.english }} + {{ item.label }} + + + + + + + + + diff --git a/src/views/iot/home/components/DevOpsHome/index.vue b/src/views/iot/home/components/DevOpsHome/index.vue new file mode 100644 index 00000000..13ad0155 --- /dev/null +++ b/src/views/iot/home/components/DevOpsHome/index.vue @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/iot/home/components/DeviceCountCard.vue b/src/views/iot/home/components/DeviceCountCard.vue new file mode 100644 index 00000000..13a1c8a1 --- /dev/null +++ b/src/views/iot/home/components/DeviceCountCard.vue @@ -0,0 +1,99 @@ + + + + 设备统计 + + + 详情 + + + + + 产品数量 + {{ projectNum }} + + + + 设备数量 + {{ deviceNum }} + + + + + + + + + diff --git a/src/views/iot/home/components/DeviceHome/index.vue b/src/views/iot/home/components/DeviceHome/index.vue new file mode 100644 index 00000000..94f7ed93 --- /dev/null +++ b/src/views/iot/home/components/DeviceHome/index.vue @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/iot/home/components/InitHome/index.vue b/src/views/iot/home/components/InitHome/index.vue new file mode 100644 index 00000000..89191b4a --- /dev/null +++ b/src/views/iot/home/components/InitHome/index.vue @@ -0,0 +1,30 @@ + + + 请选择首页视图 + + + + + + + + + diff --git a/src/views/iot/home/components/PlatformPicCard.vue b/src/views/iot/home/components/PlatformPicCard.vue new file mode 100644 index 00000000..bafc8005 --- /dev/null +++ b/src/views/iot/home/components/PlatformPicCard.vue @@ -0,0 +1,61 @@ + + + + 平台架构图 + PLATFORM ARCHITECTURE DIAGRAM + + + + + + + + diff --git a/src/views/iot/home/components/StepCard.vue b/src/views/iot/home/components/StepCard.vue new file mode 100644 index 00000000..f8c7f4aa --- /dev/null +++ b/src/views/iot/home/components/StepCard.vue @@ -0,0 +1,127 @@ + + + + {{ cardTitle }} + + + {{ tooltip }} + + + + + + + + + {{ item.title }} + + + {{ item.details }} + + + + + + + + diff --git a/src/views/iot/home/index.vue b/src/views/iot/home/index.vue new file mode 100644 index 00000000..6b062708 --- /dev/null +++ b/src/views/iot/home/index.vue @@ -0,0 +1,43 @@ + + + + + + + + + + + + + +
PLATFORM ARCHITECTURE DIAGRAM