|
@@ -236,6 +236,19 @@ class JobAppliedReviseListController extends GetxController with DioCancelableMi
|
|
|
));
|
|
|
}
|
|
|
|
|
|
+ /// 删除 操作
|
|
|
+ void doDeleteAction(int index) {
|
|
|
+ DialogEngine.show(
|
|
|
+ tag: 'deleteActionTag',
|
|
|
+ widget: AppDefaultDialog(
|
|
|
+ title: "Confirmation".tr,
|
|
|
+ message: "Are you sure you want to delete this revise?".tr,
|
|
|
+ confirmAction: () {
|
|
|
+ _requestDelete(index);
|
|
|
+ },
|
|
|
+ ));
|
|
|
+ }
|
|
|
+
|
|
|
void _requestRecall(int index) async {
|
|
|
var result = await _ukjobRepository.reviseRecall(reviseId: state.datas[index].id!.toString(), cancelToken: cancelToken);
|
|
|
|
|
@@ -248,6 +261,18 @@ class JobAppliedReviseListController extends GetxController with DioCancelableMi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ void _requestDelete(int index) async {
|
|
|
+ var result = await _ukjobRepository.reviseDelete(reviseId: state.datas[index].id!.toString(), cancelToken: cancelToken);
|
|
|
+
|
|
|
+ if (result.isSuccess) {
|
|
|
+ NotifyEngine.showSuccess("Successful".tr);
|
|
|
+ //赋值之后刷新
|
|
|
+ refreshController.callRefresh();
|
|
|
+ } else {
|
|
|
+ ToastEngine.show(result.errorMsg ?? "Network Load Error".tr);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/// 去展示员工状态的审核流程页面
|
|
|
void gotoAppliedWorkflowPage(UkJobAppliedStaffListRows data) {
|
|
|
UKAppliedWorkflowPage.startInstance(data.appliedId.toString());
|