From 31441f81cfd70d46bc12285d8c5221b8f659488d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Thu, 29 Dec 2022 15:42:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=8A=9F=E8=83=BDjs=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/thrsys/thrProducts.js | 2 +- src/api/thrsys/thrProductsAdd.js | 42 +++++++++++++-------------- src/api/thrsys/thrProductsExport.js | 44 ++++++++++++++--------------- src/api/thrsys/thrProductsImport.js | 33 +++++++++++----------- 4 files changed, 59 insertions(+), 62 deletions(-) diff --git a/src/api/thrsys/thrProducts.js b/src/api/thrsys/thrProducts.js index 8f781a33..821480e8 100644 --- a/src/api/thrsys/thrProducts.js +++ b/src/api/thrsys/thrProducts.js @@ -1,4 +1,4 @@ -import axios from "../../utils/request"; +import axios from "@/utils/request"; export function getThrProducts(query) { return axios({ diff --git a/src/api/thrsys/thrProductsAdd.js b/src/api/thrsys/thrProductsAdd.js index b69eb0f8..03ddab4b 100644 --- a/src/api/thrsys/thrProductsAdd.js +++ b/src/api/thrsys/thrProductsAdd.js @@ -1,34 +1,34 @@ -import axios from "../../utils/request"; +import axios from "@/utils/request"; export function getThrProducts(query) { - return axios({ - url: "/udiwms/thrsys/getThrAddProducts", - method: "get", - params: query - }); + return axios({ + url: "/udiwms/thrsys/getThrAddProducts", + method: "get", + params: query + }); } export function delThrProducts(query) { - return axios({ - url: "/udiwms/thrsys/delThrAddProducts", - method: "post", - data: query - }); + return axios({ + url: "/udiwms/thrsys/delThrAddProducts", + method: "post", + data: query + }); } export function updateProduct(data) { - return axios({ - url: '/udiwms/thrsys/updateThrAddProducts', - method: 'post', - data: data - }) + return axios({ + url: '/udiwms/thrsys/updateThrAddProducts', + method: 'post', + data: data + }) } export function addProduct(data) { - return axios({ - url: '/udiwms/thrsys/addThrAddProducts', - method: 'post', - data: data - }) + return axios({ + url: '/udiwms/thrsys/addThrAddProducts', + method: 'post', + data: data + }) } diff --git a/src/api/thrsys/thrProductsExport.js b/src/api/thrsys/thrProductsExport.js index 08222b65..dac0a27e 100644 --- a/src/api/thrsys/thrProductsExport.js +++ b/src/api/thrsys/thrProductsExport.js @@ -1,35 +1,33 @@ -import axios from "../../utils/request"; +import axios from "@/utils/request"; export function filterLog(query) { - return axios({ - url: "/udiwms/thrProducts/exportLog/filter", - method: "get", - params: query - }); + return axios({ + url: "/udiwms/thrProducts/exportLog/filter", + method: "get", + params: query + }); } - export function deleteLog(query) { - return axios({ - url: "/udiwms/thrProducts/exportLog/deleteLog", - method: "post", - data: query - }); + return axios({ + url: "/udiwms/thrProducts/exportLog/deleteLog", + method: "post", + data: query + }); } export function downloadLog(query) { - return axios({ - url: "/udiwms/thrProducts/exportLog/download", - method: "get", - params: query - }); + return axios({ + url: "/udiwms/thrProducts/exportLog/download", + method: "get", + params: query + }); } - export function exportExcel(query) { - return axios({ - url: "/udiwms/thrProducts/importLog/export", - method: "post", - data: query - }); + return axios({ + url: "/udiwms/thrProducts/importLog/export", + method: "post", + data: query + }); } diff --git a/src/api/thrsys/thrProductsImport.js b/src/api/thrsys/thrProductsImport.js index 17c778da..a34aa04e 100644 --- a/src/api/thrsys/thrProductsImport.js +++ b/src/api/thrsys/thrProductsImport.js @@ -1,26 +1,25 @@ -import axios from "../../utils/request"; +import axios from "@/utils/request"; export function filterLog(query) { - return axios({ - url: "/udiwms/thrProducts/importLog/filter", - method: "get", - params: query - }); + return axios({ + url: "/udiwms/thrProducts/importLog/filter", + method: "get", + params: query + }); } - export function filterDetail(query) { - return axios({ - url: "/udiwms/thrProducts/importLog/filterDetail", - method: "get", - params: query - }); + return axios({ + url: "/udiwms/thrProducts/importLog/filterDetail", + method: "get", + params: query + }); } export function deleteLog(query) { - return axios({ - url: "/udiwms/thrProducts/importLog/deleteLog", - method: "post", - data: query - }); + return axios({ + url: "/udiwms/thrProducts/importLog/deleteLog", + method: "post", + data: query + }); }