增加取消重试按钮
parent
11d2eaf07a
commit
b6f626c11c
|
@ -7,3 +7,6 @@ export const setAlarmUpdate = (params) =>
|
||||||
|
|
||||||
export const getAlarmInfo = (params) =>
|
export const getAlarmInfo = (params) =>
|
||||||
postRequest("/data/aram/getAramInfo", params); // 告警详情
|
postRequest("/data/aram/getAramInfo", params); // 告警详情
|
||||||
|
|
||||||
|
export const setCancelTryAgain = (params) =>
|
||||||
|
postRequest("/data/aram/cancelTryAgain", params); // 取消重试
|
||||||
|
|
|
@ -50,6 +50,15 @@
|
||||||
>
|
>
|
||||||
查看
|
查看
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
v-if="row.handleStatus === 4"
|
||||||
|
type="primary"
|
||||||
|
text
|
||||||
|
link
|
||||||
|
@click="fnCancelTryAgain(row)"
|
||||||
|
>
|
||||||
|
取消重试
|
||||||
|
</el-button>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</app-table>
|
</app-table>
|
||||||
<edit-dialog
|
<edit-dialog
|
||||||
|
@ -64,11 +73,12 @@
|
||||||
import AppSearch from "@/components/search/index.vue";
|
import AppSearch from "@/components/search/index.vue";
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import useListData from "@/hooks/useListData.js";
|
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 AppTable from "@/components/table/index.vue";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import editDialog from "./components/edit.vue";
|
import editDialog from "./components/edit.vue";
|
||||||
import { translationStatus } from "@/assets/js/utils.js";
|
import { translationStatus } from "@/assets/js/utils.js";
|
||||||
|
import { ElMessageBox, ElMessage } from "element-plus";
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
|
@ -105,6 +115,12 @@ const fnStatus = (row) => {
|
||||||
editDialogInfo.value.id = row.id;
|
editDialogInfo.value.id = row.id;
|
||||||
editDialogInfo.value.visible = true;
|
editDialogInfo.value.visible = true;
|
||||||
};
|
};
|
||||||
|
const fnCancelTryAgain = async (row) => {
|
||||||
|
await ElMessageBox.confirm("确定取消重试吗?", "提示", { type: "warning" });
|
||||||
|
await setCancelTryAgain({ id: row.id });
|
||||||
|
ElMessage.success("操作成功");
|
||||||
|
resetPagination();
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
|
Loading…
Reference in New Issue