看板提醒商业版过期日期

This commit is contained in:
GoEdgeLab
2021-09-16 09:21:44 +08:00
parent 4c0f2d95ad
commit f4f268d9b7
5 changed files with 12 additions and 5 deletions

View File

@@ -26,5 +26,5 @@ Vue.component("micro-basic-label", {
// 灰色的Label
Vue.component("grey-label", {
template: `<span class="ui label basic grey tiny" style="margin-top: 0.4em; font-size: 0.7em; border: 1px solid #ddd!important; font-weight: normal; margin-left: -0.2em"><slot></slot></span>`
template: `<span class="ui label basic grey tiny" style="margin-top: 0.4em; font-size: 0.7em; border: 1px solid #ddd!important; font-weight: normal;"><slot></slot></span>`
})

View File

@@ -63,7 +63,7 @@
<a href="" class="item" title="点击切换界面风格" @click.prevent="changeTheme()"><i class="icon adjust"></i></a>
<!-- 企业版 -->
<!-- <a :href="'/settings/authority'" class="item" title="业版" :v-if="teaIsPlus"><i class="icon gem outline yellow"></i></a>-->
<!-- <a :href="'/settings/authority'" class="item" title="业版" :v-if="teaIsPlus"><i class="icon gem outline yellow"></i></a>-->
<!-- 退出登录 -->
<a :href="Tea.url('logout')" class="item" title="安全退出登录"><i class="icon sign out"></i>

View File

@@ -16,6 +16,12 @@
<a :href="'/clusters/cluster/createNode?clusterId=' + dashboard.defaultClusterId">还没有在集群中添加节点,现在去添加?添加节点后才可部署网站服务。</a>
</div>
<!-- 过期提醒 -->
<div class="ui icon message error" v-if="plusExpireDay.length > 0">
<i class="icon warning circle"></i>
<strong>续费提醒:商业版服务即将在 {{plusExpireDay}} 过期,请及时续费。</strong>
</div>
<!-- 升级提醒 -->
<div class="ui icon message error" v-if="!isLoading && nodeUpgradeInfo.count > 0">
<i class="icon warning circle"></i>
@@ -41,7 +47,7 @@
</div>
<div class="ui icon message error" v-if="!isLoading && authorityNodeUpgradeInfo.count > 0 && teaIsPlus">
<i class="icon warning circle"></i>
<a href="/settings/authority/nodes">升级提醒:有 {{authorityNodeUpgradeInfo.count}} 个业版认证节点需要升级到 v{{authorityNodeUpgradeInfo.version}} 版本</a><a href="" title="关闭" @click.prevent="closeMessage"><i class="ui icon remove small"></i></a>
<a href="/settings/authority/nodes">升级提醒:有 {{authorityNodeUpgradeInfo.count}} 个业版认证节点需要升级到 v{{authorityNodeUpgradeInfo.version}} 版本</a><a href="" title="关闭" @click.prevent="closeMessage"><i class="ui icon remove small"></i></a>
</div>
<!-- 统计图表 -->

View File

@@ -2,6 +2,7 @@ Tea.context(function () {
this.isLoading = true
this.trafficTab = "hourly"
this.metricCharts = []
this.plusExpireDay = ""
this.$delay(function () {
this.$post("$")

View File

@@ -1,7 +1,7 @@
{$layout}
{$template "menu"}
<warning-message v-if="key == null">认证之后,可以使用业版功能,当前你还没有认证,<a href="http://edge.teaos.cn/docs/Plus/Authority/Index.md" target="_blank">[在这里看认证方法]</a></warning-message>
<warning-message v-if="key == null">认证之后,可以使用业版功能,当前你还没有认证,<a href="http://edge.teaos.cn/docs/Plus/Authority/Index.md" target="_blank">[在这里看认证方法]</a></warning-message>
<div v-if="key != null">
<div class="margin"></div>
@@ -9,7 +9,7 @@
<div class="ui message green icon">
<i class="icon gem outline small yellow"></i>
<div class="content">
恭喜您已经成为尊贵的业版用户。
恭喜您已经成为尊贵的业版用户。
</div>
</div>