fix(性能测试): --bug=1006063 --user=刘瑞斌 【性能测试-创建】引用接口场景中包含csv文件文件大小不现实单位,若文件未修改则指显示时钟标志不现实时间,建议若没有修改则删掉时钟标识 https://www.tapd.cn/55049933/s/1048599

This commit is contained in:
Captain.B 2021-09-18 17:59:19 +08:00 committed by 刘瑞斌
parent 38766d271c
commit eba9393a6d
3 changed files with 13 additions and 8 deletions

View File

@ -204,9 +204,9 @@ export default {
for (let fileID in apiTest.jmx.attachFiles) { for (let fileID in apiTest.jmx.attachFiles) {
attachFiles.push(fileID); attachFiles.push(fileID);
} }
if (attachFiles.length > 0) { // if (attachFiles.length > 0) {
this.$refs.basicConfig.selectAttachFileById(attachFiles); // this.$refs.basicConfig.selectAttachFileById(attachFiles);
} // }
} }
this.active = '1'; this.active = '1';
this.$store.commit("clearTest"); this.$store.commit("clearTest");
@ -234,9 +234,9 @@ export default {
for (let fileID in item.attachFiles) { for (let fileID in item.attachFiles) {
attachFiles.push(fileID); attachFiles.push(fileID);
} }
if (attachFiles.length > 0) { // if (attachFiles.length > 0) {
this.$refs.basicConfig.selectAttachFileById(attachFiles); // this.$refs.basicConfig.selectAttachFileById(attachFiles);
} // }
} }
this.$set(this.test, "apiList", relateApiList); this.$set(this.test, "apiList", relateApiList);
}); });

View File

@ -150,7 +150,12 @@ export default {
// csv // csv
d.fileMetadataList?.forEach(f => { d.fileMetadataList?.forEach(f => {
this.fileList.push(f); this.fileList.push(f);
this.tableData.push(f); this.tableData.push({
name: f.name,
size: (f.size / 1024).toFixed(2) + ' KB',
type: f.type,
updateTime: f.updateTime,
});
}); });
}); });

View File

@ -91,7 +91,7 @@
<el-table-column <el-table-column
:label="$t('load_test.last_modify_time')"> :label="$t('load_test.last_modify_time')">
<template v-slot:default="scope"> <template v-slot:default="scope">
<i class="el-icon-time"/> <i v-if="scope.row.updateTime > 0" class="el-icon-time"/>
<span class="last-modified">{{ scope.row.updateTime | timestampFormatDate }}</span> <span class="last-modified">{{ scope.row.updateTime | timestampFormatDate }}</span>
</template> </template>
</el-table-column> </el-table-column>