From 4587d9bddab1277fac0168a36abc23559b8c8031 Mon Sep 17 00:00:00 2001 From: JINGYJ <1458671527@qq.com> Date: Thu, 14 Sep 2023 15:06:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- mock/asyncRoutes.ts | 21 +- package.json | 2 - src/layout/components/navbar.vue | 4 +- src/main.ts | 16 +- src/router/modules/remaining.ts | 16 +- src/views/enterprise/index.vue | 79 +++++ src/views/project/details/components/Bar.vue | 158 +++++++++ .../project/details/components/DialogForm.vue | 294 +++++++++++++++++ .../project/details/components/ModelCard.vue | 305 ++++++++++++++++++ src/views/project/details/index.vue | 120 ++++++- src/views/project/list/components/Card.vue | 2 +- .../project/list/components/DialogForm.vue | 49 ++- src/views/project/list/index.vue | 30 +- 14 files changed, 1057 insertions(+), 41 deletions(-) create mode 100644 src/views/enterprise/index.vue create mode 100644 src/views/project/details/components/Bar.vue create mode 100644 src/views/project/details/components/DialogForm.vue create mode 100644 src/views/project/details/components/ModelCard.vue diff --git a/index.html b/index.html index f7f6135..50cf8cf 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" /> - pure-admin-thin + LNYD + + diff --git a/src/views/project/details/components/Bar.vue b/src/views/project/details/components/Bar.vue new file mode 100644 index 0000000..4fbe841 --- /dev/null +++ b/src/views/project/details/components/Bar.vue @@ -0,0 +1,158 @@ + + + diff --git a/src/views/project/details/components/DialogForm.vue b/src/views/project/details/components/DialogForm.vue new file mode 100644 index 0000000..4623ed2 --- /dev/null +++ b/src/views/project/details/components/DialogForm.vue @@ -0,0 +1,294 @@ + + + + diff --git a/src/views/project/details/components/ModelCard.vue b/src/views/project/details/components/ModelCard.vue new file mode 100644 index 0000000..65d438b --- /dev/null +++ b/src/views/project/details/components/ModelCard.vue @@ -0,0 +1,305 @@ + + + + + diff --git a/src/views/project/details/index.vue b/src/views/project/details/index.vue index 7cab2db..b04dd4a 100644 --- a/src/views/project/details/index.vue +++ b/src/views/project/details/index.vue @@ -1,11 +1,127 @@ + diff --git a/src/views/project/list/components/Card.vue b/src/views/project/list/components/Card.vue index 153dd1f..a895d0e 100644 --- a/src/views/project/list/components/Card.vue +++ b/src/views/project/list/components/Card.vue @@ -142,7 +142,7 @@ const cardInfoClass = computed(() => [ display: flex; align-items: center; justify-content: center; - width: 260px; + width: 250px; height: 150px; font-size: 32px; color: #0052d9; diff --git a/src/views/project/list/components/DialogForm.vue b/src/views/project/list/components/DialogForm.vue index 83037ec..1f10718 100644 --- a/src/views/project/list/components/DialogForm.vue +++ b/src/views/project/list/components/DialogForm.vue @@ -3,13 +3,13 @@ import { ref, watch } from "vue"; import { message } from "@/utils/message"; import { FormInstance } from "element-plus"; -const SELECT_OPTIONS = [ - { label: "网关", value: 1 }, - { label: "人工智能", value: 2 }, - { label: "CVM", value: 3 }, - { label: "防火墙", value: 4 }, - { label: "未知", value: 5 } -]; +// const SELECT_OPTIONS = [ +// { label: "网关", value: 1 }, +// { label: "人工智能", value: 2 }, +// { label: "CVM", value: 3 }, +// { label: "防火墙", value: 4 }, +// { label: "未知", value: 5 } +// ]; const props = defineProps({ visible: { @@ -28,7 +28,7 @@ const ruleFormRef = ref(); const formVisible = ref(false); const formData = ref(props.data); -const textareaValue = ref(""); +// const textareaValue = ref(""); const submitForm = async (formEl: FormInstance | undefined) => { if (!formEl) return; @@ -81,7 +81,7 @@ const rules = {