Jelajahi Sumber

Merge remote-tracking branch 'origin/pro_zn' into dev/new1

zhouna 5 tahun lalu
induk
melakukan
9b6401f068
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      src/store/actions/checkBody.js

+ 4 - 4
src/store/actions/checkBody.js

@@ -146,7 +146,7 @@ export function setRadioValue(state,action){
       if(it.value){     //至少有一个子值才黑显
         hasValue = true;
       }
-      if(it.tagType===8){
+      if(it.tagType===8&&!config.punctuationReg.test(it.name)){
         return it.name;
       }else {
         return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
@@ -183,7 +183,7 @@ export const setRadioInputValue = (state,action)=>{
         if(it.value){     //至少有一个子值才黑显
           hasValue = true;
         }
-        if(it.tagType===8){
+        if(it.tagType===8&&!config.punctuationReg.test(it.name)){
           return it.name;
         }else {
           return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
@@ -219,7 +219,7 @@ export const setRadioInputValue = (state,action)=>{
   if(res.data[index].tagType!=1){
     let hasValue = false;
     const sub = res.data[index].questionMapping.map((it)=>{
-      if(it.tagType===8){
+      if(it.tagType===8&&!config.punctuationReg.test(it.name)){
         return it.name;
       }else {
         return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');
@@ -454,7 +454,7 @@ export function setInputLabel(state,action){
   if(+item.tagType===3){      //multSpred标签
     item.questionMapping[subIndex].value = text;
     let texts = item.questionMapping.map((it)=>{
-      if(it.tagType===8){
+      if(it.tagType===8&&!config.punctuationReg.test(it.name)){
         return it.name;
       }else{
         return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');