|
@@ -240,7 +240,7 @@
|
|
|
const sub = this.baseTypes.find((it) => it.ruleType === +types[0] && it.type === +types[2]);
|
|
|
this.groupData.subType = sub.type;
|
|
|
this.baseTermTypeList = sub.subMenuList;
|
|
|
- this.groupData.subLenCode = this.baseTermTypeList.find((it) => it.ruleType === +types[0]).code;
|
|
|
+ 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;
|
|
@@ -266,10 +266,10 @@
|
|
|
},
|
|
|
methods:{
|
|
|
dataTypeChange(val){
|
|
|
- this.groupData.dataType=val;
|
|
|
this.groupData.subEqOperator=(val==='2'?'=':'');
|
|
|
- this.clearNumText();console.log(322,this.groupData)
|
|
|
- this.$emit("changeVal",this.groupData,this.ind);
|
|
|
+ this.clearNumText();
|
|
|
+ delete this.groupData.dataType; //触发更新
|
|
|
+ this.$set(this.groupData,'dataType',val);
|
|
|
},
|
|
|
subTypeChange(val){ //基础规则类型修改
|
|
|
this.groupData.subLenCode='';
|
|
@@ -305,6 +305,7 @@
|
|
|
this.groupData.subMinValue='';
|
|
|
this.groupData.subMinUnit='';
|
|
|
this.groupData.subEqValue='';
|
|
|
+ this.groupData.subEqOperator='';
|
|
|
},
|
|
|
searchConcept(val){
|
|
|
const param = {
|