index.jsx 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. import React from 'react';
  2. import style from './index.less';
  3. import chronicPic from "../../common/images/chronic.png";
  4. import level1 from "../../common/images/级别1.png";
  5. import tableIcon from '@common/images/table.png';
  6. import allTableIcon from '@common/images/all-table.png';
  7. import checkIcon from '@common/images/check.png';
  8. import up from '@common/images/slide-up.png';
  9. import down from '@common/images/slide-down.png';
  10. import {ComplexModal,ConfirmModal,MiniToast, Radio,CheckBtn,Footer,Notify} from '@commonComp';
  11. import infoShow from '@common/images/info-show.png';
  12. import infoMove from '@common/images/info-move.png';
  13. import ScaleTable from '@containers/ScaleTable';
  14. import {deepClone} from '@utils/tools';
  15. import className from 'classnames';
  16. import $ from 'jquery';
  17. import config from '@config/index';
  18. /***
  19. 慢病右侧推送模块规则:
  20. 慢病--显示慢病名称以及管理和评估
  21. 普通病--不显示管理和评估和量表按钮
  22. 明细--量表-计算公式-核心指标
  23. controlType:0-radio 1-checkbox 2-text 3-dropdownlist
  24. **/
  25. class ChronicInfo extends React.Component{
  26. constructor(props){
  27. super(props);
  28. this.state = {
  29. show:true,
  30. showInfo:false,
  31. showOption:false,
  32. showAssess:false, //评估弹窗
  33. infoId:null, //静态知识
  34. formulaId:null, //计算公式
  35. optionId:null, //可能结果,
  36. isAssessConfirm:false, //是否点击评估弹窗确定按钮
  37. radioVal:{}, //可能结果选择内容
  38. possible:{}, //可能结果
  39. formulaParam: {}, //量表计算公式计算入参
  40. isCalculated:false, //是否刚计算过,关闭时值与结果对应
  41. calcuValues:deepClone(props.calcuValues), //计算公式填的值
  42. hasEnterImg: false, //是否移入info
  43. currentIndex: -1, //当前index
  44. comfirnFlag:false,
  45. flag:true,
  46. ff:false,
  47. timer:null,
  48. scaleParam:{}, //加入病例需要的参数
  49. };
  50. this.$result = React.createRef();
  51. this.$content = React.createRef();
  52. this.showInfo = this.showInfo.bind(this);
  53. this.closeInfo = this.closeInfo.bind(this);
  54. this.showOption = this.showOption.bind(this);
  55. this.closeOption = this.closeOption.bind(this);
  56. this.showTable = this.showTable.bind(this);//显示量表弹窗
  57. this.closeTable = this.closeTable.bind(this);//关闭量表弹窗
  58. this.showFormula = this.showFormula.bind(this); //打开计算公式
  59. this.handleAddAssessItem = this.handleAddAssessItem.bind(this); //加入病例记录
  60. this.onPrint = this.onPrint.bind(this);
  61. this.handleForRadio = this.handleForRadio.bind(this);
  62. this.handleSaveCalcu = this.handleSaveCalcu.bind(this); //保存评估修改的计算和可能结果
  63. this.slideToggle = this.slideToggle.bind(this);
  64. this.resetComfirnFlag = this.resetComfirnFlag.bind(this);
  65. this.slideToggle = this.slideToggle.bind(this);
  66. this.comfirnTable = this.comfirnTable.bind(this);
  67. this.unscroeClose = this.unscroeClose.bind(this);
  68. }
  69. onPrint() {
  70. const {showHide} = this.props;
  71. let dom = showHide&&showHide.showTable?$("#printcontent"):$("#AssistResult");
  72. dom.jqprint({
  73. debug: false,
  74. importCSS: true,
  75. printContainer: true,
  76. operaSupport: false,
  77. });
  78. }
  79. showInfo(item){
  80. // 静态知识显示在提示信息里(4-18)
  81. const {getInfomation} = this.props;
  82. const param = {
  83. id:item.id,
  84. name: item.name,
  85. // id:40738, //目前只有“肾功能不全”有数据
  86. type:22,
  87. position: 1
  88. }
  89. getInfomation&&getInfomation(param);
  90. }
  91. closeInfo(){//关闭静态知识
  92. this.setState({
  93. infoId:null
  94. })
  95. }
  96. showOption(id){
  97. this.setState({
  98. optionId:id,
  99. formulaId:null //关闭计算公式
  100. });
  101. const {patDom} = this.props;
  102. const ht = $(patDom.current).height();
  103. setTimeout(function(){
  104. $(patDom.current).scrollTop(ht+200);
  105. })
  106. }
  107. closeOption(){
  108. // 关闭-有可能结果则保持与结果一致,没有就保持最新选择的内容
  109. let {possible,radioVal} = this.state;
  110. if(JSON.stringify(possible)=='{}'){
  111. this.setState({
  112. optionId:null
  113. })
  114. }else{
  115. this.setState({
  116. radioVal:Object.assign({},radioVal,possible),
  117. optionId:null,
  118. });
  119. }
  120. }
  121. showTable(it,v,i,j){
  122. const {scaleInfo} = this.props;
  123. // 密西根糖尿病周围神经病评分(MDNS), id:40744
  124. const item = {
  125. conceptId:it.conceptId,
  126. name:it.name
  127. };
  128. // 判断:store里已经有该量表就无需重新调接口
  129. if(scaleInfo&&scaleInfo[it.conceptId]){
  130. this.props.hideList({name:'showTable',value:true},it);
  131. }else{
  132. this.props.getScaleInfo(item);
  133. }
  134. this.setState({
  135. formulaId:null, //关闭计算公式和可能结果弹窗
  136. optionId:null,
  137. scaleParam:{
  138. v,i,j
  139. }
  140. })
  141. }
  142. // 量表明细-关闭,isClose是否是点击关闭按钮
  143. closeTable(isClose){
  144. const {scaleParam} = this.state;
  145. const {showHide} = this.props;
  146. if(!showHide.isPop){
  147. //量表结果,判断需要计算并且dom中有值才能加入病例记录
  148. // innerHTML 兼容FF26
  149. const res = this.$result.current&&(this.$result.current.innerText||this.$result.current.innerHTML);
  150. if(!isClose&&(this.$result.current&&!res)){
  151. Notify.info("请先计算量表结果!");
  152. return ;
  153. }
  154. !isClose&&this.handleAddAssessItem(scaleParam.v,scaleParam.i,scaleParam.j);
  155. this.setState({
  156. scaleParam:{}
  157. });
  158. }
  159. this.props.hideList({name:'showTable',value:false});
  160. }
  161. // 非计分量表确定-延时关闭->量表存值
  162. unscroeClose(){
  163. let {timer} = this.state;
  164. this.setState({
  165. ff:true
  166. })
  167. clearTimeout(timer)
  168. let _timer = setTimeout(()=>{
  169. this.closeTable();
  170. },200)
  171. this.setState({
  172. timer:_timer
  173. })
  174. }
  175. // 量表明细-确定
  176. comfirnTable(){
  177. const {flag} = this.state;
  178. this.setState({
  179. comfirnFlag:true,
  180. flag:!flag //触发更新
  181. })
  182. }
  183. resetComfirnFlag(){
  184. this.setState({
  185. comfirnFlag:false,
  186. ff:false
  187. })
  188. }
  189. showFormula(id){//计算公式
  190. this.setState({
  191. formulaId:id,
  192. optionId:null //关闭可能结果
  193. });
  194. const {patDom} = this.props;
  195. const ht = $(patDom.current).height();
  196. setTimeout(function(){
  197. $(patDom.current).scrollTop(ht+200);
  198. })
  199. }
  200. closeFormula(it){
  201. const {formulaId,isCalculated} =this.state;
  202. if(!isCalculated){
  203. //没有计算结果时,保存输入的值
  204. const {calcuResult,calcuValues} = this.props;
  205. const cres = calcuResult&&calcuResult[formulaId]||it.content.result;
  206. const result = cres&&cres[1]&&cres[1].text;
  207. if(result){
  208. this.setState({
  209. calcuValues:deepClone(calcuValues)
  210. });
  211. }
  212. }
  213. this.setState({
  214. formulaId:null,
  215. });
  216. }
  217. handleAddAssessItem(v,pIndex,i){
  218. const {addAssessItem,showHide,addScaleItems,scaleInfo} = this.props;
  219. if(!v){
  220. addScaleItems(scaleInfo[showHide.conceptId],showHide.conceptId);
  221. return ;
  222. }
  223. addAssessItem(v,pIndex,i);
  224. }
  225. addFormula(it,v,pIndex,i){
  226. const {chronicMagItem, setCalcuInfo} = this.props;
  227. this.closeFormula(it);
  228. const itCopy = deepClone(it)
  229. const vCopy = deepClone(v)
  230. setCalcuInfo && setCalcuInfo(v.conceptId,itCopy.content.details,itCopy.content.result)
  231. chronicMagItem&&this.handleAddAssessItem(vCopy,pIndex,i);
  232. }
  233. handleInputformula(id,calcuContent,i,j,idd,cres,e) {
  234. // const {calcuValues} = this.state;
  235. const {calcuResult,calcuValues,setCalcuInfo,data,setChronicPush} = this.props;
  236. const dataCopy = deepClone(data)
  237. let obj = deepClone(dataCopy[i].details[j].content.details);
  238. let values = deepClone(obj);
  239. const txt = e.target.value;
  240. values[idd].value = txt.replace(/[\u4e00-\u9fa5]|[^\d.]/g,''); //处理中文输入法的情况
  241. if(/[\u4e00-\u9fa5]|[^\d.]/g.test(txt)){
  242. e.target.value = txt.replace(/[\u4e00-\u9fa5]|[^\d.]/g,'');
  243. }
  244. dataCopy[i].details[j].content.details = values
  245. setChronicPush&&setChronicPush(dataCopy)
  246. }
  247. handleForRadio(id,calcuContent,i,fidx){//计算公式
  248. const { calcuValues } = this.state;
  249. let obj = deepClone(calcuValues);
  250. let values = (obj&&obj[id])||deepClone(calcuContent);
  251. let details = values[i].details;
  252. for(let x=0;x<details.length;x++){
  253. if(x!=fidx){
  254. details[x].state=0;
  255. }else{
  256. details[x].state=1;
  257. }
  258. }
  259. obj[id] = values;
  260. this.setState({
  261. isCalculated:false,
  262. calcuValues:obj
  263. });
  264. }
  265. handleRadio(item,parent){//可能结果
  266. let {radioVal} = this.props;
  267. this.setState({
  268. radioVal:Object.assign({},radioVal,{[parent.conceptId]:item.detailName})
  269. })
  270. }
  271. confirmOption(parent,pIndex,i){//可能结果确定
  272. const {radioVal,possible} = this.state;
  273. const {savePossibleResult,chronicMagItem} = this.props;
  274. if(Object.keys(radioVal).length===0){ //初始状态,可能有推荐选项
  275. const defaulted = parent.details[i].content.details.filter((it)=>+it.state===1);
  276. if(defaulted.length>0){
  277. radioVal[parent.conceptId] = defaulted[0].detailName;
  278. }
  279. }
  280. this.setState({
  281. possible:Object.assign({},possible,radioVal),
  282. radioVal:Object.assign({},possible,radioVal),//不设置radioVal只有最近一次选中的值
  283. optionId:null,
  284. });
  285. savePossibleResult&&savePossibleResult({possible:Object.assign({},possible,radioVal),radioVal:Object.assign({},possible,radioVal)})
  286. chronicMagItem&&this.handleAddAssessItem(parent,pIndex,i);
  287. }
  288. handleSaveCalcu(obj){
  289. this.setState({
  290. possible:Object.assign({},obj.possible),
  291. radioVal:Object.assign({},obj.radioVal),//不设置radioVal只有最近一次选中的值
  292. })
  293. }
  294. calcuFormula(id,it,i,j) { //计算公式计算
  295. const {calcuFormula, data } = this.props;
  296. let item = deepClone(it);
  297. const calcuValues = item.content.details
  298. let allHasInfo = true;
  299. for (let i = 0; i < calcuValues.length; i++) {
  300. if(calcuValues[i].controlType == 2) { //输入框类型的有没有填值
  301. if(!calcuValues[i].value) {
  302. allHasInfo = false;
  303. }
  304. } else if(calcuValues[i].controlType == 0) {
  305. let hasSelect = false;
  306. for( let z = 0; z <calcuValues[i].details.length; z++) {
  307. if(calcuValues[i].details[z].state == 1) {
  308. hasSelect= true;
  309. }
  310. }
  311. if(!hasSelect) {
  312. allHasInfo = false;
  313. }
  314. }
  315. }
  316. item.content.details = calcuValues;
  317. if(allHasInfo) { //所有都有值,则计算
  318. let param = {
  319. type: 2,
  320. data: item,
  321. disId: id
  322. };
  323. calcuFormula(param,data,i, j);
  324. this.setState({
  325. isCalculated:true
  326. });
  327. } else { //不是所有值都填过了
  328. Notify.info('请填写计算公式内容')
  329. }
  330. }
  331. handleMouseEnterDrug(index) {
  332. this.setState({
  333. currentIndex: index,
  334. })
  335. }
  336. handleMouseLeaveDrug() {
  337. this.setState({
  338. currentIndex: -1,
  339. })
  340. }
  341. handleMouseEnterImg() {
  342. this.setState({
  343. hasEnterImg: true
  344. })
  345. }
  346. handleMouseLeaveImg() {
  347. this.setState({
  348. hasEnterImg: false
  349. })
  350. }
  351. getCritical(v) {
  352. let hasCritical = false;
  353. if(v.details) {
  354. for (let i = 0; i < v.details.length; i++) {
  355. if(v.details[i].type == 4) {
  356. hasCritical = true
  357. }
  358. }
  359. }
  360. return hasCritical
  361. }
  362. getDetail(){
  363. const {data,formulaResult,calcuResult,chronicMagItem} = this.props;
  364. const {formulaId,optionId,possible,radioVal,calcuValues,currentIndex,hasEnterImg} = this.state;
  365. /*let names = [];*/
  366. let list = data&&data.map((v,i)=>{
  367. /*if(this.getCritical(v)&&names.includes(v.name)){ //重复项
  368. return '';
  369. }
  370. names.push(v.name);*/
  371. return <div className={style["list"]}>
  372. {v.name?<p>
  373. {this.getCritical(v) ? '':<span>患者可能有</span>}
  374. <span
  375. className={this.getCritical(v)?style['dis-name-no-line']: style['dis-name']}
  376. onMouseEnter={this.handleMouseEnterDrug.bind(this, i)}
  377. onMouseLeave = {this.handleMouseLeaveDrug.bind(this)}
  378. >
  379. {v.name}
  380. {this.getCritical(v)?'':<img className={style['info-img']}
  381. title='点击i图标可查看详细说明'
  382. style ={currentIndex === i ? {display: "inline-block"} : {display: "none"}}
  383. src={currentIndex === i ?(hasEnterImg ? infoMove : infoShow ): infoShow}
  384. onMouseEnter={this.handleMouseEnterImg.bind(this)}
  385. onMouseLeave = {this.handleMouseLeaveImg.bind(this)}
  386. onClick={this.showInfo.bind(this,v)}/>}
  387. </span>
  388. {/* <img src={infoShow} className={style["infoPic"]} onClick={this.showInfo.bind(this,v.id)}/> */}
  389. {this.getCritical(v)?'':':'}
  390. </p>:''}
  391. {v.details&&v.details.map((it,j)=>{
  392. if(it.type==1){
  393. return <p>
  394. <span className={style["listName"]}>
  395. <i onClick={this.showTable.bind(this,it.content,v,i,j)}>{'【'+it.content.name+'】'}</i>
  396. {formulaResult&&formulaResult[it.content.conceptId]?<i>{'结果:'}{formulaResult[it.content.conceptId].calcalculate&&formulaResult[it.content.conceptId].calcalculate.result.value +' '+ formulaResult[it.content.conceptId].calcalculate.result.text}</i>:''}
  397. </span>
  398. </p>
  399. }else if(it.type==2){
  400. //如果保存过,则使用保存内容
  401. // const cres = calcuResult&&calcuResult[v.conceptId]||it.content.result;
  402. //每次都取最新推送内容
  403. const cres = it.content.result || [];
  404. const result = cres&&cres[1]&&cres[1].text;
  405. //如果保存过,则使用保存内容
  406. // const details = calcuValues&&calcuValues[v.conceptId]||it.content.details;
  407. //每次都取最新推送内容
  408. const details = it.content.details || [];
  409. return <div className={style["marTop"]}>
  410. <span className={style["limit"]}>
  411. 计算公式结果:
  412. <i className={style["blue"]} onClick={this.showFormula.bind(this,v.conceptId)}>{result?result:'请选择'}</i>
  413. <img src={level1} />
  414. </span>
  415. {formulaId&&formulaId==v.conceptId&&<MiniToast title={it.content.name}
  416. icon={allTableIcon}
  417. confirmText={chronicMagItem?'加入病历记录':'确定'}
  418. show={formulaId&&formulaId==v.conceptId?true:false}
  419. close={this.closeFormula.bind(this,it)}
  420. confirm={this.addFormula.bind(this,it,v,i,j)}
  421. footer={result?true:false}>
  422. <table>
  423. {details.map((item,idd)=>{
  424. if(item.controlType==0){//单选
  425. return <tr>
  426. <td>
  427. <span>{item.isShow == '0' ? item.name+':' : '请选择'+item.name+':'}</span>
  428. </td>
  429. <td>
  430. {Array.isArray(item.details)&&item.isShow == '0'&&item.details.map((ii,ind)=>{
  431. return ii.state == 1 && <div className={style["chooseItem"]}>
  432. {ii.detailName}
  433. </div>
  434. })}
  435. {Array.isArray(item.details)&&item.isShow != '0'&&item.details.map((ii,ind)=>{
  436. return <div className={style["chooseItem"]}>
  437. <Radio label={ii.detailName}
  438. isSelect={ii.state == 1}
  439. handleClick={this.handleForRadio.bind(this,v.conceptId,details,idd,ind)}>
  440. </Radio>
  441. </div>
  442. })}
  443. </td>
  444. </tr>
  445. }else if(item.controlType==2){//输入框
  446. return <tr>
  447. <td>
  448. <span>{item.isShow == '0' ? item.name+':':'请输入'+item.name+':'}</span>
  449. </td>
  450. <td>
  451. {item.isShow == '0' ? item.value + ' ' +item.uint : <input type="text" className={style['itemInp']} placeholder="请输入" value={item.value} onInput={this.handleInputformula.bind(this,v.conceptId,details,i,j,idd,cres)}/>}
  452. </td>
  453. <td>
  454. {item.isShow != '0'&&<span>{item.uint}</span>}
  455. </td>
  456. </tr>
  457. }
  458. })}
  459. </table>
  460. <div className={style["forMulBtn"]} onClick={this.calcuFormula.bind(this,v.conceptId,it,i,j)}>计算</div>
  461. <table>
  462. {cres && Array.isArray(cres) &&cres.map((itemResult, resultIndex) => {
  463. return <tr>
  464. <td>
  465. <span>{itemResult.name+':'}</span>
  466. </td>
  467. <td>
  468. <span>{itemResult.text}</span>
  469. </td>
  470. </tr>
  471. })}
  472. </table>
  473. </MiniToast>}
  474. </div>
  475. }else if(it.type==3){
  476. return <div className={style["marTop"]}>
  477. <span className={style["limit"]}>
  478. 可能结果:
  479. <i onClick={this.showOption.bind(this,v.conceptId)} className={style["blue"]}>{possible[v.conceptId]?possible[v.conceptId]:'请选择'}</i>
  480. <img src={level1} />
  481. </span>
  482. <MiniToast title='结果选择'
  483. icon={checkIcon}
  484. confirmText={chronicMagItem?'加入病历记录':'确定'}
  485. show={optionId&&optionId==v.conceptId?true:false}
  486. close={this.closeOption}
  487. confirm={this.confirmOption.bind(this,v,i,j)}
  488. footer={true}>
  489. <div className={style["infoOption"]}>
  490. <span>{it.content.name?it.content.name+':':''}</span>
  491. {it.content.details&&it.content.details.map((lis,ind)=>{
  492. return <div className={style["chooseItem"]}>
  493. <Radio label={lis.detailName}
  494. isSelect={radioVal[v.conceptId]==lis.detailName||(Object.keys(radioVal).length===0&&lis.state==1)}
  495. handleClick={this.handleRadio.bind(this,lis,v)}>
  496. </Radio>
  497. {/*{lis.state==1?<span className={style['recomand']}>(智能推荐)</span>:''}*/}
  498. </div>
  499. })}
  500. </div>
  501. </MiniToast>
  502. </div>
  503. }
  504. })}
  505. </div>
  506. });
  507. return list;
  508. }
  509. componentWillReceiveProps(next){
  510. //计算公式可能结果弹窗关闭1916
  511. if(!next.data||next.data.length==0){
  512. this.setState({
  513. formulaId:null,
  514. optionId:null
  515. });
  516. }
  517. if(JSON.stringify(next.calcuValues)!=JSON.stringify(this.props.calcuValues)){
  518. this.setState({
  519. calcuValues:next.calcuValues
  520. })
  521. }
  522. if (JSON.stringify(next.wholeResults.possible) != JSON.stringify(this.props.possible)) {
  523. this.setState({
  524. radioVal: next.wholeResults.radioVal,
  525. possible: next.wholeResults.possible
  526. })
  527. }
  528. if(next.slideUp!=this.props.slideUp){
  529. if(next.slideUp){
  530. $(this.$content.current).slideUp(config.slideTime);
  531. }else{
  532. $(this.$content.current).slideDown(config.slideTime);
  533. }
  534. }
  535. }
  536. slideToggle(){
  537. const {toggleSlide,slideUp} = this.props;
  538. toggleSlide&&toggleSlide(!slideUp);
  539. }
  540. render(){
  541. const {comfirnFlag,flag,ff} = this.state;
  542. const {chronicMagItem,chronicDesease,data,showHide,slideUp} = this.props;
  543. const scaleFooter = <Footer print={true}
  544. footText={showHide.isPop||!chronicMagItem?"确定":"加入病历记录"}
  545. handlePrint={this.onPrint}
  546. handleConfirm={this.comfirnTable}/>;
  547. if(data&&data.length>0){
  548. return <div className={style["tips"]} style={{marginBottom:'15px'}}>
  549. <div className={className(style["tips-title"],style["chronic"],"clearfix")} onClick={this.slideToggle}>
  550. <div className={style["tips-name"]}>
  551. <img src={chronicPic} />
  552. <h2>{chronicMagItem&&chronicMagItem.name||chronicDesease&&chronicDesease.name||'病情提示'}<span className={style["redTips"]}>(根据病人病历情况进行的动态提示和评估)</span></h2>
  553. </div>
  554. <div className={style['toggle-btn']}>
  555. <img src={slideUp?down:up} alt="展开/收起"/>
  556. </div>
  557. </div>
  558. <div className={style["content"]} ref={this.$content}>
  559. {this.getDetail()}
  560. </div>
  561. {showHide&&showHide.showTable?<ComplexModal onclose={()=>this.closeTable(true)} footer={scaleFooter}
  562. title={showHide.name}
  563. icon={tableIcon}
  564. top={20}
  565. bottom={20}
  566. width={820}>
  567. <ScaleTable title={showHide.name}
  568. tableId={showHide.conceptId}
  569. comfirnFlag={comfirnFlag}
  570. flag={flag}
  571. flagT={ff}
  572. resetFlag={this.resetComfirnFlag}
  573. unscroeClose={this.unscroeClose}
  574. closeTable={this.closeTable}
  575. resRef={this.$result}
  576. ></ScaleTable>
  577. </ComplexModal>:''}
  578. </div>
  579. }
  580. //量表弹窗-无指标推送时量表弹窗要单独加载
  581. if(showHide&&showHide.showTable){
  582. return <ComplexModal onclose={()=>this.closeTable(true)} footer={scaleFooter}
  583. title={showHide.name}
  584. icon={tableIcon}
  585. top={20}
  586. bottom={20}
  587. width={820}>
  588. <ScaleTable title={showHide.name}
  589. tableId={showHide.conceptId}
  590. comfirnFlag={comfirnFlag}
  591. flag={flag}
  592. flagT={ff}
  593. resetFlag={this.resetComfirnFlag}
  594. unscroeClose={this.unscroeClose}
  595. closeTable={this.closeTable}
  596. resRef={this.$result}
  597. ></ScaleTable>
  598. </ComplexModal>;
  599. }
  600. }
  601. }
  602. export default ChronicInfo;