88 lines
2.2 KiB
JavaScript
88 lines
2.2 KiB
JavaScript
import React from 'react';
|
|
import {observer, inject} from 'mobx-react';
|
|
import bind from 'bind-decorator';
|
|
import {
|
|
Card,
|
|
CardActions,
|
|
CardHeader,
|
|
CardMedia,
|
|
CardTitle,
|
|
AutoComplete,
|
|
CardText,
|
|
FlatButton,
|
|
Divider,
|
|
RaisedButton,
|
|
Toolbar,
|
|
DatePicker,
|
|
FontIcon,
|
|
SelectField,
|
|
MenuItem,
|
|
ToolbarGroup,
|
|
FloatingActionButton,
|
|
ToolbarSeparator,
|
|
IconButton,
|
|
ToolbarTitle,
|
|
Table,
|
|
TableBody,
|
|
TableHeader,
|
|
TableHeaderColumn,
|
|
TableRow,
|
|
TableRowColumn,
|
|
TextField,
|
|
Paper,
|
|
RadioButton,
|
|
RadioButtonGroup,
|
|
DropDownMenu,
|
|
Dialog,
|
|
Tab, Tabs
|
|
} from 'material-ui';
|
|
import {withRouter} from 'react-router';
|
|
import {BrowserRouter as Router, Route} from 'react-router-dom';
|
|
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
|
|
import ContentAdd from 'material-ui/svg-icons/content/add';
|
|
import SwipeableViews from 'react-swipeable-views';
|
|
import SearchIcon from 'material-ui/svg-icons/action/search';
|
|
import AddIcon from 'material-ui/svg-icons/content/add';
|
|
import DeleteIcon from 'material-ui/svg-icons/content/delete-sweep';
|
|
import ImageEdit from 'material-ui/svg-icons/image/edit';
|
|
import EmptyComponent from '../../EmptyComponent';
|
|
import LoadingDialog from "../../LoadingDialog";
|
|
import Loader from 'react-loader-advanced';
|
|
import {appConfig} from "../../../config/app";
|
|
import {Link} from 'react-router-dom';
|
|
import {LINKS} from "../../../routes";
|
|
import moment from 'moment';
|
|
import {DIALOG} from "../../../stores/global_ui";
|
|
import FormItems from './FormItems';
|
|
|
|
@inject('appstate')
|
|
@observer
|
|
export default class FormItemAdmin extends React.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
this.props = props;
|
|
this.state = {
|
|
value: 0,
|
|
edit : false,
|
|
defaultValue : {}
|
|
};
|
|
this.defaultState = Object.assign({}, this.state);
|
|
this.http = props.appstate.http;
|
|
this.authStore = props.appstate.auth;
|
|
this.uiStore = props.appstate.uiStore;
|
|
this.globalUI = props.appstate.globalUI;
|
|
this.storeListStore = props.appstate.storeList;
|
|
}
|
|
|
|
componentDidMount() {
|
|
console.log('ini detail form',this.props.match.params.id)
|
|
}
|
|
|
|
render() {
|
|
|
|
return (
|
|
<FormItems id={this.props.match.params.id} history={this.props.history}/>
|
|
)
|
|
}
|
|
}
|