增加批量上传证书功能

This commit is contained in:
刘祥超
2023-03-24 15:05:31 +08:00
parent 3fe67bb179
commit 6658028f90
8 changed files with 242 additions and 4 deletions

View File

@@ -0,0 +1,30 @@
Tea.context(function () {
this.isRequesting = false
this.userId = 0
this.before = function () {
this.isRequesting = true
}
this.done = function () {
this.isRequesting = false
}
this.successUpload = function (resp) {
if (resp.data.count > 0) {
let msg = "html:成功上传" + resp.data.count + "个证书"
if (this.userId > 0) {
msg += "<br/>由于你选择了证书用户,所以只有此用户才能在用户系统中查看到这些证书。"
}
teaweb.success(msg, function () {
NotifyPopup(resp)
})
return
}
NotifyPopup(resp)
}
this.changeUserId = function (userId) {
this.userId = userId
}
})