fix(测试跟踪): 用例关联多层级需求显示为空
This commit is contained in:
parent
09aad8e0e2
commit
438d54bb3f
|
@ -538,6 +538,7 @@ export default {
|
||||||
.then(r => {
|
.then(r => {
|
||||||
this.demandOptions = [];
|
this.demandOptions = [];
|
||||||
if (r.data && r.data.length > 0) {
|
if (r.data && r.data.length > 0) {
|
||||||
|
this.demandValue = [];
|
||||||
this.buildDemandCascaderOptions(r.data, this.demandOptions, []);
|
this.buildDemandCascaderOptions(r.data, this.demandOptions, []);
|
||||||
}
|
}
|
||||||
this.addOtherOption();
|
this.addOtherOption();
|
||||||
|
@ -558,7 +559,6 @@ export default {
|
||||||
this.result = {loading: false};
|
this.result = {loading: false};
|
||||||
},
|
},
|
||||||
buildDemandCascaderOptions(data, options, pathArray) {
|
buildDemandCascaderOptions(data, options, pathArray) {
|
||||||
this.demandValue = [];
|
|
||||||
data.forEach(item => {
|
data.forEach(item => {
|
||||||
let option = {
|
let option = {
|
||||||
label: item.platform + ': ' + item.name,
|
label: item.platform + ': ' + item.name,
|
||||||
|
|
Loading…
Reference in New Issue