소스 검색

修改bug

zhouna 6 년 전
부모
커밋
b1829f498b
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/components/preTreat/AddQuestionModules.vue
  2. 1 0
      src/components/preTreat/QuestionTagGroup.vue

+ 2 - 2
src/components/preTreat/AddQuestionModules.vue

@@ -82,7 +82,7 @@
     </div>
         <div class="main">
             <p class="title" v-if="form.type&&form.moduleType">
-                填写单明细:
+                <i v-if="form.type!=1">*</i>填写单明细:
             </p>
             <QuestionTagGroup v-if="form.type&&form.moduleType&&form.type!=1" qaType="3" :ascription="form.type" @changeActionData="pushValues" :options="editData.moduleDetail"></QuestionTagGroup>
             <div class="static" v-if="form.type==1">
@@ -143,7 +143,7 @@
           ],
           remark:[
             { validator: (rule, value, callback)=>{
-                if(value.length>120){
+                if((value&&value.trim().length>0)&&value.length>120){
                   callback(new Error('备注不能超过120个字'));
                 }else{
                   callback();

+ 1 - 0
src/components/preTreat/QuestionTagGroup.vue

@@ -81,6 +81,7 @@ export default {
           setTimeout(function(){            //等watch执行后赋值tags,否则这里先执行,会被watch里清空
             that.rightTagsList = tagList;
             that.searchTagList();
+            that.$emit('changeActionData',that.rightTagsList);
           },100);
         }
     },