From 6c955235b6961cf4a35d50c3790b33e094fbd51d Mon Sep 17 00:00:00 2001 From: liudianxin Date: Wed, 24 Jun 2020 16:38:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/workbench/fwzc_fwcs.vue | 39 +++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index 4f915c3..c7a1bff 100644 --- a/src/pages/workbench/fwzc_fwcs.vue +++ b/src/pages/workbench/fwzc_fwcs.vue @@ -36,7 +36,15 @@ v-model="serviceUrl" class="input-with-select" > - + + + + {{ item }} 服务测试 @@ -363,6 +371,9 @@ export default { { label: "PUT", value: "PUT" }, { label: "DELETE", value: "DELETE" } ], + optionType1: [ + { label: "GET", value: "GET" }, + ], activeName: 0, activeZh: 0, sjfwQqcs: [ @@ -459,6 +470,7 @@ export default { tokenVal: "", sjfwQqt: "JSON", zhfwQqt: "JSON", + skfwQqt: "ArcGIS Server Web", skfwRadios: [ "ArcGIS Server Web", "文档", @@ -636,7 +648,14 @@ export default { headers: headers, params: requestData, body: bodys, - content_type: contentType + content_type: contentType, + data_service_type1: this.btnList[this.activeBtn].id, + data_service_type2: + this.activeBtn == 1 + ? this.skfwQqt + : this.activeBtn == 4 + ? this.zhyyVal + : 0 }; this.$api.workbench.fwzcFwcs(query).then(response => { if (response.data.success == 1) { @@ -721,6 +740,15 @@ export default { this.$refs.form.validate(valid => { if (valid) { if (this.cover.length != 0) { + let contentType = ""; + if (this.activeBtn == 0) { + bodys = this.$refs.jsonCodes.getCodesVal(); + contentType = this.sjfwQqt; + } else if (this.activeBtn == 4) { + if (this.activeZh == 1) { + contentType = this.zhfwQqt; + } + } let query = { name: this.form.name, sectors: this.form.area, @@ -731,7 +759,7 @@ export default { data_service_type1: this.btnList[this.activeBtn].id, data_service_type2: this.activeBtn == 1 - ? this.skfwRadios + ? this.skfwQqt : this.activeBtn == 4 ? this.zhyyVal : 0, @@ -739,7 +767,8 @@ export default { method: this.select, url: this.serviceUrl, request_fields: this.request_fields, - response_fields: this.response_fields + response_fields: this.response_fields, + content_type: contentType }; this.$api.workbench.serviceAdd(query).then(response => { if (response.data.success == 1) { -- 2.26.0