Merge branch 'master' of https://github.com/metersphere/metersphere
This commit is contained in:
commit
8f49a7fdd7
|
@ -1 +1 @@
|
||||||
Subproject commit f27d1609d77f7d6c988d37d709466e844d350e17
|
Subproject commit 36116c1bff736377e6b8a3b828c5fa9bd8b2f2f8
|
|
@ -520,6 +520,9 @@
|
||||||
recursiveSorting(arr) {
|
recursiveSorting(arr) {
|
||||||
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) {
|
||||||
|
arr[i].countController.proceed = true;
|
||||||
|
}
|
||||||
if (arr[i].hashTree != undefined && arr[i].hashTree.length > 0) {
|
if (arr[i].hashTree != undefined && arr[i].hashTree.length > 0) {
|
||||||
this.recursiveSorting(arr[i].hashTree);
|
this.recursiveSorting(arr[i].hashTree);
|
||||||
}
|
}
|
||||||
|
@ -528,6 +531,10 @@
|
||||||
sort() {
|
sort() {
|
||||||
for (let i in this.scenarioDefinition) {
|
for (let i in this.scenarioDefinition) {
|
||||||
this.scenarioDefinition[i].index = Number(i) + 1;
|
this.scenarioDefinition[i].index = Number(i) + 1;
|
||||||
|
if (this.scenarioDefinition[i].type === ELEMENT_TYPE.LoopController && this.scenarioDefinition[i].hashTree
|
||||||
|
&& this.scenarioDefinition[i].hashTree.length > 1) {
|
||||||
|
this.scenarioDefinition[i].countController.proceed = true;
|
||||||
|
}
|
||||||
if (this.scenarioDefinition[i].hashTree != undefined && this.scenarioDefinition[i].hashTree.length > 0) {
|
if (this.scenarioDefinition[i].hashTree != undefined && this.scenarioDefinition[i].hashTree.length > 0) {
|
||||||
this.recursiveSorting(this.scenarioDefinition[i].hashTree);
|
this.recursiveSorting(this.scenarioDefinition[i].hashTree);
|
||||||
}
|
}
|
||||||
|
@ -588,16 +595,14 @@
|
||||||
} else {
|
} else {
|
||||||
this.scenarioDefinition.push(request);
|
this.scenarioDefinition.push(request);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
,
|
|
||||||
pushApiOrCase(data, refType, referenced) {
|
pushApiOrCase(data, refType, referenced) {
|
||||||
data.forEach(item => {
|
data.forEach(item => {
|
||||||
this.setApiParameter(item, refType, referenced);
|
this.setApiParameter(item, refType, referenced);
|
||||||
});
|
});
|
||||||
this.sort();
|
this.sort();
|
||||||
this.reload();
|
this.reload();
|
||||||
}
|
},
|
||||||
,
|
|
||||||
getMaintainerOptions() {
|
getMaintainerOptions() {
|
||||||
let workspaceId = localStorage.getItem(WORKSPACE_ID);
|
let workspaceId = localStorage.getItem(WORKSPACE_ID);
|
||||||
this.$post('/user/ws/member/tester/list', {workspaceId: workspaceId}, response => {
|
this.$post('/user/ws/member/tester/list', {workspaceId: workspaceId}, response => {
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<span class="ms-span ms-radio">{{$t('loop.proceed')}}</span>
|
<span class="ms-span ms-radio">{{$t('loop.proceed')}}</span>
|
||||||
<el-tooltip class="item" effect="dark" content="默认为开启,当循环下只有一个请求时,可以开启/关闭;当循环下超过一个请求时,则只能开启。" placement="top">>
|
<el-tooltip class="item" effect="dark" content="默认为开启,当循环下只有一个请求时,可以开启/关闭;当循环下超过一个请求时,则只能开启。" placement="top">>
|
||||||
<el-switch v-model="controller.countController.proceed"/>
|
<el-switch v-model="controller.countController.proceed" @change="switchChange"/>
|
||||||
|
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -123,6 +123,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
switchChange() {
|
||||||
|
if (this.controller.hashTree && this.controller.hashTree.length > 1) {
|
||||||
|
this.$warning("当前循环下超过一个请求,不能关闭状态")
|
||||||
|
this.controller.countController.proceed = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
},
|
||||||
remove() {
|
remove() {
|
||||||
this.$emit('remove', this.controller, this.node);
|
this.$emit('remove', this.controller, this.node);
|
||||||
},
|
},
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 7d43154a7c19732407a8e9ace8a7d1ea13c91f36
|
Subproject commit 3d96d7c61bc50f32f18311d23f447663e02d7d44
|
Loading…
Reference in New Issue