parent
3f99bf02ae
commit
45dfbba11f
|
@ -121,7 +121,7 @@ public class ApiDocumentService {
|
||||||
JSONArray headArr = requestObj.getJSONArray("rest");
|
JSONArray headArr = requestObj.getJSONArray("rest");
|
||||||
for (int index = 0; index < headArr.size(); index++) {
|
for (int index = 0; index < headArr.size(); index++) {
|
||||||
JSONObject headObj = headArr.getJSONObject(index);
|
JSONObject headObj = headArr.getJSONObject(index);
|
||||||
if (headObj.containsKey("name") && headObj.containsKey("value")) {
|
if (headObj.containsKey("name")) {
|
||||||
urlParamArr.add(headObj);
|
urlParamArr.add(headObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -176,9 +176,13 @@ public class ApiDocumentService {
|
||||||
Map<String, String> previewObjMap = new LinkedHashMap<>();
|
Map<String, String> previewObjMap = new LinkedHashMap<>();
|
||||||
for (int i = 0; i < kvsArr.size(); i++) {
|
for (int i = 0; i < kvsArr.size(); i++) {
|
||||||
JSONObject kv = kvsArr.getJSONObject(i);
|
JSONObject kv = kvsArr.getJSONObject(i);
|
||||||
if (kv.containsKey("name") && kv.containsKey("value")) {
|
if (kv.containsKey("name")) {
|
||||||
|
String value = "";
|
||||||
|
if(kv.containsKey("value")){
|
||||||
|
value = String.valueOf(kv.get("value"));
|
||||||
|
}
|
||||||
bodyParamArr.add(kv);
|
bodyParamArr.add(kv);
|
||||||
previewObjMap.put(String.valueOf(kv.get("name")), String.valueOf(kv.get("value")));
|
previewObjMap.put(String.valueOf(kv.get("name")), value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.setPreviewData(previewJsonArray, JSONObject.toJSONString(previewObjMap));
|
this.setPreviewData(previewJsonArray, JSONObject.toJSONString(previewObjMap));
|
||||||
|
|
|
@ -131,8 +131,13 @@
|
||||||
:label="$t('api_test.definition.document.table_coloum.name')"
|
:label="$t('api_test.definition.document.table_coloum.name')"
|
||||||
min-width="120px"
|
min-width="120px"
|
||||||
show-overflow-tooltip/>
|
show-overflow-tooltip/>
|
||||||
<el-table-column prop="isEnable"
|
<!-- <el-table-column prop="isEnable"-->
|
||||||
|
<!-- :label="$t('api_test.definition.document.table_coloum.is_required')"-->
|
||||||
|
<!-- min-width="80px"-->
|
||||||
|
<!-- show-overflow-tooltip/>-->
|
||||||
|
<el-table-column prop="required"
|
||||||
:label="$t('api_test.definition.document.table_coloum.is_required')"
|
:label="$t('api_test.definition.document.table_coloum.is_required')"
|
||||||
|
:formatter="formatBoolean"
|
||||||
min-width="80px"
|
min-width="80px"
|
||||||
show-overflow-tooltip/>
|
show-overflow-tooltip/>
|
||||||
<el-table-column prop="value"
|
<el-table-column prop="value"
|
||||||
|
|
Loading…
Reference in New Issue