feat(接口自动化): 增加jmx导入内容的编辑
This commit is contained in:
parent
21709ff323
commit
1961c8fec3
|
@ -1 +1 @@
|
||||||
Subproject commit adefde265ff12d4ea909353c3f46008f8a8e17e7
|
Subproject commit efd6af73b7c5cc53cd4515772000bc1436c49837
|
|
@ -12,7 +12,7 @@
|
||||||
<span>
|
<span>
|
||||||
<slot name="headerLeft">
|
<slot name="headerLeft">
|
||||||
<i class="icon el-icon-arrow-right" :class="{'is-active': data.active}"
|
<i class="icon el-icon-arrow-right" :class="{'is-active': data.active}"
|
||||||
@click="active(data)" v-if="data.type!='scenario' && data.type!='JmeterElement' && !isMax " @click.stop/>
|
@click="active(data)" v-if="data.type!='scenario' && !isMax " @click.stop/>
|
||||||
<span @click.stop v-if="isShowInput && isShowNameInput">
|
<span @click.stop v-if="isShowInput && isShowNameInput">
|
||||||
<el-input :draggable="draggable" size="mini" v-model="data.name" class="name-input"
|
<el-input :draggable="draggable" size="mini" v-model="data.name" class="name-input"
|
||||||
@blur="isShowInput = false" :placeholder="$t('commons.input_name')" ref="nameEdit" :disabled="data.disabled"/>
|
@blur="isShowInput = false" :placeholder="$t('commons.input_name')" ref="nameEdit" :disabled="data.disabled"/>
|
||||||
|
@ -113,9 +113,6 @@
|
||||||
this.$refs.nameEdit.focus();
|
this.$refs.nameEdit.focus();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (this.data && this.data.type === "JmeterElement") {
|
|
||||||
this.data.active = false;
|
|
||||||
}
|
|
||||||
if (this.data && ELEMENTS.get("AllSamplerProxy").indexOf(this.data.type) != -1) {
|
if (this.data && ELEMENTS.get("AllSamplerProxy").indexOf(this.data.type) != -1) {
|
||||||
if (!this.data.method) {
|
if (!this.data.method) {
|
||||||
this.data.method = this.data.protocol;
|
this.data.method = this.data.protocol;
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<api-base-component
|
<api-base-component
|
||||||
@copy="copyRow"
|
@copy="copyRow"
|
||||||
@remove="remove"
|
@remove="remove"
|
||||||
|
@active="active"
|
||||||
:data="request"
|
:data="request"
|
||||||
:draggable="draggable"
|
:draggable="draggable"
|
||||||
:color="defColor"
|
:color="defColor"
|
||||||
|
@ -9,7 +10,9 @@
|
||||||
:show-btn="showBtn"
|
:show-btn="showBtn"
|
||||||
:background-color="defBackgroundColor"
|
:background-color="defBackgroundColor"
|
||||||
:title="request.elementType">
|
:title="request.elementType">
|
||||||
|
<div style="height: 300px;width: 100%">
|
||||||
|
<ms-code-edit mode="xml" :data.sync="request.jmeterElement" theme="eclipse" ref="codeEdit"/>
|
||||||
|
</div>
|
||||||
</api-base-component>
|
</api-base-component>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -56,6 +59,9 @@
|
||||||
copyRow() {
|
copyRow() {
|
||||||
this.$emit('copyRow', this.jsr223Processor, this.node);
|
this.$emit('copyRow', this.jsr223Processor, this.node);
|
||||||
},
|
},
|
||||||
|
active() {
|
||||||
|
this.request.active = !this.request.active;
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -459,11 +459,11 @@
|
||||||
} else {
|
} else {
|
||||||
this.operatingElements = [];
|
this.operatingElements = [];
|
||||||
}
|
}
|
||||||
if (data && data.type != "JmeterElement") {
|
if (data) {
|
||||||
data.active = true;
|
data.active = true;
|
||||||
if (data.hashTree) {
|
if (data.hashTree) {
|
||||||
data.hashTree.forEach(item => {
|
data.hashTree.forEach(item => {
|
||||||
if (item && item.type != "JmeterElement") {
|
if (item) {
|
||||||
item.active = true;
|
item.active = true;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -915,7 +915,7 @@
|
||||||
setProjectEnvMap(projectEnvMap) {
|
setProjectEnvMap(projectEnvMap) {
|
||||||
this.projectEnvMap = projectEnvMap;
|
this.projectEnvMap = projectEnvMap;
|
||||||
},
|
},
|
||||||
refReload(data,node) {
|
refReload(data, node) {
|
||||||
this.selectedTreeNode = data;
|
this.selectedTreeNode = data;
|
||||||
this.selectedNode = node;
|
this.selectedNode = node;
|
||||||
this.initProjectIds();
|
this.initProjectIds();
|
||||||
|
|
Loading…
Reference in New Issue