Browse Source

提交修改

xiezhiming 3 năm trước cách đây
mục cha
commit
a8df5c246d

+ 2 - 0
src/components/knowledgeExtra/AddNewRule.vue

@@ -249,6 +249,8 @@
           :maxNum="subRuleMaxNum"
           :showMsg="showMsg"
           :showMsg2="showMsg2"
+		  :isStaticChild='isStatic'
+		  :isRedMsgs='isRedMsg'
           :ruleTermCodeStr="ruleTermCodeStr"
           @subTypeChange="subTypeChange"
           @searchConcept="searchConcept"

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

@@ -10,11 +10,16 @@
     width: 100%;
     font-size: 12px;
   }
+  .c_red{
+  	  color: red;
+  	  font-size: 12px;
+  	  margin-bottom: 10px;
+  }
   .inp_gl{
 	  /deep/.el-select__tags-text {
 	      overflow: hidden;
 	      text-overflow: ellipsis;
-	      max-width: 82px !important;
+	      max-width: 78px !important;
 	  }
   }
   .el-form-item.is-success{
@@ -649,6 +654,33 @@ export default {
 			this.isRedMsg[index]=false
 		}
 	}, 
+	getStaicTypes(val,row,ind){
+		let param={
+			inputStr: val,
+			types: [9]  
+		}
+		if (val == '') {
+		  return;
+		}
+		if (val){
+			api.getStaicTypes(param).then((res) => {
+			  if (res.data.code == 0) {
+				  this.$set(row,'ruleStaticList',res.data.data)
+				  this.$forceUpdate()
+			  } else {
+			    this.$message({
+			      message: res.data.msg,
+			      type: "warning",
+			    });
+			  }
+			});
+		}
+	},
+	changeValue1(val,row,ind){
+		if(row.ruleStatic.length==0){
+			 this.$set(row,'ruleStaticList',[])
+		}
+	},
     setScrollRight() {
       this.$nextTick(() => {
         this.$refs.table.bodyWrapper.scrollLeft =