import React, { Component } from "react"; import style from "../index.less"; import deleteIcon from '@common/images/delete.png'; /** * 来源于页面选择 * * **/ class ScaleItem extends Component { constructor(props) { super(props); this.state={ supplement:'' }; this.getItems = this.getItems.bind(this); this.getDetailItems = this.getDetailItems.bind(this); } getDetailItems(item,i){ let arr = [],temp=''; const {indexs} = this.props; item.details.map((it,j)=>{ if(indexs[i]&&indexs[i].includes(j)){ if(it.type==1){ //量表 temp =【{it.content.name}】; }else if(it.type==2){ //计算公式 temp = 计算公式 }else if(it.type==3){ temp = 可能结果 } arr.push(