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