|
@@ -568,6 +568,7 @@ const tabTypeTab = ref([
|
|
const tabTypeChange = (item) => {
|
|
const tabTypeChange = (item) => {
|
|
tabTypeKey.value = item?.key
|
|
tabTypeKey.value = item?.key
|
|
viewCurFile(curFileData.value)
|
|
viewCurFile(curFileData.value)
|
|
|
|
+ fileListData.value=[]
|
|
refeshAttachmentModalClick(viewAttachmentId.value)
|
|
refeshAttachmentModalClick(viewAttachmentId.value)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -582,8 +583,13 @@ const fileListData=ref([])
|
|
const listuploadref=ref('1')
|
|
const listuploadref=ref('1')
|
|
//截取文件名称
|
|
//截取文件名称
|
|
const splitFileName=(str)=>{
|
|
const splitFileName=(str)=>{
|
|
- let a=str.split('//')[2].split('/')[2]
|
|
|
|
- return a
|
|
|
|
|
|
+ if(str.indexOf("https://bladex-test-info.oss-cn-chengdu.aliyuncs.com//upload") != -1){
|
|
|
|
+ let a=str.split('//')[2].split('/')[2]
|
|
|
|
+ return a
|
|
|
|
+ }else{
|
|
|
|
+ return str
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
//查看当前文件pdf
|
|
//查看当前文件pdf
|
|
const viewCurFile = (item) => {
|
|
const viewCurFile = (item) => {
|
|
@@ -595,6 +601,7 @@ const viewCurFile = (item) => {
|
|
ele.isCheck=false
|
|
ele.isCheck=false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+
|
|
if(tabTypeKey.value=='productionCertificate'&&item.productionCertificate.length>0){
|
|
if(tabTypeKey.value=='productionCertificate'&&item.productionCertificate.length>0){
|
|
let arr=[]
|
|
let arr=[]
|
|
arr.push({name:splitFileName(item.productionCertificateName),url:item.productionCertificate})
|
|
arr.push({name:splitFileName(item.productionCertificateName),url:item.productionCertificate})
|
|
@@ -608,6 +615,7 @@ const viewCurFile = (item) => {
|
|
}else if(tabTypeKey.value=='otherAccessories'&&item.otherAccessories.length>0){
|
|
}else if(tabTypeKey.value=='otherAccessories'&&item.otherAccessories.length>0){
|
|
let arr=[]
|
|
let arr=[]
|
|
arr.push({name:splitFileName(item.otherAccessoriesName),url:item.otherAccessories})
|
|
arr.push({name:splitFileName(item.otherAccessoriesName),url:item.otherAccessories})
|
|
|
|
+ console.log(arr,'arr');
|
|
fileListData.value =getArrValue(arr)
|
|
fileListData.value =getArrValue(arr)
|
|
listuploadref.value='3'
|
|
listuploadref.value='3'
|
|
}else{
|
|
}else{
|