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