@@ -9,8 +9,6 @@ import ElementPlus, { valueEquals } from 'element-plus' | |||
import 'element-plus/dist/index.css' | |||
import zhCn from 'element-plus/es/locale/lang/zh-cn' | |||
import * as EleIcons from '@element-plus/icons-vue' | |||
//fragment | |||
import Fragment from 'vue-fragment' | |||
//全局样式 | |||
import './style/main.css' | |||
import { isValidKey } from '@/utils/utils' | |||
@@ -49,7 +47,7 @@ app.config.globalProperties.$ELEMENT = { | |||
}, | |||
}; | |||
app.use(router).use(pinia).use(Fragment.Plugin).use(ElementPlus, { | |||
app.use(router).use(pinia).use(ElementPlus, { | |||
// 使用element-plus | |||
locale: zhCn, | |||
}) |
@@ -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为空或未定义'); | |||
} | |||
} | |||
@@ -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, // 公告 |
@@ -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, // 公告 |