|
@@ -70,8 +70,8 @@ import {patt,trimDots,imageUrlPrefix} from '@utils/tools.js'
|
|
|
for(let i in origMapping){
|
|
|
if(data.controlType==3){//多列类型多一层
|
|
|
if(mapping[i].id == item.id){
|
|
|
- mapping[i].value = '';
|
|
|
- mapping[i].valueP = '';
|
|
|
+ let tempVal = '';
|
|
|
+ let tempValP = '';
|
|
|
let detList = mapping[i].questionDetailList;
|
|
|
for(let k in detList){//替换
|
|
|
if(detList[k].id==data.id){
|
|
@@ -80,8 +80,11 @@ import {patt,trimDots,imageUrlPrefix} from '@utils/tools.js'
|
|
|
}
|
|
|
for(let n in detList){//给父级赋值
|
|
|
if(detList[n].value){
|
|
|
- mapping[i].value += detList[n].name.replace(patt,detList[n].value)+',';
|
|
|
- mapping[i].valueP += (detList[n].description||detList[n].name).replace(patt,detList[n].value)+',';
|
|
|
+ tempVal += detList[n].name.replace(patt,detList[n].value)+',';
|
|
|
+ tempValP += (detList[n].description||detList[n].name).replace(patt,detList[n].value)+',';
|
|
|
+ // 去掉最后一个逗号
|
|
|
+ mapping[i].value = tempVal.substring(0,tempVal.length-1);
|
|
|
+ mapping[i].valueP = tempValP.substring(0,tempValP.length-1);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -90,6 +93,7 @@ import {patt,trimDots,imageUrlPrefix} from '@utils/tools.js'
|
|
|
mapping.splice(i,1,data)
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
// 实时更新清空样式
|
|
|
if(data.value){
|