diff --git a/plugin/admin/app/controller/VehicleController.php b/plugin/admin/app/controller/VehicleController.php index 1203514..a627bca 100644 --- a/plugin/admin/app/controller/VehicleController.php +++ b/plugin/admin/app/controller/VehicleController.php @@ -422,16 +422,17 @@ class VehicleController extends Crud $translations = array_merge($required_translations, $translations); } - // 如果是 POST 请求,处理数据保存和翻译 - if ($request->method() === 'POST') { - $this->save($request); - } - $data = Vehicle::where('id', $id)->first(); if (!$data) { return json(['code' => 1, 'msg' => $translations['data_not_found'] ?? '数据不存在']); } + // 如果是 POST 请求,处理数据保存和翻译 + if ($request->method() == 'POST') { + $this->save($request); + return json(['code' => 0, 'msg' => '保存成功']); + } + return view('vehicle/updateLogistics', [ 'id' => $id, 'data' => $data, diff --git a/plugin/admin/app/view/account/login.html b/plugin/admin/app/view/account/login.html index 68113c9..4b160be 100644 --- a/plugin/admin/app/view/account/login.html +++ b/plugin/admin/app/view/account/login.html @@ -11,7 +11,7 @@
-
+
@@ -32,7 +32,7 @@
- 还没有账号?立即注册 +
@@ -98,7 +98,7 @@ // 表头参数 let cols = [[ {type: "checkbox", align: "center"}, - {title: translations.vin, align: "center", field: "vin"}, + {title: translations.vin, align: "center", field: "vin", width: 180}, {title: translations.brand, align: "center", field: "brand"}, {title: translations.model, align: "center", field: "model"}, // {title: translations.img_url, align: "center", field: "img_url"},