mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-09 00:20:26 +08:00
21 lines
500 B
JavaScript
21 lines
500 B
JavaScript
|
|
Tea.context(function () {
|
||
|
|
this.createChart = function () {
|
||
|
|
teaweb.popup(Tea.url(".createPopup?itemId=" + this.item.id), {
|
||
|
|
callback: function () {
|
||
|
|
teaweb.successRefresh("保存成功")
|
||
|
|
},
|
||
|
|
height: "27em"
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
this.deleteChart = function (chartId) {
|
||
|
|
let that = this
|
||
|
|
teaweb.confirm("确定要删除这个图表吗?", function () {
|
||
|
|
that.$post(".delete")
|
||
|
|
.params({ chartId: chartId })
|
||
|
|
.success(function () {
|
||
|
|
teaweb.successRefresh("保存成功")
|
||
|
|
})
|
||
|
|
})
|
||
|
|
}
|
||
|
|
})
|