diff --git a/fuintAdmin/src/api/oilPrice.js b/fuintAdmin/src/api/oilPrice.js
index 8622b841a..c29bd10a2 100644
--- a/fuintAdmin/src/api/oilPrice.js
+++ b/fuintAdmin/src/api/oilPrice.js
@@ -41,7 +41,7 @@ export function getOilPresetList(data) {
return request({
url: 'business/petrolStationManagement/oilPresetPrices/getList',
method: 'get',
- data: data
+ params: data
})
}
@@ -79,6 +79,28 @@ export function insertOilPresePricesApi(data) {
data: data
})
}
+// 修改预设
+export function updateOilPresePricesApi(data) {
+ return request({
+ url: 'business/petrolStationManagement/oilPresetPrices',
+ method: 'put',
+ data: data
+ })
+}
+// 删除预设
+export function deleteOilPresePricesApi(id) {
+ return request({
+ url: 'business/petrolStationManagement/oilPresetPrices/'+id,
+ method: 'delete',
+ })
+}
+// 删除预设
+export function getOilPresePricesApi(id) {
+ return request({
+ url: 'business/petrolStationManagement/oilPresetPrices/'+id,
+ method: 'get',
+ })
+}
export function stopJobApi(data) {
return request({
diff --git a/fuintAdmin/src/views/oilConfig/oilPrice/comp/addprice.vue b/fuintAdmin/src/views/oilConfig/oilPrice/comp/addprice.vue
index 6bed136a4..41b23d1b1 100644
--- a/fuintAdmin/src/views/oilConfig/oilPrice/comp/addprice.vue
+++ b/fuintAdmin/src/views/oilConfig/oilPrice/comp/addprice.vue
@@ -1,10 +1,11 @@
-
-
-
-
-
-
预设油价记录
+
+
+
-
-
新增预设油价
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 已生效
+ 等待中
+ 已失效
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+ 停止
+
+
+ 删除
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 已生效
- 等待中
- 已失效
-
-
-
-
-
-
-
- 停止
-
- --
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 元{{ oilPresetPrices.unit ? "/" + oilPresetPrices.unit : oilPresetPrices.unit }}
+
+
+
+
+
+ 元{{ oilPresetPrices.unit ? "/" + oilPresetPrices.unit : oilPresetPrices.unit }}
+
+
+
+
+
+ 元{{ oilPresetPrices.unit ? "/" + oilPresetPrices.unit : oilPresetPrices.unit }}
+
+
+
+
+
+ 元{{ oilPresetPrices.unit ? "/" + oilPresetPrices.unit : oilPresetPrices.unit }}
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- 元{{oilPresetPrices.unit?"/"+oilPresetPrices.unit:oilPresetPrices.unit}}
-
-
-
-
- 元{{oilPresetPrices.unit?"/"+oilPresetPrices.unit:oilPresetPrices.unit}}
-
-
-
-
- 元{{oilPresetPrices.unit?"/"+oilPresetPrices.unit:oilPresetPrices.unit}}
-
-
-
-
- 元{{oilPresetPrices.unit?"/"+oilPresetPrices.unit:oilPresetPrices.unit}}
-
-
-
-
-
-
-
-
-
-
-
-