fix(接口测试): 引用场景批量操作不统一问题
Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
parent
18916a41ca
commit
af5de2521d
|
@ -2403,10 +2403,19 @@ export default {
|
|||
}
|
||||
},
|
||||
getAllResourceIds() {
|
||||
if (this.$refs.stepTree) {
|
||||
return this.$refs.stepTree.getCheckedKeys();
|
||||
let resourceIds = [];
|
||||
this.filterAllStep(this.scenarioDefinition, resourceIds);
|
||||
return resourceIds;
|
||||
},
|
||||
filterAllStep(stepArray, resourceIds) {
|
||||
if (stepArray) {
|
||||
stepArray.forEach(item =>{
|
||||
resourceIds.push(item.resourceId);
|
||||
if(item.referenced !== 'REF' && item.hashTree){
|
||||
this.filterAllStep(item.hashTree,resourceIds);
|
||||
}
|
||||
})
|
||||
}
|
||||
return [];
|
||||
},
|
||||
getAllCheckedNodes() {
|
||||
if (this.$refs.stepTree) {
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
</el-radio-group>
|
||||
<div v-if="body.type == 'Form Data' || body.type == 'WWW_FORM'">
|
||||
<el-row v-if="body.type == 'Form Data' || body.type == 'WWW_FORM'" class="ms-el-link">
|
||||
<el-link style="margin-right: 5px" @click="batchAdd"> {{ $t('commons.batch_add') }}</el-link>
|
||||
<el-link style="margin-right: 5px" @click="batchAdd" :disabled="isReadOnly"> {{ $t('commons.batch_add') }}</el-link>
|
||||
<api-params-config
|
||||
v-if="apiParamsConfigFields"
|
||||
@refresh="refreshApiParamsField"
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
</span>
|
||||
</el-tooltip>
|
||||
<el-row>
|
||||
<el-link class="ms-el-link" @click="batchAdd" style="color: var(--primary_color)">
|
||||
<el-link class="ms-el-link" @click="batchAdd" :disabled="isReadOnly">
|
||||
{{ $t('commons.batch_add') }}
|
||||
</el-link>
|
||||
</el-row>
|
||||
|
@ -53,7 +53,7 @@
|
|||
</span>
|
||||
</el-tooltip>
|
||||
<el-row class="ms-el-link">
|
||||
<el-link @click="batchAdd" style="margin-right: 5px; color: var(--primary_color)">
|
||||
<el-link @click="batchAdd" style="margin-right: 5px;" :disabled="isReadOnly">
|
||||
{{ $t('commons.batch_add') }}
|
||||
</el-link>
|
||||
<api-params-config
|
||||
|
@ -89,7 +89,7 @@
|
|||
</span>
|
||||
</el-tooltip>
|
||||
<el-row class="ms-el-link">
|
||||
<el-link @click="batchAdd" style="margin-right: 5px; color: var(--primary_color)">
|
||||
<el-link @click="batchAdd" style="margin-right: 5px" :disabled="isReadOnly">
|
||||
{{ $t('commons.batch_add') }}
|
||||
</el-link>
|
||||
<api-params-config
|
||||
|
|
Loading…
Reference in New Issue