style/样式调整,无用逻辑去除

This commit is contained in:
季万俊 2026-01-05 09:28:30 +08:00
parent 5e02fb66c3
commit ce24c779b4
5 changed files with 106 additions and 110 deletions

View File

@ -25,7 +25,7 @@ window.customConfigUrl = {
openColor: '#00C957', // openColor: '#00C957', //
closeColor: '#FF0000', // closeColor: '#FF0000', //
type: 1, //1 2 3 type: 2, //1 2 3
typeConfig: [ typeConfig: [
{ {
type: 1, type: 1,

View File

@ -602,48 +602,48 @@ export const constantRoutes = [
// ] // ]
// }, // },
// { {
// name: "Security", name: "Security",
// alwaysShow: true, alwaysShow: true,
// component: Layout, component: Layout,
// hidden: false, hidden: false,
// name: "Security", name: "Security",
// path: "/Security", path: "/Security",
// redirect: "noRedirect", redirect: "noRedirect",
// meta: { meta: {
// icon: "afxt", icon: "afxt",
// link: null, link: null,
// noCache: false, noCache: false,
// title: "安防系统", title: "安防系统",
// }, },
// children: [ children: [
// { {
// component: () => import('@/views/Security/videoSurveillance'), component: () => import('@/views/Security/videoSurveillance'),
// hidden: false, hidden: false,
// name: "videoSurveillance", name: "videoSurveillance",
// path: "videoSurveillance", path: "videoSurveillance",
// meta: { meta: {
// icon: "spjk", icon: "spjk",
// link: null, link: null,
// noCache: false, noCache: false,
// title: "视频监控", title: "视频监控",
// }, },
// }, },
// { {
// component: () => import('@/views/Security/doorControl'), component: () => import('@/views/Security/doorControl'),
// hidden: false, hidden: false,
// name: "doorControl", name: "doorControl",
// path: "doorControl", path: "doorControl",
// meta: { meta: {
// icon: "afmj", icon: "afmj",
// link: null, link: null,
// noCache: false, noCache: false,
// title: "门禁", title: "门禁",
// }, },
// }, },
// ] ]
// }, },
// { // {
// path: '', // path: '',
// component: Layout, // component: Layout,

View File

@ -73,6 +73,15 @@
label="设备名称" label="设备名称"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column
prop="IotDevice.device_name"
label="平面图展示"
align="center"
>
<template #default="scope">
<el-switch v-model="scope.row.show_on_map"></el-switch>
</template>
</el-table-column>
<!-- <el-table-column <!-- <el-table-column
prop="ip" prop="ip"

View File

@ -26,11 +26,12 @@
</div> </div>
<div class="headermiddle"></div> <div class="headermiddle"></div>
<div class="headerright"> <div class="headerright">
<span class="timetop"> {{ time1 }} &nbsp;&nbsp; &nbsp;&nbsp; </span> <span class="gosys" @click="goToSystem">
<span class="gosys">
<router-link to="/Device/deviceControl">
<img src="../assets/beij/goSys.png" alt="" /> <img src="../assets/beij/goSys.png" alt="" />
</router-link> </span>
<span class="fullscreen-btn">
<Screenfull id="screenfull" />
</span> </span>
<span class="logout" @click="close()"> <span class="logout" @click="close()">
@ -49,10 +50,12 @@
<script> <script>
import moment from "moment"; import moment from "moment";
import dashboardVue from "./dashboard/index.vue"; import dashboardVue from "./dashboard/index.vue";
import Screenfull from '@/components/Screenfull'
import { useUserStore } from "@/store/modules/user"; import { useUserStore } from "@/store/modules/user";
export default { export default {
components: { components: {
dashboardVue, dashboardVue,
Screenfull
}, },
data() { data() {
@ -137,6 +140,10 @@ export default {
return num + ".png"; return num + ".png";
} }
}, },
//
goToSystem() {
this.$router.push("/Device/deviceControl");
},
//退 //退
close() { close() {
console.log("close"); console.log("close");
@ -280,9 +287,10 @@ body {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
z-index: 9988; z-index: 100001 !important;
background: url("../assets/beij/title3.png"); background: url("../assets/beij/title3.png");
background-size: 100% 100%; background-size: 100% 100%;
pointer-events: auto;
.headerleft { .headerleft {
height: 110%; height: 110%;
@ -294,6 +302,7 @@ body {
position: relative; position: relative;
font-size: 16px; font-size: 16px;
color: #d4eaff; color: #d4eaff;
pointer-events: none;
.tianqi { .tianqi {
position: absolute; position: absolute;
@ -336,6 +345,8 @@ body {
color: #d4eaff; color: #d4eaff;
position: relative; position: relative;
z-index: 100002 !important;
pointer-events: auto !important;
.tianqi { .tianqi {
position: absolute; position: absolute;
@ -361,6 +372,7 @@ body {
height: 100%; height: 100%;
flex: 1; flex: 1;
background-size: 100% 100%; background-size: 100% 100%;
pointer-events: none;
} }
} }
@ -423,23 +435,54 @@ body {
} }
.logout { .logout {
position: relative;
z-index: 100003 !important;
pointer-events: auto !important;
cursor: pointer !important;
img { img {
width: 30px; width: 30px;
height: 30px; height: 30px;
pointer-events: none;
} }
} }
.gosys { .gosys {
position: absolute; position: absolute;
right: 70px; right: 120px;
top: 2px; top: 2px;
cursor: pointer; width: 30px;
height: 30px;
cursor: pointer !important;
z-index: 100003 !important;
pointer-events: auto !important;
display: block !important;
img { img {
width: 30px; width: 30px;
height: 30px; height: 30px;
pointer-events: none;
}
}
.fullscreen-btn {
cursor: pointer !important;
position: absolute;
right: 72px;
top: 6px;
z-index: 100003 !important;
pointer-events: auto !important;
display: block !important;
.svg-icon {
width: 23px;
height: 23px;
pointer-events: auto !important;
cursor: pointer !important;
} }
} }
.app-main { .app-main {
height: calc(100% - 50px) !important; height: calc(100% - 50px) !important;
} }
.topbox {
position: relative;
z-index: 1;
}
</style> </style>

View File

@ -7,16 +7,6 @@
> >
<div class="app-container"> <div class="app-container">
<div class="action-bar"> <div class="action-bar">
<!-- <div class="action-bar-item spicon" @click="showTable">
<el-tooltip
class="item"
effect="dark"
content="数据图表"
placement="top"
>
<img src="@/assets/table.png" alt="" />
</el-tooltip>
</div> -->
<div <div
class="action-bar-item spicon" class="action-bar-item spicon"
@click="editFun" @click="editFun"
@ -142,8 +132,7 @@
<script setup> <script setup>
import { forEach, throttle } from "lodash"; import { throttle } from "lodash";
import res_json from "./../../mock/data";
import { getArea } from "@/api/area.js"; import { getArea } from "@/api/area.js";
import { getDeviceType, getDevices, updateDevice } from "@/api/device.js"; import { getDeviceType, getDevices, updateDevice } from "@/api/device.js";
import { ElMessage, ElNotification } from "element-plus"; import { ElMessage, ElNotification } from "element-plus";
@ -680,21 +669,6 @@ const handleTabbar = (e) => {
throttledRedraw(); // throttledRedraw(); //
}; };
const getIconStatus = (id) => {
let _d = _typesDictionary.filter((d) => {
return d.value == id;
});
if (_d[0]) {
return _d[0].isSelected;
} else {
return false;
}
};
const showTable = () => {
tableModelValue.value = true;
};
const editFun = () => { const editFun = () => {
isEdit.value = !isEdit.value; isEdit.value = !isEdit.value;
if (!isEdit.value) { if (!isEdit.value) {
@ -1340,20 +1314,6 @@ const resizeCanvas = () => {
throttledRedraw(); throttledRedraw();
}; };
const isCGQ = (type) => {
if (
type == 26 ||
type == 30 ||
type == 31 ||
type == 32 ||
type == 34 ||
type == 35
) {
return true;
}
return false;
};
// tooltip // tooltip
const drawTooltip = () => { const drawTooltip = () => {
if (!activeMarker.value || !activeMarker.value.target) return; if (!activeMarker.value || !activeMarker.value.target) return;
@ -1492,17 +1452,9 @@ const draw = () => {
if (SELECT_ACTION_TYPE.value && point.TypeId !== SELECT_ACTION_TYPE.value) { if (SELECT_ACTION_TYPE.value && point.TypeId !== SELECT_ACTION_TYPE.value) {
return; return;
} }
let status = getIconStatus(point.TypeId);
const size = const size = pointSize.value * scale.value * 0.2;
point.DeviceId === selectedPointId.value || status const iSize = iconSize.value * scale.value * 0.2;
? pointSize.value * scale.value * 0.2
: pointSize.value * scale.value * 0.2;
const iSize =
point.DeviceId === selectedPointId.value || status
? iconSize.value * scale.value * 0.2
: iconSize.value * scale.value * 0.2;
ctx.value.beginPath(); ctx.value.beginPath();
ctx.value.arc( ctx.value.arc(
@ -1548,7 +1500,7 @@ const draw = () => {
} }
} }
// // 20
if ( if (
point.TypeName.includes("传感器") === true && point.TypeName.includes("传感器") === true &&
point.Data && point.Data &&
@ -1652,14 +1604,6 @@ const draw = () => {
// ctx.value.strokeStyle = window.customConfigUrl.faultColor; // ctx.value.strokeStyle = window.customConfigUrl.faultColor;
// } else if (point.target == "device" && point.IsFault) { // } else if (point.target == "device" && point.IsFault) {
// ctx.value.strokeStyle = window.customConfigUrl.faultColor; // ctx.value.strokeStyle = window.customConfigUrl.faultColor;
// } else if (
// point.target == "device" &&
// !isCGQ(point.TypeId) &&
// point.TypeId != 66
// ) {
// ctx.value.strokeStyle = window.customConfigUrl.closeColor;
// ctx.value.lineWidth = 0.5;
// ctx.value.stroke();
// } // }
ctx.value.shadowBlur = 0; ctx.value.shadowBlur = 0;