fix(测试跟踪): 版本比对的内容显示有误

--bug=1024066 --user=宋昌昌 版本对比显示的对比内容不对 https://www.tapd.cn/55049933/s/1347588
This commit is contained in:
song-cc-rock 2023-03-09 19:06:49 +08:00
parent f02ab27e56
commit ea0642eeca
3 changed files with 21 additions and 5 deletions

View File

@ -268,8 +268,7 @@ i.el-dialog__close.el-icon.el-icon-close:before {
/**
el-tag
*/
span.el-tag.el-tag--info.el-tag--mini.el-tag--light {
span.el-tag.el-tag--info.el-tag--mini.el-tag--light, span.el-tag.el-tag--info.el-tag--small.el-tag--light {
flex-direction: row;
align-items: center;
padding: 1px 6px;
@ -296,6 +295,14 @@ span.el-tag.el-tag--info.el-tag--mini.el-tag--light span{
color: rgb(31, 35, 41);
}
span.el-tag.el-tag--info.el-tag--small.el-tag--light span{
display: inline-block;
max-width: 500px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: rgb(31, 35, 41);
}
/**
* el-tag-icon-close

View File

@ -25,7 +25,7 @@
</div>
<div class="version-creator">
<div class="username">{{ item.createUserName }}</div>
<div class="static-label">创建</div>
<div class="static-label">{{$t('permission.project_custom_code.create')}}</div>
</div>
</div>
</div>
@ -426,7 +426,9 @@ export default {
await this.fetchCaseVersions();
await this.fetchAllCaseVersion();
//
this.formatVersionList();
// , ,
// this.formatVersionList();
this.formatCompareVersion();
this.checkoutVersionCase();
this.calculate();
this.defaultExecutor = new DefaultDiffExecutor(
@ -503,6 +505,13 @@ export default {
});
return tableData;
},
formatCompareVersion() {
//
let leftVersion = this.versionOptions.filter(version => version.id === this.versionLeftId);
let rightVersion = this.versionOptions.filter(version => version.id === this.versionRightId);
this.versionList.push(leftVersion[0]);
this.versionList.push(rightVersion[0]);
},
checkoutVersionCase() {
if (this.versionLeftId) {
this.originCase = this.cacheVersionsMap.get(this.versionLeftId);

View File

@ -214,7 +214,7 @@ export default {
return;
}
this.setDefaultCompareOptions();
this.versionLeftId = this.currentVersionId;
this.versionRightId = this.currentVersionId;
this.compareDialogVisible = true;
},
clearSelectData() {