#
Junjie
昨天 8a5e373add078ed9aa11d4e406a9f68638e1b42e
#
1个文件已修改
20 ■■■■■ 已修改文件
src/main/webapp/views/index.html 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/index.html
@@ -568,8 +568,12 @@
        </div>
        <div class="header-right">
          <el-tag v-if="licenseVisible" size="mini" type="warning" effect="dark">
            许可证 {{ licenseDays }} 天游效
          <el-tag
              v-if="licenseDisplayVisible"
              size="mini"
              :type="licenseTagType"
              effect="dark">
            临时许可证有效期:{{ licenseDays }}天
          </el-tag>
          <el-tag
              v-if="fakeVisible"
@@ -789,6 +793,18 @@
      licenseVisible: function () {
        return this.licenseDays !== null && this.licenseDays <= 30;
      },
      licenseDisplayVisible: function () {
        return this.licenseVisible && this.licenseDays >= 0;
      },
      licenseTagType: function () {
        if (this.licenseDays !== null && this.licenseDays <= 15) {
          return "danger";
        }
        if (this.licenseDays !== null && this.licenseDays <= 30) {
          return "warning";
        }
        return "info";
      },
      userShortName: function () {
        return (this.userName || "管理员").substring(0, 1);
      }