xiejun
2023-10-18 e40973680e8842a0797ca2e1cd45ec5e6bf0f3d8
Source/UBCS-WEB/src/page/index/top/index.vue
@@ -18,7 +18,13 @@
        <top-search></top-search>
      </span>
    </div>
    <div></div>
    <div class="top-bar__right">
      <div class="container">
        <div class="content">
          本系统为非涉密应用系统,禁止处理、存储、传输涉密信息
        </div>
      </div>
      <el-tooltip v-if="showColor"
                  effect="dark"
                  :content="$t('navbar.color')"
@@ -101,6 +107,9 @@
          </el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
      <div style="margin-left: 15px">
        <p style="font-size: 16px">当前登录用户:{{storedUsername}}</p>
      </div>
      <el-dialog title="用户信息选择"
                 append-to-body
                 :visible.sync="userBox"
@@ -137,6 +146,7 @@
    name: "top",
    data() {
      return {
        storedUsername: '',
        userBox: false,
        userForm: {
          deptId: '',
@@ -191,6 +201,7 @@
    },
    mounted() {
      listenfullscreen(this.setScreen);
      this.storedUsername = localStorage.getItem('username');
    },
    computed: {
      ...mapState({
@@ -259,4 +270,22 @@
</script>
<style lang="scss" scoped>
.container {
  max-width: 100%;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
}
.content {
  font-size: 20px;
  line-height: 20px;
  margin-right: 35px;
}
@media screen and (max-width: 768px) {
  .content {
    margin-right: 0;
  }
}
</style>