fix(测试跟踪): 版本比对的内容显示有误
--bug=1024066 --user=宋昌昌 版本对比显示的对比内容不对 https://www.tapd.cn/55049933/s/1347588
This commit is contained in:
parent
f02ab27e56
commit
ea0642eeca
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -214,7 +214,7 @@ export default {
|
|||
return;
|
||||
}
|
||||
this.setDefaultCompareOptions();
|
||||
this.versionLeftId = this.currentVersionId;
|
||||
this.versionRightId = this.currentVersionId;
|
||||
this.compareDialogVisible = true;
|
||||
},
|
||||
clearSelectData() {
|
||||
|
|
Loading…
Reference in New Issue