feat(forecast): 增强详情弹窗底部便捷编辑与删除入口

这个提交包含在:
wikiboss
2026-11-02 14:59:10 +08:00
父节点 f6e454a589
当前提交 e2be5c23da
共有 2 个文件被更改,包括 23 次插入 和 1 次删除

查看文件

@@ -81,6 +81,20 @@ define(['jquery', 'bootstrap', 'backend', 'backend/forecast/components'], functi
});
}).catch(function () {});
},
deleteFromDetail: function () {
if (this.selected) {
this.deleteRecord(this.selected);
}
},
editFromDetail: function () {
var self = this;
if (this.selected) {
var rec = this.selected;
this.closeDetail(function () {
self.editRecord(rec);
});
}
},
write: function (action, data, callback) {
if (this.saving) return;
var self = this;