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

一站式应用授权 页面开发

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