|
@@ -6,6 +6,7 @@ import RadioInpDrop from "@containers/RadioInpDrop";
|
|
|
import InlineTag from '@containers/InlineTag';
|
|
|
import Multiple from '@containers/Multiple';
|
|
|
import addIcon from '@images/addItem.png';
|
|
|
+import addIcon1 from '@images/addItem2.png';
|
|
|
import style from "./index.less";
|
|
|
import tools from '@utils/tools';
|
|
|
import NumberUnitDrop from '@containers/NumberUnitDrop';
|
|
@@ -131,7 +132,7 @@ class MultSpread extends Component{
|
|
|
}
|
|
|
}
|
|
|
getLabels(){
|
|
|
- const {data,ikey,showArr,copyId,selecteds,boxMark} = this.props;
|
|
|
+ const {data,ikey,showArr,copyId,selecteds,boxMark,isExtBlue} = this.props;
|
|
|
const {wrBmi,bmi} = this.state;
|
|
|
let show = false;
|
|
|
let inx = '',count=0;
|
|
@@ -145,6 +146,7 @@ class MultSpread extends Component{
|
|
|
const list = it.questionDetailList&&it.questionDetailList.length>0?it.questionDetailList:it.questionMapping;
|
|
|
return <RadioDrop data={list}
|
|
|
boxMark={boxMark}
|
|
|
+ isExtBlue={isExtBlue}
|
|
|
placeholder={it.name}
|
|
|
show={show}
|
|
|
value = {it.value}
|
|
@@ -157,6 +159,7 @@ class MultSpread extends Component{
|
|
|
return <Multiple data={dataList}
|
|
|
ikey={inx}
|
|
|
placeholder={it.name}
|
|
|
+ isExtBlue={isExtBlue}
|
|
|
value={it.value}
|
|
|
copyType={it.copyType}
|
|
|
selecteds={selecteds ?selecteds[i]:[]}
|
|
@@ -170,6 +173,7 @@ class MultSpread extends Component{
|
|
|
suffix={it.labelSuffix}
|
|
|
placeholder={it.name}
|
|
|
boxMark={ikey.substr(0,1)}
|
|
|
+ isExtBlue={isExtBlue}
|
|
|
id={it.id}
|
|
|
show={show}
|
|
|
ikey={inx}
|
|
@@ -180,6 +184,7 @@ class MultSpread extends Component{
|
|
|
return <InlineTag prefix={it.labelPrefix}
|
|
|
suffix={it.labelSuffix}
|
|
|
placeholder={it.name}
|
|
|
+ isExtBlue={isExtBlue}
|
|
|
value={it.value}
|
|
|
id={it.id}
|
|
|
ikey={inx} hideTag={true}></InlineTag>;
|
|
@@ -190,6 +195,7 @@ class MultSpread extends Component{
|
|
|
return <NumberDrop prefix={it.labelPrefix}
|
|
|
suffix={it.labelSuffix}
|
|
|
placeholder={it.name}
|
|
|
+ isExtBlue={isExtBlue}
|
|
|
//inputRef = {this['$inp'+(count++)]}
|
|
|
saveDoms={this.saveDoms.bind(this)}
|
|
|
reFocus={this.setNextFocus.bind(this)}
|
|
@@ -215,6 +221,7 @@ class MultSpread extends Component{
|
|
|
show={showArr&&showArr[inx]}
|
|
|
value = {it.value}
|
|
|
boxMark={boxMark}
|
|
|
+ isExtBlue={isExtBlue}
|
|
|
id={it.id}
|
|
|
ikey={inx}
|
|
|
hideTag={true}></RadioInpDrop>;
|
|
@@ -235,21 +242,22 @@ class MultSpread extends Component{
|
|
|
}
|
|
|
}
|
|
|
getContClass(){
|
|
|
- const {isImports,ikey,saveText} = this.props;
|
|
|
+ const {isImports,ikey,saveText,isExtBlue} = this.props;
|
|
|
const labelInx = tools.getLabelIndex(ikey);
|
|
|
const text = saveText&&saveText[+labelInx];
|
|
|
+ const ext = !text&&isExtBlue?style['ext']:'';
|
|
|
const orgBorder = isImports&&!text?style['orange-border']:'';
|
|
|
- return classNames(orgBorder);
|
|
|
+ return classNames(orgBorder,ext);
|
|
|
}
|
|
|
render(){
|
|
|
- const {showAdd,addLabelItem,ikey,copyId,textPrefix,textSuffix} = this.props;
|
|
|
+ const {showAdd,addLabelItem,ikey,copyId,textPrefix,textSuffix,isExtBlue} = this.props;
|
|
|
return (<div className={this.getContClass()}
|
|
|
style={{display:'inline-block'}}>
|
|
|
{textPrefix?<span>{textPrefix}</span>:''}
|
|
|
<div className={this.getClass()}>
|
|
|
{this.getLabels()}
|
|
|
{textSuffix?<span>{textSuffix}</span>:''}
|
|
|
- {showAdd?<img src={addIcon} alt="复制该项"
|
|
|
+ {showAdd?<img src={isExtBlue?addIcon1:addIcon} alt="复制该项"
|
|
|
className={style['add-icon']}
|
|
|
onClick={()=>addLabelItem({ikey,copyId})}/>:''}
|
|
|
</div>
|