dsf
This commit is contained in:
parent
9d920efbde
commit
e7aa727977
|
@ -77,19 +77,31 @@ export class WaitForAuth extends React.Component<any, any> {
|
|||
open: false,
|
||||
};
|
||||
|
||||
handleCellClick = (e: any, idx: number) => {
|
||||
console.log(e)
|
||||
this.setState({open:true})
|
||||
}
|
||||
sselectedRows: number[] | string;
|
||||
|
||||
// handleCellClick = (e: any, idx: number) => {
|
||||
// console.log(e)
|
||||
// }
|
||||
|
||||
handleRowSelected = (selectedRows: number[] | string) => {
|
||||
// console.log(selectedRows)
|
||||
// this.setState({ open: true })
|
||||
this.sselectedRows = selectedRows;
|
||||
}
|
||||
|
||||
handleClose = () => {
|
||||
this.setState({ open: false });
|
||||
};
|
||||
|
||||
handleOpenDialog = () => {
|
||||
this.setState({ open: true })
|
||||
// console.log(this.sselectedRows)
|
||||
}
|
||||
|
||||
handleSubmit = () => {
|
||||
console.log("Agent Auth Service Request: " + this.sselectedRows)
|
||||
}
|
||||
|
||||
render() {
|
||||
const actions = [
|
||||
<FlatButton
|
||||
|
@ -100,8 +112,8 @@ export class WaitForAuth extends React.Component<any, any> {
|
|||
<FlatButton
|
||||
label="Submit"
|
||||
primary={true}
|
||||
disabled={true}
|
||||
onTouchTap={this.handleClose}
|
||||
disabled={false}
|
||||
onTouchTap={this.handleSubmit}
|
||||
/>,
|
||||
]
|
||||
return (
|
||||
|
@ -110,7 +122,7 @@ export class WaitForAuth extends React.Component<any, any> {
|
|||
<Table
|
||||
selectable={this.state.selectable}
|
||||
multiSelectable={this.state.multiSelectable}
|
||||
onCellClick={this.handleCellClick}
|
||||
/*onCellClick={this.handleCellClick}*/
|
||||
onRowSelection={this.handleRowSelected}
|
||||
>
|
||||
<TableHeader
|
||||
|
@ -147,12 +159,26 @@ export class WaitForAuth extends React.Component<any, any> {
|
|||
actions={actions}
|
||||
modal={true}
|
||||
open={this.state.open} >
|
||||
Agent를 인증하시겠습니까?
|
||||
선택한 Agent를 인증하시겠습니까?
|
||||
</Dialog >
|
||||
</TableFooter>
|
||||
</Table>
|
||||
<FlatButton
|
||||
style={{float:'right'}}
|
||||
label="Submit"
|
||||
primary={true}
|
||||
onTouchTap={this.handleOpenDialog}
|
||||
/>
|
||||
<FlatButton
|
||||
style={{float:'right' }}
|
||||
label="Cancel"
|
||||
primary={true}
|
||||
onTouchTap={this.handleClose}
|
||||
/>
|
||||
</div>
|
||||
</MuiThemeProvider>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user