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 + }); }