From b0f1b188a9c5a56df39bb957e8c9373ee126e07a Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 06 三月 2025 15:05:32 +0800
Subject: [PATCH] 标准库重新搬迁

---
 src/api/standard/standardLibrary.js |  128 +++++++++---------------------------------
 1 files changed, 28 insertions(+), 100 deletions(-)

diff --git a/src/api/standard/standardLibrary.js b/src/api/standard/standardLibrary.js
index cd702d3..7817c92 100644
--- a/src/api/standard/standardLibrary.js
+++ b/src/api/standard/standardLibrary.js
@@ -1,29 +1,11 @@
 import request from "@/utils/request";
 
-// 鏍囧噯搴撴爲鎺掑簭
-export function updateTreeSort(data) {
-  return request({
-    url: "/standardTree/updateTreeSort",
-    method: "post",
-    data: data,
-  });
-}
-
-// 鏍囧噯搴撴楠岄」鎺掑簭淇濆瓨鎺ュ彛
-export function resetTreeDragBatch(data) {
-  return request({
-    url: "/standardTree/resetTreeDragBatch",
-    method: "post",
-    data: data,
-  });
-}
-
 // 鍒犻櫎鏍囧噯鏍戠殑灞傜骇
-export function delStandardTree(data) {
+export function delStandardTree(query) {
   return request({
     url: "/standardTree/delStandardTree",
-    method: "post",
-    data: data,
+    method: "delete",
+    params: query,
   });
 }
 
@@ -54,6 +36,15 @@
   });
 }
 
+// 鑾峰彇鏍囧噯鏂规硶鏋氫妇
+export function selectStandardMethods(query) {
+  return request({
+    url: "/standardMethod/selectStandardMethods",
+    method: "get",
+    params: query,
+  });
+}
+
 // 缁欐爣鍑嗘爲娣诲姞妫�楠屾爣鍑�
 export function addStandardMethodList(data) {
   return request({
@@ -72,24 +63,6 @@
   });
 }
 
-// 淇敼鏍囧噯鏍�
-export function updateStandardTree(data) {
-  return request({
-    url: "/standardTree/updateStandardTree",
-    method: "post",
-    data: data,
-  });
-}
-
-// 鏍规嵁鏍囧噯鏍戣繘琛屾爣鍑嗘煡璇�
-export function selectsStandardMethodByFLSSM(query) {
-  return request({
-    url: "/standardTree/selectsStandardMethodByFLSSM",
-    method: "get",
-    params: query,
-  });
-}
-
 // 淇敼鏍囧噯搴撲腑鐨勮姹傚��
 export function upStandardProductList(data) {
   return request({
@@ -100,29 +73,20 @@
 }
 
 // 鍒犻櫎鏍囧噯鏍戜笅鐨勬楠屾爣鍑�
-export function delStandardMethodByFLSSM(data) {
+export function delStandardMethodByFLSSM(query) {
   return request({
     url: "/standardTree/delStandardMethodByFLSSM",
-    method: "post",
-    data: data,
+    method: "delete",
+    params: query,
   });
 }
 
-// 鍒犻櫎鏍囧噯鏍戜笅鐨勬楠屾爣鍑�
-export function delStandardProductByIds(data) {
+// 鍒犻櫎鏍囧噯鏍戜笅鐨勬楠岄」鐩�
+export function delStandardProductByIds(query) {
   return request({
     url: "/standardTree/delStandardProductByIds",
-    method: "post",
-    data: data,
-  });
-}
-
-// 鏂板鏍囧噯鏍戜笅鐨勬楠岄」鐩�
-export function addStandardProduct(data) {
-  return request({
-    url: "/standardTree/addStandardProduct",
-    method: "post",
-    data: data,
+    method: "delete",
+    params: query,
   });
 }
 
@@ -135,57 +99,12 @@
   });
 }
 
-// 淇敼鏍囧噯搴撲腑鐨勫尯闂磋缃�
-export function updateSection(data) {
-  return request({
-    url: "/standardTree/updateSection",
-    method: "post",
-    data: data,
-  });
-}
-
-// 鑾峰彇浜у搧鏋舵瀯
-export function upStandardProducts(data) {
-  return request({
-    url: "/standardTree/upStandardProducts",
-    method: "post",
-    data: data,
-  });
-}
-
 // 鏌ヨ鍘熷璁板綍妯℃澘鏋氫妇
 export function getStandardTemplate(query) {
   return request({
     url: "/StandardTemplate/getStandardTemplate",
     method: "get",
     params: query,
-  });
-}
-
-// 鑾峰彇鏍囧噯鏂规硶鏋氫妇
-export function selectStandardMethods(query) {
-  return request({
-    url: "/standardMethod/selectStandardMethods",
-    method: "get",
-    params: query,
-  });
-}
-
-// 鎵归噺缂栬緫鏌ヨ妫�楠岄」鐩�
-export function selectStandardProductByMethodId(data) {
-  return request({
-    url: "/standardTree/selectStandardProductByMethodId",
-    method: "post",
-    data: data,
-  });
-}
-
-// 鎵归噺缂栬緫鏌ヨ鎵�鏈夋楠岄」鐩拰妫�楠屽瓙椤规灇涓�
-export function selectStandardProductEnumByMethodId(data) {
-  return request({
-    url: "/standardTree/selectStandardProductEnumByMethodId",
-    method: "post",
-    data: data,
   });
 }
 
@@ -206,3 +125,12 @@
     data: data,
   });
 }
+
+// 鏍规嵁鏍囧噯鏍戣繘琛屾爣鍑嗘煡璇�
+export function selectsStandardMethodByFLSSM(query) {
+  return request({
+    url: "/standardTree/selectsStandardMethodByFLSSM",
+    method: "get",
+    params: query,
+  });
+}

--
Gitblit v1.9.3