样式
This commit is contained in:
@@ -117,7 +117,7 @@
|
|||||||
// {title: translations.fbo_location, align: "center", field: "fbo_location_name"},
|
// {title: translations.fbo_location, align: "center", field: "fbo_location_name"},
|
||||||
// {title: translations.created_at, align: "center", field: "created_at"},
|
// {title: translations.created_at, align: "center", field: "created_at"},
|
||||||
// {title: translations.updated_at, align: "center", field: "updated_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}
|
||||||
]];
|
]];
|
||||||
|
|
||||||
// 渲染表格
|
// 渲染表格
|
||||||
|
|||||||
@@ -249,6 +249,7 @@
|
|||||||
// 给表单初始化数据
|
// 给表单初始化数据
|
||||||
let data = res.data[0];
|
let data = res.data[0];
|
||||||
console.log('加载的数据:', data); // 调试用
|
console.log('加载的数据:', data); // 调试用
|
||||||
|
$('.img-3').attr('src', data['img_url_full']);
|
||||||
|
|
||||||
// 遍历所有表单字段
|
// 遍历所有表单字段
|
||||||
$('form .layui-form-item').each(function() {
|
$('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]) {
|
if (name === 'img_url' && data[name]) {
|
||||||
$('.img_url-3').val(data[name]);
|
$('.img_url-3').val(data[name]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -256,6 +256,7 @@
|
|||||||
// 给表单初始化数据
|
// 给表单初始化数据
|
||||||
let data = res.data[0];
|
let data = res.data[0];
|
||||||
console.log('加载的数据:', data); // 调试用
|
console.log('加载的数据:', data); // 调试用
|
||||||
|
$('.img-3').attr('src', data['img_url_full']);
|
||||||
|
|
||||||
// 遍历所有表单字段
|
// 遍历所有表单字段
|
||||||
$('form .layui-form-item').each(function() {
|
$('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]) {
|
if (name === 'img_url' && data[name]) {
|
||||||
$('.img_url-3').val(data[name]);
|
$('.img_url-3').val(data[name]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user