|
@@ -46,9 +46,10 @@ class MultSpread extends Component{
|
|
|
const list = data.map((it,i)=>{
|
|
|
inx=ikey+''+i;
|
|
|
show = editable?false:showArr&&showArr[inx];
|
|
|
- switch (+it.controlType){
|
|
|
- case 0:
|
|
|
- case 1:
|
|
|
+ switch (true){
|
|
|
+ case +it.tagType===8:
|
|
|
+ return it.name;
|
|
|
+ case +it.controlType===1:
|
|
|
const list = it.questionDetailList&&it.questionDetailList.length>0?it.questionDetailList:it.questionMapping;
|
|
|
return <RadioDrop data={list}
|
|
|
prefix={it.labelPrefix}
|
|
@@ -60,7 +61,7 @@ class MultSpread extends Component{
|
|
|
id={it.id}
|
|
|
patId = {copyId}
|
|
|
hideTag={true}></RadioDrop>;
|
|
|
- case 5://带单位数字键盘
|
|
|
+ case +it.controlType===5://带单位数字键盘
|
|
|
return <NumberUnitDrop prefix={it.labelPrefix}
|
|
|
suffix={it.labelSuffix}
|
|
|
placeholder={it.name}
|
|
@@ -70,15 +71,15 @@ class MultSpread extends Component{
|
|
|
ikey={inx}
|
|
|
value={it.value}
|
|
|
hideTag={true}></NumberUnitDrop>;
|
|
|
- case 3:
|
|
|
- case 6:
|
|
|
+ case +it.controlType===3:
|
|
|
+ case +it.controlType===6:
|
|
|
return <InlineTag prefix={it.labelPrefix}
|
|
|
suffix={it.labelSuffix}
|
|
|
placeholder={it.name}
|
|
|
value={it.value}
|
|
|
id={it.id}
|
|
|
ikey={inx} hideTag={true}></InlineTag>;
|
|
|
- case 7:
|
|
|
+ case +it.controlType===7:
|
|
|
return <NumberDrop prefix={it.labelPrefix}
|
|
|
suffix={it.labelSuffix}
|
|
|
placeholder={it.name}
|
|
@@ -89,7 +90,7 @@ class MultSpread extends Component{
|
|
|
value={it.value}
|
|
|
hideTag={true}></NumberDrop>;
|
|
|
default:
|
|
|
- return '';
|
|
|
+ return it.name;
|
|
|
}
|
|
|
});
|
|
|
return list;
|