Changpeng Duan 4 лет назад
Родитель
Сommit
3db1d5af3d
4 измененных файлов с 18 добавлено и 7 удалено
  1. 4 0
      public/index.html
  2. 1 1
      src/components/Detecter.vue
  3. 6 6
      src/components/Scan.vue
  4. 7 0
      vue.config.js

+ 4 - 0
public/index.html

@@ -4,6 +4,10 @@
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
+    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/>
+    <meta http-equiv="pragram" content="no-cache" />
+    <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"  />
+    <meta http-equiv="expires" content="0" />
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
     <title><%= htmlWebpackPlugin.options.title %></title>
   </head>

+ 1 - 1
src/components/Detecter.vue

@@ -18,7 +18,7 @@
                         </div>
                     </el-col>
                     <h5 v-if="detecterList == ''">尚未添加探测设备</h5>
-
+                    <h5 v-if="detecterList == null">尚未添加探测设备</h5>
                 </el-row>
             </ul>
         </div>

+ 6 - 6
src/components/Scan.vue

@@ -6,7 +6,7 @@
             </div>
             <div class="line">
                 <ve-line :data="chartData" width="100%" height="230px" :loading="loading" :legend-visible="false"
-                         :extend="chartExtend"></ve-line>
+                    :extend="chartExtend"></ve-line>
                 <div class="null_state" v-if="chartData.rows == ''">
                     暂无
                 </div>
@@ -16,8 +16,7 @@
 </template>
 
 <script>
-    import {Scan} from '../api/getApiRes.js'
-
+    import { Scan } from '../api/getApiRes.js'
     let qs = require('qs');
     export default {
         data() {
@@ -48,6 +47,7 @@
                         globalCoord: false // 缺省为 false
                     },
                     series: {
+                        symbol:'none',
                         barMaxWidth: 10,
                         // 区域填充样式
                         areaStyle: {
@@ -104,7 +104,7 @@
                                 width: 1,//这里是为了突出显示加上的
                             }
                         }
-                    }
+                    },
                 }
             }
         },
@@ -118,7 +118,7 @@
                     val.Rs.forEach(function (item) {
                         item.X = parseFloat(item.X / 1000 / 1000 / 1000).toFixed(2).toString() + "G"
                     });
-                    that.chartData.rows =  val.Rs;
+                    that.chartData.rows = val.Rs;
                 }
             },
         },
@@ -166,4 +166,4 @@
         line-height: 70px;
         margin-top: 60px;
     }
-</style>
+</style>

+ 7 - 0
vue.config.js

@@ -1,3 +1,4 @@
+const Timestamp = new Date().getTime();
 module.exports = {
     lintOnSave: false,
     devServer: {
@@ -13,6 +14,12 @@ module.exports = {
             }
         }
     },
+    configureWebpack: {
+        output: { // 输出重构  打包编译后的 文件名称  【模块名称.版本号.时间戳】
+            filename: `[name].${process.env.VUE_APP_Version}.${Timestamp}.js`,
+            chunkFilename: `[name].${process.env.VUE_APP_Version}.${Timestamp}.js`
+        }
+    },
     // 输出文件目录
     outputDir: 'D:/wwwroot/signal_build/build/static',
 };