diff --git a/src/views/ops/pages/dc/database/components/Detail.vue b/src/views/ops/pages/dc/database/components/Detail.vue new file mode 100644 index 0000000..a40f3e8 --- /dev/null +++ b/src/views/ops/pages/dc/database/components/Detail.vue @@ -0,0 +1,705 @@ + + + + + {{ record.name || '办公PC详情' }} + + {{ getStatusText(record.status) }} + {{ record.server_type || '未知类型' }} + {{ record.os || '未知系统' }} + + + + + + + + 远程登录 + + + + + + 重启 + + + + + + + + {{ record.unique_id || '-' }} + {{ record.name || '-' }} + {{ record.os || '-' }} + {{ record.location || '-' }} + {{ record.tags || '-' }} + {{ record.ip || '-' }} + {{ record.remote_port || '-' }} + {{ record.agent_url || '-' }} + + + {{ record.data_collection ? '已开启' : '未开启' }} + + + {{ record.collection_interval ? `${record.collection_interval}分钟` : '-' }} + {{ record.remark || '-' }} + + + + + + + + 1小时 + 3小时 + 6小时 + 12小时 + 1天 + 3天 + 7天 + 14天 + 自定义 + + + + + + + + CPU使用率_宿主机视角 (%) + + + 平均值 + 最大值 + 最小值 + + + + + + + (ECS)CPU使用率_平均值 + (ECS)CPU使用率_最小值 + (ECS)CPU使用率_最大值 + + + + + + + + 总带宽 (bit/s) + + + 平均值 + 最大值 + + + + + + + 内网流入带宽 + 内网流出带宽 + + + + + + + + 公网带宽 (bit/s) + + + 平均值 + 最大值 + + + + + + + 公网流入带宽 + 公网流出带宽 + + + + + + + + + + 公网流出带宽使用率 (%) + + + 平均值 + 最大值 + + + + + + + (ECS)公网流出带宽使用率 + + + + + + + + 磁盘读取写入BPS (bytes/s) + + + 平均值 + 最大值 + + + + + + + (ECS)所有磁盘读取BPS + (ECS)所有磁盘写入BPS + + + + + + + + 磁盘读取写入IOPS (Count/Second) + + + 平均值 + 最大值 + + + + + + + (ECS)所有磁盘每秒读取次数 + (ECS)所有磁盘每秒写入次数 + + + + + + + + + + 同时连接数 (Count) + + + 平均值 + 最大值 + + + + + + + 同时连接数 + + + + + + + + RDMA流量使用信息 (bit/s) + + + 平均值 + 最大值 + + + + + + + + + + + + + + + RDMA资源使用信息 (Count) + + + 平均值 + 最大值 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/ops/pages/dc/database/components/FormDialog.vue b/src/views/ops/pages/dc/database/components/FormDialog.vue new file mode 100644 index 0000000..d9b9e14 --- /dev/null +++ b/src/views/ops/pages/dc/database/components/FormDialog.vue @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + + + Windows + Linux + 其它 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1分钟 + 5分钟 + 10分钟 + 30分钟 + + + + + + + + + + + + + diff --git a/src/views/ops/pages/dc/database/components/QuickConfigDialog.vue b/src/views/ops/pages/dc/database/components/QuickConfigDialog.vue new file mode 100644 index 0000000..6e26b54 --- /dev/null +++ b/src/views/ops/pages/dc/database/components/QuickConfigDialog.vue @@ -0,0 +1,90 @@ + + + + + + + 为空则不可远程访问 + + + + + + + + + + + diff --git a/src/views/ops/pages/dc/database/components/RemoteControl.vue b/src/views/ops/pages/dc/database/components/RemoteControl.vue new file mode 100644 index 0000000..09c60fc --- /dev/null +++ b/src/views/ops/pages/dc/database/components/RemoteControl.vue @@ -0,0 +1,310 @@ + + + + + + {{ record.name || '远程控制' }} + {{ getStatusText(record.status) }} + + + + 关闭 + + + + + + + + + + SSH + 免密连接 + + + + + + + + + + + + + + + + + + + + + + + + + + + 连接 + + 取消 + + + + + + + + + 已连接: {{ loginForm.username }}@{{ loginForm.host }}:{{ loginForm.port }} + + 断开 + 全屏 + + + + + {{ line.prompt }} + {{ line.content }} + + + {{ prompt }} + + + + + + + + + + diff --git a/src/views/ops/pages/dc/database/index.vue b/src/views/ops/pages/dc/database/index.vue index ab3052a..269aacf 100644 --- a/src/views/ops/pages/dc/database/index.vue +++ b/src/views/ops/pages/dc/database/index.vue @@ -163,7 +163,7 @@ - + + + + {{ record.name || '办公PC详情' }} + + {{ getStatusText(record.status) }} + {{ record.server_type || '未知类型' }} + {{ record.os || '未知系统' }} + + + + + + + + 远程登录 + + + + + + 重启 + + + + + + + + {{ record.unique_id || '-' }} + {{ record.name || '-' }} + {{ record.os || '-' }} + {{ record.location || '-' }} + {{ record.tags || '-' }} + {{ record.ip || '-' }} + {{ record.remote_port || '-' }} + {{ record.agent_url || '-' }} + + + {{ record.data_collection ? '已开启' : '未开启' }} + + + {{ record.collection_interval ? `${record.collection_interval}分钟` : '-' }} + {{ record.remark || '-' }} + + + + + + + + 1小时 + 3小时 + 6小时 + 12小时 + 1天 + 3天 + 7天 + 14天 + 自定义 + + + + + + + + CPU使用率_宿主机视角 (%) + + + 平均值 + 最大值 + 最小值 + + + + + + + (ECS)CPU使用率_平均值 + (ECS)CPU使用率_最小值 + (ECS)CPU使用率_最大值 + + + + + + + + 总带宽 (bit/s) + + + 平均值 + 最大值 + + + + + + + 内网流入带宽 + 内网流出带宽 + + + + + + + + 公网带宽 (bit/s) + + + 平均值 + 最大值 + + + + + + + 公网流入带宽 + 公网流出带宽 + + + + + + + + + + 公网流出带宽使用率 (%) + + + 平均值 + 最大值 + + + + + + + (ECS)公网流出带宽使用率 + + + + + + + + 磁盘读取写入BPS (bytes/s) + + + 平均值 + 最大值 + + + + + + + (ECS)所有磁盘读取BPS + (ECS)所有磁盘写入BPS + + + + + + + + 磁盘读取写入IOPS (Count/Second) + + + 平均值 + 最大值 + + + + + + + (ECS)所有磁盘每秒读取次数 + (ECS)所有磁盘每秒写入次数 + + + + + + + + + + 同时连接数 (Count) + + + 平均值 + 最大值 + + + + + + + 同时连接数 + + + + + + + + RDMA流量使用信息 (bit/s) + + + 平均值 + 最大值 + + + + + + + + + + + + + + + RDMA资源使用信息 (Count) + + + 平均值 + 最大值 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/ops/pages/dc/middleware/components/FormDialog.vue b/src/views/ops/pages/dc/middleware/components/FormDialog.vue new file mode 100644 index 0000000..d9b9e14 --- /dev/null +++ b/src/views/ops/pages/dc/middleware/components/FormDialog.vue @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + + + Windows + Linux + 其它 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1分钟 + 5分钟 + 10分钟 + 30分钟 + + + + + + + + + + + + + diff --git a/src/views/ops/pages/dc/middleware/components/QuickConfigDialog.vue b/src/views/ops/pages/dc/middleware/components/QuickConfigDialog.vue new file mode 100644 index 0000000..6e26b54 --- /dev/null +++ b/src/views/ops/pages/dc/middleware/components/QuickConfigDialog.vue @@ -0,0 +1,90 @@ + + + + + + + 为空则不可远程访问 + + + + + + + + + + + diff --git a/src/views/ops/pages/dc/middleware/components/RemoteControl.vue b/src/views/ops/pages/dc/middleware/components/RemoteControl.vue new file mode 100644 index 0000000..09c60fc --- /dev/null +++ b/src/views/ops/pages/dc/middleware/components/RemoteControl.vue @@ -0,0 +1,310 @@ + + + + + + {{ record.name || '远程控制' }} + {{ getStatusText(record.status) }} + + + + 关闭 + + + + + + + + + + SSH + 免密连接 + + + + + + + + + + + + + + + + + + + + + + + + + + + 连接 + + 取消 + + + + + + + + + 已连接: {{ loginForm.username }}@{{ loginForm.host }}:{{ loginForm.port }} + + 断开 + 全屏 + + + + + {{ line.prompt }} + {{ line.content }} + + + {{ prompt }} + + + + + + + + + + diff --git a/src/views/ops/pages/dc/middleware/index.vue b/src/views/ops/pages/dc/middleware/index.vue index ee5c18b..9cd9a0d 100644 --- a/src/views/ops/pages/dc/middleware/index.vue +++ b/src/views/ops/pages/dc/middleware/index.vue @@ -163,7 +163,7 @@ - + + + + {{ record.name || '办公PC详情' }} + + {{ getStatusText(record.status) }} + {{ record.server_type || '未知类型' }} + {{ record.os || '未知系统' }} + + + + + + + + 远程登录 + + + + + + 重启 + + + + + + + + {{ record.unique_id || '-' }} + {{ record.name || '-' }} + {{ record.os || '-' }} + {{ record.location || '-' }} + {{ record.tags || '-' }} + {{ record.ip || '-' }} + {{ record.remote_port || '-' }} + {{ record.agent_url || '-' }} + + + {{ record.data_collection ? '已开启' : '未开启' }} + + + {{ record.collection_interval ? `${record.collection_interval}分钟` : '-' }} + {{ record.remark || '-' }} + + + + + + + + 1小时 + 3小时 + 6小时 + 12小时 + 1天 + 3天 + 7天 + 14天 + 自定义 + + + + + + + + CPU使用率_宿主机视角 (%) + + + 平均值 + 最大值 + 最小值 + + + + + + + (ECS)CPU使用率_平均值 + (ECS)CPU使用率_最小值 + (ECS)CPU使用率_最大值 + + + + + + + + 总带宽 (bit/s) + + + 平均值 + 最大值 + + + + + + + 内网流入带宽 + 内网流出带宽 + + + + + + + + 公网带宽 (bit/s) + + + 平均值 + 最大值 + + + + + + + 公网流入带宽 + 公网流出带宽 + + + + + + + + + + 公网流出带宽使用率 (%) + + + 平均值 + 最大值 + + + + + + + (ECS)公网流出带宽使用率 + + + + + + + + 磁盘读取写入BPS (bytes/s) + + + 平均值 + 最大值 + + + + + + + (ECS)所有磁盘读取BPS + (ECS)所有磁盘写入BPS + + + + + + + + 磁盘读取写入IOPS (Count/Second) + + + 平均值 + 最大值 + + + + + + + (ECS)所有磁盘每秒读取次数 + (ECS)所有磁盘每秒写入次数 + + + + + + + + + + 同时连接数 (Count) + + + 平均值 + 最大值 + + + + + + + 同时连接数 + + + + + + + + RDMA流量使用信息 (bit/s) + + + 平均值 + 最大值 + + + + + + + + + + + + + + + RDMA资源使用信息 (Count) + + + 平均值 + 最大值 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/ops/pages/dc/network/components/FormDialog.vue b/src/views/ops/pages/dc/network/components/FormDialog.vue new file mode 100644 index 0000000..d9b9e14 --- /dev/null +++ b/src/views/ops/pages/dc/network/components/FormDialog.vue @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + + + Windows + Linux + 其它 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1分钟 + 5分钟 + 10分钟 + 30分钟 + + + + + + + + + + + + + diff --git a/src/views/ops/pages/dc/network/components/QuickConfigDialog.vue b/src/views/ops/pages/dc/network/components/QuickConfigDialog.vue new file mode 100644 index 0000000..6e26b54 --- /dev/null +++ b/src/views/ops/pages/dc/network/components/QuickConfigDialog.vue @@ -0,0 +1,90 @@ + + + + + + + 为空则不可远程访问 + + + + + + + + + + + diff --git a/src/views/ops/pages/dc/network/components/RemoteControl.vue b/src/views/ops/pages/dc/network/components/RemoteControl.vue new file mode 100644 index 0000000..09c60fc --- /dev/null +++ b/src/views/ops/pages/dc/network/components/RemoteControl.vue @@ -0,0 +1,310 @@ + + + + + + {{ record.name || '远程控制' }} + {{ getStatusText(record.status) }} + + + + 关闭 + + + + + + + + + + SSH + 免密连接 + + + + + + + + + + + + + + + + + + + + + + + + + + + 连接 + + 取消 + + + + + + + + + 已连接: {{ loginForm.username }}@{{ loginForm.host }}:{{ loginForm.port }} + + 断开 + 全屏 + + + + + {{ line.prompt }} + {{ line.content }} + + + {{ prompt }} + + + + + + + + + + diff --git a/src/views/ops/pages/dc/network/index.vue b/src/views/ops/pages/dc/network/index.vue index 7f6ca03..7471e91 100644 --- a/src/views/ops/pages/dc/network/index.vue +++ b/src/views/ops/pages/dc/network/index.vue @@ -163,7 +163,7 @@ - + + + + {{ record.name || '办公PC详情' }} + + {{ getStatusText(record.status) }} + {{ record.server_type || '未知类型' }} + {{ record.os || '未知系统' }} + + + + + + + + 远程登录 + + + + + + 重启 + + + + + + + + {{ record.unique_id || '-' }} + {{ record.name || '-' }} + {{ record.os || '-' }} + {{ record.location || '-' }} + {{ record.tags || '-' }} + {{ record.ip || '-' }} + {{ record.remote_port || '-' }} + {{ record.agent_url || '-' }} + + + {{ record.data_collection ? '已开启' : '未开启' }} + + + {{ record.collection_interval ? `${record.collection_interval}分钟` : '-' }} + {{ record.remark || '-' }} + + + + + + + + 1小时 + 3小时 + 6小时 + 12小时 + 1天 + 3天 + 7天 + 14天 + 自定义 + + + + + + + + CPU使用率_宿主机视角 (%) + + + 平均值 + 最大值 + 最小值 + + + + + + + (ECS)CPU使用率_平均值 + (ECS)CPU使用率_最小值 + (ECS)CPU使用率_最大值 + + + + + + + + 总带宽 (bit/s) + + + 平均值 + 最大值 + + + + + + + 内网流入带宽 + 内网流出带宽 + + + + + + + + 公网带宽 (bit/s) + + + 平均值 + 最大值 + + + + + + + 公网流入带宽 + 公网流出带宽 + + + + + + + + + + 公网流出带宽使用率 (%) + + + 平均值 + 最大值 + + + + + + + (ECS)公网流出带宽使用率 + + + + + + + + 磁盘读取写入BPS (bytes/s) + + + 平均值 + 最大值 + + + + + + + (ECS)所有磁盘读取BPS + (ECS)所有磁盘写入BPS + + + + + + + + 磁盘读取写入IOPS (Count/Second) + + + 平均值 + 最大值 + + + + + + + (ECS)所有磁盘每秒读取次数 + (ECS)所有磁盘每秒写入次数 + + + + + + + + + + 同时连接数 (Count) + + + 平均值 + 最大值 + + + + + + + 同时连接数 + + + + + + + + RDMA流量使用信息 (bit/s) + + + 平均值 + 最大值 + + + + + + + + + + + + + + + RDMA资源使用信息 (Count) + + + 平均值 + 最大值 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/ops/pages/dc/pc/components/FormDialog.vue b/src/views/ops/pages/dc/pc/components/FormDialog.vue new file mode 100644 index 0000000..d9b9e14 --- /dev/null +++ b/src/views/ops/pages/dc/pc/components/FormDialog.vue @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + + + Windows + Linux + 其它 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1分钟 + 5分钟 + 10分钟 + 30分钟 + + + + + + + + + + + + + diff --git a/src/views/ops/pages/dc/pc/index.vue b/src/views/ops/pages/dc/pc/index.vue index 44c1801..062064b 100644 --- a/src/views/ops/pages/dc/pc/index.vue +++ b/src/views/ops/pages/dc/pc/index.vue @@ -156,8 +156,8 @@ - @@ -194,9 +194,9 @@ import { fetchPCList, deletePC, } from '@/api/ops/pc' -import ServerFormDialog from './components/ServerFormDialog.vue' +import FormDialog from './components/FormDialog.vue' import QuickConfigDialog from './components/QuickConfigDialog.vue' -import ServerDetail from './components/ServerDetail.vue' +import Detail from './components/Detail.vue' const router = useRouter() @@ -334,7 +334,7 @@ const formModel = ref({ status: undefined, }) -const formDialogVisible = ref(false) +const dialogVisible = ref(false) const quickConfigVisible = ref(false) const currentRecord = ref(null) @@ -460,7 +460,7 @@ const handleRefresh = () => { // 新增PC const handleAdd = () => { currentRecord.value = null - formDialogVisible.value = true + dialogVisible.value = true } // 快捷配置 @@ -472,7 +472,7 @@ const handleQuickConfig = (record: any) => { // 编辑PC const handleEdit = (record: any) => { currentRecord.value = record - formDialogVisible.value = true + dialogVisible.value = true } // 详情 - 在当前窗口打开 diff --git a/src/views/ops/pages/dc/server/components/QuickConfigDialog.vue b/src/views/ops/pages/dc/server/components/QuickConfigDialog.vue new file mode 100644 index 0000000..6e26b54 --- /dev/null +++ b/src/views/ops/pages/dc/server/components/QuickConfigDialog.vue @@ -0,0 +1,90 @@ + + + + + + + 为空则不可远程访问 + + + + + + + + + + + diff --git a/src/views/ops/pages/dc/server/components/RemoteControl.vue b/src/views/ops/pages/dc/server/components/RemoteControl.vue new file mode 100644 index 0000000..09c60fc --- /dev/null +++ b/src/views/ops/pages/dc/server/components/RemoteControl.vue @@ -0,0 +1,310 @@ + + + + + + {{ record.name || '远程控制' }} + {{ getStatusText(record.status) }} + + + + 关闭 + + + + + + + + + + SSH + 免密连接 + + + + + + + + + + + + + + + + + + + + + + + + + + + 连接 + + 取消 + + + + + + + + + 已连接: {{ loginForm.username }}@{{ loginForm.host }}:{{ loginForm.port }} + + 断开 + 全屏 + + + + + {{ line.prompt }} + {{ line.content }} + + + {{ prompt }} + + + + + + + + + + diff --git a/src/views/ops/pages/dc/pc/components/ServerDetail.vue b/src/views/ops/pages/dc/server/components/ServerDetail.vue similarity index 100% rename from src/views/ops/pages/dc/pc/components/ServerDetail.vue rename to src/views/ops/pages/dc/server/components/ServerDetail.vue diff --git a/src/views/ops/pages/dc/pc/components/ServerFormDialog.vue b/src/views/ops/pages/dc/server/components/ServerFormDialog.vue similarity index 100% rename from src/views/ops/pages/dc/pc/components/ServerFormDialog.vue rename to src/views/ops/pages/dc/server/components/ServerFormDialog.vue diff --git a/src/views/ops/pages/dc/server/index.vue b/src/views/ops/pages/dc/server/index.vue index 4435c7c..869d064 100644 --- a/src/views/ops/pages/dc/server/index.vue +++ b/src/views/ops/pages/dc/server/index.vue @@ -195,8 +195,8 @@ import { import type { FormItem } from '@/components/search-form/types' import SearchTable from '@/components/search-table/index.vue' import { searchFormConfig } from './config/search-form' -import ServerFormDialog from '../pc/components/ServerFormDialog.vue' -import QuickConfigDialog from '../pc/components/QuickConfigDialog.vue' +import ServerFormDialog from './components/ServerFormDialog.vue' +import QuickConfigDialog from './components/QuickConfigDialog.vue' import { columns as columnsConfig } from './config/columns' import { fetchServerList,