From 3a3fa4d07904aaaeb2ca79b6c57359fc1a2da843 Mon Sep 17 00:00:00 2001
From: dongyukun <1208714201@qq.com>
Date: 星期五, 13 十二月 2024 15:30:43 +0800
Subject: [PATCH] 请求路径修改

---
 src/api/prod/targetConsume.ts     |    2 +-
 src/api/prod/rawCoalToWash.ts     |    2 +-
 src/api/prod/dispatchLog.ts       |    2 +-
 src/api/prod/powerConsume.ts      |    2 +-
 src/api/prod/rawCoalStock.ts      |    2 +-
 .env.test                         |    2 +-
 src/api/prod/dailySales.ts        |    2 +-
 src/api/prod/rawCoalTransferIn.ts |    2 +-
 src/api/prod/prodAccident.ts      |    2 +-
 src/api/prod/runTime.ts           |    2 +-
 src/api/prod/productStock.ts      |    2 +-
 src/api/prod/hourVolume.ts        |    2 +-
 src/api/prod/onDutyInfo.ts        |    2 +-
 src/api/prod/prodVolume.ts        |    2 +-
 14 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/.env.test b/.env.test
index 8c2e725..e011105 100644
--- a/.env.test
+++ b/.env.test
@@ -10,7 +10,7 @@
 VITE_PLAT_URL='http://172.16.8.100'
 
 # 接口地址
-VITE_API_URL=/admin-api
+VITE_API_URL=/admin-api/xmcpms
 
 # 是否删除debugger
 VITE_DROP_DEBUGGER=false
diff --git a/src/api/prod/dailySales.ts b/src/api/prod/dailySales.ts
index 6b10f7f..038c070 100644
--- a/src/api/prod/dailySales.ts
+++ b/src/api/prod/dailySales.ts
@@ -29,7 +29,7 @@
 
 // 查询DailySales详情
 export const getDailySales = (id: number) => {
-  return request.get({ url: `/xmcpms/prod/prod/sale/volume/info/${id}`})
+  return request.get({ url: `/xmcpms/prod/sale/volume/info/${id}`})
 }
 
 // 新增DailySales
diff --git a/src/api/prod/dispatchLog.ts b/src/api/prod/dispatchLog.ts
index 0347a2b..dbb3b83 100644
--- a/src/api/prod/dispatchLog.ts
+++ b/src/api/prod/dispatchLog.ts
@@ -20,7 +20,7 @@
 
 // 查询DispatchLog详情
 export const getDispatchLog = (id: number) => {
-  return request.get({ url: `/xmcpms/prod/prod/work/dispatchLog/info/${id}`})
+  return request.get({ url: `/xmcpms/prod/work/dispatchLog/info/${id}`})
 }
 
 // 新增DispatchLog
diff --git a/src/api/prod/hourVolume.ts b/src/api/prod/hourVolume.ts
index 15c03dc..91be4a8 100644
--- a/src/api/prod/hourVolume.ts
+++ b/src/api/prod/hourVolume.ts
@@ -35,7 +35,7 @@
 
 // 查询HourVolume详情
 export const getHourVolume = (id: number) => {
-  return request.get({ url: `/xmcpms/prod/prod/wash/hourVolume/info/${id}`})
+  return request.get({ url: `/xmcpms/prod/wash/hourVolume/info/${id}`})
 }
 
 // 新增HourVolume
diff --git a/src/api/prod/onDutyInfo.ts b/src/api/prod/onDutyInfo.ts
index 04ff342..16f0b83 100644
--- a/src/api/prod/onDutyInfo.ts
+++ b/src/api/prod/onDutyInfo.ts
@@ -20,7 +20,7 @@
 
 // 查询OnDutyInfo详情
 export const getOnDutyInfo = (id: number) => {
-  return request.get({ url: `/xmcpms/prod/prod/work/onDutyInfo/info/${id}`})
+  return request.get({ url: `/xmcpms/prod/work/onDutyInfo/info/${id}`})
 }
 
 // 新增OnDutyInfo
diff --git a/src/api/prod/powerConsume.ts b/src/api/prod/powerConsume.ts
index b8b59c3..d0a2577 100644
--- a/src/api/prod/powerConsume.ts
+++ b/src/api/prod/powerConsume.ts
@@ -20,7 +20,7 @@
 
 // 查询PowerConsume详情
 export const getPowerConsume = (id: number) => {
-  return request.get({ url: `/xmcpms/prod/prod/powerConsume/info/${id}`})
+  return request.get({ url: `/xmcpms/prod/powerConsume/info/${id}`})
 }
 
 // 新增PowerConsume
diff --git a/src/api/prod/prodAccident.ts b/src/api/prod/prodAccident.ts
index e8a54fa..92ff12f 100644
--- a/src/api/prod/prodAccident.ts
+++ b/src/api/prod/prodAccident.ts
@@ -20,7 +20,7 @@
 
 // 查询ProdAccident详情
 export const getProdAccident = (id: number) => {
-  return request.get({ url: `/xmcpms/prod/prod/work/prodAccident/info/${id}`})
+  return request.get({ url: `/xmcpms/prod/work/prodAccident/info/${id}`})
 }
 
 // 新增ProdAccident
diff --git a/src/api/prod/prodVolume.ts b/src/api/prod/prodVolume.ts
index 07b37ac..fcbc95c 100644
--- a/src/api/prod/prodVolume.ts
+++ b/src/api/prod/prodVolume.ts
@@ -20,7 +20,7 @@
 
 // 查询ProdVolume详情
 export const getProdVolume = (id: number) => {
-  return request.get({ url: `/xmcpms/prod/prod/wash/prodVolume/info/${id}`})
+  return request.get({ url: `/xmcpms/prod/wash/prodVolume/info/${id}`})
 }
 
 // 新增ProdVolume
diff --git a/src/api/prod/productStock.ts b/src/api/prod/productStock.ts
index 2eca018..8247305 100644
--- a/src/api/prod/productStock.ts
+++ b/src/api/prod/productStock.ts
@@ -20,7 +20,7 @@
 
 // 查询ProductStock详情
 export const getProductStock = (id: number) => {
-  return request.get({ url: `/xmcpms/prod/prod/productStock/info/${id}`})
+  return request.get({ url: `/xmcpms/prod/productStock/info/${id}`})
 }
 
 // 新增ProductStock
diff --git a/src/api/prod/rawCoalStock.ts b/src/api/prod/rawCoalStock.ts
index 0b5a99d..02d558f 100644
--- a/src/api/prod/rawCoalStock.ts
+++ b/src/api/prod/rawCoalStock.ts
@@ -20,7 +20,7 @@
 
 // 查询RawCoalStock详情
 export const getRawCoalStock = (id: number) => {
-  return request.get({ url: `/xmcpms/prod/prod/warehouse/item/info/${id}`})
+  return request.get({ url: `/xmcpms/prod/warehouse/item/info/${id}`})
 }
 
 // 新增RawCoalStock
diff --git a/src/api/prod/rawCoalToWash.ts b/src/api/prod/rawCoalToWash.ts
index a207c8f..05e6a56 100644
--- a/src/api/prod/rawCoalToWash.ts
+++ b/src/api/prod/rawCoalToWash.ts
@@ -20,7 +20,7 @@
 
 // 查询RawCoalToWash详情
 export const getRawCoalToWash = (id: number) => {
-  return request.get({ url: `/xmcpms/prod/prod/wash/toWash/info/${id}`})
+  return request.get({ url: `/xmcpms/prod/wash/toWash/info/${id}`})
 }
 
 // 新增RawCoalToWash
diff --git a/src/api/prod/rawCoalTransferIn.ts b/src/api/prod/rawCoalTransferIn.ts
index 4728822..ca5f957 100644
--- a/src/api/prod/rawCoalTransferIn.ts
+++ b/src/api/prod/rawCoalTransferIn.ts
@@ -20,7 +20,7 @@
 
 // 查询RawCoalTransferIn详情
 export const getRawCoalTransferIn = (id: number) => {
-  return request.get({ url: `/xmcpms/prod/prod/wash/transferIn/info/${id}`})
+  return request.get({ url: `/xmcpms/prod/wash/transferIn/info/${id}`})
 }
 
 // 新增RawCoalTransferIn
diff --git a/src/api/prod/runTime.ts b/src/api/prod/runTime.ts
index f5a322a..c149f03 100644
--- a/src/api/prod/runTime.ts
+++ b/src/api/prod/runTime.ts
@@ -28,7 +28,7 @@
 
 // 查询RunTime详情
 export const getRunTime = (id: number) => {
-  return request.get({ url: `/xmcpms/prod/prod/device/runTime/info/${id}`})
+  return request.get({ url: `/xmcpms/prod/device/runTime/info/${id}`})
 }
 
 // 新增RunTime
diff --git a/src/api/prod/targetConsume.ts b/src/api/prod/targetConsume.ts
index 68f5720..96e1b09 100644
--- a/src/api/prod/targetConsume.ts
+++ b/src/api/prod/targetConsume.ts
@@ -20,7 +20,7 @@
 
 // 查询TargetConsume详情
 export const getTargetConsume = (id: number) => {
-  return request.get({ url: `/xmcpms/prod/prod/targetConsume/info/${id}`})
+  return request.get({ url: `/xmcpms/prod/targetConsume/info/${id}`})
 }
 
 // 新增TargetConsume

--
Gitblit v1.9.3