32 lines
727 B
JavaScript
32 lines
727 B
JavaScript
Tea.context(function () {
|
|
this.success = NotifyReloadSuccess("保存成功")
|
|
|
|
this.emailVerificationMoreOptions = false
|
|
this.emailResetPasswordMoreOptions = false
|
|
|
|
this.mobileVerificationMoreOptions = false
|
|
this.mobileResetPasswordMoreOptions = false
|
|
|
|
// 默认不影响已有用户功能,避免保存注册设置时误改用户功能绑定
|
|
this.featureOp = "keep"
|
|
this.featuresVisible = false
|
|
|
|
this.showFeatures = function () {
|
|
this.featuresVisible = !this.featuresVisible
|
|
}
|
|
|
|
this.selectedFeatureNames = function () {
|
|
if (this.features == null) {
|
|
return ""
|
|
}
|
|
|
|
let names = []
|
|
this.features.forEach(function (v) {
|
|
if (v.isChecked) {
|
|
names.push(v.name)
|
|
}
|
|
})
|
|
return names.join(" / ")
|
|
}
|
|
})
|