ソースを参照

还差用户管理和操作日志

shaogen1995 3 年 前
コミット
6e84fce8b8
4 ファイル変更51 行追加2 行削除
  1. 6 0
      src/router/index.js
  2. 1 1
      src/views/layout/index.vue
  3. 1 1
      src/views/tab5/index.vue
  4. 43 0
      src/views/tab7/index.vue

+ 6 - 0
src/router/index.js

@@ -103,6 +103,12 @@ const routes = [
         name: 'tab6Edit2',
         meta: { myInd: 6 },
         component: () => import('../views/tab6/edit2.vue')
+      },
+      {
+        path: 'tab7',
+        name: 'tab7',
+        meta: { myInd: 7 },
+        component: () => import('../views/tab7/index.vue')
       }
     ]
   }

+ 1 - 1
src/views/layout/index.vue

@@ -111,7 +111,7 @@ export default {
           { required: true, message: '不能为空', trigger: 'blur' }
         ],
         newPassword: [
-          { required: true, message: '不能为空', trigger: 'blur' }
+          { required: true, message: '不能为空', trigger: 'blur' }, { max: 15, message: '不能超过15个字', trigger: 'blur' }
         ]
       },
       userName: '',

+ 1 - 1
src/views/tab5/index.vue

@@ -279,7 +279,7 @@ export default {
         temp.type = '环境情况'
         temp.data = JSON.parse(v.data)
         temp.time = v.userUpdateTime
-        temp.conten = `温度:${temp.data.temp}°--${temp.data.tempScope};湿度:${temp.data.humidity}RH--${temp.data.humidityScope};PM2.5:${temp.data.pm25}--${temp.data.pm25Scope};PM10:${temp.data.pm10};噪音:${temp.data.noise};风速:${temp.data.windSpeed};AIQ:${temp.data.aiq};TSP:${temp.data.tsp}`
+        temp.conten = `温度:${temp.data.temp}°--${temp.data.tempScope};湿度:${temp.data.humidity}RH--${temp.data.humidityScope};PM2.5:${temp.data.pm25}μg/m3--${temp.data.pm25Scope};PM10:${temp.data.pm10};噪音:${temp.data.noise};风速:${temp.data.windSpeed};AIQ:${temp.data.aiq};TSP:${temp.data.tsp}`
         this.tableData.push(temp)
       })
     },

+ 43 - 0
src/views/tab7/index.vue

@@ -0,0 +1,43 @@
+<!--  -->
+<template>
+<div class='tab7'>
+  <div class="top">
+
+  </div>
+</div>
+</template>
+
+<script>
+export default {
+  name: 'tab7',
+  components: {},
+  data () {
+    return {
+
+    }
+  },
+  computed: {},
+  methods: {
+
+  },
+  // 生命周期 - 创建完成(可以访问当前this实例)
+  created () {
+
+  },
+  // 生命周期 - 挂载完成(可以访问DOM元素)
+  mounted () {
+
+  },
+  beforeCreate () {}, // 生命周期 - 创建之前
+  beforeMount () {}, // 生命周期 - 挂载之前
+  beforeUpdate () {}, // 生命周期 - 更新之前
+  updated () {}, // 生命周期 - 更新之后
+  beforeDestroy () {}, // 生命周期 - 销毁之前
+  destroyed () {}, // 生命周期 - 销毁完成
+  activated () {} // 如果页面有keep-alive缓存功能,这个函数会触发
+}
+</script>
+<style lang='less' scoped>
+//@import url(); 引入公共css类
+
+</style>