From 4abba9da0a225084b3d8a517d1c0c0b3e5df58aa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com>
Date: Fri, 8 Mar 2024 12:22:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E4=BA=A7=E7=95=8C?=
=?UTF-8?q?=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
hw-ui/src/App.vue | 9 +
hw-ui/src/api/board/fifthFloor.js | 2 -
hw-ui/src/api/board/laserLight.js | 9 +
hw-ui/src/components/TopNav/index.vue | 4 +-
hw-ui/src/layout/components/Navbar.vue | 2 +-
hw-ui/src/views/board/firstFloor/index.vue | 218 +++++++++++++++++-
.../views/board/fourthFloor/laserLight.vue | 103 +++++----
7 files changed, 296 insertions(+), 51 deletions(-)
diff --git a/hw-ui/src/App.vue b/hw-ui/src/App.vue
index b92ea37..eccca0e 100644
--- a/hw-ui/src/App.vue
+++ b/hw-ui/src/App.vue
@@ -11,6 +11,15 @@ import ThemePicker from "@/components/ThemePicker";
export default {
name: "App",
components: { ThemePicker },
+ mounted() {
+ setInterval(()=>{
+ this.$notify.info({
+ title: '通知',
+ message: '通知公告',
+ duration: 0
+ });
+ },60*1000)
+ },
metaInfo() {
return {
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
diff --git a/hw-ui/src/api/board/fifthFloor.js b/hw-ui/src/api/board/fifthFloor.js
index 3293824..fbacd55 100644
--- a/hw-ui/src/api/board/fifthFloor.js
+++ b/hw-ui/src/api/board/fifthFloor.js
@@ -1,7 +1,5 @@
import request from '@/utils/request'
-
-
// 获取计划
export function getProductPlans(query) {
return request({
diff --git a/hw-ui/src/api/board/laserLight.js b/hw-ui/src/api/board/laserLight.js
index 3293824..1836cfe 100644
--- a/hw-ui/src/api/board/laserLight.js
+++ b/hw-ui/src/api/board/laserLight.js
@@ -37,3 +37,12 @@ export function completeProductPlanDetail(query) {
data: query
})
}
+
+// 获取图纸
+export function getPlanDrawings(query) {
+ return request({
+ url: '/mes/api/getPlanDrawings',
+ method: 'get',
+ params: query
+ })
+}
diff --git a/hw-ui/src/components/TopNav/index.vue b/hw-ui/src/components/TopNav/index.vue
index 86a91c4..b72fc57 100644
--- a/hw-ui/src/components/TopNav/index.vue
+++ b/hw-ui/src/components/TopNav/index.vue
@@ -41,7 +41,7 @@ export default {
data() {
return {
// 顶部栏初始数
- visibleNumber: 5,
+ visibleNumber: 9,
// 当前激活菜单的 index
currentIndex: undefined
};
@@ -119,7 +119,7 @@ export default {
methods: {
// 根据宽度计算设置显示栏数
setVisibleNumber() {
- const width = document.body.getBoundingClientRect().width / 3;
+ const width = document.body.getBoundingClientRect().width / 2;
this.visibleNumber = parseInt(width / 85);
},
// 菜单选择事件
diff --git a/hw-ui/src/layout/components/Navbar.vue b/hw-ui/src/layout/components/Navbar.vue
index 9dffcf5..86a2a6b 100644
--- a/hw-ui/src/layout/components/Navbar.vue
+++ b/hw-ui/src/layout/components/Navbar.vue
@@ -3,7 +3,7 @@