增加取消重试按钮

dev
dengjia 2025-08-15 13:44:29 +08:00
parent 11d2eaf07a
commit b6f626c11c
2 changed files with 20 additions and 1 deletions

View File

@ -7,3 +7,6 @@ export const setAlarmUpdate = (params) =>
export const getAlarmInfo = (params) =>
postRequest("/data/aram/getAramInfo", params); // 告警详情
export const setCancelTryAgain = (params) =>
postRequest("/data/aram/cancelTryAgain", params); // 取消重试

View File

@ -50,6 +50,15 @@
>
查看
</el-button>
<el-button
v-if="row.handleStatus === 4"
type="primary"
text
link
@click="fnCancelTryAgain(row)"
>
取消重试
</el-button>
</el-table-column>
</app-table>
<edit-dialog
@ -64,11 +73,12 @@
import AppSearch from "@/components/search/index.vue";
import { ref } from "vue";
import useListData from "@/hooks/useListData.js";
import { getAlarmList } from "@/request/alarm_management.js";
import { getAlarmList, setCancelTryAgain } from "@/request/alarm_management.js";
import AppTable from "@/components/table/index.vue";
import { useRouter } from "vue-router";
import editDialog from "./components/edit.vue";
import { translationStatus } from "@/assets/js/utils.js";
import { ElMessageBox, ElMessage } from "element-plus";
const router = useRouter();
@ -105,6 +115,12 @@ const fnStatus = (row) => {
editDialogInfo.value.id = row.id;
editDialogInfo.value.visible = true;
};
const fnCancelTryAgain = async (row) => {
await ElMessageBox.confirm("确定取消重试吗?", "提示", { type: "warning" });
await setCancelTryAgain({ id: row.id });
ElMessage.success("操作成功");
resetPagination();
};
</script>
<style scoped></style>