From 5ea26a047f800912ea74705265e66584930cf75a Mon Sep 17 00:00:00 2001 From: ping <1017253325@qq.com> Date: Wed, 14 Jan 2026 09:43:35 +0800 Subject: [PATCH 1/2] update --- b/product/get_zhipu_0112_product.dspy | 45 +++++++ b/product/get_zhipu_0112_product_detail.dspy | 135 +++++++++++++++++++ 2 files changed, 180 insertions(+) create mode 100644 b/product/get_zhipu_0112_product.dspy create mode 100644 b/product/get_zhipu_0112_product_detail.dspy diff --git a/b/product/get_zhipu_0112_product.dspy b/b/product/get_zhipu_0112_product.dspy new file mode 100644 index 0000000..7aa4003 --- /dev/null +++ b/b/product/get_zhipu_0112_product.dspy @@ -0,0 +1,45 @@ +async def get_zhipu_0112_product(ns={}): + return { + 'status': True, + 'msg': 'get product list success', + 'data': [ + { + "name": "GPU节点(云算力调度系统服务、算力运维服务)算力服务器型号:8卡CPU服务器", + "price": "58000元/月/节点", + "amount": 96, + "price_month": "5568000 元/月", + "total_price": "16704000元", + "hardware": [ + {"name": "GPU型号", "value": "NVIDIA A100"}, + {"name": "显存", "value": "80G"}, + {"name": "CPU", "value": "AMD EPYC 7763 64-core"}, + {"name": "内存", "value": "256GB"}, + {"name": "存储", "value": "2TB NVMe SSD"}, + ] + }, + { + "name": "GPU计算节点(高性能图形渲染服务、并行数据处理服务)算力服务器型号:多卡GPU服务器", + "price": "11600元/月/节点", + "amount": 72, + "price_month": "835200 元/月", + "total_price": "2505600元", + "hardware": [ + {"name": "GPU型号", "value": " NVIDIA RTX 4090"}, + {"name": "显存", "value": "24G"}, + {"name": "CPU", "value": "Intel Xeon Platinum 8375C 32-core"}, + {"name": "内存", "value": "128GB"}, + {"name": "存储", "value": "1TB NVMe SSD"}, + ] + }, + { + "name": "算力技术服务", + "price": "63595/月", + "amount": 1, + "price_month": "63595 元/月", + "total_price": "190785元" + }, + ] + } + +ret = await get_zhipu_0112_product(params_kw) +return ret \ No newline at end of file diff --git a/b/product/get_zhipu_0112_product_detail.dspy b/b/product/get_zhipu_0112_product_detail.dspy new file mode 100644 index 0000000..a9aca77 --- /dev/null +++ b/b/product/get_zhipu_0112_product_detail.dspy @@ -0,0 +1,135 @@ +async def get_zhipu_0112_product_detail(ns={}): + import random + import copy + ygpu_base = { + "device_id": "CZ-YGPU-80", + "internal_ip": "192.168.1.80", + "public_ip": "101.202.185.248", + "service_period": { + "start_date": "2025-10-01", + "end_date": "2025-12-31" + }, + "hardware_config": { + "gpu": { + "model": "NVIDIA A100 80GB", + "memory": "80GB" + }, + "cpu": "AMD EPYC 7763 64-core", + "ram": "256GB", + "storage": "2TB NVMe SSD" + }, + "network_config": { + "bandwidth": "10Gbps" + }, + "service_level": { + "sla": "99.9%", + "max_concurrent_connections": 100, + "max_load_threshold": "90%", + "billing_method": "monthly" + }, + "historical_stats": { + "uptime_rate": "1", + "average_load": "1", + "peak_load": "1", + "total_usage_hours": 1 + } + } + hgpu_base = { + "device_id": "CZ-HGPU-02", + "internal_ip": "192.168.2.80", + "public_ip": "101.202.185.248", + "service_period": { + "start_date": "2025-10-01", + "end_date": "2025-12-31" + }, + "hardware_config": { + "gpu": { + "model": " NVIDIA RTX 4090 24GB", + "memory": "24GB" + }, + "cpu": "Intel Xeon Platinum 8375C 32-core", + "ram": "128GB", + "storage": "1TB NVMe SSD" + }, + "network_config": { + "bandwidth": "5Gbps" + }, + "service_level": { + "sla": "99.5%", + "max_concurrent_connections": 50, + "max_load_threshold": "80%", + "billing_method": "monthly" + }, + "historical_stats": { + "uptime_rate": "1", + "average_load": "1", + "peak_load": "1", + "total_usage_hours": 1 + } + } + ygpu_list = [] + for i in range(1, 97): + ygpu = copy.deepcopy(ygpu_base) + ygpu['device_id'] = f'CZ-YGPU-{i:02d}' + ygpu['internal_ip'] = f'192.168.1.{i}' + ygpu['public_ip'] = f'101.202.{i+100}.{i+123}' + ygpu['historical_stats']['uptime_rate'] = str(round(random.uniform(90, 99.99), 2)) + '%' + ygpu['historical_stats']['average_load'] = str(round(random.uniform(60, 80.9), 1)) + '%' + ygpu['historical_stats']['peak_load'] = str(round(random.uniform(80, 90.9), 1)) + '%' + ygpu['historical_stats']['total_usage_hours'] = random.randint(1900, 2100) + ygpu_list.append(ygpu) + hgpu_list = [] + for i in range(1, 73): + hgpu = copy.deepcopy(hgpu_base) + uptime_rate = str(round(random.uniform(90, 99.99), 2)) + '%' + average_load = str(round(random.uniform(60, 80.9), 1)) + '%' + peak_load = str(round(random.uniform(80, 90.9), 1)) + '%' + total_usage_hours = random.randint(1900, 2100) + hgpu['device_id'] = f'CZ-HGPU-{i:02d}' + hgpu['internal_ip'] = f'192.168.2.{i}' + hgpu['public_ip'] = f'101.202.{i+100}.{i+123}' + hgpu['historical_stats']['uptime_rate'] = uptime_rate + hgpu['historical_stats']['average_load'] = average_load + hgpu['historical_stats']['peak_load'] = peak_load + hgpu['historical_stats']['total_usage_hours'] = total_usage_hours + hgpu_list.append(hgpu) + + data = { + 'status': True, + 'msg': 'get product list success', + 'data': {} + } + + if ns.get('keyword') == 'ygpu': + if ns.get('server_id'): + count_ygpu = 0 + for ygpu in ygpu_list: + if ygpu['device_id'] == ns.get('server_id'): + count_ygpu += 1 + data['data'] = {"servers": [ygpu]} + return data + if count_ygpu == 0: + data['data'] = {"servers": []} + return {'status': False, 'msg': 'server_id not found', 'data': {"servers": []}} + data['data'] = {"servers": ygpu_list} + elif ns.get('keyword') == 'hgpu': + if ns.get('server_id'): + count_hgpu = 0 + for hgpu in hgpu_list: + if hgpu['device_id'] == ns.get('server_id'): + count_hgpu += 1 + data['data'] = {"servers": [hgpu]} + return data + if count_hgpu == 0: + data['data'] = {"servers": []} + return {'status': False, 'msg': 'server_id not found', 'data': {"servers": []}} + data['data'] = {"servers": hgpu_list} + else: + data['data'] = { + "ygpu_servers": ygpu_list, + "hgpu_servers": hgpu_list + } + return data + +ret = await get_zhipu_0112_product_detail(params_kw) +return ret \ No newline at end of file From 22b65e46560b379ee474ddfe6778deb6dff97810 Mon Sep 17 00:00:00 2001 From: hrx <18603305412@163.com> Date: Wed, 14 Jan 2026 10:48:15 +0800 Subject: [PATCH 2/2] updata --- .../product/bigScreen/Newscreen/ScreenLeft/index.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/f/web-kboss/src/views/product/bigScreen/Newscreen/ScreenLeft/index.vue b/f/web-kboss/src/views/product/bigScreen/Newscreen/ScreenLeft/index.vue index 49ec495..cc8ffd8 100644 --- a/f/web-kboss/src/views/product/bigScreen/Newscreen/ScreenLeft/index.vue +++ b/f/web-kboss/src/views/product/bigScreen/Newscreen/ScreenLeft/index.vue @@ -7,9 +7,9 @@
异构芯片规模
-
33000 /
-
5000 /
-
8000 /
+
33000 /P
+
5000 /P
+
8000 /P
@@ -491,7 +491,8 @@ export default { padding-left: 6px; span { - font-size: 11px; + font-size: 12px; + margin-left: 2px; } } }