From f0141a3fe88b34ef9e8169478259b21e00024dd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=AE=BF=E6=98=95?= Date: Mon, 2 Nov 2020 17:17:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=9C=8D=E5=8A=A1=E6=9A=82?= =?UTF-8?q?=E4=B8=8D=E5=8F=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/workbench/fwzc_fwcs.vue | 43 ++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index 96d26bb..7c9dea7 100644 --- a/src/pages/workbench/fwzc_fwcs.vue +++ b/src/pages/workbench/fwzc_fwcs.vue @@ -80,7 +80,13 @@ (用于查询流程状态)

-
+
上传接口文档 (请上传所有服务地址完整接口文档): @@ -147,7 +153,7 @@ 服务测试
-
+
测试服务信息:
@@ -387,6 +396,7 @@ v-show=" (activeBtn == 0 || activeBtn == 1 || + activeBtn == 2 || activeBtn == 3 || activeBtn == 4) && !resSuccess @@ -804,8 +814,8 @@ export default { { label: "DELETE", value: "DELETE" }, ], optionType1: [{ label: "GET", value: "GET" }], - activeName: 0, - activeZh: 0, + activeName: "0", + activeZh: "0", sjfwQqcs: [ { label: "请求字段编码", @@ -1132,7 +1142,7 @@ export default { bodys = this.$refs.jsonCodes ? this.$refs.jsonCodes.getCodesVal() : ""; contentType = this.sjfwQqt; } else if (this.activeBtn == 4) { - if (this.activeZh == 1) { + if (this.activeZh == "1") { contentType = this.zhfwQqt; if (this.zhfwQqt == "JSON") { bodys = this.$refs.zhfwJsonCodes @@ -1204,10 +1214,12 @@ export default { nextJcxx() { if ( this.activeBtn == 0 || + this.activeBtn == 2 || this.activeBtn == 3 || (this.activeBtn == 4 && (this.zhyyVal == 22 || this.zhyyVal == 23)) ) { if ( + this.activeBtn == 2 || this.activeBtn == 3 || (this.activeBtn == 4 && this.zhyyVal == 22) ) { @@ -1231,6 +1243,23 @@ export default { this.$message.error("请完善返回参数信息中的字段名称"); } } + } else { + let requestData = this.$refs.fwcs_sjfw_qqcs.getTableData(); + let responseData = this.$refs.fwcs_sjfw_fhcs.getTableData(); + this.requestRules = 0; + this.responseRules = 0; + this.checkTable(requestData, 0); + this.checkTable(responseData, 1); + if (this.requestRules == 0 && this.responseRules == 0) { + this.request_fields = requestData; + this.response_fields = responseData; + this.jcxxtx = true; + this.getOrganization(); + } else if (this.requestRules != 0) { + this.$message.error("请完善请求参数信息中的字段名称"); + } else if (this.responseRules != 0) { + this.$message.error("请完善返回参数信息中的字段名称"); + } } } else if (this.activeBtn == 1) { let value = helper.getQueryString("id", this.serviceUrl); @@ -1410,7 +1439,7 @@ export default { if (this.activeBtn == 0 || this.activeBtn == 3) { contentType = this.sjfwQqt; } else if (this.activeBtn == 4) { - if (this.activeZh == 1) { + if (this.activeZh == "1") { contentType = this.zhfwQqt; } } -- 2.26.0