diff --git a/src/api/api.js b/src/api/api.js index 1ac2598..be49053 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -139,4 +139,9 @@ export function UpdateCData(data) { return request({ url: '/api/FodAirPort/UpdateCData', method: 'post', data: data }); +} +export function DeleteCData(data) { + return request({ + url: '/api/FodAirPort/DeleteCData', method: 'post', data: data + }); } \ No newline at end of file diff --git a/src/views/index.vue b/src/views/index.vue index cb39be7..df263bf 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -29,7 +29,7 @@ import { getArea, GetAllCData, InsertCListData, - UpdateCData + UpdateCData, DeleteCData } from "@/api/api"; import {useRouter} from "vue-router"; import {ElMessage} from "element-plus"; @@ -376,6 +376,8 @@ const RIGHT = defineComponent({ /> getPoint(k)} style={{marginLeft: "20px"}}>获取 + DeleteCData(i.id)} + style={{marginLeft: "20px"}}>删除 ))}