|
@@ -11,6 +11,7 @@ import infoPic from "../../common/images/info-pic.png";
|
|
|
import chronicPic from "../../common/images/chronic.png";
|
|
|
import level1 from "../../common/images/级别1.png";
|
|
|
import close from "../../common/images/close-icon.png";
|
|
|
+import printIcon from '@common/images/team.png';
|
|
|
import DetailsModal from './DetailsModal';
|
|
|
import PushDiag from "./PushDiag";
|
|
|
import DiagnosticItem from "@containers/DiagnosticItem";
|
|
@@ -19,8 +20,8 @@ import { getWindowInnerHeight } from "@common/js/func";
|
|
|
import {addLabel} from '@store/actions/inspect';
|
|
|
import {addAssistLabel} from '@store/actions/assistCheck';
|
|
|
import {windowEventHandler} from '@utils/tools'
|
|
|
-import {ConfirmModal} from '@commonComp';
|
|
|
-import $ from 'jquery';
|
|
|
+import {ConfirmModal,ComplexModal} from '@commonComp';
|
|
|
+import AssessResult from '../AssessResult';
|
|
|
import mocks from '../../mock/chronicTable.js'
|
|
|
|
|
|
class PushItems extends Component {
|
|
@@ -33,7 +34,8 @@ class PushItems extends Component {
|
|
|
show:true,
|
|
|
showInfo:false,
|
|
|
showOption:false,
|
|
|
- showTable:false
|
|
|
+ showTable:false,
|
|
|
+ showAssess:false //评估弹窗
|
|
|
};
|
|
|
|
|
|
this.showMore = this.showMore.bind(this);
|
|
@@ -52,6 +54,7 @@ class PushItems extends Component {
|
|
|
this.closeOption = this.closeOption.bind(this);
|
|
|
this.showTable = this.showTable.bind(this);//显示量表弹窗
|
|
|
this.closeTable = this.closeTable.bind(this);//关闭量表弹窗
|
|
|
+ this.showAssessFn = this.showAssessFn.bind(this); //开关评估弹窗
|
|
|
this.$cont = React.createRef();
|
|
|
}
|
|
|
|
|
@@ -62,7 +65,11 @@ class PushItems extends Component {
|
|
|
closeMore(type) {
|
|
|
this.setState({ [type]: false });
|
|
|
}
|
|
|
-
|
|
|
+ showAssessFn(){
|
|
|
+ this.setState({
|
|
|
+ showAssess:!this.state.showAssess
|
|
|
+ });
|
|
|
+ }
|
|
|
getCurrentDate(){
|
|
|
let myDate = new Date();
|
|
|
let year = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
|
|
@@ -168,9 +175,6 @@ class PushItems extends Component {
|
|
|
const {hideList} = this.props;
|
|
|
hideList&&hideList();
|
|
|
}
|
|
|
- showManage(){//管理和评估
|
|
|
- console.log("点击了管理和评估");
|
|
|
- }
|
|
|
showInfo(){//显示静态知识
|
|
|
this.setState({
|
|
|
showInfo:true
|
|
@@ -216,7 +220,7 @@ class PushItems extends Component {
|
|
|
<span
|
|
|
className={style["tipsDetails"]}
|
|
|
style={{width:'70px'}}
|
|
|
- onClick={() => this.showManage()}
|
|
|
+ onClick={this.showAssessFn}
|
|
|
>
|
|
|
管理和评估
|
|
|
</span>
|
|
@@ -318,8 +322,12 @@ class PushItems extends Component {
|
|
|
tipsDetails,
|
|
|
tmpFlg,
|
|
|
} = this.props.pushMessage;
|
|
|
+ const footer = <div className={style['footer']}>
|
|
|
+ <span className={style['print']}><img src={printIcon} alt=""/>打印</span>
|
|
|
+ <span className={style['okBtn']}>确定</span>
|
|
|
+ </div>;
|
|
|
const { tipsDiscalimer,tableList ,showList,chronicMagItem} = this.props;
|
|
|
- const { moreAssay, moreCheck ,show,showTable} = this.state;
|
|
|
+ const { moreAssay, moreCheck ,show,showTable,showAssess} = this.state;
|
|
|
const {
|
|
|
showMore,
|
|
|
closeMore,
|
|
@@ -707,6 +715,10 @@ class PushItems extends Component {
|
|
|
<span className={style["confirmBtn"]}>确定</span>
|
|
|
</div>
|
|
|
</ConfirmModal>
|
|
|
+ {showAssess?<ComplexModal onclose={this.showAssessFn} footer={footer}
|
|
|
+ title='管理和评估'>
|
|
|
+ <AssessResult></AssessResult>
|
|
|
+ </ComplexModal>:''}
|
|
|
</div>
|
|
|
);
|
|
|
}
|