|
@@ -4,6 +4,7 @@ import RadioDrop from "@containers/RadioDrop";
|
|
|
import NumberDrop from "@containers/NumberDrop";
|
|
|
import RadioInpDrop from "@containers/RadioInpDrop";
|
|
|
import InlineTag from '@containers/InlineTag';
|
|
|
+import Multiple from '@containers/Multiple';
|
|
|
import addIcon from '@images/addItem.png';
|
|
|
import style from "./index.less";
|
|
|
import tools from '@utils/tools';
|
|
@@ -40,7 +41,7 @@ class MultSpread extends Component{
|
|
|
return classNames(isSelected,hasAdd);
|
|
|
}
|
|
|
getLabels(){
|
|
|
- const {data,ikey,showArr,copyId,boxMark} = this.props;
|
|
|
+ const {data,ikey,showArr,copyId,selecteds,boxMark} = this.props;
|
|
|
const {editable}= this.state;
|
|
|
let show = false;
|
|
|
let inx = '';
|
|
@@ -62,6 +63,21 @@ class MultSpread extends Component{
|
|
|
id={it.id}
|
|
|
patId = {copyId}
|
|
|
hideTag={true}></RadioDrop>;
|
|
|
+ case +it.controlType===2:
|
|
|
+ const dataList = it.questionDetailList&&it.questionDetailList.length>0?it.questionDetailList:it.questionMapping;
|
|
|
+ return <Multiple data={dataList}
|
|
|
+ ikey={inx}
|
|
|
+ placeholder={it.name}
|
|
|
+ value={it.value}
|
|
|
+ copyType={it.copyType}
|
|
|
+ selecteds={selecteds ?selecteds[i]:[]}
|
|
|
+ show={showArr&&showArr[inx]}
|
|
|
+ order={it.textGenerate}
|
|
|
+ type={boxMark}
|
|
|
+ textPrefix={it.labelPrefix}
|
|
|
+ textSuffix={it.labelSuffix}
|
|
|
+ id={it.id}
|
|
|
+ hideTag={true}></Multiple>;
|
|
|
case +it.controlType===5://带单位数字键盘
|
|
|
return <NumberUnitDrop prefix={it.labelPrefix}
|
|
|
suffix={it.labelSuffix}
|