|
@@ -1,55 +1,55 @@
|
|
import React from 'react';
|
|
import React from 'react';
|
|
-import { SearchOption, Calendar ,ConfirmModal,Notify,Add} from '@commonComp';
|
|
|
|
|
|
+import { SearchOption, Calendar, ConfirmModal, Notify, Add } from '@commonComp';
|
|
import styles from './index.less';
|
|
import styles from './index.less';
|
|
import $ from 'jquery';
|
|
import $ from 'jquery';
|
|
import Textarea from './Textarea';
|
|
import Textarea from './Textarea';
|
|
import close from './img/close.png';
|
|
import close from './img/close.png';
|
|
|
|
|
|
class AddAssistCheck extends React.Component {
|
|
class AddAssistCheck extends React.Component {
|
|
- constructor(props) {
|
|
|
|
- super(props);
|
|
|
|
- this.state = {
|
|
|
|
- show: false,
|
|
|
|
- date: false,
|
|
|
|
- dateTime:"",
|
|
|
|
- active:'',
|
|
|
|
- visible:false,
|
|
|
|
- id:null
|
|
|
|
- }
|
|
|
|
- this.handleShowDate = this.handleShowDate.bind(this)
|
|
|
|
- this.getCurrentDate = this.getCurrentDate.bind(this)
|
|
|
|
- this.getSearchList = this.getSearchList.bind(this)
|
|
|
|
- this.getAssistLabel = this.getAssistLabel.bind(this)
|
|
|
|
- this.handleDelClick = this.handleDelClick.bind(this)
|
|
|
|
- this.delConfirm = this.delConfirm.bind(this)
|
|
|
|
- this.handleCancel = this.handleCancel.bind(this)
|
|
|
|
|
|
+ constructor(props) {
|
|
|
|
+ super(props);
|
|
|
|
+ this.state = {
|
|
|
|
+ show: false,
|
|
|
|
+ date: false,
|
|
|
|
+ dateTime: "",
|
|
|
|
+ active: '',
|
|
|
|
+ visible: false,
|
|
|
|
+ id: null
|
|
}
|
|
}
|
|
|
|
+ this.handleShowDate = this.handleShowDate.bind(this)
|
|
|
|
+ this.getCurrentDate = this.getCurrentDate.bind(this)
|
|
|
|
+ this.getSearchList = this.getSearchList.bind(this)
|
|
|
|
+ this.getAssistLabel = this.getAssistLabel.bind(this)
|
|
|
|
+ this.handleDelClick = this.handleDelClick.bind(this)
|
|
|
|
+ this.delConfirm = this.delConfirm.bind(this)
|
|
|
|
+ this.handleCancel = this.handleCancel.bind(this)
|
|
|
|
+ }
|
|
|
|
|
|
- handleDelClick(id){
|
|
|
|
- this.setState({
|
|
|
|
- visible:true,
|
|
|
|
- id:id
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ handleDelClick(id) {
|
|
|
|
+ this.setState({
|
|
|
|
+ visible: true,
|
|
|
|
+ id: id
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
|
|
- delConfirm(){
|
|
|
|
- const {handleDelAssist,handlePush} = this.props;
|
|
|
|
- const {id} = this.state;
|
|
|
|
- handleDelAssist&&handleDelAssist(id);
|
|
|
|
- handlePush&&handlePush(); //右侧推送
|
|
|
|
- this.setState({
|
|
|
|
- visible:false,
|
|
|
|
- id:null
|
|
|
|
- })
|
|
|
|
- Notify.success("删除成功");
|
|
|
|
- }
|
|
|
|
|
|
+ delConfirm() {
|
|
|
|
+ const { handleDelAssist, handlePush } = this.props;
|
|
|
|
+ const { id } = this.state;
|
|
|
|
+ handleDelAssist && handleDelAssist(id);
|
|
|
|
+ handlePush && handlePush(); //右侧推送
|
|
|
|
+ this.setState({
|
|
|
|
+ visible: false,
|
|
|
|
+ id: null
|
|
|
|
+ })
|
|
|
|
+ Notify.success("删除成功");
|
|
|
|
+ }
|
|
|
|
|
|
- handleCancel(){
|
|
|
|
- this.setState({
|
|
|
|
- visible:false,
|
|
|
|
- id:null
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ handleCancel() {
|
|
|
|
+ this.setState({
|
|
|
|
+ visible: false,
|
|
|
|
+ id: null
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
|
|
componentDidMount() {
|
|
componentDidMount() {
|
|
$(document).click((event) => {
|
|
$(document).click((event) => {
|