Browse Source

提交修改

xiezhiming 3 years atrás
parent
commit
154d60ac80

+ 13 - 4
src/components/knowledgeExtra/AddNewRule.vue

@@ -392,9 +392,9 @@ export default {
 	  			  let itemCopy={}
 	  			  this.form.klRuleByIdGroup.forEach((item,index)=>{
 	  					if(Array.isArray(item.klRuleStaticSub)){
+							this.$set(this.form.klRuleByIdSub[index],'ruleStatic',[])
+							this.$set(this.form.klRuleByIdSub[index],'ruleStaticList',[])
 	  						item.klRuleStaticSub.forEach((items,ind)=>{
-	  							this.$set(this.form.klRuleByIdSub[index],'ruleStatic',[])
-	  							this.$set(this.form.klRuleByIdSub[index],'ruleStaticList',[])
 	  							let obj={
 	  								id:items.conceptId,
 	  								name:items.name
@@ -698,7 +698,6 @@ export default {
     								this.isRedMsg.push(false)
     							}else{
     								this.isRedMsg.push(true)
-    								return
     							}
     						}
     					})
@@ -706,7 +705,17 @@ export default {
     			})
     		}
     	}
-        this.saveRule(paramsCopy);
+		if(this.isStatic&&this.isRedMsg.length>0){
+			this.isRedMsg.forEach(item=>{
+				if(item){
+					return
+				}else{
+					this.saveRule(paramsCopy);
+				}
+			})
+		}else{
+			this.saveRule(paramsCopy);
+		}
         } else {
           return false;
         }

+ 8 - 1
src/components/knowledgeExtra/AddNewRuleTable.vue

@@ -10,6 +10,13 @@
     width: 100%;
     font-size: 12px;
   }
+  .inp_gl{
+	  /deep/.el-select__tags-text {
+	      overflow: hidden;
+	      text-overflow: ellipsis;
+	      max-width: 82px !important;
+	  }
+  }
   .el-form-item.is-success{
   	  .redMsg{
   	  	  /deep/.el-textarea__inner{
@@ -202,7 +209,7 @@
 	    </template>
 	    <template slot-scope="scope">
 	     <el-form-item
-	        class="inp_box"
+	        class="inp_box inp_gl"
 	        :prop="`klRuleByIdSub[${scope.$index}].ruleStatic`"
 	  			:class="(!isRedMsg[scope.$index])?'':'redMsg'"
 	      >