|
@@ -20,7 +20,8 @@ import Multiple from '@containers/Multiple';
|
|
|
//单选类型
|
|
|
export function singleRadio(params){
|
|
|
const data = params.item;//console.log(111,data);
|
|
|
- const {i,hideTag,boxMark,showArr,selecteds,boxTop,boxLeft} = params;
|
|
|
+ const {i,hideTag,boxMark,showArr,selecteds,boxTop,boxLeft,importLabel} = params;
|
|
|
+ let isHigh=importLabel&&importLabel.includes(data.id);
|
|
|
const showInx = boxMark+i+'0'; //单括号多标签的情况下需要识别同一个标签内多个下拉组件的显示状态
|
|
|
switch (+data.controlType){
|
|
|
case 0:
|
|
@@ -34,6 +35,7 @@ export function singleRadio(params){
|
|
|
value = {data.value}
|
|
|
boxMark={boxMark}
|
|
|
id={data.id}
|
|
|
+ isImports={isHigh}
|
|
|
ikey={showInx}
|
|
|
hideTag={hideTag}></RadioDrop>;
|
|
|
case 2:
|
|
@@ -47,6 +49,7 @@ export function singleRadio(params){
|
|
|
show={showArr&&showArr[showInx]}
|
|
|
order={data.textGenerate}
|
|
|
type={boxMark}
|
|
|
+ isImports={isHigh}
|
|
|
textPrefix={data.labelPrefix}
|
|
|
textSuffix={data.labelSuffix}
|
|
|
id={data.id}></Multiple>
|
|
@@ -59,6 +62,7 @@ export function singleRadio(params){
|
|
|
formulaCode={data.formulaCode}
|
|
|
boxMark={boxMark}
|
|
|
id={data.id}
|
|
|
+ isImports={isHigh}
|
|
|
show={showArr&&showArr[showInx]}
|
|
|
ikey={showInx}
|
|
|
value={data.value}
|
|
@@ -68,6 +72,7 @@ export function singleRadio(params){
|
|
|
suffix={data.labelSuffix}
|
|
|
placeholder={data.name}
|
|
|
value={data.value}
|
|
|
+ isImports={isHigh}
|
|
|
id={data.id}
|
|
|
ikey={showInx}></InlineTag>;
|
|
|
case 7:
|
|
@@ -75,6 +80,7 @@ export function singleRadio(params){
|
|
|
suffix={data.labelSuffix}
|
|
|
min={data.minValue}
|
|
|
max={data.maxValue}
|
|
|
+ isImports={isHigh}
|
|
|
placeholder={data.name}
|
|
|
boxMark={boxMark}
|
|
|
id={data.id}
|
|
@@ -90,6 +96,7 @@ export function singleRadio(params){
|
|
|
show={showArr&&showArr[showInx]}
|
|
|
value = {data.value}
|
|
|
boxMark={boxMark}
|
|
|
+ isImports={isHigh}
|
|
|
id={data.id}
|
|
|
ikey={showInx}></RadioInpDrop>;
|
|
|
default:
|
|
@@ -100,7 +107,8 @@ export function singleRadio(params){
|
|
|
//多标签组合型
|
|
|
function multLabels(params){
|
|
|
const data = params.item;
|
|
|
- const {i,boxMark,showArr,saveText,selecteds} = params;
|
|
|
+ const {i,boxMark,showArr,saveText,selecteds,importLabel} = params;
|
|
|
+ let isHigh=importLabel&&importLabel.includes(data.id);
|
|
|
return <MultSpread data={data.questionMapping}
|
|
|
showAdd = {+data.showAdd===1}
|
|
|
copyId={data.id}
|
|
@@ -108,6 +116,7 @@ function multLabels(params){
|
|
|
showArr={showArr||{}}
|
|
|
update={Math.random()}
|
|
|
boxMark={boxMark}
|
|
|
+ isImports={isHigh}
|
|
|
ikey={boxMark+i}
|
|
|
selecteds={selecteds&&selecteds[i]}
|
|
|
saveText={saveText}
|
|
@@ -119,7 +128,8 @@ function multLabels(params){
|
|
|
//多选标签展开型
|
|
|
function multCheckLabels(params,tagType){
|
|
|
const data = params.item;
|
|
|
- const {i,boxMark,showArr,selecteds} = params;
|
|
|
+ const {i,boxMark,showArr,selecteds,importLabel} = params;
|
|
|
+ let isHigh=importLabel&&importLabel.includes(data.id);
|
|
|
const showInx = boxMark+i+'0';
|
|
|
return <SpreadDrop data={data.questionMapping}
|
|
|
ikey={showInx}
|
|
@@ -129,6 +139,7 @@ function multCheckLabels(params,tagType){
|
|
|
selecteds={selecteds ?selecteds[i]:[]}
|
|
|
show={showArr&&showArr[showInx]}
|
|
|
order={data.textGenerate}
|
|
|
+ isImports={isHigh}
|
|
|
type={boxMark}
|
|
|
tagType={tagType}
|
|
|
textPrefix={data.prefix}
|