|
@@ -33,9 +33,9 @@
|
|
|
<el-table :data="tableData" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="50"></el-table-column>
|
|
|
<el-table-column prop="format" label="格式转换" ></el-table-column>
|
|
|
- <el-table-column prop="fileName" label="目标文件">
|
|
|
+ <el-table-column prop="outFilename" label="目标文件">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-html="scope.row.fileName"></span>
|
|
|
+ <span v-html="scope.row.outFilename"></span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="size" label="文件大小" ></el-table-column>
|
|
@@ -142,7 +142,7 @@ export default {
|
|
|
for (let i = 0; i < this.tableData.length; i++) {
|
|
|
this.tableData[i].size = this.getfilesize(this.tableData[i].size)
|
|
|
this.tableData[i].status = this.getFileStatus(this.tableData[i].status)
|
|
|
- this.tableData[i].fileName = this.getFileFileName(this.tableData[i].fileName,this.tableData[i].statusName)
|
|
|
+ this.tableData[i].outFilename = this.getFileFileName(this.tableData[i].outFilename,this.tableData[i].statusName)
|
|
|
this.$set(this.tableData[i], 'format', this.getFormat(this.tableData[i].inputType, this.tableData[i].outputType))
|
|
|
}
|
|
|
}
|
|
@@ -184,11 +184,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//文件转换失败,文件置灰
|
|
|
- getFileFileName(fileName,statusName){
|
|
|
+ getFileFileName(outFilename,statusName){
|
|
|
if(statusName === "failed"){
|
|
|
- return `<span style="color: #9599b1">${fileName}</span>`
|
|
|
+ return `<span style="color: #9599b1">${outFilename}</span>`
|
|
|
} else {
|
|
|
- return fileName
|
|
|
+ return outFilename
|
|
|
}
|
|
|
},
|
|
|
// 格式转换
|