From 27459621fab1e114cc9026eb4d5479b0d0ec2935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=A3=9E?= <1277061783@qq.com> Date: Wed, 10 May 2023 09:10:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E8=BD=A6=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E6=98=9F=E6=B2=B9=E8=BD=A6=E8=BE=86=E6=B7=BB=E5=8A=A0=E8=BD=A6?= =?UTF-8?q?=E7=89=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user/oilVehicleOwner.js | 7 +++++++ src/views/driver/vehicle/OilVehicleOwnerAdd.vue | 7 ++++++- src/views/driver/vehicle/OilVehicleOwnerList.vue | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/api/user/oilVehicleOwner.js b/src/api/user/oilVehicleOwner.js index e033215..94eea96 100644 --- a/src/api/user/oilVehicleOwner.js +++ b/src/api/user/oilVehicleOwner.js @@ -30,6 +30,13 @@ export default { data: oilVehicleOwner }) }, + saveDispat(oilVehicleOwner) { // 新保存(调度管理) + return request({ + url: `/xkhl-user/saasCustomerPlatenum/save `, + method: 'post', + data: oilVehicleOwner + }) + }, saveSite(oilVehicleOwner) { // 保存 return request({ url: `/${service_name}/${group_name}/saveSite`, diff --git a/src/views/driver/vehicle/OilVehicleOwnerAdd.vue b/src/views/driver/vehicle/OilVehicleOwnerAdd.vue index b647fa8..71c8c63 100644 --- a/src/views/driver/vehicle/OilVehicleOwnerAdd.vue +++ b/src/views/driver/vehicle/OilVehicleOwnerAdd.vue @@ -197,9 +197,14 @@ export default { } }, save() { - // 保存 + // 保存 oilVehicleOwnerApi.saveDispatch(this.oilVehicleOwner).then((res) => { this.$message.success(res.msg); + this.$emit("closeDialog"); + this.$emit("getByPage"); + }); + // 新保存 + oilVehicleOwnerApi.saveDispat(this.oilVehicleOwner).then((res) => { this.$emit("closeDialog"); this.$emit("getByPage"); this.oilVehicleOwner = {}; diff --git a/src/views/driver/vehicle/OilVehicleOwnerList.vue b/src/views/driver/vehicle/OilVehicleOwnerList.vue index 36e96c7..d205157 100644 --- a/src/views/driver/vehicle/OilVehicleOwnerList.vue +++ b/src/views/driver/vehicle/OilVehicleOwnerList.vue @@ -194,7 +194,7 @@ direction="ltr" destroy-on-close > - +