| | |
| | | </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" |
| | |
| | | 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); |
| | | } |