From a904df1af193a24f756aa99e0c196a5524f0cf2a Mon Sep 17 00:00:00 2001 From: "HESU\\HESU" <1696136552@qq.com> Date: Wed, 28 May 2025 11:33:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/admin/app/view/vehicle/index.html | 2 +- plugin/admin/app/view/vehicle/update.html | 4 +--- plugin/admin/app/view/vehicle/updateLogistics.html | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/plugin/admin/app/view/vehicle/index.html b/plugin/admin/app/view/vehicle/index.html index beb125c..f423bcb 100644 --- a/plugin/admin/app/view/vehicle/index.html +++ b/plugin/admin/app/view/vehicle/index.html @@ -117,7 +117,7 @@ // {title: translations.fbo_location, align: "center", field: "fbo_location_name"}, // {title: translations.created_at, align: "center", field: "created_at"}, // {title: translations.updated_at, align: "center", field: "updated_at"}, - {title: translations.operation, toolbar: "#table-bar", align: "center", fixed: "right", width: 200} + {title: translations.operation, toolbar: "#table-bar", align: "center", fixed: "right", width: 230} ]]; // 渲染表格 diff --git a/plugin/admin/app/view/vehicle/update.html b/plugin/admin/app/view/vehicle/update.html index b1b66a2..7ff8446 100644 --- a/plugin/admin/app/view/vehicle/update.html +++ b/plugin/admin/app/view/vehicle/update.html @@ -249,6 +249,7 @@ // 给表单初始化数据 let data = res.data[0]; console.log('加载的数据:', data); // 调试用 + $('.img-3').attr('src', data['img_url_full']); // 遍历所有表单字段 $('form .layui-form-item').each(function() { @@ -271,9 +272,6 @@ } // 处理图片显示 - if (name === 'img_url_full' && data[name]) { - $('.img-3').attr('src', data[name]); - } if (name === 'img_url' && data[name]) { $('.img_url-3').val(data[name]); } diff --git a/plugin/admin/app/view/vehicle/updateLogistics.html b/plugin/admin/app/view/vehicle/updateLogistics.html index a8afa34..0dd327b 100644 --- a/plugin/admin/app/view/vehicle/updateLogistics.html +++ b/plugin/admin/app/view/vehicle/updateLogistics.html @@ -256,6 +256,7 @@ // 给表单初始化数据 let data = res.data[0]; console.log('加载的数据:', data); // 调试用 + $('.img-3').attr('src', data['img_url_full']); // 遍历所有表单字段 $('form .layui-form-item').each(function() { @@ -278,9 +279,6 @@ } // 处理图片显示 - if (name === 'img_url_full' && data[name]) { - $('.img-3').attr('src', data[name]); - } if (name === 'img_url' && data[name]) { $('.img_url-3').val(data[name]); }