Forráskód Böngészése

feature_20251117_日报填写内容自定义配置

zhujindu 2 hete
szülő
commit
225c02663e

+ 3 - 3
src/components/componentZCheckbox.vue

@@ -64,14 +64,14 @@ export default {
       var typeval = [...this.zCheckboxcolumns];
       typeval.forEach((item) => {
         if (value.includes(item[this.id] + '')) {
-          item.value = 'Y';
+          item.answerValue = 'Y';
         } else {
-          item.value = 'N';
+          item.answerValue = 'N';
         }
       });
       let datalist = {
         id: this.textc,
-        value: typeval,
+        answerValue: typeval,
       };
       this.zSelectValuec = value;
       this.$emit('zSelectVal', datalist);

+ 3 - 3
src/components/componentZRadio.vue

@@ -49,14 +49,14 @@ export default {
       this.radioChange = true;
       var typeval = [...this.zRadiocolumns];
       for (var k = 0; k < this.zRadiocolumns.length; k++) {
-        typeval[k].value = 'N';
+        typeval[k].answerValue = 'N';
         if (this.zRadiocolumns[k][this.id] == value) {
-          typeval[k].value = 'Y';
+          typeval[k].answerValue = 'Y';
         }
       }
       let datalist = {
         id: this.textc,
-        value: typeval,
+        answerValue: typeval,
       };
       this.$emit('zSelectVal', datalist);
     },

+ 1 - 1
src/views/week/daily.vue

@@ -901,7 +901,7 @@ export default {
           ) {
             let optionData = customData[x].sfaReportCustomOptions;
             for (let y = 0; y < optionData.length; y++) {
-              if (optionData[y].value == 'Y') {
+              if (optionData[y].answerValue == 'Y') {
                 reportCustomAnswers.push({
                   reportCustomTaskId: customData[x].reportCustomTaskId,
                   reportCustomCollectionId: optionData[y].reportCustomCollectionId,