Files
waf-platform/EdgeAdmin/web/views/@default/plans/index.js
2026-02-04 20:27:13 +08:00

28 lines
504 B
JavaScript

Tea.context(function () {
this.$delay(function () {
this.sortTable()
})
this.deletePlan = function (planId) {
teaweb.confirm("确定要删除此套餐吗?", function () {
this.$post(".plan.delete")
.params({
planId: planId
})
.refresh()
})
}
this.sortTable = function () {
let that = this
sortTable(function (ids) {
that.$post(".sort")
.params({
ids: ids
})
.success(function () {
teaweb.successToast("保存成功", 1000)
})
})
}
})