|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="groups-cont">
|
|
<div class="groups-cont">
|
|
<el-form ref="groupData" label-width="150px" class="sub-condition-form" :model="groupData" :rules="rules">
|
|
<el-form ref="groupData" label-width="150px" class="sub-condition-form" :model="groupData" :rules="rules">
|
|
- <span class="del-btn" @click="delRule">删除</span><!--:class="isLast?'disable del-btn':'del-btn'"-->
|
|
|
|
|
|
+ <span v-if="!disabled" class="del-btn" @click="delRule">删除</span><!--:class="isLast?'disable del-btn':'del-btn'"-->
|
|
<el-form-item label="基础规则名称:" prop="subDescription">
|
|
<el-form-item label="基础规则名称:" prop="subDescription">
|
|
<el-input v-model.trim = "groupData.subDescription" :disabled="disabled"></el-input>
|
|
<el-input v-model.trim = "groupData.subDescription" :disabled="disabled"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -43,10 +43,9 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item v-if="groupData.subType===2" label="选择类型:" prop="dataType">
|
|
<el-form-item v-if="groupData.subType===2" label="选择类型:" prop="dataType">
|
|
- <el-select v-model="dataType"
|
|
|
|
- @change="dataTypeChange"
|
|
|
|
|
|
+ <el-select v-model="groupData.dataType"
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
- size="small">
|
|
|
|
|
|
+ size="small" @change="dataTypeChange">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in dataTypes"
|
|
v-for="item in dataTypes"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
@@ -55,7 +54,7 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item class="min-margin" v-if="dataType==='1'" label="最大值:" required>
|
|
|
|
|
|
+ <el-form-item class="min-margin" v-if="groupData.dataType==='1'" label="最大值:" required>
|
|
<div class="select-item clearfix">
|
|
<div class="select-item clearfix">
|
|
<el-col :span="4">
|
|
<el-col :span="4">
|
|
<el-form-item prop="subMaxOperator">
|
|
<el-form-item prop="subMaxOperator">
|
|
@@ -83,7 +82,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item class="min-margin" v-if="dataType==='1'" label="最小值:" required>
|
|
|
|
|
|
+ <el-form-item class="min-margin" v-if="groupData.dataType==='1'" label="最小值:" required>
|
|
<div class="select-item clearfix">
|
|
<div class="select-item clearfix">
|
|
<el-col :span="4">
|
|
<el-col :span="4">
|
|
<el-form-item prop="subMinOperator">
|
|
<el-form-item prop="subMinOperator">
|
|
@@ -111,7 +110,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item v-if="dataType==='2'" label="医学内容:" prop="subEqValue" class="discDesc">
|
|
|
|
|
|
+ <el-form-item v-if="groupData.dataType==='2'" label="医学内容:" prop="subEqValue" class="discDesc">
|
|
<el-input type="textarea" rows="3" placeholder="请输入医学内容" v-model="groupData.subEqValue" maxlength="121"></el-input>
|
|
<el-input type="textarea" rows="3" placeholder="请输入医学内容" v-model="groupData.subEqValue" maxlength="121"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item v-if="groupData.subType===6" label="正则表达式:" prop="subEqValue" class="discDesc">
|
|
<el-form-item v-if="groupData.subType===6" label="正则表达式:" prop="subEqValue" class="discDesc">
|
|
@@ -133,7 +132,6 @@
|
|
return {
|
|
return {
|
|
baseTermTypeList:[],
|
|
baseTermTypeList:[],
|
|
typeList:[],
|
|
typeList:[],
|
|
- dataType:'',
|
|
|
|
operTypeList:[{name:'>',key:'>'},
|
|
operTypeList:[{name:'>',key:'>'},
|
|
{name:'>=',key:'>='},
|
|
{name:'>=',key:'>='},
|
|
{name:'<',key:'<'},
|
|
{name:'<',key:'<'},
|
|
@@ -197,11 +195,6 @@
|
|
},
|
|
},
|
|
created(){
|
|
created(){
|
|
this.conceptList=[{conceptName:this.groupData.subLibName,conceptId:this.groupData.subConceptId}];
|
|
this.conceptList=[{conceptName:this.groupData.subLibName,conceptId:this.groupData.subConceptId}];
|
|
- if(this.groupData.subMaxOperator){
|
|
|
|
- this.dataType='1'
|
|
|
|
- }else if(this.groupData.subEqValue){
|
|
|
|
- this.dataType='2'
|
|
|
|
- }
|
|
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
dataTypeChange(val){
|
|
dataTypeChange(val){
|
|
@@ -209,10 +202,9 @@
|
|
this.clearNumText();
|
|
this.clearNumText();
|
|
},
|
|
},
|
|
subTypeChange(val){ //基础规则类型修改
|
|
subTypeChange(val){ //基础规则类型修改
|
|
- this.dataType='';
|
|
|
|
- this.groupData.subConceptId='';
|
|
|
|
- this.groupData.dataType='';
|
|
|
|
this.groupData.subLenCode='';
|
|
this.groupData.subLenCode='';
|
|
|
|
+ this.groupData.dataType='';
|
|
|
|
+ this.clearConcept();
|
|
this.clearNumText();
|
|
this.clearNumText();
|
|
if(!val){
|
|
if(!val){
|
|
this.baseTermTypeList =[];
|
|
this.baseTermTypeList =[];
|
|
@@ -221,13 +213,16 @@
|
|
const obj = this.baseTypes.find((it)=>it.type===val);
|
|
const obj = this.baseTypes.find((it)=>it.type===val);
|
|
this.baseTermTypeList = obj.subMenuList;
|
|
this.baseTermTypeList = obj.subMenuList;
|
|
},
|
|
},
|
|
- subCodeChange(){ //基础规则术语类型修改
|
|
|
|
- this.dataType='';
|
|
|
|
- this.groupData.subConceptId='';
|
|
|
|
|
|
+ subCodeChange(val){ //基础规则术语类型修改
|
|
|
|
+ this.groupData.subLenCode=val;
|
|
this.groupData.dataType='';
|
|
this.groupData.dataType='';
|
|
- this.groupData.subLenCode='';
|
|
|
|
|
|
+ this.clearConcept();
|
|
this.clearNumText();
|
|
this.clearNumText();
|
|
},
|
|
},
|
|
|
|
+ clearConcept(){
|
|
|
|
+ this.groupData.subConceptId='';
|
|
|
|
+ this.conceptList=[];
|
|
|
|
+ },
|
|
clearNumText(){
|
|
clearNumText(){
|
|
this.groupData.subMaxOperator='';
|
|
this.groupData.subMaxOperator='';
|
|
this.groupData.subMaxValue='';
|
|
this.groupData.subMaxValue='';
|