fix(版本对比): 解决功能用例创建新版本后立即对比报错的问题
--user=郭雨琦 --bug=1013781 功能、场景新建后,版本对比报错 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001013781
This commit is contained in:
parent
e0f4a8ee39
commit
3985bd346b
|
@ -980,11 +980,10 @@ export default {
|
|||
that.oldData = data[1].data.data;
|
||||
that.newData.createTime = row.createTime;
|
||||
that.oldData.createTime = this.$refs.versionHistory.versionOptions.filter(v => v.id === that.oldData.versionId)[0].createTime;
|
||||
let testCase = that.versionData.filter(v => v.versionId === this.currentTestCaseInfo.versionId)[0];
|
||||
that.newData.versionName = that.versionData.filter(v => v.id === that.newData.id)[0].versionName;
|
||||
that.oldData.versionName = that.versionData.filter(v => v.id === that.oldData.id)[0].versionName;
|
||||
that.newData.userName = response.data.createName
|
||||
that.oldData.userName = testCase.createName
|
||||
that.oldData.userName = that.versionData.filter(v => v.id === that.oldData.id)[0].createName
|
||||
this.setSpecialPropForCompare(that);
|
||||
that.dialogVisible = true;
|
||||
}
|
||||
|
|
|
@ -322,7 +322,7 @@ export default {
|
|||
this.open("oldData");
|
||||
this.open("newData");
|
||||
this.$nextTick(function () {
|
||||
setTimeout(this.getDiff,(this.$refs.old.$children.length+1)*1000)
|
||||
setTimeout(this.getDiff,(this.$refs.old.$children.length+1)*1500)
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in New Issue