zhuliu 9 bulan lalu
induk
melakukan
475d73acb2

+ 18 - 0
src/views/backStageManage/examine/examine/components/examine.vue

@@ -50,6 +50,12 @@
                                 <p v-if="scope.row.personnelEmail">邮箱:{{ scope.row.personnelEmail }}</p>
                                 <p v-if="scope.row.departmentName">部门:{{ scope.row.departmentName }}</p>
                                 <p v-if="scope.row.positionName">职位:{{ scope.row.positionName }}</p>
+                                <p v-if="scope.row.versionName">
+                                    <el-link type="primary" @click="checkVersionMessage(scope.row)">版本名称:{{ scope.row.versionName }}</el-link>
+                                </p>
+                                <p v-if="scope.row.versionNum">
+                                    <el-link type="primary" @click="checkVersionMessage(scope.row)">版本号:{{ scope.row.versionNum }}</el-link>
+                                </p>
                             </template>
                         </div>
                         <div v-else v-html="$commonJS.getColumnData(scope.row,item)"></div>
@@ -257,6 +263,18 @@ export default {
             message.close()
         })
     },
+    //查看版本详情
+    checkVersionMessage(row){
+        if(!row.versionId){
+            return
+        }
+        this.$router.push({ 
+            path: '/administrator/versionDetail', 
+            query: {
+                id: row.id
+            }
+        });
+    },
   },
 };
 </script>

+ 52 - 3
src/views/backStageManage/home/index.vue

@@ -1,5 +1,13 @@
 <template>
-  <div></div>
+  <div class="height_100 home">
+    <div class="content">
+      <div>
+        {{getTimeState()}}{{ userinfo.name }}
+      </div>
+      欢迎使用窍笔后台管理系统
+    </div>
+    
+  </div>
 </template>
 
 <script>
@@ -11,11 +19,52 @@ export default {
     };
   },
   watch: {},
-  computed: {},
+  computed: {
+    userinfo(){
+      return this.$store.getters.userinfo
+    }
+  },
   created() {},
   mounted() {},
-  methods: {},
+  methods: {
+    getTimeState() {
+      // 获取当前时间
+      let timeNow = new Date();
+      // 获取当前小时
+      let hours = timeNow.getHours();
+      // 设置默认文字
+      let state = ``;
+      // 判断当前时间段
+      if (hours >= 0 && hours <= 10) {
+        state = `🌞 早上好!`;
+      } else if (hours > 10 && hours <= 11) {
+        state = `🌞 上午好!`;
+      } else if (hours > 11 && hours <= 13) {
+        state = `🌼 中午好!`;
+      } else if (hours > 13 && hours <= 18) {
+        state = `🌼 下午好!`;
+      } else if (hours > 18 && hours <= 24) {
+        state = `😴 晚上好!`;
+      }
+      return state;
+    }
+  },
 };
 </script>
 <style lang="scss" scoped>
+.home{
+ position: relative;
+}
+.content{
+  position: absolute;
+  inset: 0;
+  margin: auto;
+  height:300px;
+  text-align: center;
+  line-height: 80px;
+  font-size: 50px;
+  background: linear-gradient(to right, red, blue);
+  -webkit-background-clip: text;
+  color: transparent;
+}
 </style>