From 134582363bae985e8c0d35d1e18617facd8da071 Mon Sep 17 00:00:00 2001 From: liudianxin Date: Wed, 1 Jul 2020 15:05:46 +0800 Subject: [PATCH] =?UTF-8?q?fix=E6=9C=8D=E5=8A=A1=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/workbench/fwzc_fwcs.vue | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index 8714271..4bc6bd5 100644 --- a/src/pages/workbench/fwzc_fwcs.vue +++ b/src/pages/workbench/fwzc_fwcs.vue @@ -260,7 +260,9 @@ headerCellClassName="th_pink" > -
+
测试服务信息:
@@ -470,7 +472,7 @@ export default { tokenVal: "", sjfwQqt: "JSON", zhfwQqt: "JSON", - skfwQqt: "ArcGIS Server Web", + skfwQqt: "", skfwRadios: [], optionsZhyy: [ { label: "模型算法类", value: 22 }, @@ -478,7 +480,7 @@ export default { { label: "流程类", value: 24 }, { label: "应用类", value: 34 } ], - zhyyVal: 0, + zhyyVal: 22, jcxxtx: false, form: { name: "", @@ -645,7 +647,9 @@ export default { content_type: contentType, data_service_type1: this.btnList[this.activeBtn].id, data_service_type2: - this.activeBtn == 1 + this.activeBtn == 0 + ? 12 + : this.activeBtn == 1 ? this.skfwQqt : this.activeBtn == 4 ? this.zhyyVal @@ -674,7 +678,10 @@ export default { this.clickFwcs(); }, nextJcxx() { - if (this.activeBtn == 0 || (this.activeBtn == 4 && (this.zhyyVal == 22 || this.zhyyVal == 23))) { + if ( + this.activeBtn == 0 || + (this.activeBtn == 4 && (this.zhyyVal == 22 || this.zhyyVal == 23)) + ) { let requestData = this.$refs.fwcs_sjfw_qqcs.getTableData(); let responseData = this.$refs.fwcs_sjfw_fhcs.getTableData(); this.requestRules = 0; @@ -692,8 +699,8 @@ export default { this.$message.error("请完善返回参数信息中的字段名称"); } } else { - this.request_fields = requestData; - this.response_fields = responseData; + this.request_fields = []; + this.response_fields = []; this.jcxxtx = true; this.getOrganization(); } @@ -758,7 +765,9 @@ export default { descript: this.form.desc, data_service_type1: this.btnList[this.activeBtn].id, data_service_type2: - this.activeBtn == 1 + this.activeBtn == 0 + ? 12 + : this.activeBtn == 1 ? this.skfwQqt : this.activeBtn == 4 ? this.zhyyVal @@ -837,6 +846,7 @@ export default { if (response.data.success == 1) { this.btnList = response.data.data; this.skfwRadios = this.btnList[1].childDomains; + this.skfwQqt = this.skfwRadios[0].id; this.activeBtn = 0; } else { console.log(response.data.errMsg); -- 2.26.0