From 1b01d5649cc0cc060887f88c10b3df811bff8d8e Mon Sep 17 00:00:00 2001 From: qiuyuan Date: Tue, 2 Dec 2025 14:10:11 +0800 Subject: [PATCH 1/2] xiugai --- src/App.vue | 4 +- src/components/Header.vue | 2 +- src/components/layout.vue | 1 + src/router/index.ts | 16 +- src/views/instanceCreate/index.vue | 1250 ++++++++++++++++++++++++++++ src/views/layout/index.vue | 4 +- 6 files changed, 1269 insertions(+), 8 deletions(-) create mode 100644 src/views/instanceCreate/index.vue diff --git a/src/App.vue b/src/App.vue index 39596c9..9b90682 100644 --- a/src/App.vue +++ b/src/App.vue @@ -57,8 +57,8 @@ header { .main-content { /* padding-top: 30px; */ - overflow: hidden; - height: 100vh; + /* overflow: hidden; */ + /* height: 100vh; */ } .x-search-bar .ant-form-item { diff --git a/src/components/Header.vue b/src/components/Header.vue index 766bd83..5ea0792 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -4,7 +4,7 @@ diff --git a/src/components/layout.vue b/src/components/layout.vue index e0ecfb4..a79301e 100644 --- a/src/components/layout.vue +++ b/src/components/layout.vue @@ -38,6 +38,7 @@ import Sidebar from './sidebar.vue' .main-content { flex: 1; min-width: 0; + min-height: 100vh; background: #f5f5f5; } diff --git a/src/router/index.ts b/src/router/index.ts index 535a98c..814b57a 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -36,6 +36,16 @@ const routes: RouteRecordRaw[] = [ name: "LayoutHome", component: () => import("@/views/home/index.vue"), }, + { + path: "market", + name: "LayoutMarket", + component: () => import("@/views/market/index.vue"), + }, + { + path: "create", + name: "Create", + component: () => import("@/views/instanceCreate/index.vue"), + }, { path: "admin", name: "Admin", @@ -112,13 +122,13 @@ const routes: RouteRecordRaw[] = [ name: "flow", component: () => import("@/views/admin/account/cost/flow/index.vue"), }, - { + { path: "invoice", name: "invoice", component: () => import("@/views/admin/account/cost/invoice/index.vue"), }, - - { + + { path: "myOrder", name: "myOrder", component: () => import("@/views/admin/account/cost/myOrder/index.vue"), diff --git a/src/views/instanceCreate/index.vue b/src/views/instanceCreate/index.vue new file mode 100644 index 0000000..e8b2638 --- /dev/null +++ b/src/views/instanceCreate/index.vue @@ -0,0 +1,1250 @@ + + + + + \ No newline at end of file diff --git a/src/views/layout/index.vue b/src/views/layout/index.vue index 3fa8f31..4c0e3d1 100644 --- a/src/views/layout/index.vue +++ b/src/views/layout/index.vue @@ -81,7 +81,7 @@ watch(() => route.path, () => { // 菜单数据(key 使用子路径,如 '/admin') const leftRoutes = ref([ { key: '/home', label: '首页' }, - { key: '/center', label: '算力中心' }, + { key: '/market', label: '算力中心' }, { key: '/yunmain', label: '云主机' } ]) const rightRoutes = ref([ @@ -153,7 +153,7 @@ const logout = () => { .gx_layout_content { margin-top: 60px; - height: calc(100% - 60px); + min-height: calc(100% - 60px); background-color: rgba(240, 240, 240, 1); } } From 01d3b7ee7e19e09b598886915205eb48ba69170a Mon Sep 17 00:00:00 2001 From: qiuyuan Date: Tue, 2 Dec 2025 14:10:33 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/market/index.vue | 1555 ++++++++++++++++++++++++++++++++++++ 1 file changed, 1555 insertions(+) create mode 100644 src/views/market/index.vue diff --git a/src/views/market/index.vue b/src/views/market/index.vue new file mode 100644 index 0000000..9719274 --- /dev/null +++ b/src/views/market/index.vue @@ -0,0 +1,1555 @@ + + + + + \ No newline at end of file