Commit 08126ed0 authored by 刘殿昕's avatar 刘殿昕

优化tab切换,修改menu冒泡

parent 7e6a4e6e
......@@ -76,7 +76,7 @@
<div
v-for="(v, index) in item.children"
:key="index + 700"
@click="gotoChildPage(v)"
@click.stop="gotoChildPage(v)"
>
{{ v.name }}
</div>
......@@ -203,6 +203,7 @@ export default {
this.now_menu = index;
},
gotoChildPage(v) {
console.log(v)
if (v.path) {
this.$router.push(v.path);
}
......
......@@ -30,7 +30,7 @@
</div>
<div class="fwcs_fwdz">服务地址:</div>
<div class="fwcs_fwdz_inner">
<el-input placeholder="请输入内容" v-model="input3" class="input-with-select">
<el-input placeholder="请输入内容" v-model="serviceUrl" class="input-with-select">
<el-select v-model="select" slot="prepend" placeholder="请选择">
<el-option
v-for="item in optionType"
......@@ -270,7 +270,7 @@ export default {
{ icon: "", text: "综合服务", id: 4 }
],
activeBtn: 0,
input3: "",
serviceUrl: "",
select: "GET",
optionType: [
{ label: "GET", value: "GET" },
......@@ -465,6 +465,8 @@ export default {
clickBtn(val) {
this.resultShow = false;
this.activeBtn = val;
this.select = "GET";
this.serviceUrl = "";
},
clickFwcs() {
this.resultShow = true;
......@@ -500,7 +502,7 @@ export default {
let url = `/apaas/service/v3/service/manager/test`;
let query = {
method: this.select,
url: this.input3,
url: this.serviceUrl,
headers: headers,
params: requestData,
body: this.$refs.jsonCodes.getCodesVal()
......@@ -510,9 +512,9 @@ export default {
.then(response => {
if (response.data.success == 1) {
let data = response.data.data;
if (this.activeName == 1) {
if (this.activeBtn == 0 && this.activeName == 1) {
this.datasQqcs = data.body_fields;
} else {
} else if (this.activeBtn == 0) {
this.datasQqcs = data.param_fields;
}
this.datasFhcs = data.response_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