Browse Source

feat: update

zhangys36 1 year ago
parent
commit
fb7a82f7da

+ 1 - 1
.env.development

@@ -2,4 +2,4 @@
 ENV = 'development'
 
 # base api
-VUE_APP_BASE_API = 'https://gdsc.ninecase.top/api'
+VUE_APP_BASE_API = 'http://www.ninecase.top/api'

+ 1 - 1
.env.production

@@ -2,5 +2,5 @@
 ENV = 'production'
 
 # base api
-VUE_APP_BASE_API = 'https://gdscys.svstrong.com/api'
+VUE_APP_BASE_API = 'http://www.ninecase.top/api'
 

+ 17 - 33
src/views/dashboard-screen/screen/screen_Bd_Dl_Ycxx/ScreenBdDlYcxx.vue

@@ -2,23 +2,13 @@
   <div class="screen-common-wrap">
     <el-card class="content-z" v-if="selectList">
       <a-tabs v-model="activeKey">
-        <a-tab-pane
-          v-for="item in tabs"
-          :key="item.name"
-          :tab="item.title"
-        >
-          <component
-            :is="item.name"
-            v-if="activeKey === item.name"
-            :selectedGQ="selectedGQ"
-            :gqPath="params.path"
-            :gqStPath="params.stPath"
-          />
+        <a-tab-pane v-for="item in tabs" :key="item.name" :tab="item.title">
+          <component :is="item.name" v-if="activeKey === item.name" :selectedGQ="selectedGQ" :gqPath="params.path"
+            :gqStPath="params.stPath" />
         </a-tab-pane>
       </a-tabs>
     </el-card>
   </div>
-
 </template>
 <script>
 
@@ -58,14 +48,14 @@ export default {
         title: '(推送)电力异常信息',
         name: 'Dl'
       },
-        {
-          title: '(自主发现)变电异常信息',
-          name: 'ZzBd'
-        },
-        {
-          title: '(自主发现)电力异常信息',
-          name: 'ZzDl'
-        }]
+      {
+        title: '(自主发现)变电异常信息',
+        name: 'ZzBd'
+      },
+      {
+        title: '(自主发现)电力异常信息',
+        name: 'ZzDl'
+      }]
     }
   },
   async created() {
@@ -106,21 +96,15 @@ export default {
           this.tabs = [{
             title: '(推送)变电异常信息',
             name: 'Bd'
-          }, {
-            title: '(推送)电力异常信息',
-            name: 'Dl'
           }]
           this.activeKey = 'Bd'
         } else {
-          this.tabs = [{
-            title: '(自主发现)变电异常信息',
-            name: 'ZzBd'
-          },
-            {
-              title: '(自主发现)电力异常信息',
-              name: 'ZzDl'
-            }]
-          this.activeKey = 'ZzBd'
+          this.tabs = [
+          {
+            title: '(自主发现)电力异常信息',
+            name: 'ZzDl'
+          }]
+          this.activeKey = 'ZzDl'
         }
       }
     }