fix FE
This commit is contained in:
parent
ce222f199f
commit
b10402a6a8
@ -58,7 +58,7 @@ class ServiceList extends React.Component {
|
|||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
keyword: '',
|
keyword: '',
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
withInstances: true,
|
hasIpCount: true,
|
||||||
};
|
};
|
||||||
this.field = new Field(this);
|
this.field = new Field(this);
|
||||||
}
|
}
|
||||||
@ -78,8 +78,9 @@ class ServiceList extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
queryServiceList() {
|
queryServiceList() {
|
||||||
const { currentPage, pageSize, keyword, withInstances } = this.state;
|
const { currentPage, pageSize, keyword, withInstances = false, hasIpCount } = this.state;
|
||||||
const parameter = [
|
const parameter = [
|
||||||
|
`hasIpCount=${hasIpCount}`,
|
||||||
`withInstances=${withInstances}`,
|
`withInstances=${withInstances}`,
|
||||||
`pageNo=${currentPage}`,
|
`pageNo=${currentPage}`,
|
||||||
`pageSize=${pageSize}`,
|
`pageSize=${pageSize}`,
|
||||||
@ -171,7 +172,13 @@ class ServiceList extends React.Component {
|
|||||||
sampleCode,
|
sampleCode,
|
||||||
deleteAction,
|
deleteAction,
|
||||||
} = locale;
|
} = locale;
|
||||||
const { keyword, nowNamespaceName, nowNamespaceId, withInstances = false } = this.state;
|
const {
|
||||||
|
keyword,
|
||||||
|
nowNamespaceName,
|
||||||
|
nowNamespaceId,
|
||||||
|
withInstances = false,
|
||||||
|
hasIpCount,
|
||||||
|
} = this.state;
|
||||||
const { init, getValue } = this.field;
|
const { init, getValue } = this.field;
|
||||||
this.init = init;
|
this.init = init;
|
||||||
this.getValue = getValue;
|
this.getValue = getValue;
|
||||||
@ -222,11 +229,9 @@ class ServiceList extends React.Component {
|
|||||||
</FormItem>
|
</FormItem>
|
||||||
<Form.Item label={`${hiddenEmptyService}:`}>
|
<Form.Item label={`${hiddenEmptyService}:`}>
|
||||||
<Switch
|
<Switch
|
||||||
checked={withInstances}
|
checked={hasIpCount}
|
||||||
onChange={withInstances =>
|
onChange={hasIpCount =>
|
||||||
this.setState({ withInstances, currentPage: 1 }, () =>
|
this.setState({ hasIpCount, currentPage: 1 }, () => this.queryServiceList())
|
||||||
this.queryServiceList()
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
Loading…
Reference in New Issue
Block a user