Skip to content

Commit

Permalink
Merge pull request #1201 from justlive1/master
Browse files Browse the repository at this point in the history
修复服务详情页面集群列表获取只获取groupName=DEFAULT_GROUP的数据
  • Loading branch information
loadchange authored May 14, 2019
2 parents 80dd3bd + fd32726 commit 8639759
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ class InstanceTable extends React.Component {
}

getInstanceList() {
const { clusterName, serviceName } = this.props;
const { clusterName, serviceName, groupName } = this.props;
if (!clusterName) return;
const { pageSize, pageNum } = this.state;
request({
url: 'v1/ns/catalog/instances',
data: {
serviceName,
clusterName,
groupName,
pageSize,
pageNo: pageNum,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class ServiceDetail extends React.Component {

render() {
const { locale = {} } = this.props;
const { serviceName, loading, service = {}, clusters } = this.state;
const { serviceName, groupName, loading, service = {}, clusters } = this.state;
const { metadata = {}, selector = {} } = service;
const metadataText = processMetaData(METADATA_ENTER)(metadata);
return (
Expand Down Expand Up @@ -169,7 +169,11 @@ class ServiceDetail extends React.Component {
</Button>
}
>
<InstanceTable clusterName={cluster.name} serviceName={serviceName} />
<InstanceTable
clusterName={cluster.name}
serviceName={serviceName}
groupName={groupName}
/>
</Card>
))}
</Loading>
Expand Down
2 changes: 1 addition & 1 deletion console/src/main/resources/static/css/main.css

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions console/src/main/resources/static/js/main.js

Large diffs are not rendered by default.

0 comments on commit 8639759

Please sign in to comment.