mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-08 06:00:24 +08:00
审核中服务增加提交审核时间/已通过域名标绿
This commit is contained in:
@@ -12,11 +12,16 @@
|
||||
<tr>
|
||||
<td class="title">审核中域名</td>
|
||||
<td>
|
||||
<span v-for="serverName in allServerNames" class="ui label basic">
|
||||
{{serverName}}
|
||||
<span v-for="serverName in allServerNames" class="ui label basic" :class="{green: serverName.isPassed}">
|
||||
{{serverName.name}}
|
||||
</span>
|
||||
<p class="comment" v-if="hasPassedDomains"><span class="green">绿色</span>标注的域名表示之前已经审核通过的域名。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="auditingTime.length > 0">
|
||||
<td>提交审核时间</td>
|
||||
<td>{{auditingTime}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>审核结果</td>
|
||||
<td>
|
||||
|
||||
@@ -6,10 +6,26 @@ Tea.context(function () {
|
||||
let that = this
|
||||
this.serverNames.forEach(function (v) {
|
||||
if (v.subNames == null || v.subNames.length == 0) {
|
||||
that.allServerNames.push(v.name)
|
||||
that.allServerNames.push({
|
||||
name: v.name,
|
||||
isPassed: that.passedDomains.$contains(v.name)
|
||||
})
|
||||
} else {
|
||||
that.allServerNames.$pushAll(v.subNames)
|
||||
v.subNames.forEach(function (subName) {
|
||||
that.allServerNames.push({
|
||||
name: subName,
|
||||
isPassed: that.passedDomains.$contains(subName)
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
this.hasPassedDomains = false
|
||||
this.allServerNames.forEach(function (serverName) {
|
||||
if (serverName.isPassed) {
|
||||
that.hasPassedDomains = true
|
||||
}
|
||||
})
|
||||
|
||||
this.auditing = 1
|
||||
})
|
||||
Reference in New Issue
Block a user