|
@@ -170,7 +170,7 @@
|
|
callback();
|
|
callback();
|
|
}}, trigger: 'blur'
|
|
}}, trigger: 'blur'
|
|
}],
|
|
}],
|
|
- subEqValue:[{ required: true, message: '请输入医学内容',trigger: ['blur'] }],
|
|
|
|
|
|
+ subEqValue:[{ required: true, message: '请输入'+this.groupData.subType===6?"正则表达式":"医学内容",trigger: ['blur'] }],
|
|
},
|
|
},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -182,44 +182,45 @@
|
|
deep:true
|
|
deep:true
|
|
},
|
|
},
|
|
'baseTypes':{
|
|
'baseTypes':{
|
|
- handler:function(){
|
|
|
|
|
|
+ handler:function(val){
|
|
if(!this.groupData.subType){
|
|
if(!this.groupData.subType){
|
|
this.baseTermTypeList =[];
|
|
this.baseTermTypeList =[];
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- const obj = this.baseTypes.find((it)=>it.type===this.groupData.subType);
|
|
|
|
|
|
+ const obj = val.find((it)=>it.type===this.groupData.subType);
|
|
this.baseTermTypeList = obj.subMenuList;
|
|
this.baseTermTypeList = obj.subMenuList;
|
|
},
|
|
},
|
|
deep:true
|
|
deep:true
|
|
},
|
|
},
|
|
- 'firstPlace':function(val){
|
|
|
|
- if(!val)return;
|
|
|
|
- const types= val.checkedType.split("-");
|
|
|
|
- const sub = this.baseTypes.find((it)=>it.ruleType===+types[0]&&it.type===2);
|
|
|
|
- this.groupData.subType=sub.type;
|
|
|
|
- this.baseTermTypeList =sub.subMenuList;
|
|
|
|
- this.groupData.subLenCode=this.baseTermTypeList.find((it)=>it.ruleType===+types[0]).code;
|
|
|
|
- this.conceptList=[val];
|
|
|
|
- this.groupData.subDescription=val.conceptName;
|
|
|
|
- this.groupData.subConceptId = val.conceptId;
|
|
|
|
- this.groupData.subConceptName = val.conceptName;
|
|
|
|
|
|
+ 'firstPlace':{
|
|
|
|
+ handler:function(val) {
|
|
|
|
+ if (!val) return;
|
|
|
|
+ const types = val.checkedType.split("-");
|
|
|
|
+ const sub = this.baseTypes.find((it) => it.ruleType === +types[0] && it.type === 2);
|
|
|
|
+ this.groupData.subType = sub.type;
|
|
|
|
+ this.baseTermTypeList = sub.subMenuList;
|
|
|
|
+ this.groupData.subLenCode = this.baseTermTypeList.find((it) => it.ruleType === +types[0]).code;
|
|
|
|
+ this.conceptList = [val];
|
|
|
|
+ this.groupData.subDescription = val.conceptName;
|
|
|
|
+ this.groupData.subConceptId = val.conceptId;
|
|
|
|
+ this.groupData.subConceptName = val.conceptName;
|
|
|
|
+ },
|
|
|
|
+ deep:true
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- created(){
|
|
|
|
|
|
+ created(){console.log(22)
|
|
this.conceptList=[{conceptName:this.groupData.subLibName,conceptId:this.groupData.subConceptId}];
|
|
this.conceptList=[{conceptName:this.groupData.subLibName,conceptId:this.groupData.subConceptId}];
|
|
|
|
+ if(this.groupData.subLenCode){
|
|
|
|
+ this.baseTermTypeList=[{name:this.groupData.subLenName,code:this.groupData.subLenCode}];
|
|
|
|
+ }
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
- minMaxValidate(rule, value, callback){
|
|
|
|
- if(this.groupData.dataType==='1'){
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
dataTypeChange(val){
|
|
dataTypeChange(val){
|
|
this.groupData.subEqOperator=val==='2'?'=':undefined;
|
|
this.groupData.subEqOperator=val==='2'?'=':undefined;
|
|
this.groupData.dataType=val;
|
|
this.groupData.dataType=val;
|
|
this.clearNumText();
|
|
this.clearNumText();
|
|
},
|
|
},
|
|
- subTypeChange(val){ //基础规则类型修改
|
|
|
|
|
|
+ subTypeChange(val){ //基础规则类型修改
|
|
this.groupData.subLenCode='';
|
|
this.groupData.subLenCode='';
|
|
this.groupData.dataType='';
|
|
this.groupData.dataType='';
|
|
this.clearConcept();
|
|
this.clearConcept();
|