|
@@ -77,7 +77,8 @@ export function setNumberValue(state,action){
|
|
|
const param = action.params;
|
|
|
const ikey = param.ikey;
|
|
|
let labelInx = getLabelIndex(ikey);
|
|
|
- const subInx = ikey.substr(ikey.length-1);
|
|
|
+ // const subInx = ikey.substr(ikey.length-1);
|
|
|
+ const subInx = ikey.split("-")[2];
|
|
|
let item = res.data[labelInx];
|
|
|
if(+item.tagType===1){
|
|
|
item.value = param.text;
|
|
@@ -89,7 +90,12 @@ export function setNumberValue(state,action){
|
|
|
if(it.value){ //至少有一个子值才黑显
|
|
|
hasValue = true;
|
|
|
}
|
|
|
- return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
|
|
|
+ if(it.tagType===8){
|
|
|
+ return it.name;
|
|
|
+ }else{
|
|
|
+ return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
res.saveText[labelInx] = hasValue?sub.join(''):'';
|
|
|
}
|
|
@@ -140,7 +146,12 @@ export function setRadioValue(state,action){
|
|
|
if(it.value){ //至少有一个子值才黑显
|
|
|
hasValue = true;
|
|
|
}
|
|
|
- return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
|
|
|
+ if(it.tagType===8){
|
|
|
+ return it.name;
|
|
|
+ }else {
|
|
|
+ return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
res.saveText[labelInx] = hasValue?sub.join(''):'';
|
|
|
}
|
|
@@ -172,7 +183,11 @@ export const setRadioInputValue = (state,action)=>{
|
|
|
if(it.value){ //至少有一个子值才黑显
|
|
|
hasValue = true;
|
|
|
}
|
|
|
- return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
|
|
|
+ if(it.tagType===8){
|
|
|
+ return it.name;
|
|
|
+ }else {
|
|
|
+ return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
|
|
|
+ }
|
|
|
});
|
|
|
res.saveText[index] = hasValue?sub.join(''):'';
|
|
|
}else{
|
|
@@ -204,7 +219,12 @@ export const setRadioInputValue = (state,action)=>{
|
|
|
if(res.data[index].tagType!=1){
|
|
|
let hasValue = false;
|
|
|
const sub = res.data[index].questionMapping.map((it)=>{
|
|
|
- return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
|
|
|
+ if(it.tagType===8){
|
|
|
+ return it.name;
|
|
|
+ }else {
|
|
|
+ return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
res.saveText[index] = sub.join('');
|
|
|
}else {
|
|
@@ -434,7 +454,12 @@ export function setInputLabel(state,action){
|
|
|
if(+item.tagType===3){ //multSpred标签
|
|
|
item.questionMapping[subIndex].value = text;
|
|
|
let texts = item.questionMapping.map((it)=>{
|
|
|
- return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
|
|
|
+ if(it.tagType===8){
|
|
|
+ return it.name;
|
|
|
+ }else{
|
|
|
+ return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
res.saveText[i] = texts.join('');
|
|
|
res.update = Math.random();
|