|
@@ -65,4 +65,13 @@ export const promotionAction = ResourceModule.action({
|
|
|
await this.https.deleteComp(record._id);
|
|
|
// this.controls.promotionListCtrl.fresh();
|
|
|
},
|
|
|
+ async renameComp(record: any) {
|
|
|
+ const title = await queenApi.showInput({
|
|
|
+ title: "请输入标题",
|
|
|
+ defaultValue: record.title,
|
|
|
+ });
|
|
|
+ if (!title) return;
|
|
|
+ await this.https.updateComp({ _id: record._id, title });
|
|
|
+ record.title = title;
|
|
|
+ },
|
|
|
});
|