测试bug修改

This commit is contained in:
cwchen 2025-01-22 17:04:30 +08:00
parent b60f07eac2
commit 6062eeb33b
4 changed files with 50 additions and 35 deletions

View File

@ -102,7 +102,7 @@ function initTable() {
},
cols: [
[
{ type: 'radio', title: '😊', width: '10%', },
{ type: 'radio', title: '', width: '10%', },
{
width: '9.9%',
title: "序号",
@ -189,7 +189,7 @@ function initTable2() {
},
cols: [
[
{ type: 'radio', title: '😊', width: '10%', },
{ type: 'radio', title: '', width: '10%', },
{
width: '9.9%',
title: "序号",

View File

@ -985,17 +985,22 @@ function getDriverPhotoInfo(obj) {
});
if (obj.type === 4) {
let cent = '';
$.each(operList, function (index, item) {
let filePath = fileUrl + item.fileUrl + '?token=' + sessionStorage.getItem("gz-token");
if (index === 0) {
$('#form' + obj.formName).find('.driverImg55').attr('src', filePath);
} else {
cent += '<div class="zjphoto layout">' +
'<img src="' + filePath + '" alt="操作证">' +
'<p>操作证' + (index + 1) + '</p>';
}
})
$('#form' + obj.formName).find('.driverImg55').parents('.zjphoto').after(cent);
if(operList.length === 0){
$('#form' + obj.formName).find('.driverImg55').attr('src', "../../../images/no_photo_icon.png");
}else{
$.each(operList, function (index, item) {
let filePath = fileUrl + item.fileUrl + '?token=' + sessionStorage.getItem("gz-token");
if (index === 0) {
$('#form' + obj.formName).find('.driverImg55').attr('src', filePath);
} else {
cent += '<div class="otherPhoto zjphoto layout">' +
'<img src="' + filePath + '" alt="操作证">' +
'<p>操作证' + (index + 1) + '</p></div>';
}
})
}
$('#form' + obj.formName).find('.otherPhoto').remove();
$('#form' + obj.formName).find('.driverImg55').parent('.zjphoto').after(cent);
}
}
// 设置文件类型

View File

@ -915,17 +915,22 @@ function getDriverPhotoInfo(obj) {
});
if (obj.type === 4) {
let cent = '';
$.each(operList, function (index, item) {
let filePath = fileUrl + item.fileUrl + '?token=' + sessionStorage.getItem("gz-token");
if (index === 0) {
$('#form' + obj.formName).find('.driverImg55').attr('src', filePath);
} else {
cent += '<div class="zjphoto layout">' +
'<img src="' + filePath + '" alt="操作证">' +
'<p>操作证' + (index + 1) + '</p>';
}
})
$('#form' + obj.formName).find('.driverImg55').parents('.zjphoto').after(cent);
if(operList.length === 0){
$('#form' + obj.formName).find('.driverImg55').attr('src', "../../../images/no_photo_icon.png");
}else{
$.each(operList, function (index, item) {
let filePath = fileUrl + item.fileUrl + '?token=' + sessionStorage.getItem("gz-token");
if (index === 0) {
$('#form' + obj.formName).find('.driverImg55').attr('src', filePath);
} else {
cent += '<div class="otherPhoto zjphoto layout">' +
'<img src="' + filePath + '" alt="操作证">' +
'<p>操作证' + (index + 1) + '</p></div>';
}
})
}
$('#form' + obj.formName).find('.otherPhoto').remove();
$('#form' + obj.formName).find('.driverImg55').parent('.zjphoto').after(cent);
}
}
// 设置文件类型

View File

@ -943,17 +943,22 @@ function getDriverPhotoInfo(obj) {
});
if (obj.type === 4) {
let cent = '';
$.each(operList, function (index, item) {
let filePath = fileUrl + item.fileUrl + '?token=' + sessionStorage.getItem("gz-token");
if (index === 0) {
$('#form' + obj.formName).find('.driverImg55').attr('src', filePath);
} else {
cent += '<div class="zjphoto layout">' +
'<img src="' + filePath + '" alt="操作证">' +
'<p>操作证' + (index + 1) + '</p>';
}
})
$('#form' + obj.formName).find('.driverImg55').parents('.zjphoto').after(cent);
if(operList.length === 0){
$('#form' + obj.formName).find('.driverImg55').attr('src', "../../../images/no_photo_icon.png");
}else{
$.each(operList, function (index, item) {
let filePath = fileUrl + item.fileUrl + '?token=' + sessionStorage.getItem("gz-token");
if (index === 0) {
$('#form' + obj.formName).find('.driverImg55').attr('src', filePath);
} else {
cent += '<div class="otherPhoto zjphoto layout">' +
'<img src="' + filePath + '" alt="操作证">' +
'<p>操作证' + (index + 1) + '</p></div>';
}
})
}
$('#form' + obj.formName).find('.otherPhoto').remove();
$('#form' + obj.formName).find('.driverImg55').parent('.zjphoto').after(cent);
}
}
// 设置文件类型