From b09c7127bd89ee2f8626ee9d37b30c8d49796e6a Mon Sep 17 00:00:00 2001
From: fanluyan <754122931@qq.com>
Date: Wed, 14 Jun 2023 11:39:07 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=B3=BB=E7=BB=9F?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/assets/css/element.less | 4 +-
src/components/common/Sidebar.vue | 96 +++++++++++++++++--
src/views/Login.vue | 4 +-
.../components/pictureTags.vue | 6 +-
.../components/setschedule.vue | 4 +-
src/views/system/components/addUser.vue | 11 ++-
vue.config.js | 6 +-
7 files changed, 111 insertions(+), 20 deletions(-)
diff --git a/src/assets/css/element.less b/src/assets/css/element.less
index 4f04629..2af53cf 100644
--- a/src/assets/css/element.less
+++ b/src/assets/css/element.less
@@ -69,6 +69,6 @@
.el-dropdown-menu--small .el-dropdown-menu__item {
font-size: 12px;
}
-.el-popper[x-placement^="bottom"] {
- margin-top: 2px !important;
+.el-select-dropdown {
+ margin-top: 4px !important;
}
diff --git a/src/components/common/Sidebar.vue b/src/components/common/Sidebar.vue
index 98cf55d..4767238 100644
--- a/src/components/common/Sidebar.vue
+++ b/src/components/common/Sidebar.vue
@@ -133,7 +133,7 @@ export default {
],
},
],
- items2: [
+ items1: [
// {
// icon: "el-icon-s-home",
// index: "stritl",
@@ -150,12 +150,92 @@ export default {
index: "/pictureRotation",
title: "图片轮巡",
},
+ {
+ icon: "el-icon-bell",
+ index: "/photoAlarm",
+ title: "告警处理",
+ },
+
+ {
+ icon: "el-icon-search",
+ index: "/realTimeSearch",
+ title: "历史图片",
+ },
+ {
+ icon: "el-icon-files",
+ index: "/property",
+ title: "资产管理",
+ subs: [
+ {
+ index: "/lineInformation",
+ title: "线路信息管理",
+ },
+ {
+ index: "/towerInformation",
+ title: "杆塔信息管理",
+ },
+
+ {
+ index: "/cameraChannel",
+ title: "通道管理",
+ },
+ {
+ index: "/photographicDevice",
+ title: "拍照装置管理",
+ },
+ {
+ index: "/devicePhotoSchedule",
+ title: "拍照时间表设置",
+ },
+ // {
+ // index: "/deviceUpgrade",
+ // title: "装置升级",
+ // },
+ // {
+ // icon: "el-icon-picture-outline",
+ // index: "imageSettings",
+ // title: "图像采集参数设置",
+ // },
+ ],
+ },
+ {
+ icon: "el-icon-monitor",
+ index: "/system",
+ title: "系统管理",
+ subs: [
+ {
+ index: "/userManagement",
+ title: "用户管理",
+ },
+ // {
+ // index: "/globalTools",
+ // title: "全局设置",
+ // },
+ ],
+ },
+ ],
+ items2: [
// {
- // icon: "el-icon-bell",
- // index: "photoAlarm",
- // title: "告警处理",
+ // icon: "el-icon-s-home",
+ // index: "stritl",
+ // title: "首页",
// },
+ {
+ icon: "el-icon-camera",
+ index: "/realTimeMonitor",
+ title: "实时监控",
+ },
+ {
+ icon: "el-icon-film",
+ index: "/pictureRotation",
+ title: "图片轮巡",
+ },
+ {
+ icon: "el-icon-bell",
+ index: "photoAlarm",
+ title: "告警处理",
+ },
{
icon: "el-icon-search",
index: "/realTimeSearch",
@@ -199,6 +279,7 @@ export default {
],
},
],
+
role: "",
};
},
@@ -218,11 +299,14 @@ export default {
console.log("用户管理");
console.log(this.role);
- if (this.role == 1) {
+ if (this.role == 0) {
this.items = this.items;
- } else {
+ } else if (this.role == 1) {
+ this.items = this.items1;
+ } else if (this.role == 2) {
this.items = this.items2;
}
+
console.log(this.items);
},
};
diff --git a/src/views/Login.vue b/src/views/Login.vue
index b2f60b3..c68d2f6 100644
--- a/src/views/Login.vue
+++ b/src/views/Login.vue
@@ -20,7 +20,7 @@
>
- {{ pictureData.linename }} + {{ pictureData.lineName }}
- {{ pictureData.towername }} + {{ pictureData.towerName }}
- {{ pictureData.cmdid }} + {{ pictureData.cmdId }}
diff --git a/src/views/realTimeMonitor/components/setschedule.vue b/src/views/realTimeMonitor/components/setschedule.vue
index d56b8d3..b6932c7 100644
--- a/src/views/realTimeMonitor/components/setschedule.vue
+++ b/src/views/realTimeMonitor/components/setschedule.vue
@@ -581,8 +581,10 @@ export default {
},
closebtn() {
this.isShowset = false;
-
+ this.checkList = "";
+ this.setNum = Math.floor(Math.random() * 10);
this.deviceList();
+
clearInterval(this.timers);
this.timers = null;
},
diff --git a/src/views/system/components/addUser.vue b/src/views/system/components/addUser.vue
index 0ba7ae9..e26f4ca 100644
--- a/src/views/system/components/addUser.vue
+++ b/src/views/system/components/addUser.vue
@@ -11,7 +11,7 @@
label-position="left"
ref="formInfo"
label-width="100px"
- :rules=" title=='新增' ? rules : xgrules"
+ :rules="title == '新增' ? rules : xgrules"
:model="formdata"
>