|
@@ -516,6 +516,14 @@ export default {
|
|
|
if(a != "docx" && a != "pptx" && a != "xlsx" && a != "txt" && a != "jpg" && a != "png"){
|
|
|
a = "docx"
|
|
|
}
|
|
|
+ // for(let i = 0; i < array.length; i++){
|
|
|
+ // let name = array[i].name
|
|
|
+ // let num= name.lastIndexOf(".")
|
|
|
+ // let type = name.slice(num,name.length)
|
|
|
+ // if(type !== ".pdf"){
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // }
|
|
|
const defaultPrice = await this.getFilePrice("pdf", a);
|
|
|
for (let i = 0; i < array.length; i++) {
|
|
|
const id = Date.now() + Math.random().toString(36).slice(-8)
|
|
@@ -796,14 +804,14 @@ export default {
|
|
|
this.fileList.forEach(item => {
|
|
|
//获取输出的目标文件名
|
|
|
let name = item.name
|
|
|
- let num= name.lastIndexOf("pdf")
|
|
|
+ let num= name.lastIndexOf(".")
|
|
|
let output = ""
|
|
|
if(item.output === "png" || item.output === "jpg"){
|
|
|
output = "zip"
|
|
|
}else {
|
|
|
output = item.output
|
|
|
}
|
|
|
- const outFilename = name.slice(0,num)+output
|
|
|
+ const outFilename = name.slice(0,num)+"."+output
|
|
|
if (outFilename === getFileList[i].outFilename) {
|
|
|
this.changeFileStatus(getFileList[i].fileName, 6, getFileList[i].targetType);
|
|
|
this.$set(item, "path", getFileList[i].path);
|