提交 de389925 authored 作者: 钟是志's avatar 钟是志

一站式应用授权 页面开发

上级 67669f61
...@@ -97,9 +97,6 @@ export default class AppTypeTree extends Component { ...@@ -97,9 +97,6 @@ export default class AppTypeTree extends Component {
this.handleChange({ this.handleChange({
selectKey: treeListData[0].id + '', selectKey: treeListData[0].id + '',
}); });
this.handleChange({
selectKey: treeListData[0].id + '',
});
this.setState({ this.setState({
treeListData, treeListData,
loading: false, loading: false,
......
...@@ -40,6 +40,10 @@ const Index = (WrappedComponent) => ...@@ -40,6 +40,10 @@ const Index = (WrappedComponent) =>
changeSearch = (search) => { changeSearch = (search) => {
this.setState({ this.setState({
search, search,
}, () => {
if (search && search.selectKey) {
this.instanceComponent.getPage();
}
}); });
}; };
......
...@@ -57,15 +57,8 @@ const handleButton = (props) => { ...@@ -57,15 +57,8 @@ const handleButton = (props) => {
message.warning('请先选择一个应用'); message.warning('请先选择一个应用');
return false; return false;
} }
const deleteIds = []; const deleteIds = selectRows.map(x => x.authId);
for (let item of selectRows) { deleteData(deleteIds.join(',')).then((x) => {
for (let x of props.authorizedApp) {
if (x.appId === item.id) {
deleteIds.push(x.id);
}
}
}
deleteData(deleteIds).then((x) => {
if (x) { if (x) {
getPage(); getPage();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论