Browse Source

1.首页ie状态下弹窗;2.删除首页装机容量的多加的50;3.状态监视页面每秒加载一次

mw_666 3 years ago
parent
commit
080dde1ec8
3 changed files with 15 additions and 4 deletions
  1. 13 0
      public/index.html
  2. 1 1
      src/views/Home/Home.vue
  3. 1 3
      src/views/sisView/index.vue

+ 13 - 0
public/index.html

@@ -7,9 +7,22 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+	<script type="text/javascript">
+		window.onload =function(){
+			if(!!window.ActiveXObject || "ActiveXObject" in window){
+				document.getElementById("ie_dialog").style.display = "block";
+			}
+		}
+	</script>
+	<style type="text/css">
+		#ie_dialog{width: 350px;border: 1px solid #eeeeee;box-shadow: 8px 8px 8px #EEEEEE;margin: 150px auto 0;padding: 30px;text-align: center;display: none;}
+	</style>
     <title><%= htmlWebpackPlugin.options.title %></title>
   </head>
   <body>
+	  <div id="ie_dialog">
+		本平台仅支持非ie浏览器使用
+	  </div>
     <noscript>
       <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
     </noscript>

+ 1 - 1
src/views/Home/Home.vue

@@ -174,7 +174,7 @@
               <table class="table-card">
                 <tr class="">
                   <td class="text gray">装机容量</td>
-                  <td class="value green">{{ Number(jczbmap.zjrl) + 50 }}</td>
+                  <td class="value green">{{ Number(jczbmap.zjrl)}}</td>
                   <td class="unit gray">MW</td>
                 </tr>
                 <tr class="">

+ 1 - 3
src/views/sisView/index.vue

@@ -339,13 +339,11 @@ export default {
 
   created() {
 	  this.viewAjax();
+	  setInterval(() => {this.viewAjax()},1000);
   },
-
   mounted() {
     this.resetViewTitleHeight();
   },
-
-  unmounted() {},
 };
 </script>