-          
-            
-              工序步骤
-              
-                
-                  {{ item.name }}
+              
-            
-            
-              
-            
-            
-              排放源清单
-              
-            
-          
-        
+
+            
 
+          
+          
+            
+              
+                
+                  排放源清单
+                  
+                
+                
+                  排放源清单
+                  
+                
+              
+            
+          
+        
+
+        
+          
+            环保排放统计
+          
+        
       
     
   
@@ -71,10 +76,14 @@ import ModuleContent2 from "../../components/smallCommon/ModuleContent2.vue";
 import Web3Title from "../../components/smallCommon/Web3Title.vue";
 import CusButton from "../../components/smallCommon/CusButton.vue";
 import Butgroup from "../../components/smallCommon/butgroup.vue";
+import Web2Title from "../../components/smallCommon/Web2Title.vue";
+import Faguang from "../../components/smallCommon/Faguang.vue";
 
 export default {
   name: "paifang",
   components: {
+    Faguang,
+    Web2Title,
     Butgroup, CusButton,
     Web3Title,
     ModuleContent2, Miaoshu, Butgroup2,
@@ -124,15 +133,37 @@ export default {
 .mt16 {
   margin-top: 16px;
 }
+.gongxu-wrapper {
+  width: 132px;
+  max-height: 500px;
+  margin-top: 16px;
+}
 .gongxu-box {
   height: calc(100% - 48px);
   overflow-y: auto;
   .gongxu-item {
     cursor: pointer;
-    padding: 16px 0;
     color: #fff;
-    font-size: 18px;
     border-bottom: 1px solid rgba(238, 238, 238, 0.54);
+    width: 132px;
+    height: 48px;
+    opacity: 1;
+    background: rgba(0, 128, 247, 0.5);
+    box-sizing: border-box;
+    margin-top: 16px;
+    line-height: 48px;
+    /** 文本1 */
+    font-size: 18px;
+    font-weight: 400;
+    letter-spacing: 0px;
+    color: rgba(255, 255, 255, 1);
+    text-align: center;
+    vertical-align: top;
+    &.selected, &:hover {
+      background: rgba(7, 65, 119, 0.98);
+      font-weight: 500;
+      color: rgba(45, 205, 255, 1);
+    }
   }
 }
 
diff --git a/pages/youzuzhi/paifangtongji.vue b/pages/youzuzhi/paifangtongji.vue
index 345a36f..34602fb 100644
--- a/pages/youzuzhi/paifangtongji.vue
+++ b/pages/youzuzhi/paifangtongji.vue
@@ -1,20 +1,21 @@
-
-
 
   
     
-      
+      
       
-  
+        有组织排放统计
+        
+        
+          
+            
+          
+          
+            
+          
+          
+            
+          
+        
       
     
   
@@ -25,18 +26,21 @@ import FlexCol from "../../components/FlexCol.vue";
 import SystemTitle from "../../components/smallCommon/SystemTitle.vue";
 import NewBg from "../../components/NewBg.vue";
 import ModuleContent from "../../components/ModuleContent.vue";
+import Web2Title from "../../components/smallCommon/Web2Title.vue";
+import Web3Title from "../../components/smallCommon/Web3Title.vue";
+import Split from "../../components/Split.vue";
 
 export default {
   name: "paifangtongji",
-  components: {ModuleContent, NewBg, SystemTitle, FlexCol},
-  data () {
+  components: {Split, Web3Title, Web2Title, ModuleContent, NewBg, SystemTitle, FlexCol},
+  data() {
     return {
       data: [],
       columns: [
-        { title: '名词', key: 'name' },
-        { title: 'NO', key: 'NO' },
-        { title: 'SO2', key: 'SO2' },
-        { title: 'TSP', key: 'TSP' },
+        {title: '名词', key: 'name'},
+        {title: 'NO', key: 'NO'},
+        {title: 'SO2', key: 'SO2'},
+        {title: 'TSP', key: 'TSP'},
       ]
     }
   }
From 6616b60bf48914a71af08c166f1b2b9abdb9ca3e Mon Sep 17 00:00:00 2001
From: "DESKTOP-VMMLSOQ\\wangzg" <1161909281@qq.com>
Date: Mon, 19 Aug 2024 22:26:28 +0800
Subject: [PATCH 9/9] 1111
---
 components/Map.vue                      | 34 +++++++++++------------
 components/smallCommon/ProgressDesc.vue |  2 +-
 layouts/default.vue                     | 36 +++++++++++++++++++++++++
 layouts/loginLayout.vue                 | 17 ++++++++++++
 pages/cleanTravel/home.vue              |  8 +-----
 pages/home/index.vue                    | 14 +++++-----
 pages/manager/login.vue                 |  1 +
 pages/wuzuzhi/huanjingzhili.vue         |  6 -----
 plugins/setup.js                        |  1 -
 store/system.js                         |  6 +++--
 webpack.config.js                       |  9 +++++++
 11 files changed, 93 insertions(+), 41 deletions(-)
 create mode 100644 layouts/default.vue
 create mode 100644 layouts/loginLayout.vue
 create mode 100644 webpack.config.js
diff --git a/components/Map.vue b/components/Map.vue
index 4150bd1..a99ce72 100644
--- a/components/Map.vue
+++ b/components/Map.vue
@@ -20,11 +20,6 @@ const mapLayerTypeToPointIcon = {
 }
 
 export default {
-  async asyncData({ $axios }) {
-    const { data } = await $axios.$get('http://101.43.201.20:5000/api/Home/view');
-    return { pageTitle: data.home.title }; // 假设接口返回格式为 { data: '标题内容' }
-  },
-
   name: "Map",
   data () {
     return {
@@ -41,18 +36,23 @@ export default {
       default: 'big'
     }
   },
-  mounted() {
-    this.$nextTick(() => {
-      if (this.$refs.mapRef) {
-        const win = window.top
-        this.$http.get('http://101.43.201.20:5000/api/Home/view').then(({ data }) => {
-          win.document.title = data.home.title
-          this.setTitle(data.home.title)
-          this.setInfo(data)
-          this.initMap(data.home.center)
-        })
+  watch: {
+    info: {
+      immediate: true,
+      deep: true,
+      handler (info) {
+        if (info) {
+          this.$nextTick(() => {
+            if (this.$refs.mapRef) {
+              this.initMap(info.home.center)
+            }
+          })
+        }
       }
-    })
+    }
+  },
+
+  mounted() {
     this.$evBus.$on('setVisibility', (layerType, show) => {
       this.setVisibility(layerType, show)
     })
@@ -70,6 +70,7 @@ export default {
       shisc: state => state.map.shisc,
       wz: state => state.map.wz,
       jkd: state => state.map.jkd,
+      info: state => state.system.info
     })
   },
   methods: {
@@ -79,7 +80,6 @@ export default {
       const { lon, lat } = center
       ms3dConfig.scene.center.lng = lon
       ms3dConfig.scene.center.lat = lat
-      console.log('ms3dConfig:', ms3dConfig);
       this.map = new mars3d.Map(this.$refs.mapRef, ms3dConfig)
       this.map.on("load", () => {
         Object.keys(mapLayerTypeToPointIcon).forEach(layerType => {
diff --git a/components/smallCommon/ProgressDesc.vue b/components/smallCommon/ProgressDesc.vue
index 07ba0ed..287fd1f 100644
--- a/components/smallCommon/ProgressDesc.vue
+++ b/components/smallCommon/ProgressDesc.vue
@@ -5,7 +5,7 @@
     
       
         
-          {{ item.val * 100 }}
+          {{ (item.val * 100).toFixed(0) }}
           
%
          
         
diff --git a/layouts/default.vue b/layouts/default.vue
new file mode 100644
index 0000000..dc04802
--- /dev/null
+++ b/layouts/default.vue
@@ -0,0 +1,36 @@
+
+
+  
+    
+  
+
+
+
+
+
+
diff --git a/layouts/loginLayout.vue b/layouts/loginLayout.vue
new file mode 100644
index 0000000..c8fc5ee
--- /dev/null
+++ b/layouts/loginLayout.vue
@@ -0,0 +1,17 @@
+
+
+  
+    
+  
+
+
+
+
+
+
diff --git a/pages/cleanTravel/home.vue b/pages/cleanTravel/home.vue
index a60e5fc..28d61fb 100644
--- a/pages/cleanTravel/home.vue
+++ b/pages/cleanTravel/home.vue
@@ -2,7 +2,7 @@
 
   
     
-      
+      
       
         
           
@@ -269,12 +269,6 @@ export default {
     this.getDataSource()
     this.$nextTick(() => {
       const win = window.top
-      this.$get('http://101.43.201.20:5000/api/Home/view').then(({data}) => {
-        win.document.title = data.home.title
-        this.setTitle(data.home.title)
-        this.setInfo(data)
-      })
-
       if (this.$refs.module) {
         const offsetHeight = this.$refs.module.$el.offsetHeight - 40
         this.tableH = offsetHeight
diff --git a/pages/home/index.vue b/pages/home/index.vue
index 7f441f8..e32f00e 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -41,8 +41,8 @@
                   清洁运输比例
                   
                     
-                      昨日
-                      上周
+                      昨日
+                      上周
                     
                   
                 
@@ -57,10 +57,10 @@
                 
                   
                     当前VOC的日排放量
-                    
{{ todaypf.voc || 0 }}mg/m3
+                    
{{ todaypf.today?.voc || 0 }}mg/m3
                    
                   当前CEMS的日排放量
-                  
{{ todaypf.cems || 0 }}mg/m3
+                  
{{ todaypf.today?.cems || 0 }}mg/m3
                  
 
                 
@@ -261,7 +261,7 @@ export default {
   data () {
     return {
       mapTab: 'rl',
-      active: 'Yesterday',
+      active: 'yesterday',
 
       columnsForTable: [
         {
@@ -271,12 +271,12 @@ export default {
         },
         {
           title: '报警时间',
-          dataIndex: 'CreateDateTime',
+          dataIndex: 'time',
           width: '33.333%'
         },
         {
           title: '报警内容',
-          dataIndex: 'AlertContent',
+          dataIndex: 'alarmName',
           width: '33.333%'
         },
       ]
diff --git a/pages/manager/login.vue b/pages/manager/login.vue
index 2a10971..a2f2d98 100644
--- a/pages/manager/login.vue
+++ b/pages/manager/login.vue
@@ -42,6 +42,7 @@ function hasErrors(fieldsError) {
   return Object.keys(fieldsError).some(field => fieldsError[field]);
 }
 export default {
+  layout: 'LoginLayout',
   data() {
     return {
       hasErrors,
diff --git a/pages/wuzuzhi/huanjingzhili.vue b/pages/wuzuzhi/huanjingzhili.vue
index 44a5ad1..0378cef 100644
--- a/pages/wuzuzhi/huanjingzhili.vue
+++ b/pages/wuzuzhi/huanjingzhili.vue
@@ -176,12 +176,6 @@ export default {
   mounted() {
     this.$nextTick(() => {
       const win = window.top
-      this.$get('http://101.43.201.20:5000/api/Home/view').then(({data}) => {
-        win.document.title = data.home.title
-        this.setTitle(data.home.title)
-        this.setInfo(data)
-      })
-
       if (this.$refs.module) {
         const offsetHeight = this.$refs.module.$el.offsetHeight - 40
         this.tableH = offsetHeight
diff --git a/plugins/setup.js b/plugins/setup.js
index 280e82b..5757bf9 100644
--- a/plugins/setup.js
+++ b/plugins/setup.js
@@ -1,4 +1,3 @@
 import Vue from 'vue'
 
-
 Vue.prototype.$evBus = new Vue()
diff --git a/store/system.js b/store/system.js
index 1b507a2..3077f5b 100644
--- a/store/system.js
+++ b/store/system.js
@@ -1,6 +1,6 @@
 export const state = {
   title: '',
-  info: {}
+  info: null
 }
 
 export const mutations = {
@@ -15,8 +15,10 @@ export const mutations = {
 export const actions = {
   setTitle ({ commit }, title) {
     commit('setTitle', title)
+    document.title = title
   },
-  setInfo ({ commit }, info) {
+  setInfo ({ commit, dispatch }, info) {
     commit('setInfo', info)
+    dispatch('setTitle', info.home?.title || '')
   }
 }
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..1039330
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,9 @@
+
+const path = require('path');
+module.exports = {
+  resolve: {
+    alias: {
+      '@': path.resolve(__dirname, './'),
+    }
+  }
+};