This commit is contained in:
chenjianxing 2021-01-28 10:25:43 +08:00
commit 7a4f33f743
3 changed files with 41 additions and 24 deletions

View File

@ -134,7 +134,9 @@ public class HistoricalDataUpgradeService {
request1.getBody().setType(Body.FORM_DATA); request1.getBody().setType(Body.FORM_DATA);
} }
if ("json".equals(request1.getBody().getFormat())) { if ("json".equals(request1.getBody().getFormat())) {
if ("Raw".equals(request1.getBody().getType())) {
request1.getBody().setType(Body.JSON); request1.getBody().setType(Body.JSON);
}
if (CollectionUtils.isEmpty(request1.getHeaders())) { if (CollectionUtils.isEmpty(request1.getHeaders())) {
List<KeyValue> headers = new LinkedList<>(); List<KeyValue> headers = new LinkedList<>();
headers.add(new KeyValue("Content-Type", "application/json")); headers.add(new KeyValue("Content-Type", "application/json"));

View File

@ -137,7 +137,7 @@
</div> </div>
<!-- 场景步骤内容 --> <!-- 场景步骤内容 -->
<div v-loading="loading"> <div v-loading="loading">
<el-tree node-key="resourceId" :props="props" :data="scenarioDefinition" <el-tree node-key="resourceId" :props="props" :data="scenarioDefinition" class="ms-tree"
:default-expanded-keys="expandedNode" :default-expanded-keys="expandedNode"
:expand-on-click-node="false" :expand-on-click-node="false"
highlight-current highlight-current
@ -848,7 +848,7 @@
if (this.currentScenario.tags instanceof String) { if (this.currentScenario.tags instanceof String) {
this.currentScenario.tags = JSON.parse(this.currentScenario.tags); this.currentScenario.tags = JSON.parse(this.currentScenario.tags);
} }
this.$emit('refresh',this.currentScenario); this.$emit('refresh', this.currentScenario);
}) })
} }
}) })
@ -1037,15 +1037,27 @@
z-index: 1; z-index: 1;
} }
.ms-expanded >>> .el-tree-node__expand-icon.expanded { .ms-tree >>> .el-tree-node__expand-icon.expanded {
color: #7C3985; -webkit-transform: rotate(0deg);
transform: rotate(0deg);
} }
.ms-el-icon-caret-right .el-icon-caret-right { .ms-tree >>> .el-icon-caret-right:before {
color: #7C3985; content: '\e723';
font-size: 18px;
} }
.ms-is-leaf >>> .is-leaf { .ms-tree >>> .el-tree-node__expand-icon.is-leaf {
color: transparent; color: transparent;
} }
.ms-tree >>> .el-tree-node__expand-icon {
color: #7C3985;
}
.ms-tree >>> .el-tree-node__expand-icon.expanded.el-icon-caret-right:before {
color: #7C3985;
content: "\e722";
font-size: 18px;
}
</style> </style>

View File

@ -225,6 +225,9 @@
if (!hasEnvironment) { if (!hasEnvironment) {
this.request.environmentId = undefined; this.request.environmentId = undefined;
} }
if (!this.request.environmentId) {
this.request.dataSourceId = undefined;
}
this.initDataSource(); this.initDataSource();
}); });
}, },