xiezhiming 3 years ago
parent
commit
7df38b9377
1 changed files with 9 additions and 9 deletions
  1. 9 9
      src/components/knowledgeExtra/AddNewRule.vue

+ 9 - 9
src/components/knowledgeExtra/AddNewRule.vue

@@ -514,15 +514,15 @@ export default {
       let dataArr = [];
       let dataArr = [];
 	  //处理修改接口请求的数据
 	  //处理修改接口请求的数据
 		//先将数据深拷贝,避免数据污染
 		//先将数据深拷贝,避免数据污染
-	  let infoCopy=JSON.parse(JSON.stringify(info))
-	  infoCopy.klRuleByIdSub=[];
-	  if(info.klRuleByIdGroup.length>0){
-			info.klRuleByIdGroup.forEach(item=>{
-				let klRuleByIdSub=[...item]
-				infoCopy.klRuleByIdSub=[...item.klRuleByIdSub]
-			}) 
-	  }
-	  console.log('infoCopy.klRuleByIdSub',infoCopy)
+	  // let infoCopy=JSON.parse(JSON.stringify(info))
+	  // infoCopy.klRuleByIdSub=[];
+	  // if(info.klRuleByIdGroup.length>0){
+			// info.klRuleByIdGroup.forEach(item=>{
+			// 	let klRuleByIdSub=[...item]
+			// 	infoCopy.klRuleByIdSub=[...item.klRuleByIdSub]
+			// }) 
+	  // }
+	  // console.log('infoCopy.klRuleByIdSub',infoCopy)
 	  //判断是否存在klRuleByIdSub,没有就是护理开单项直接赋值
 	  //判断是否存在klRuleByIdSub,没有就是护理开单项直接赋值
 	  if(!info.klRuleByIdGroup[0].klRuleByIdSub){
 	  if(!info.klRuleByIdGroup[0].klRuleByIdSub){
 		  this.form = JSON.parse(JSON.stringify(info));
 		  this.form = JSON.parse(JSON.stringify(info));