fix(测试跟踪):功能用例关联的devops需求,保存后回显为空
--bug=1022341 --user=王旭 【测试跟踪】github#21508,功能用例关联的devops需求,保存后回显为空 https://www.tapd.cn/55049933/s/1357600
This commit is contained in:
parent
cfab7b6223
commit
082909d485
|
@ -144,7 +144,9 @@ export default {
|
||||||
selfEditable: false,
|
selfEditable: false,
|
||||||
hoverEditable: false,
|
hoverEditable: false,
|
||||||
memberOptions: [],
|
memberOptions: [],
|
||||||
isCustomNone: false
|
isCustomNone: false,
|
||||||
|
optionPlatform: '',
|
||||||
|
optionPlatformValue: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
@ -317,46 +319,44 @@ export default {
|
||||||
if (!demandOptions) {
|
if (!demandOptions) {
|
||||||
demandOptions = this.contentObject.content.demandOptions || [];
|
demandOptions = this.contentObject.content.demandOptions || [];
|
||||||
}
|
}
|
||||||
let optionPlatform = "";
|
|
||||||
if (demandOptions.length > 0) {
|
if (demandOptions.length > 0) {
|
||||||
for (let i = 0; i < demandOptions.length; i++) {
|
for (let i = 0; i < demandOptions.length; i++) {
|
||||||
if (demandOptions[i].value === this.contentObject.content.demandId) {
|
if (demandOptions[i].value === this.contentObject.content.demandId) {
|
||||||
optionPlatform = this.handleDemandOptionPlatform(demandOptions[i]);
|
this.optionPlatform = this.handleDemandOptionPlatform(demandOptions[i]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (demandOptions[i].children && demandOptions[i].children.length > 0) {
|
if (demandOptions[i].children && demandOptions[i].children.length > 0) {
|
||||||
optionPlatform = this.getStoryPlatform(
|
this.optionPlatform = this.getStoryPlatform(
|
||||||
demandOptions[i].children,
|
demandOptions[i].children,
|
||||||
this.contentObject.content.demandId,
|
this.contentObject.content.demandId,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return optionPlatform;
|
return this.optionPlatform;
|
||||||
},
|
},
|
||||||
getStoryLabel(demandOptions) {
|
getStoryLabel(demandOptions) {
|
||||||
if (!demandOptions) {
|
if (!demandOptions) {
|
||||||
demandOptions = this.contentObject.content.demandOptions || [];
|
demandOptions = this.contentObject.content.demandOptions || [];
|
||||||
}
|
}
|
||||||
let optionPlatform = "";
|
|
||||||
if (demandOptions.length > 0) {
|
if (demandOptions.length > 0) {
|
||||||
for (let i = 0; i < demandOptions.length; i++) {
|
for (let i = 0; i < demandOptions.length; i++) {
|
||||||
if (demandOptions[i].value === this.contentObject.content.demandId) {
|
if (demandOptions[i].value === this.contentObject.content.demandId) {
|
||||||
optionPlatform = this.handleDemandOptionLabel(demandOptions[i]);
|
this.optionPlatformValue = this.handleDemandOptionLabel(demandOptions[i]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (demandOptions[i].children && demandOptions[i].children.length > 0) {
|
if (demandOptions[i].children && demandOptions[i].children.length > 0) {
|
||||||
optionPlatform = this.getStoryLabel(
|
this.optionPlatformValue = this.getStoryLabel(
|
||||||
demandOptions[i].children,
|
demandOptions[i].children,
|
||||||
this.contentObject.content.demandId,
|
this.contentObject.content.demandId,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (demandOptions[i].value === "other") {
|
}
|
||||||
optionPlatform = this.$t("test_track.case.other");
|
if (this.optionPlatformValue === '') {
|
||||||
|
this.optionPlatformValue = this.$t("test_track.case.other");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
return this.optionPlatformValue;
|
||||||
return optionPlatform;
|
|
||||||
},
|
},
|
||||||
handleDemandOptionPlatform(data) {
|
handleDemandOptionPlatform(data) {
|
||||||
if (data.platform) {
|
if (data.platform) {
|
||||||
|
|
Loading…
Reference in New Issue