feat(接口自动化): 增加jmx导入内容的编辑
This commit is contained in:
parent
21709ff323
commit
1961c8fec3
|
@ -1 +1 @@
|
|||
Subproject commit adefde265ff12d4ea909353c3f46008f8a8e17e7
|
||||
Subproject commit efd6af73b7c5cc53cd4515772000bc1436c49837
|
|
@ -12,7 +12,7 @@
|
|||
<span>
|
||||
<slot name="headerLeft">
|
||||
<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">
|
||||
<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"/>
|
||||
|
@ -113,9 +113,6 @@
|
|||
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.method) {
|
||||
this.data.method = this.data.protocol;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<api-base-component
|
||||
@copy="copyRow"
|
||||
@remove="remove"
|
||||
@active="active"
|
||||
:data="request"
|
||||
:draggable="draggable"
|
||||
:color="defColor"
|
||||
|
@ -9,7 +10,9 @@
|
|||
:show-btn="showBtn"
|
||||
:background-color="defBackgroundColor"
|
||||
: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>
|
||||
</template>
|
||||
|
||||
|
@ -56,6 +59,9 @@
|
|||
copyRow() {
|
||||
this.$emit('copyRow', this.jsr223Processor, this.node);
|
||||
},
|
||||
active() {
|
||||
this.request.active = !this.request.active;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -459,11 +459,11 @@
|
|||
} else {
|
||||
this.operatingElements = [];
|
||||
}
|
||||
if (data && data.type != "JmeterElement") {
|
||||
if (data) {
|
||||
data.active = true;
|
||||
if (data.hashTree) {
|
||||
data.hashTree.forEach(item => {
|
||||
if (item && item.type != "JmeterElement") {
|
||||
if (item) {
|
||||
item.active = true;
|
||||
}
|
||||
})
|
||||
|
@ -915,7 +915,7 @@
|
|||
setProjectEnvMap(projectEnvMap) {
|
||||
this.projectEnvMap = projectEnvMap;
|
||||
},
|
||||
refReload(data,node) {
|
||||
refReload(data, node) {
|
||||
this.selectedTreeNode = data;
|
||||
this.selectedNode = node;
|
||||
this.initProjectIds();
|
||||
|
|
Loading…
Reference in New Issue