From 5083bb4013ba2bfbdd48fc66d790fca4b7ca679d Mon Sep 17 00:00:00 2001
From: yyy <2605810609@qq.com>
Date: Fri, 11 Apr 2025 16:29:08 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=9C=B0=E5=9B=BE=20?=
=?UTF-8?q?=E7=BD=91=E6=A0=BC=E5=A4=A7=E5=B0=8F=20=E8=B7=AF=E7=BA=BF?=
=?UTF-8?q?=E5=AE=BD=E5=BA=A6=E9=83=BD=E5=81=9A=E6=88=90=E7=94=A8=E6=88=B7?=
=?UTF-8?q?=E8=87=AA=E5=B7=B1=E8=AE=BE=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layout/components/ToolHeader.vue | 2 +-
src/layout/components/useRenderLayout.tsx | 2 +-
src/styles/var.css | 2 +-
.../components-tool/textFormToolDialog.vue | 2 +-
.../realTimeMap/components/indexPage.vue | 2 +-
src/views/mapPage/realTimeMap/editMap.vue | 162 ++++++++++++------
6 files changed, 116 insertions(+), 56 deletions(-)
diff --git a/src/layout/components/ToolHeader.vue b/src/layout/components/ToolHeader.vue
index 9e5f080e..6ba91195 100644
--- a/src/layout/components/ToolHeader.vue
+++ b/src/layout/components/ToolHeader.vue
@@ -52,7 +52,7 @@ export default defineComponent({
'h-[var(--top-tool-height)] relative px-[var(--top-tool-p-x)] flex items-center justify-between',
'dark:bg-[var(--el-bg-color)]'
]}
- style="height:61px"
+ style="height:51px"
>
{layout.value !== 'top' ? (
diff --git a/src/layout/components/useRenderLayout.tsx b/src/layout/components/useRenderLayout.tsx
index 927a369a..6358e243 100644
--- a/src/layout/components/useRenderLayout.tsx
+++ b/src/layout/components/useRenderLayout.tsx
@@ -55,7 +55,7 @@ export const useRenderLayout = () => {
'w-[var(--left-menu-max-width)]': !appStore.getCollapse
}
]}
- style="transition: all var(--transition-time-02);height:60px;display: flex;
+ style="transition: all var(--transition-time-02);height:50px;display: flex;
align-items: center;"
>
) : undefined}
diff --git a/src/styles/var.css b/src/styles/var.css
index ef44c1f7..d854bd1d 100644
--- a/src/styles/var.css
+++ b/src/styles/var.css
@@ -34,7 +34,7 @@
--top-header-hover-color: #215bd8;
/* --top-tool-height: var(--logo-height); */
- --top-tool-height: 60px;
+ --top-tool-height: 50px;
--top-tool-p-x: 0;
diff --git a/src/views/mapPage/realTimeMap/components-tool/textFormToolDialog.vue b/src/views/mapPage/realTimeMap/components-tool/textFormToolDialog.vue
index 61bfcbd2..00f2cd48 100644
--- a/src/views/mapPage/realTimeMap/components-tool/textFormToolDialog.vue
+++ b/src/views/mapPage/realTimeMap/components-tool/textFormToolDialog.vue
@@ -77,7 +77,7 @@ const emit = defineEmits(['textFormSuccess'])
.text-form-dialog {
background-color: #fff;
position: absolute;
- top: 76px;
+ top: 62px;
left: 30%;
box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
padding: 18px 20px 0 20px;
diff --git a/src/views/mapPage/realTimeMap/components/indexPage.vue b/src/views/mapPage/realTimeMap/components/indexPage.vue
index 81aca361..e54cf667 100644
--- a/src/views/mapPage/realTimeMap/components/indexPage.vue
+++ b/src/views/mapPage/realTimeMap/components/indexPage.vue
@@ -1033,7 +1033,7 @@ onBeforeUnmount(() => {
}
.is-full-screen {
- height: calc(100vh - 8.125rem) !important;
+ height: calc(100vh - 120px);
overflow: auto;
}
}
diff --git a/src/views/mapPage/realTimeMap/editMap.vue b/src/views/mapPage/realTimeMap/editMap.vue
index 1972ad89..3499f8c5 100644
--- a/src/views/mapPage/realTimeMap/editMap.vue
+++ b/src/views/mapPage/realTimeMap/editMap.vue
@@ -22,7 +22,7 @@
"
@click="toolbarClick(item)"
>
-
+
{{ item.name }}
@@ -75,6 +75,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
{{ item.name }}
@@ -136,7 +170,7 @@
"
@click="toolbarClick(item)"
>
-
+
{{ item.name }}
@@ -175,7 +209,7 @@
"
@click="toolbarClick(item)"
>
-
+
{{ item.name }}
@@ -230,7 +264,7 @@
"
@click="toolbarClick(item)"
>
-
+
{{ item.name }}
@@ -278,8 +312,38 @@
"
@click="toolbarClick(item)"
>
-
- {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -308,11 +372,7 @@
ref="mapBackgroundRef"
class="map-box-inner"
@click="mapClick"
- :class="state.isShowGrid ? 'grid-show' : ''"
- :style="{
- width: imgBgObj.width + 'px',
- height: imgBgObj.height + 'px'
- }"
+ :style="gradientBackground"
v-if="interfaceRefreshed"
>
@@ -517,7 +577,7 @@
:x2="Number(curve.endPointX)"
:y2="Number(curve.endPointY)"
:stroke="curve.isSelected ? '#f48924' : '#2d72d9'"
- stroke-width="5"
+ :stroke-width="state.routeWidthForm.routeWidth"
@click="handleChooseRoute(curve, index)"
/>
@@ -875,7 +935,6 @@ const getLocationNumberStyle = (item, index) => {
top: Number(item.locationDeepPx) / 2 - 2 + 'px'
}
}
-
//库位的样式
const binLocationStyle = (item, index) => {
let laneId
@@ -1382,6 +1441,12 @@ const state = reactive({
name: '节点序号',
icon: 'ep:chat-dot-square',
isActive: false
+ },
+ {
+ switchType: 'routeWidth',
+ name: '路线宽度',
+ icon: 'ep:semi-select',
+ isActive: false
}
],
isShowToolbar: false, //工具栏展示隐藏
@@ -1445,6 +1510,27 @@ const state = reactive({
actualLocation: {
x: '',
y: ''
+ },
+ gridForm: {
+ gridNum: 20 + 'px'
+ },
+ routeWidthForm: {
+ routeWidth: 3
+ }
+})
+//网格的样式
+const gradientBackground = computed(() => {
+ return {
+ backgroundImage: `
+ linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
+ linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px)
+ `,
+ backgroundSize: `
+ ${state.gridForm.gridNum} ${state.gridForm.gridNum},
+ ${state.gridForm.gridNum} ${state.gridForm.gridNum}
+ `,
+ width: `${imgBgObj.width}px`,
+ height: `${imgBgObj.height}px`
}
})
@@ -1861,9 +1947,7 @@ const markFormSubmit = async () => {
if (res) {
//点
let point = JSON.parse(res)
- console.log(point)
let pointPx = convertActualToBrowser(point.x, point.y)
- console.log(pointPx)
if (state.currentItemIndex !== -1) {
state.allMapPointInfo[state.currentItemIndex].locationYaw = point.yaw
@@ -3260,7 +3344,7 @@ onUnmounted(() => {
width: 100%;
overflow: auto;
// height: 85vh;
- height: calc(100vh - 8.75rem);
+ height: calc(100vh - 120px);
.map-bg {
background-size: contain;
@@ -3287,7 +3371,7 @@ onUnmounted(() => {
text-align: center;
background-color: #fff;
padding: 0 0.75rem;
- height: 4.375rem;
+ height: 60px;
box-shadow: rgba(0, 0, 0, 0.06) 0rem 0.125rem 0.1875rem;
.top-tool-item {
@@ -3296,8 +3380,8 @@ onUnmounted(() => {
.tool-item {
cursor: pointer;
- width: 3.125rem;
- height: 4.375rem;
+ width: 44px;
+ height: 60px;
display: flex;
flex-direction: column;
align-items: center;
@@ -3309,7 +3393,7 @@ onUnmounted(() => {
PingFangSC,
PingFang SC;
font-weight: 400;
- font-size: 0.875rem;
+ font-size: 13px;
color: #0d162a;
line-height: 1.25rem;
text-align: center;
@@ -3318,7 +3402,7 @@ onUnmounted(() => {
}
}
.line {
- margin: 0 0.75rem;
+ margin: 0 4px;
width: 0.0625rem;
height: 2.9375rem;
border: 0.0625rem solid #cccccc;
@@ -3329,7 +3413,7 @@ onUnmounted(() => {
.right-tool-list {
position: absolute;
right: 0;
- top: 7.125rem;
+ top: 80px;
background-color: #fff;
z-index: 999;
text-align: center;
@@ -3337,15 +3421,14 @@ onUnmounted(() => {
.tool-item {
cursor: pointer;
- padding: 0.625rem;
+ padding: 8px;
.name {
font-family:
PingFangSC,
PingFang SC;
font-weight: 400;
- font-size: 0.875rem;
+ font-size: 13px;
color: #0d162a;
- line-height: 1.25rem;
text-align: center;
font-style: normal;
}
@@ -3365,29 +3448,6 @@ onUnmounted(() => {
margin-left: 0.25rem;
}
- .grid-show {
- // background: linear-gradient(-90deg, rgba(0, 0, 0, 0.1) .0625rem, transparent .0625rem),
- // linear-gradient(rgba(0, 0, 0, 0.1) .0625rem, transparent .0625rem);
- // background-size:
- // 1.25rem 1.25rem,
- // 1.25rem 1.25rem;
-
- background-image: repeating-linear-gradient(
- to right,
- rgba(0, 0, 0, 0.1),
- rgba(0, 0, 0, 0.1) 0.0625rem,
- transparent 0.0625rem,
- transparent 3.125rem
- ),
- repeating-linear-gradient(
- to bottom,
- rgba(0, 0, 0, 0.1),
- rgba(0, 0, 0, 0.1) 0.0625rem,
- transparent 0.0625rem,
- transparent 3.125rem
- );
- }
-
.svg-div {
z-index: 99999;