diff --git a/mock/list.ts b/mock/list.ts new file mode 100644 index 0000000..bbaf394 --- /dev/null +++ b/mock/list.ts @@ -0,0 +1,503 @@ +import { MockMethod } from "vite-plugin-mock"; + +export default [ + { + url: "/getCardList", + method: "post", + response: () => { + return { + success: true, + data: { + list: [ + { + index: 1, + isEnabled: true, + type: 4, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg", + deviceSort: "SSL证书", + state: "在线", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + }, + { + index: 2, + isEnabled: false, + type: 4, + banner: "https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg", + deviceSort: "人脸识别", + state: "在线", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + }, + { + index: 3, + isEnabled: false, + type: 5, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "CVM", + state: "故障", + description: + "云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗" + }, + { + index: 4, + isEnabled: false, + type: 2, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "SSL证书", + state: "离线", + description: + "云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。" + }, + { + index: 5, + isEnabled: true, + type: 3, + banner: + "https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg", + deviceSort: "SSL证书", + state: "在线", + description: + "云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。" + }, + { + index: 6, + isEnabled: true, + type: 3, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "T-Sec 云防火墙", + state: "在线", + description: + "腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客" + }, + { + index: 7, + isEnabled: false, + type: 1, + banner: "https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg", + deviceSort: "CVM", + state: "离线", + description: + "腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客" + }, + { + index: 8, + isEnabled: true, + type: 3, + banner: "https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg", + deviceSort: "SSL证书", + state: "故障", + description: + "云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗" + }, + { + index: 9, + isEnabled: false, + type: 1, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg", + deviceSort: "SSL证书", + state: "离线", + description: + "腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客" + }, + { + index: 10, + isEnabled: true, + type: 4, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "CVM", + state: "在线", + description: + "云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。" + }, + { + index: 11, + isEnabled: true, + type: 5, + banner: "https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg", + deviceSort: "云数据库", + state: "在线", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + }, + { + index: 12, + isEnabled: true, + type: 2, + banner: "https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg", + deviceSort: "SSL证书", + state: "在线", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + }, + { + index: 13, + isEnabled: true, + type: 3, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg", + deviceSort: "云数据库", + state: "故障", + description: + "腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客" + }, + { + index: 14, + isEnabled: false, + type: 5, + banner: "https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg", + deviceSort: "SSL证书", + state: "故障", + description: + "基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸" + }, + { + index: 15, + isEnabled: true, + type: 2, + banner: "https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg", + deviceSort: "云数据库", + state: "在线", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + }, + { + index: 16, + isEnabled: false, + type: 3, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg", + deviceSort: "CVM", + state: "离线", + description: + "基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸" + }, + { + index: 17, + isEnabled: false, + type: 5, + banner: + "https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg", + deviceSort: "云数据库", + state: "在线", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + }, + { + index: 18, + isEnabled: false, + type: 4, + banner: + "https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg", + deviceSort: "云数据库", + state: "离线", + description: + "腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客" + }, + { + index: 19, + isEnabled: true, + type: 2, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "CVM", + state: "在线", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + }, + { + index: 20, + isEnabled: true, + type: 4, + banner: + "https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg", + deviceSort: "SSL证书", + state: "故障", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + }, + { + index: 21, + isEnabled: false, + type: 4, + banner: "https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg", + deviceSort: "云数据库", + state: "在线", + description: + "云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗" + }, + { + index: 22, + isEnabled: false, + type: 3, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg", + deviceSort: "CVM", + state: "在线", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + }, + { + index: 23, + isEnabled: true, + type: 1, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "人脸识别", + state: "在线", + description: + "基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸" + }, + { + index: 24, + isEnabled: true, + type: 4, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "人脸识别", + state: "在线", + description: + "基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸" + }, + { + index: 25, + isEnabled: false, + type: 5, + banner: + "https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg", + deviceSort: "CVM", + state: "在线", + description: + "云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗" + }, + { + index: 26, + isEnabled: true, + type: 4, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg", + deviceSort: "SSL证书", + state: "在线", + description: + "云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗" + }, + { + index: 27, + isEnabled: true, + type: 5, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "CVM", + state: "在线", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + }, + { + index: 28, + isEnabled: false, + type: 4, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "云数据库", + state: "在线", + description: + "基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸" + }, + { + index: 29, + isEnabled: false, + type: 5, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg", + deviceSort: "CVM", + state: "故障", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + }, + { + index: 30, + isEnabled: true, + type: 1, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "CVM", + state: "离线", + description: + "云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗" + }, + { + index: 31, + isEnabled: true, + type: 4, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg", + deviceSort: "CVM", + state: "故障", + description: + "基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸" + }, + { + index: 32, + isEnabled: false, + type: 3, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg", + deviceSort: "T-Sec 云防火墙", + state: "在线", + description: + "腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客" + }, + { + index: 33, + isEnabled: true, + type: 3, + banner: "https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg", + deviceSort: "CVM", + state: "在线", + description: + "云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。" + }, + { + index: 34, + isEnabled: false, + type: 2, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "SSL证书", + state: "在线", + description: + "腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客" + }, + { + index: 35, + isEnabled: false, + type: 1, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg", + deviceSort: "云数据库", + state: "在线", + description: + "基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸" + }, + { + index: 36, + isEnabled: false, + type: 4, + banner: + "https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg", + deviceSort: "SSL证书", + state: "在线", + description: + "腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客" + }, + { + index: 37, + isEnabled: true, + type: 5, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg", + deviceSort: "CVM", + state: "离线", + description: + "云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。" + }, + { + index: 38, + isEnabled: false, + type: 4, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "云数据库", + state: "故障", + description: + "云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗" + }, + { + index: 39, + isEnabled: false, + type: 3, + banner: "https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg", + deviceSort: "人脸识别", + state: "故障", + description: + "云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗" + }, + { + index: 40, + isEnabled: true, + type: 4, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "CVM", + state: "在线", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + }, + { + index: 41, + isEnabled: true, + type: 4, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "T-Sec 云防火墙", + state: "在线", + description: + "云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗" + }, + { + index: 42, + isEnabled: true, + type: 3, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg", + deviceSort: "T-Sec 云防火墙", + state: "在线", + description: + "云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗" + }, + { + index: 43, + isEnabled: false, + type: 3, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg", + deviceSort: "SSL证书", + state: "故障", + description: + "云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗" + }, + { + index: 44, + isEnabled: true, + type: 4, + banner: "https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg", + deviceSort: "SSL证书", + state: "在线", + description: + "云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗" + }, + { + index: 45, + isEnabled: false, + type: 3, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "T-Sec 云防火墙", + state: "离线", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + }, + { + index: 46, + isEnabled: true, + type: 2, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg", + deviceSort: "SSL证书", + state: "在线", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + }, + { + index: 47, + isEnabled: false, + type: 4, + banner: "https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg", + deviceSort: "SSL证书", + state: "在线", + description: + "腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客" + }, + { + index: 48, + isEnabled: false, + type: 3, + banner: "https://tdesign.gtimg.com/tdesign-pro/ssl.jpg", + deviceSort: "T-Sec 云防火墙", + state: "在线", + description: + "SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部" + } + ] + } + }; + } + } +] as MockMethod[]; diff --git a/src/api/list.ts b/src/api/list.ts new file mode 100644 index 0000000..5787148 --- /dev/null +++ b/src/api/list.ts @@ -0,0 +1,14 @@ +import { http } from "@/utils/http"; + +type Result = { + success: boolean; + data?: { + /** 列表数据 */ + list: Array; + }; +}; + +/** 卡片列表 */ +export const getCardList = (data?: object) => { + return http.request("post", "/getCardList", { data }); +}; diff --git a/src/assets/control.png b/src/assets/control.png new file mode 100644 index 0000000..58d983f Binary files /dev/null and b/src/assets/control.png differ diff --git a/src/assets/svg/device/control.svg b/src/assets/svg/device/control.svg new file mode 100644 index 0000000..34cd73a --- /dev/null +++ b/src/assets/svg/device/control.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/assets/svg/device/monitor1.svg b/src/assets/svg/device/monitor1.svg new file mode 100644 index 0000000..3d5f6fb --- /dev/null +++ b/src/assets/svg/device/monitor1.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/svg/device/monitor2.svg b/src/assets/svg/device/monitor2.svg new file mode 100644 index 0000000..2047a64 --- /dev/null +++ b/src/assets/svg/device/monitor2.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts new file mode 100644 index 0000000..13bccc3 --- /dev/null +++ b/src/router/modules/device.ts @@ -0,0 +1,20 @@ +export default { + path: "/device", + meta: { + title: "设备列表", + icon: "homeFilled", + // showLink: false, + rank: 2 + }, + children: [ + { + path: "/device", + name: "DeviceList", + component: () => import("@/views/device/index.vue"), + meta: { + title: "设备列表", + roles: ["admin", "common"] + } + } + ] +} as RouteConfigsTable; diff --git a/src/views/device/components/DeviceCard.vue b/src/views/device/components/DeviceCard.vue new file mode 100644 index 0000000..74791d0 --- /dev/null +++ b/src/views/device/components/DeviceCard.vue @@ -0,0 +1,169 @@ + + + + + diff --git a/src/views/device/components/TreeCard.vue b/src/views/device/components/TreeCard.vue new file mode 100644 index 0000000..0910260 --- /dev/null +++ b/src/views/device/components/TreeCard.vue @@ -0,0 +1,17 @@ + + + + + diff --git a/src/views/device/index.vue b/src/views/device/index.vue new file mode 100644 index 0000000..1bb1950 --- /dev/null +++ b/src/views/device/index.vue @@ -0,0 +1,162 @@ + + + diff --git a/src/views/workbench/components/chart/pie3D.vue b/src/views/workbench/components/chart/pie3D.vue index 962630f..ee2a9bc 100644 --- a/src/views/workbench/components/chart/pie3D.vue +++ b/src/views/workbench/components/chart/pie3D.vue @@ -184,7 +184,7 @@ function getPie3D(pieData, internalDiameterRatio) { false, k, // 我这里做了一个处理,使除了第一个之外的值都是10 - series[i].pieData.value + series[i].pieData.value === series[0].pieData.value ? 15 : 15 ); startValue = endValue; @@ -222,6 +222,9 @@ function getPie3D(pieData, internalDiameterRatio) { color: "#fff" // 设置标示线的颜色 } }, + tooltip: { + show: false + }, startAngle: 0, //起始角度,支持范围[0, 360]。 clockwise: false, //饼图的扇区是否是顺时针排布。上述这两项配置主要是为了对齐3d的样式 radius: ["20%", "50%"],