Browse Source

用户信息车辆信息

master
wangxyi 2 weeks ago
parent
commit
b4fd68a3c5

+ 26
- 8
src/utils/utils.ts View File

@@ -806,6 +806,9 @@ export const getDefaultTime = (timeFormat, timeRangeInterval, format?) => {
const url = import.meta.env.VITE_APP_UPLOAD_URL || ''
export const changeAddress = (downloadLink) => {
let newDownloadLink = ''
console.log('🖼️ changeAddress 原始URL:', downloadLink);
console.log('🌐 VITE_APP_UPLOAD_URL:', url);

if (downloadLink) {
if (downloadLink instanceof Array) {
return downloadLink.map(item => {
@@ -816,23 +819,38 @@ export const changeAddress = (downloadLink) => {
const settleIndex = downloadLink.indexOf('settle-minio')
const staIndex = downloadLink.indexOf('sta-minio')
const fullAddressIndex = downloadLink.indexOf('http')
const newDev = downloadLink.indexOf('newDev')
console.log('📍 URL索引检查:', {
defaultIndex,
settleIndex,
staIndex,
fullAddressIndex
});

if (defaultIndex !== -1) {
newDownloadLink=downloadLink
// newDownloadLink = url + downloadLink.substr(defaultIndex, downloadLink.length)
// console.log(downloadLink,'downloadLink')
// console.log(downloadLink.substr(defaultIndex, downloadLink.length), 'downloadLink.substr(defaultIndex, downloadLink.length)')
// console.log(newDownloadLink, 'newDownloadLink')
newDownloadLink = downloadLink
console.log('✅ 使用default-bucket路径:', newDownloadLink);
} else if (settleIndex !== -1) {
newDownloadLink = url + downloadLink.substr(settleIndex, downloadLink.length)
console.log('✅ 使用settle-minio路径:', newDownloadLink);
} else if (staIndex !== -1) {
newDownloadLink = url + downloadLink.substr(staIndex, downloadLink.length)
} else if (fullAddressIndex == -1) {
newDownloadLink = url + downloadLink
} else {
console.log('✅ 使用sta-minio路径:', newDownloadLink);
} else if (fullAddressIndex == -1&&newDev != -1) {
newDownloadLink = url + downloadLink
console.log('✅ 拼接完整URL:', newDownloadLink);
} else if (fullAddressIndex == -1&&newDev == -1) {
newDownloadLink = url + downloadLink.substr(newDev, downloadLink.length)
}else {
newDownloadLink = downloadLink
console.log('✅ 使用原始URL:', newDownloadLink);
}

console.log('🎯 最终图片URL:', newDownloadLink);
return newDownloadLink
}
} else {
console.log('❌ URL为空或未定义');
}
}


+ 15
- 3
src/views/onlineBusinessHall/informationManagement/carInfo/index.vue View File

@@ -189,11 +189,22 @@
// return
// }
crudRef.value.tableLoding = true;
BaseService.post('/managew/vehicle/info/query', params).then((res: any) => {
BaseService.post('/managew/api/baseInfo/queryVehicle', params).then((res: any) => {
if (res && res.statusCode === 0) {
//数据转换
let bizContent = res.data
let data = bizContent.data || [];
let data = bizContent.result || [];
// 打印图片URL调试信息
data.forEach((item, index) => {
console.log(`车辆${index + 1} - 客户证件照正面URL:`, item.ownerPosImgUrl);
console.log(`车辆${index + 1} - 客户证件照反面URL:`, item.ownerNegImgUrl);
console.log(`车辆${index + 1} - 行驶证正面URL:`, item.vehiclePosImgUrl);
console.log(`车辆${index + 1} - 行驶证反面URL:`, item.vehicleNegImgUrl);
console.log(`车辆${index + 1} - 道路运输证URL:`, item.roadTransportPermitPicUrl);
console.log(`车辆${index + 1} - 完整数据:`, item);
});
//数据渲染
tableData.value = data;
crudRef.value.tableLoding = false;
@@ -225,7 +236,8 @@
},
operate: {
info: IsPermission(route, 'INFO_LIST'),
edit: IsPermission(route, 'EDIT_LIST'), //是否编辑(默认true)
// edit: IsPermission(route, 'EDIT_LIST'), //是否编辑(默认true)
edit:false,
delete: false, //是否删除(默认true)
remark: false, // 查看
announcement: false, // 公告

+ 4
- 3
src/views/onlineBusinessHall/informationManagement/userInfo/index.vue View File

@@ -329,11 +329,11 @@
// ElMessage.error('请输入查询信息');
// }
crudRef.value.tableLoding = true;
BaseService.post('/managew/user/information/query', params).then((res: any) => {
BaseService.post('/managew/api/baseInfo/queryCustomer', params).then((res: any) => {
if (res && res.statusCode === 0) {
//数据转换
let bizContent = res
let data = bizContent.data || [];
let data = bizContent.data.result || [];
//数据渲染
data.forEach(item => {
item.customerIdNumDesensitization = dataDesensitization(item.customerIdNum)
@@ -642,7 +642,8 @@
},
operate: {
info: IsPermission(route, 'INFO_LIST'),
edit: IsPermission(route, 'EDIT_LIST'), //是否编辑(默认true)
// edit: IsPermission(route, 'EDIT_LIST'), //是否编辑(默认true)
edit: false, //是否编辑(默认true) - 已禁用编辑功能
delete: false, //是否删除(默认true)
remark: false, // 查看
announcement: false, // 公告

Loading…
Cancel
Save