Initial commit (code only without large binaries)
This commit is contained in:
28
EdgeAdmin/web/views/@default/plans/index.js
Normal file
28
EdgeAdmin/web/views/@default/plans/index.js
Normal file
@@ -0,0 +1,28 @@
|
||||
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)
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user