Commit 11e0d32c authored by 徐一鸣's avatar 徐一鸣

注册的服务详情

parent f598819c
...@@ -230,19 +230,19 @@ export default { ...@@ -230,19 +230,19 @@ export default {
prop: "name", prop: "name",
label: "字段编码", label: "字段编码",
align: "left", align: "left",
width: 240 width: 200,
}, },
{ {
prop: "label", prop: "label",
label: "字段名称", label: "字段名称",
align: "center", align: "center",
width: 200 width: 200,
}, },
{ {
prop: "show_type", prop: "show_type",
label: "字段类型", label: "字段类型",
align: "center", align: "center",
width: 240 width: 240,
}, },
{ {
prop: "descript", prop: "descript",
...@@ -253,7 +253,7 @@ export default { ...@@ -253,7 +253,7 @@ export default {
prop: "is_must", prop: "is_must",
label: "是否必须", label: "是否必须",
align: "center", align: "center",
width: 240 width: 240,
}, },
], // 请求参数-header ], // 请求参数-header
req_data: [], // 请求参数 req_data: [], // 请求参数
...@@ -263,21 +263,21 @@ export default { ...@@ -263,21 +263,21 @@ export default {
prop: "name", prop: "name",
label: "字段编码", label: "字段编码",
align: "left", align: "left",
width: 240 width: 200,
}, },
{ {
prop: "label", prop: "label",
label: "字段名称", label: "字段名称",
minWidth: "20%", minWidth: "20%",
align: "center", align: "center",
width: 200 width: 200,
}, },
{ {
prop: "show_type", prop: "show_type",
label: "字段类型", label: "字段类型",
width: "100px", width: "100px",
align: "center", align: "center",
width: 240 width: 240,
}, },
{ {
prop: "descript", prop: "descript",
...@@ -290,7 +290,7 @@ export default { ...@@ -290,7 +290,7 @@ export default {
label: "字段示例数值", label: "字段示例数值",
width: "120px", width: "120px",
align: "center", align: "center",
width: 240 width: 240,
}, },
], // 响应参数-header ], // 响应参数-header
res_data: [], // 响应参数 res_data: [], // 响应参数
...@@ -683,16 +683,18 @@ export default { ...@@ -683,16 +683,18 @@ export default {
"info", "info",
this.request_arr[data.req_type - 1] this.request_arr[data.req_type - 1]
); // 请求方式 ); // 请求方式
this.req_data = JSON.parse(data.req_fields || data.req_query || "[]"); // 请求参数 this.req_data = JSON.parse(
data.req_fields || data.req_query || "[]"
); // 请求参数
if (this.req_data.length === 0) { if (this.req_data.length === 0) {
this.$set(this.servicead_arr[1], "type", ""); this.$set(this.servicead_arr[1], "type", "");
this.$set(this.servicead_arr[1], "info", "无请求参数"); this.$set(this.servicead_arr[1], "info", "无请求参数");
} }
this.req_code_arr = data.req_fields_example || data.req_query_example || ""; // 请求示例 this.req_code_arr =
data.req_fields_example || data.req_query_example || ""; // 请求示例
if (!this.req_code_arr) { if (!this.req_code_arr) {
this.$set(this.servicead_arr[2], "type", ""); this.$set(this.servicead_arr[2], "type", "");
this.$set(this.servicead_arr[2], "info", "无请求示例"); this.$set(this.servicead_arr[2], "info", "无请求示例");
} }
this.$set(this.servicead_arr[3], "info", data.encode_method); // 编码格式 this.$set(this.servicead_arr[3], "info", data.encode_method); // 编码格式
this.res_data = JSON.parse(data.res_fields || "[]"); // 响应参数 this.res_data = JSON.parse(data.res_fields || "[]"); // 响应参数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment