diff --git a/.env.agg b/.env.agg
deleted file mode 100644
index 8fb0805..0000000
--- a/.env.agg
+++ /dev/null
@@ -1,12 +0,0 @@
-NODE_ENV = 'production'
-ENV = 'production'
-
-VUE_APP_TITLE = 动环智能巡检系统
-VUE_APP_BASE_API = '/app/htjc6/api'
-VUE_APP_NVR_API = '/nvr-api'
-
-VUE_APP_PUBLIC_PATH = '/app/htjc6/'
-VUE_APP_OUTPUT_DIR = 'dist/app/htjc6'
-VUE_APP_IMAGE_PATH_PREFIX = ''
-VUE_APP_HOME_PATH = '/portal'
-VUE_APP_AGG_VIDEO = true
diff --git a/.env.htjc6 b/.env.htjc6
index 861d807..00fd2b5 100644
--- a/.env.htjc6
+++ b/.env.htjc6
@@ -8,5 +8,3 @@ VUE_APP_NVR_API = '/nvr-api'
VUE_APP_PUBLIC_PATH = '/app/htjc6/'
VUE_APP_OUTPUT_DIR = 'dist/app/htjc6'
VUE_APP_IMAGE_PATH_PREFIX = '/app/htjc6/htjcImage'
-VUE_APP_HOME_PATH = '/index'
-VUE_APP_AGG_VIDEO = false
diff --git a/package.json b/package.json
index a2e60e7..14af78b 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,6 @@
"dev": "vue-cli-service serve",
"build:prod": "vue-cli-service build",
"build:htjc6": "vue-cli-service build --mode htjc6",
- "build:agg": "vue-cli-service build --mode agg",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src"
diff --git a/src/assets/images/header/baicaopo-title.png b/src/assets/images/header/baicaopo-title.png
index c738448..e93ae4d 100644
Binary files a/src/assets/images/header/baicaopo-title.png and b/src/assets/images/header/baicaopo-title.png differ
diff --git a/src/assets/images/header/baicaopo-title1.png b/src/assets/images/header/baicaopo-title1.png
new file mode 100644
index 0000000..c738448
Binary files /dev/null and b/src/assets/images/header/baicaopo-title1.png differ
diff --git a/src/assets/images/header/baiyangping-title.png b/src/assets/images/header/baiyangping-title.png
index 1dd5c97..c59a2e4 100644
Binary files a/src/assets/images/header/baiyangping-title.png and b/src/assets/images/header/baiyangping-title.png differ
diff --git a/src/assets/images/header/baiyangping-title1.png b/src/assets/images/header/baiyangping-title1.png
new file mode 100644
index 0000000..1dd5c97
Binary files /dev/null and b/src/assets/images/header/baiyangping-title1.png differ
diff --git a/src/assets/images/header/dabaliangzi-title.png b/src/assets/images/header/dabaliangzi-title.png
new file mode 100644
index 0000000..ae8f5e8
Binary files /dev/null and b/src/assets/images/header/dabaliangzi-title.png differ
diff --git a/src/assets/images/header/xfdh-title-navbar.png b/src/assets/images/header/xfdh-title-navbar.png
index 5a76103..46ba8c0 100644
Binary files a/src/assets/images/header/xfdh-title-navbar.png and b/src/assets/images/header/xfdh-title-navbar.png differ
diff --git a/src/assets/images/header/xfdh-title-navbar1.png b/src/assets/images/header/xfdh-title-navbar1.png
new file mode 100644
index 0000000..5a76103
Binary files /dev/null and b/src/assets/images/header/xfdh-title-navbar1.png differ
diff --git a/src/assets/images/header/xiaogaoshan-title.png b/src/assets/images/header/xiaogaoshan-title.png
index 1b064a5..eb437cd 100644
Binary files a/src/assets/images/header/xiaogaoshan-title.png and b/src/assets/images/header/xiaogaoshan-title.png differ
diff --git a/src/assets/images/header/xiaogaoshan-title1.png b/src/assets/images/header/xiaogaoshan-title1.png
new file mode 100644
index 0000000..1b064a5
Binary files /dev/null and b/src/assets/images/header/xiaogaoshan-title1.png differ
diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss
index 3d80848..de1e926 100644
--- a/src/assets/styles/index.scss
+++ b/src/assets/styles/index.scss
@@ -35,6 +35,15 @@ label {
font-weight: 700;
}
+html:has(.portal-screen),
+html:has(.portal-screen) body,
+html:has(.portal-screen) #app {
+ overflow: hidden;
+ background:
+ radial-gradient(1100px 480px at 50% -8%, rgba(38, 68, 160, 0.5), transparent 62%),
+ linear-gradient(160deg, #0d1348 0%, #101b58 46%, #0c1140 100%);
+}
+
html {
height: 100%;
background-color: $base-page-background;
@@ -44,6 +53,7 @@ html {
}
#app {
+ width: 100%;
height: 100%;
background-color: $base-page-background;
font-family: var(--app-font-family);
diff --git a/src/assets/styles/ruoyi.scss b/src/assets/styles/ruoyi.scss
index 868535b..5e6559c 100644
--- a/src/assets/styles/ruoyi.scss
+++ b/src/assets/styles/ruoyi.scss
@@ -670,7 +670,7 @@ table tbody tr > td {
.el-tree {
color: #dcecff;
- background-color: #0F124A !important;
+ // background-color: #0F124A !important;
}
.el-tree-node__content {
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 7cceb4a..4143561 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -58,7 +58,7 @@ import { mapGetters } from "vuex";
import TopNav from "@/components/TopNav";
import Screenfull from "@/components/Screenfull";
import { getEmbeddedUser } from "@/utils/embeddedAuth";
-import { getStationTitleImage } from "@/utils/stationTitle";
+import { applyStationTitle, getStationTitleImage } from "@/utils/stationTitle";
import headerLogo from "@/assets/images/header/logo.png";
import xfdhBrand from "@/assets/images/header/xfdh-brand.png";
import loginAvatar from "@/assets/images/header/framework-avatar.png";
@@ -70,8 +70,6 @@ export default {
data() {
return {
headerLogo,
- // 标题头横幅按访问 IP 切换(见 utils/stationTitle.js),默认用消防动环这张
- xfdhTitleNavbar: getStationTitleImage(),
xfdhBrand,
loginAvatar,
frameworkUser: null,
@@ -79,7 +77,10 @@ export default {
};
},
computed: {
- ...mapGetters(["name", "device", "inSite", "siteName"]),
+ ...mapGetters(["name", "device", "inSite", "siteName", "systemParams"]),
+ xfdhTitleNavbar() {
+ return getStationTitleImage(this.systemParams && this.systemParams.STATION_CODE);
+ },
topNav: {
get() {
return this.$store.state.settings.topNav;
@@ -102,7 +103,13 @@ export default {
return this.loginAvatar
}
},
+ watch: {
+ "systemParams.STATION_CODE"(code) {
+ applyStationTitle(code);
+ },
+ },
mounted() {
+ applyStationTitle(this.systemParams && this.systemParams.STATION_CODE);
this.loadFrameworkUser()
this.frameworkUserPoller = window.setInterval(this.loadFrameworkUser, 500)
},
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index 8b52730..352983f 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -96,17 +96,17 @@ export default {
const visibleRoutes = filterHiddenNavigation(this.sidebarRouters);
if (!this.$route.meta.patrolWorkspace) {
- const inspectionPaths = new Set([
- "/task-summary", "/patrol-plan", "/site-management",
- "/patrol-report", "/patrol-schedule", "/defect-record",
- ]);
- const videoPaths = new Set(["/video-preview", "/video-playback"]);
- const inspectionRoutes = visibleRoutes.filter(route => inspectionPaths.has(route.path));
- const videoRoutes = visibleRoutes.filter(route => videoPaths.has(route.path));
- const groupedPaths = new Set([...inspectionPaths, ...videoPaths]);
- const otherRoutes = visibleRoutes.filter(route => !groupedPaths.has(route.path));
+ const inspectionOrder = [
+ "/task-summary", "/video-preview", "/patrol-plan", "/site-management",
+ "/patrol-report", "/patrol-schedule", "/defect-record", "/video-playback",
+ ];
+ const inspectionPaths = new Set(inspectionOrder);
+ const inspectionRoutes = inspectionOrder
+ .map(path => visibleRoutes.find(route => route.path === path))
+ .filter(Boolean);
+ const otherRoutes = visibleRoutes.filter(route => !inspectionPaths.has(route.path));
const groups = [];
- const patrolRoutes = [...inspectionRoutes, ...videoRoutes];
+ const patrolRoutes = inspectionRoutes;
if (patrolRoutes.length) groups.push({
path: "/inspection-menu",
meta: { title: "动环巡检", icon: "dashboard" },
diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue
index 69d69ee..13eb29e 100644
--- a/src/layout/components/TagsView/index.vue
+++ b/src/layout/components/TagsView/index.vue
@@ -16,24 +16,13 @@
-
-
-