Commit 13458236 authored by 刘殿昕's avatar 刘殿昕

fix服务测试

parent d3ad8e74
...@@ -260,7 +260,9 @@ ...@@ -260,7 +260,9 @@
headerCellClassName="th_pink" headerCellClassName="th_pink"
></ces-table> ></ces-table>
</div> </div>
<div v-show="(activeBtn == 1 || activeBtn == 4 && (zhyyVal != 22 || zhyyVal != 23)) && resSuccess"> <div
v-show="(activeBtn == 1 || activeBtn == 4 && (zhyyVal != 22 || zhyyVal != 23)) && resSuccess"
>
<div class="skfw_csfwxx">测试服务信息:</div> <div class="skfw_csfwxx">测试服务信息:</div>
<div class="test_succ"> <div class="test_succ">
<div class="skcs_jg"> <div class="skcs_jg">
...@@ -470,7 +472,7 @@ export default { ...@@ -470,7 +472,7 @@ export default {
tokenVal: "", tokenVal: "",
sjfwQqt: "JSON", sjfwQqt: "JSON",
zhfwQqt: "JSON", zhfwQqt: "JSON",
skfwQqt: "ArcGIS Server Web", skfwQqt: "",
skfwRadios: [], skfwRadios: [],
optionsZhyy: [ optionsZhyy: [
{ label: "模型算法类", value: 22 }, { label: "模型算法类", value: 22 },
...@@ -478,7 +480,7 @@ export default { ...@@ -478,7 +480,7 @@ export default {
{ label: "流程类", value: 24 }, { label: "流程类", value: 24 },
{ label: "应用类", value: 34 } { label: "应用类", value: 34 }
], ],
zhyyVal: 0, zhyyVal: 22,
jcxxtx: false, jcxxtx: false,
form: { form: {
name: "", name: "",
...@@ -645,7 +647,9 @@ export default { ...@@ -645,7 +647,9 @@ export default {
content_type: contentType, content_type: contentType,
data_service_type1: this.btnList[this.activeBtn].id, data_service_type1: this.btnList[this.activeBtn].id,
data_service_type2: data_service_type2:
this.activeBtn == 1 this.activeBtn == 0
? 12
: this.activeBtn == 1
? this.skfwQqt ? this.skfwQqt
: this.activeBtn == 4 : this.activeBtn == 4
? this.zhyyVal ? this.zhyyVal
...@@ -674,7 +678,10 @@ export default { ...@@ -674,7 +678,10 @@ export default {
this.clickFwcs(); this.clickFwcs();
}, },
nextJcxx() { 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 requestData = this.$refs.fwcs_sjfw_qqcs.getTableData();
let responseData = this.$refs.fwcs_sjfw_fhcs.getTableData(); let responseData = this.$refs.fwcs_sjfw_fhcs.getTableData();
this.requestRules = 0; this.requestRules = 0;
...@@ -692,8 +699,8 @@ export default { ...@@ -692,8 +699,8 @@ export default {
this.$message.error("请完善返回参数信息中的字段名称"); this.$message.error("请完善返回参数信息中的字段名称");
} }
} else { } else {
this.request_fields = requestData; this.request_fields = [];
this.response_fields = responseData; this.response_fields = [];
this.jcxxtx = true; this.jcxxtx = true;
this.getOrganization(); this.getOrganization();
} }
...@@ -758,7 +765,9 @@ export default { ...@@ -758,7 +765,9 @@ export default {
descript: this.form.desc, descript: this.form.desc,
data_service_type1: this.btnList[this.activeBtn].id, data_service_type1: this.btnList[this.activeBtn].id,
data_service_type2: data_service_type2:
this.activeBtn == 1 this.activeBtn == 0
? 12
: this.activeBtn == 1
? this.skfwQqt ? this.skfwQqt
: this.activeBtn == 4 : this.activeBtn == 4
? this.zhyyVal ? this.zhyyVal
...@@ -837,6 +846,7 @@ export default { ...@@ -837,6 +846,7 @@ export default {
if (response.data.success == 1) { if (response.data.success == 1) {
this.btnList = response.data.data; this.btnList = response.data.data;
this.skfwRadios = this.btnList[1].childDomains; this.skfwRadios = this.btnList[1].childDomains;
this.skfwQqt = this.skfwRadios[0].id;
this.activeBtn = 0; this.activeBtn = 0;
} else { } else {
console.log(response.data.errMsg); console.log(response.data.errMsg);
......
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