diff --git a/frontend/src/api/plan/static.ts b/frontend/src/api/plan/static.ts index 4b6ca43..d06d1b1 100644 --- a/frontend/src/api/plan/static.ts +++ b/frontend/src/api/plan/static.ts @@ -1,7 +1,7 @@ import http from "@/api"; export const getStaticTreeData = (data: any) => { return http.post( - "http://127.0.0.1:4523/m1/2573730-0-default/plan/static/planData", + "http://192.168.1.123:4523/m1/2573730-0-default/plan/static/planData", data, { loading: false } ); // 正常 post json 请求 ==> application/json diff --git a/frontend/src/components/echarts/pie/default.vue b/frontend/src/components/echarts/pie/default.vue index 612a82e..7269cb5 100644 --- a/frontend/src/components/echarts/pie/default.vue +++ b/frontend/src/components/echarts/pie/default.vue @@ -1,9 +1,16 @@ diff --git a/frontend/src/layouts/LayoutVertical/index.scss b/frontend/src/layouts/LayoutVertical/index.scss index 0dfe6d3..9714d36 100644 --- a/frontend/src/layouts/LayoutVertical/index.scss +++ b/frontend/src/layouts/LayoutVertical/index.scss @@ -1,6 +1,8 @@ .el-container { width: 100%; height: 100%; + display: flex; + justify-content: space-between; :deep(.el-aside) { width: auto; background-color: var(--el-menu-bg-color); @@ -14,7 +16,7 @@ height: calc(100% - 55px); .el-menu { width: 100%; - overflow-x: hidden; + // overflow-x: hidden; border-right: none; } } diff --git a/frontend/src/styles/element.scss b/frontend/src/styles/element.scss index a550bb2..b603e7e 100644 --- a/frontend/src/styles/element.scss +++ b/frontend/src/styles/element.scss @@ -257,3 +257,7 @@ } } } + +.el-form-item{ + margin-right: 10px !important; +} \ No newline at end of file diff --git a/frontend/src/views/home/components/tree.vue b/frontend/src/views/home/components/tree.vue index f053c04..694c48b 100644 --- a/frontend/src/views/home/components/tree.vue +++ b/frontend/src/views/home/components/tree.vue @@ -4,14 +4,18 @@ placeholder="请输入计划名称" v-model="searchForm.planName" > - +
+ + +
diff --git a/frontend/src/views/home/tabs/dashboard.vue b/frontend/src/views/home/tabs/dashboard.vue index 650f768..c87f056 100644 --- a/frontend/src/views/home/tabs/dashboard.vue +++ b/frontend/src/views/home/tabs/dashboard.vue @@ -6,6 +6,50 @@
+
+
+ +
+
+ +
+
+ +
+
@@ -80,10 +124,16 @@ 查询 - 启动自动检测 - 启动手动检测 设备导入 + 计划详情
-
-
- -
-
- -
-
- -
-
+
@@ -143,7 +157,7 @@ import { ref, onMounted } from "vue"; import { getStaticTreeData } from "@/api/plan/static"; import pie from "@/components/echarts/pie/default.vue"; -import {useRouter} from 'vue-router' +import { useRouter } from "vue-router"; import tree from "../components/tree.vue"; import Table from "../components/table.vue"; const treeRef = ref(); @@ -156,7 +170,7 @@ const form: any = ref({ deviceType: 0, //设备类型 manufacturer: 0, //制造厂商 }); -const router=useRouter() +const router = useRouter(); localStorage.setItem("color", "red"); //功能选择数据 const tabsList = [ @@ -306,28 +320,26 @@ const getPieData = () => { { value: Math.floor(Math.random() * 100) + 1, name: "合格" }, { value: Math.floor(Math.random() * 100) + 1, name: "不合格" }, ]; + // pieRef2.value.init(); chartsData3.value = [ { value: Math.floor(Math.random() * 100) + 1, name: "已生成报告" }, { value: Math.floor(Math.random() * 100) + 1, name: "未生成报告" }, ]; + // pieRef3.value.init(); pieRef1.value.init(); - pieRef2.value.init(); - pieRef3.value.init(); }; const getTree = () => { - getStaticTreeData({ userName: 'zhangsan', planName: "111" }).then( - (res) => { - console.log(res, "99999999"); - treeRef.value.getTreeData(res.data); - } - ); + getStaticTreeData({ userName: "zhangsan", planName: "111" }).then((res) => { + console.log(res, "99999999"); + treeRef.value.getTreeData(res.data); + }); }; //前往检测 -const handleDetection=()=>{ +const handleDetection = () => { router.push({ - path:"/detection" - }) -} + path: "/detection", + }); +}; onMounted(() => { console.log(); getTree(); @@ -342,51 +354,55 @@ onMounted(() => { justify-content: space-between; background-color: #eee; .left_tree { - width: 200px; + width: auto; height: 100%; background-color: #fff; } .right_container { flex: 1; - // width: 100%; + width: 100%; padding: 0 10px 0 10px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; + box-sizing: border-box; .container_title { width: 100%; - // min-height: 50px; - min-height: 100px; + // min-height: 60px; + height: auto !important; background: #fff; - // padding-left: 20px; display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 10px; border-radius: 4px; + padding: 10px; + box-sizing: border-box; .el-form { width: 100%; .el-form-item { - // flex:1; - // margin: 0 !important; - // margin:10px 10px 10px 0; - // display: flex; .el-button { margin: 0 10px; } } } + ::v-deep .el-form-item { + margin-bottom: 8px !important; + } } .container_charts { width: 100%; - height: 300px; + height: 350px; // border: 2px solid green; + background-color: #eee; display: flex; justify-content: space-between; + margin-bottom: 10px; .charts_info { + flex: none; width: 32.9%; - height: 100%; + height: 100% !important; // border: 2px solid pink; background-color: #fff; border-radius: 4px; @@ -395,7 +411,6 @@ onMounted(() => { .container_table { width: 100%; height: 100%; - margin-top: 10px; border-radius: 4px; } } diff --git a/frontend/src/views/home/tabs/model.vue b/frontend/src/views/home/tabs/model.vue index de56e19..37cce57 100644 --- a/frontend/src/views/home/tabs/model.vue +++ b/frontend/src/views/home/tabs/model.vue @@ -21,7 +21,7 @@ size="small" type="primary" @click="handelOpen(item.isActive)" - >进入检测进入检测
diff --git a/frontend/src/views/login/components/LoginForm.vue b/frontend/src/views/login/components/LoginForm.vue index ac403d3..f7dfa25 100644 --- a/frontend/src/views/login/components/LoginForm.vue +++ b/frontend/src/views/login/components/LoginForm.vue @@ -6,7 +6,7 @@ size="large" > - + diff --git a/frontend/src/views/login/index.scss b/frontend/src/views/login/index.scss index f4791ae..1674970 100644 --- a/frontend/src/views/login/index.scss +++ b/frontend/src/views/login/index.scss @@ -1,7 +1,8 @@ .login-container { height: 100%; min-height: 550px; - background-color: #eeeeee; + // background-color: #eeeeee; + background-color: #003078; background-image: url("@/assets/images/login_bg.svg"); background-size: 100% 100%; background-size: cover; @@ -14,7 +15,7 @@ width: 96.5%; height: 94%; padding: 0 50px; - background-color: rgb(255 255 255 / 80%); + // background-color: rgb(255 255 255 / 80%); border-radius: 10px; .dark { position: absolute; @@ -40,14 +41,15 @@ align-items: center; justify-content: center; margin-bottom: 45px; + padding: 0 20px; .login-icon { width: 60px; - height: 52px; + height: auto; } .logo-text { padding: 0 0 0 25px; margin: 0; - font-size: 42px; + font-size: 32px; font-weight: bold; color: #34495e; white-space: nowrap; diff --git a/frontend/src/views/login/index.vue b/frontend/src/views/login/index.vue index fd2aa8c..5dffb07 100644 --- a/frontend/src/views/login/index.vue +++ b/frontend/src/views/login/index.vue @@ -1,14 +1,15 @@