fix(接口自动化): 修复CSV展示问题
This commit is contained in:
parent
3ac8b83d54
commit
23cd306a62
|
@ -143,7 +143,7 @@
|
||||||
highlight-current
|
highlight-current
|
||||||
@node-expand="nodeExpand"
|
@node-expand="nodeExpand"
|
||||||
@node-collapse="nodeCollapse"
|
@node-collapse="nodeCollapse"
|
||||||
:allow-drop="allowDrop" @node-drag-end="allowDrag" @node-click="nodeClick" v-if="!loading" draggable>
|
:allow-drop="allowDrop" @node-drag-end="allowDrag" @node-click="nodeClick" v-if="!loading" draggable class="ms-is-leaf">
|
||||||
<span class="custom-tree-node father" slot-scope="{ node, data}" style="width: 96%">
|
<span class="custom-tree-node father" slot-scope="{ node, data}" style="width: 96%">
|
||||||
<!-- 步骤组件-->
|
<!-- 步骤组件-->
|
||||||
<ms-component-config :type="data.type" :scenario="data" :response="response" :currentScenario="currentScenario"
|
<ms-component-config :type="data.type" :scenario="data" :response="response" :currentScenario="currentScenario"
|
||||||
|
@ -1035,7 +1035,7 @@
|
||||||
color: #7C3985;
|
color: #7C3985;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ .is-leaf {
|
.ms-is-leaf >>> .is-leaf {
|
||||||
color: transparent;
|
color: transparent;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<el-col :span="20">
|
<el-col :span="20">
|
||||||
<el-autocomplete
|
<el-autocomplete
|
||||||
size="small"
|
size="small"
|
||||||
class="inline-input"
|
style="width: 100%"
|
||||||
v-model="editData.encoding"
|
v-model="editData.encoding"
|
||||||
:fetch-suggestions="querySearch"
|
:fetch-suggestions="querySearch"
|
||||||
:placeholder="$t('commons.input_content')"
|
:placeholder="$t('commons.input_content')"
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
handleClick() {
|
handleClick() {
|
||||||
let config = {complete: this.complete, step: this.step};
|
let config = {complete: this.complete, step: this.step, delimiter: this.editData.delimiter ? this.editData.delimiter : ","};
|
||||||
this.allDatas = [];
|
this.allDatas = [];
|
||||||
// 本地文件
|
// 本地文件
|
||||||
if (this.editData.files && this.editData.files.length > 0 && this.editData.files[0].file) {
|
if (this.editData.files && this.editData.files.length > 0 && this.editData.files[0].file) {
|
||||||
|
@ -152,5 +152,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
ms-is-leaf >>> .is-leaf {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -107,6 +107,9 @@
|
||||||
},
|
},
|
||||||
addParameters(v) {
|
addParameters(v) {
|
||||||
v.id = getUUID();
|
v.id = getUUID();
|
||||||
|
if (v.type === 'CSV') {
|
||||||
|
v.delimiter = ",";
|
||||||
|
}
|
||||||
this.variables.push(v);
|
this.variables.push(v);
|
||||||
let index = 1;
|
let index = 1;
|
||||||
this.variables.forEach(item => {
|
this.variables.forEach(item => {
|
||||||
|
|
Loading…
Reference in New Issue