fix(接口自动化): 修复复制场景,场景变量不能编辑问题
This commit is contained in:
parent
6257fce4a9
commit
ba76c82851
|
@ -577,7 +577,7 @@
|
||||||
recursiveSorting(arr, scenarioProjectId) {
|
recursiveSorting(arr, scenarioProjectId) {
|
||||||
for (let i in arr) {
|
for (let i in arr) {
|
||||||
arr[i].index = Number(i) + 1;
|
arr[i].index = Number(i) + 1;
|
||||||
if (arr[i].type === ELEMENT_TYPE.LoopController && arr[i].hashTree && arr[i].hashTree.length > 1) {
|
if (arr[i].type === ELEMENT_TYPE.LoopController && arr[i].loopType === "LOOP_COUNT" && arr[i].hashTree && arr[i].hashTree.length > 1) {
|
||||||
arr[i].countController.proceed = true;
|
arr[i].countController.proceed = true;
|
||||||
}
|
}
|
||||||
if (!arr[i].projectId) {
|
if (!arr[i].projectId) {
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
this.$emit('remove');
|
this.$emit('remove');
|
||||||
break;
|
break;
|
||||||
case "scenarioVar":
|
case "scenarioVar":
|
||||||
this.$refs.scenarioParameters.open(this.data.variables, this.data.headers, true);
|
this.$refs.scenarioParameters.open(this.data.variables, this.data.headers, this.data.referenced === 'REF');
|
||||||
break;
|
break;
|
||||||
case "openScenario":
|
case "openScenario":
|
||||||
this.getScenario();
|
this.getScenario();
|
||||||
|
|
|
@ -493,7 +493,7 @@
|
||||||
recursiveSorting(arr, scenarioProjectId) {
|
recursiveSorting(arr, scenarioProjectId) {
|
||||||
for (let i in arr) {
|
for (let i in arr) {
|
||||||
arr[i].index = Number(i) + 1;
|
arr[i].index = Number(i) + 1;
|
||||||
if (arr[i].type === ELEMENT_TYPE.LoopController && arr[i].hashTree && arr[i].hashTree.length > 1) {
|
if (arr[i].type === ELEMENT_TYPE.LoopController && arr[i].loopType === "LOOP_COUNT" && arr[i].hashTree && arr[i].hashTree.length > 1) {
|
||||||
arr[i].countController.proceed = true;
|
arr[i].countController.proceed = true;
|
||||||
}
|
}
|
||||||
if (!arr[i].projectId) {
|
if (!arr[i].projectId) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2115bd28a90854d2b6276a90878934715498c584
|
Subproject commit 07951ba17aef6f29e50cfd68e40de3266f9a60cd
|
Loading…
Reference in New Issue