From a3406a0ec53953769aff0b7e7a9571cebbfc4012 Mon Sep 17 00:00:00 2001 From: LoadChange Date: Thu, 14 Mar 2019 21:04:50 +0800 Subject: [PATCH] fix: add serviceDetail groupName --- .../ServiceManagement/ServiceDetail/ServiceDetail.js | 5 +++-- .../pages/ServiceManagement/ServiceList/ServiceList.js | 4 +++- console/src/main/resources/static/js/main.js | 8 ++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/ServiceDetail.js b/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/ServiceDetail.js index 693fd4c62..06e3f277f 100644 --- a/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/ServiceDetail.js +++ b/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceDetail/ServiceDetail.js @@ -45,6 +45,7 @@ class ServiceDetail extends React.Component { this.editClusterDialog = React.createRef(); this.state = { serviceName: getParameter(props.location.search, 'name'), + groupName: getParameter(props.location.search, 'groupName'), loading: false, currentPage: 1, clusters: [], @@ -64,9 +65,9 @@ class ServiceDetail extends React.Component { } getServiceDetail() { - const { serviceName } = this.state; + const { serviceName, groupName } = this.state; request({ - url: `v1/ns/catalog/service?serviceName=${serviceName}`, + url: `v1/ns/catalog/service?serviceName=${serviceName}&groupName=${groupName}`, beforeSend: () => this.openLoading(), success: ({ clusters = [], service = {} }) => this.setState({ service, clusters }), error: e => Message.error(e.responseText || 'error'), diff --git a/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceList/ServiceList.js b/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceList/ServiceList.js index 9bacc3b57..ab7fffe09 100644 --- a/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceList/ServiceList.js +++ b/console/src/main/resources/static/console-fe/src/pages/ServiceManagement/ServiceList/ServiceList.js @@ -231,7 +231,9 @@ class ServiceList extends React.Component {