feat(forecast): 增强详情弹窗底部便捷编辑与删除入口
这个提交包含在:
@@ -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;
|
||||
|
||||
在新工单中引用
屏蔽一个用户