审核中服务增加提交审核时间/已通过域名标绿

This commit is contained in:
GoEdgeLab
2021-12-01 17:06:05 +08:00
parent bcb079e902
commit fbd71c142b
8 changed files with 54 additions and 8 deletions

View File

@@ -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
})