实现基本的图表管理

This commit is contained in:
刘祥超
2021-07-03 15:44:49 +08:00
parent 534f10b8a7
commit f297f4ec52
42 changed files with 1010 additions and 99 deletions

View File

@@ -0,0 +1,21 @@
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("保存成功")
})
})
}
})