Files
waf-platform/EdgeAdmin/web/views/@default/servers/user-scripts/script/index.js

16 lines
367 B
JavaScript

Tea.context(function () {
this.pass = function (scriptId) {
let that = this
teaweb.confirm("确定要通过此脚本吗?", function () {
that.$post(".pass")
.params({ scriptId: scriptId})
.success(function () {
teaweb.reload()
})
})
}
this.reject = function (scriptId) {
teaweb.popupSuccess(".rejectPopup?scriptId=" + scriptId)
}
})