zouzs 6 өдөр өмнө
parent
commit
c5d3ff2ea6

+ 11 - 0
src/api/system/ipInterface.ts

@@ -46,6 +46,17 @@ export const deleteIpInterface = (id: number) => {
   );
   );
 };
 };
 
 
+/**
+ * 删除与账户关联的接口
+ * @param id
+ */
+export const delAccountInterface = (id: number) => {
+  return http.request<BasicResponseModel>(
+    "delete",
+    interfaceUrlApi(`ipInterface/delAccountInterface/${id}`)
+  );
+};
+
 /**
 /**
  * 查询账号下关联的接口列表
  * 查询账号下关联的接口列表
  * @param query
  * @param query

+ 3 - 2
src/views/ipAccount/ipAccountInterface.vue

@@ -77,7 +77,8 @@ import {
   addOrEditIpAccountInterfaceRef,
   addOrEditIpAccountInterfaceRef,
   generateIpAccountToken,
   generateIpAccountToken,
   getIpAccountInterfaceList,
   getIpAccountInterfaceList,
-  getIpInterfaceOptionList
+  getIpInterfaceOptionList,
+  delAccountInterface
 } from "@/api/system/ipInterface";
 } from "@/api/system/ipInterface";
 import { isString } from "@pureadmin/utils";
 import { isString } from "@pureadmin/utils";
 import { useRoute } from "vue-router";
 import { useRoute } from "vue-router";
@@ -539,7 +540,7 @@ buttons.value = [
     },
     },
     onConfirm: async params => {
     onConfirm: async params => {
       try {
       try {
-        let res = await deleteIpAccount(params.row.id);
+        let res = await delAccountInterface(params.row.id);
         if (res.code === 200) {
         if (res.code === 200) {
           ElMessage.success("删除成功");
           ElMessage.success("删除成功");
           refresh();
           refresh();