2020-09-16 09:09:10 +08:00
|
|
|
Tea.context(function () {
|
|
|
|
|
this.success = NotifyReloadSuccess("保存成功")
|
2020-12-19 19:08:39 +08:00
|
|
|
this.auditSuccess = NotifyReloadSuccess("保存成功")
|
|
|
|
|
|
|
|
|
|
this.allServerNames = []
|
|
|
|
|
let that = this
|
|
|
|
|
this.serverNames.forEach(function (v) {
|
|
|
|
|
if (v.subNames == null || v.subNames.length == 0) {
|
2021-12-01 17:06:05 +08:00
|
|
|
that.allServerNames.push({
|
|
|
|
|
name: v.name,
|
|
|
|
|
isPassed: that.passedDomains.$contains(v.name)
|
|
|
|
|
})
|
2020-12-19 19:08:39 +08:00
|
|
|
} else {
|
2021-12-01 17:06:05 +08:00
|
|
|
v.subNames.forEach(function (subName) {
|
|
|
|
|
that.allServerNames.push({
|
|
|
|
|
name: subName,
|
|
|
|
|
isPassed: that.passedDomains.$contains(subName)
|
|
|
|
|
})
|
|
|
|
|
})
|
2020-12-19 19:08:39 +08:00
|
|
|
}
|
|
|
|
|
})
|
2021-12-01 17:06:05 +08:00
|
|
|
|
|
|
|
|
this.hasPassedDomains = false
|
|
|
|
|
this.allServerNames.forEach(function (serverName) {
|
|
|
|
|
if (serverName.isPassed) {
|
|
|
|
|
that.hasPassedDomains = true
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2020-12-19 19:08:39 +08:00
|
|
|
this.auditing = 1
|
2020-09-16 09:09:10 +08:00
|
|
|
})
|