From 39b58503e7fd4929a86c7b6accf8a582e02f077f Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Thu, 11 Apr 2024 16:06:41 +0800
Subject: [PATCH] fix: 页码修改

---
 src/views/main/index.vue |   40 +++++++++++++++++++++++-----------------
 1 files changed, 23 insertions(+), 17 deletions(-)

diff --git a/src/views/main/index.vue b/src/views/main/index.vue
index d20cfed..6b73e9a 100644
--- a/src/views/main/index.vue
+++ b/src/views/main/index.vue
@@ -1,8 +1,11 @@
 <template>
-  <div class="dashboard-container" style="height: 100%">
+  <div
+    class="dashboard-container"
+    style="height: 100%"
+  >
     <el-container style="height: 100%; border: 1px solid #eee">
       <el-aside
-        v-if="this.$store.state.aside"
+        v-if="$store.state.aside"
         width="260px"
         style="background-color: rgb(238, 241, 246)"
       >
@@ -42,7 +45,10 @@
             prefix-icon="el-icon-search"
           />
         </div>
-        <el-menu :default-openeds="openeds" class="elwidth">
+        <el-menu
+          :default-openeds="openeds"
+          class="elwidth"
+        >
           <el-submenu
             v-for="(item, index) in defaultData"
             :key="index"
@@ -70,7 +76,7 @@
                   'circle-3': item.state == 3,
                   'circle-4': item.state == 4,
                   'circle-5': item.state == 5,
-                  'circle-6': item.state == 6,
+                  'circle-6': item.state >= 6,
                 }"
               />
 
@@ -122,7 +128,7 @@
       <el-container>
         <!-- <Map :mpid="monitorPointId" :rc="regionCode" /> -->
         <compoment
-          :is="this.$store.state.type"
+          :is="$store.state.type"
           v-if="weidu && jingdu"
           ref="child"
           :weidu="weidu"
@@ -178,7 +184,7 @@
     ReportForm
     // vLineChart
   },
-  data() {
+  data () {
     return {
       openeds: [],
       searchText: '',
@@ -201,12 +207,12 @@
     }
   },
   computed: {
-    changeCity() {
+    changeCity () {
       return this.$store.state.regionCode
     }
   },
   watch: {
-    searchText(newVal, oldVal) {
+    searchText (newVal, oldVal) {
       console.log(typeof (newVal))
       // console.log(newVal)
       // defaultData���������������������������
@@ -236,7 +242,7 @@
         console.log(this.defaultData)
       }
     },
-    changeCity(newVal, oldVal) {
+    changeCity (newVal, oldVal) {
       // console.log(newVal)
       if (newVal !== oldVal) {
         // this.$store.state.regionCode = newVal
@@ -245,17 +251,17 @@
       }
     }
   },
-  beforeCreate() {
+  beforeCreate () {
     // this.$store.state.regionCode = this.$route.params.cName
   },
-  created() {
+  created () {
     this.getData()
     this.getRegion()
   },
   methods: {
 
     // ���������������������������������
-    bd09togcj02(bd_lon, bd_lat) {
+    bd09togcj02 (bd_lon, bd_lat) {
       var x_pi = (3.14159265358979324 * 3000.0) / 180.0
       var x = bd_lon - 0.0065
       var y = bd_lat - 0.006
@@ -266,7 +272,7 @@
       return [gg_lat, gg_lng]
     },
     // ������������������������������������������������������
-    jump(items) {
+    jump (items) {
       console.log(items)
       this.jumpData = []
       // const newLL = this.bd09togcj02(items.longitude, items.latitude)
@@ -277,7 +283,7 @@
       this.$refs.child.jumpMap(this.jumpData)
     },
     // ���������������������
-    deviceDetail(mac, item, items, indexs) {
+    deviceDetail (mac, item, items, indexs) {
       // this.$message.warning('���������������������������������������')
       // console.log('������������������������')
       // console.log(mac)
@@ -313,7 +319,7 @@
       })
     },
     // ������regionCode������������������������������������������������
-    getRegionApi() {
+    getRegionApi () {
       // console.log('������getRegionApi')
       // console.log(this.newRegion[this.newRegion.length - 1])
       this.$store.state.regionCode = this.newRegion[this.newRegion.length - 1]
@@ -325,7 +331,7 @@
       console.log(this.jingdu, '������')
     },
     // ������������������������
-    getData() {
+    getData () {
       this.monitorPointIds = []
       this.$request({
         url: '/monitorPoint/queryMonitorPointsState',
@@ -385,7 +391,7 @@
           this.defaultData = []
         })
     },
-    getRegion() {
+    getRegion () {
       this.$request({
         url: '/organization/getMapPath',
         method: 'get',

--
Gitblit v1.8.0