|
|
|
@ -17,18 +17,19 @@
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import React from "react";
|
|
|
|
|
import {Modal, Tabs} from "antd";
|
|
|
|
|
import {Modal, Spin, Tabs} from "antd";
|
|
|
|
|
import UserInstall from "./UserInstall";
|
|
|
|
|
import GroupInstall from "./GroupInstall";
|
|
|
|
|
import RoleInstall from "./RoleInstall";
|
|
|
|
|
import DeviceInstall from "./DeviceInstall";
|
|
|
|
|
|
|
|
|
|
const { TabPane } = Tabs;
|
|
|
|
|
const {TabPane} = Tabs;
|
|
|
|
|
|
|
|
|
|
class AppInstallModal extends React.Component{
|
|
|
|
|
state={
|
|
|
|
|
data:[]
|
|
|
|
|
class AppInstallModal extends React.Component {
|
|
|
|
|
state = {
|
|
|
|
|
data: []
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
const {deviceType} = this.props;
|
|
|
|
|
return (
|
|
|
|
@ -37,22 +38,23 @@ class AppInstallModal extends React.Component{
|
|
|
|
|
title="Install App"
|
|
|
|
|
visible={this.props.visible}
|
|
|
|
|
onCancel={this.props.onClose}
|
|
|
|
|
footer={null}
|
|
|
|
|
>
|
|
|
|
|
<Tabs defaultActiveKey="device">
|
|
|
|
|
<TabPane tab="Device" key="device">
|
|
|
|
|
<DeviceInstall deviceType={deviceType} onInstall={this.props.onInstall}/>
|
|
|
|
|
</TabPane>
|
|
|
|
|
<TabPane tab="User" key="user">
|
|
|
|
|
<UserInstall onInstall={this.props.onInstall}/>
|
|
|
|
|
</TabPane>
|
|
|
|
|
<TabPane tab="Role" key="role">
|
|
|
|
|
<RoleInstall onInstall={this.props.onInstall}/>
|
|
|
|
|
</TabPane>
|
|
|
|
|
<TabPane tab="Group" key="group">
|
|
|
|
|
<GroupInstall onInstall={this.props.onInstall}/>
|
|
|
|
|
</TabPane>
|
|
|
|
|
</Tabs>
|
|
|
|
|
footer={null}>
|
|
|
|
|
<Spin spinning={this.props.loading}>
|
|
|
|
|
<Tabs defaultActiveKey="device">
|
|
|
|
|
<TabPane tab="Device" key="device">
|
|
|
|
|
<DeviceInstall deviceType={deviceType} onInstall={this.props.onInstall}/>
|
|
|
|
|
</TabPane>
|
|
|
|
|
<TabPane tab="User" key="user">
|
|
|
|
|
<UserInstall onInstall={this.props.onInstall}/>
|
|
|
|
|
</TabPane>
|
|
|
|
|
<TabPane tab="Role" key="role">
|
|
|
|
|
<RoleInstall onInstall={this.props.onInstall}/>
|
|
|
|
|
</TabPane>
|
|
|
|
|
<TabPane tab="Group" key="group">
|
|
|
|
|
<GroupInstall onInstall={this.props.onInstall}/>
|
|
|
|
|
</TabPane>
|
|
|
|
|
</Tabs>
|
|
|
|
|
</Spin>
|
|
|
|
|
</Modal>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|