Commit 3729eb41 authored by 张耀's avatar 张耀

feat:

根据后台要求,接口名称有歧义,统一修改调整
parent d82ce0d8
...@@ -100,7 +100,7 @@ const getInfo = () => { ...@@ -100,7 +100,7 @@ const getInfo = () => {
const params = { const params = {
id, id,
}; };
axios.get("/v1/api/alert_list", { params }).then((res) => { axios.get("/v1/api/alert", { params }).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
const { data } = res.data; const { data } = res.data;
info.value = { info.value = {
......
...@@ -343,7 +343,7 @@ const getTableRows = () => { ...@@ -343,7 +343,7 @@ const getTableRows = () => {
end_time, end_time,
}; };
Reflect.deleteProperty(params, "time"); Reflect.deleteProperty(params, "time");
axios.get("/v1/api/alert_list/list", { params }).then((res) => { axios.get("/v1/api/alert/list", { params }).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
let { list, total_count } = res.data.data; let { list, total_count } = res.data.data;
state.tableRows = list || []; state.tableRows = list || [];
...@@ -418,7 +418,7 @@ const pushConfirm = async () => { ...@@ -418,7 +418,7 @@ const pushConfirm = async () => {
}), }),
}; };
axios axios
.put("/v1/api/alert_list/batch/push", params) .put("/v1/api/alert/batch/push", params)
.then((res) => { .then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
ElMessage.success("推送成功"); ElMessage.success("推送成功");
...@@ -453,7 +453,7 @@ const confirmClose = () => { ...@@ -453,7 +453,7 @@ const confirmClose = () => {
defer_push: state.closeFormData.close_remind ? 1 : 0, defer_push: state.closeFormData.close_remind ? 1 : 0,
}; };
axios axios
.put("/v1/api/alert_list/batch/close", params) .put("/v1/api/alert/batch/close", params)
.then((res) => { .then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
ElMessage.success("关闭预警操作成功"); ElMessage.success("关闭预警操作成功");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment