Skip to content

Commit

Permalink
Merge pull request #241 from WeBankPartners/dev
Browse files Browse the repository at this point in the history
Update router-plugin.js
  • Loading branch information
pobu168 authored Nov 20, 2019
2 parents 33bb704 + 8ed5550 commit cddb537
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
v-model="endpointID"
filterable
remote
clearable
:remote-method="getEndpointList"
>
<Option v-for="(option, index) in endpointOptions" :value="option.id" :key="index">
Expand Down Expand Up @@ -216,7 +217,7 @@ export default {
getEndpointList (query) {
const params = {type: this.type,search: query}
this.$root.$httpRequestEntrance.httpRequestEntrance('GET', this.$root.apiCenter.resourceSearch.strategyApi, params, (responseData) => {
this.endpointOptions = responseData.filter(item => item.option_value.split(':')[1] === 'host')
this.endpointOptions = this.type === 'endpoint'? responseData.filter(item => item.option_value.split(':')[1] === 'host'):responseData
})
},
requestData (type, id) {
Expand Down
8 changes: 4 additions & 4 deletions monitor-ui/src/router-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,28 @@ const router = [
redirect: "/monitorConfigIndex/endpointManagement",
children: [
{
path: "/endpointManagement",
path: "endpointManagement",
name: "endpointManagement",
title: "对象管理",
meta: {},
component: endpointManagement
},
{
path: "/groupManagement",
path: "groupManagement",
name: "groupManagement",
title: "组管理",
meta: {},
component: groupManagement
},
{
path: "/thresholdManagement",
path: "thresholdManagement",
name: "thresholdManagement",
title: "阀值配置",
meta: {},
component: thresholdManagement
},
{
path: "/logManagement",
path: "logManagement",
name: "logManagement",
title: "阀值配置",
meta: {},
Expand Down

0 comments on commit cddb537

Please sign in to comment.