案例管理优化

This commit is contained in:
xiezhijun
2021-03-09 18:25:13 +08:00
parent 4b58e1b6bc
commit addf0fc000
6 changed files with 58 additions and 9 deletions

View File

@ -132,7 +132,7 @@ export default {
downSigleFile(file.downUrl, file.fileName);
},
isImage(name){
var idx = name.indexOf('.');
var idx = name.lastIndexOf(".");
if (idx === -1) {
return false;
}

View File

@ -2,7 +2,7 @@
<div>
<div v-for="(item, index) in oldCaseFileList">
<span style="margin-right: 10px;">
{{item.fileName ? (item.fileName.substring(0,15)+"..."): ""}}
{{item.fileName.length > 15 ? (item.fileName.substring(0,15)+"...") : item.fileName}}
</span>
<el-button style="margin-left: 10px;" type="danger" size="small" @click="removeOldFile(index)">移除该文件</el-button>
</div>