|
|
@ -16,7 +16,7 @@
|
|
|
|
* under the License.
|
|
|
|
* under the License.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
import React from "react";
|
|
|
|
import React from "react";
|
|
|
|
import {Modal, Tabs} from "antd";
|
|
|
|
import {Modal, Spin, Tabs} from "antd";
|
|
|
|
import DeviceUninstall from "./DeviceUninstall";
|
|
|
|
import DeviceUninstall from "./DeviceUninstall";
|
|
|
|
import UserUninstall from "./UserUninstall";
|
|
|
|
import UserUninstall from "./UserUninstall";
|
|
|
|
import RoleUninstall from "./RoleUninstall";
|
|
|
|
import RoleUninstall from "./RoleUninstall";
|
|
|
@ -28,6 +28,7 @@ class AppUninstallModal extends React.Component{
|
|
|
|
state = {
|
|
|
|
state = {
|
|
|
|
data: []
|
|
|
|
data: []
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const {deviceType} = this.props;
|
|
|
|
const {deviceType} = this.props;
|
|
|
|
return (
|
|
|
|
return (
|
|
|
@ -36,11 +37,12 @@ class AppUninstallModal extends React.Component{
|
|
|
|
title="Uninstall App"
|
|
|
|
title="Uninstall 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">
|
|
|
|
<DeviceUninstall deviceType={deviceType} onUninstall={this.props.onUninstall} uuid={this.props.uuid}/>
|
|
|
|
<DeviceUninstall deviceType={deviceType} onUninstall={this.props.onUninstall}
|
|
|
|
|
|
|
|
uuid={this.props.uuid}/>
|
|
|
|
</TabPane>
|
|
|
|
</TabPane>
|
|
|
|
<TabPane tab="User" key="user">
|
|
|
|
<TabPane tab="User" key="user">
|
|
|
|
<UserUninstall onUninstall={this.props.onUninstall} uuid={this.props.uuid}/>
|
|
|
|
<UserUninstall onUninstall={this.props.onUninstall} uuid={this.props.uuid}/>
|
|
|
@ -52,6 +54,7 @@ class AppUninstallModal extends React.Component{
|
|
|
|
<GroupUninstall onUninstall={this.props.onUninstall} uuid={this.props.uuid}/>
|
|
|
|
<GroupUninstall onUninstall={this.props.onUninstall} uuid={this.props.uuid}/>
|
|
|
|
</TabPane>
|
|
|
|
</TabPane>
|
|
|
|
</Tabs>
|
|
|
|
</Tabs>
|
|
|
|
|
|
|
|
</Spin>
|
|
|
|
</Modal>
|
|
|
|
</Modal>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|