forked from drone/command-center-dashboard

罗广辉
2025-04-13 e58b12e64791dc4591e26ce895e8f97b60525c0b
style: 调整样式
5 files modified
18 ■■■■■ changed files
src/components/CommonWeather.vue 2 ●●●●● patch | view | raw | blame | history
src/directive/drag.js 1 ●●●● patch | view | raw | blame | history
src/layout/Header.vue 1 ●●●● patch | view | raw | blame | history
src/views/Home/Footer.vue 12 ●●●●● patch | view | raw | blame | history
src/views/Home/RSide.vue 2 ●●● patch | view | raw | blame | history
src/components/CommonWeather.vue
@@ -71,6 +71,8 @@
        margin: 0 18px;
    }
    .weather {
        display: flex;
        align-items: center;
        img {
            width: 20px;
            height: 20px;
src/directive/drag.js
@@ -11,7 +11,6 @@
        }
        const mousemoveFun = evt => {
            console.log(66666)
            //获取body宽高,获取拖动盒子的宽高
            const { offsetWidth: bodyWidth, offsetHeight: bodyHeight } = document.body
            const { offsetWidth: boxWidth, offsetHeight: boxHeight } = dragBox
src/layout/Header.vue
@@ -152,6 +152,7 @@
      text-align: center;
      font-style: normal;
      text-transform: none;
            cursor: pointer;
    }
  }
}
src/views/Home/Footer.vue
@@ -1,7 +1,7 @@
<template>
    <div class="footer">
        <img
            v-for="(item,index) in list.filter(i => !i.disable)"
            v-for="(item,index) in list.filter(i => !i.show)"
            :class="item.className"
            :src="item.active ? item.activeImg : item.img"
            alt=""
@@ -33,6 +33,7 @@
import { useMapAggregation } from '@/views/Home/useMapAggregation/useMapAggregation'
import { useStore } from 'vuex'
import func from '@/utils/func'
import { ElMessage } from 'element-plus'
const store = useStore()
const footActiveIndex = computed(() => store.state.home.footActiveIndex)
@@ -61,13 +62,14 @@
        init: eventInit,
        removeAll: eventRemove,
    },
    { name: 'qj', img: img3, activeImg: activeImg3, active: false, className: 'panorama' },
    { name: 'sw', img: img4, activeImg: activeImg4, active: false, className: 'threeD' },
    { name: 'zs', img: img5, activeImg: activeImg5, active: false, className: 'orthophoto' },
    { name: 'zyjf', active: false, disable: true },
    { name: 'qj', img: img3, activeImg: activeImg3, active: false, className: 'panorama',undeveloped:true },
    { name: 'sw', img: img4, activeImg: activeImg4, active: false, className: 'threeD',undeveloped:true },
    { name: 'zs', img: img5, activeImg: activeImg5, active: false, className: 'orthophoto',undeveloped:true },
    { name: 'zyjf', active: false, show: true },
])
const footAction = (toItem, index) => {
    if (toItem.undeveloped) return ElMessage.warning('正在加急开发中...')
    const fromItem = list.value.find(item => item.active)  //上一个激活item
    if (fromItem.name === toItem?.name) return  //是重复点击
    index !== undefined && store.commit('setFootActiveIndex', index) //是按钮点击得动作
src/views/Home/RSide.vue
@@ -97,7 +97,7 @@
  };
  .chat {
    position: fixed;
    bottom: 330px;
    top: 638px;
    height: 124px;
    width: 100px;
    user-select: none;