|
@@ -40,7 +40,25 @@
|
|
<td class="FeatureResult">结果</td>
|
|
<td class="FeatureResult">结果</td>
|
|
<td class="FeatureOpera"></td>
|
|
<td class="FeatureOpera"></td>
|
|
</tr>
|
|
</tr>
|
|
- <tr v-for="(item, index) in disFeatureList" :key="item.index">
|
|
|
|
|
|
+ <DisFeatureItem
|
|
|
|
+ v-for="(item, index) in disFeatureList"
|
|
|
|
+ :key="index"
|
|
|
|
+ :item = "item"
|
|
|
|
+ :index = "index"
|
|
|
|
+ :featureTypeList = 'featureTypeList'
|
|
|
|
+ :showDiagList = 'showDiagList'
|
|
|
|
+ :searchIndex = 'searchIndex'
|
|
|
|
+ :searchFiled = 'searchFiled'
|
|
|
|
+ :searchResultList = 'searchResultList'
|
|
|
|
+ @handleInp="handleInp($event)"
|
|
|
|
+ @clickItem="clickItem($event)"
|
|
|
|
+ @addItem ="addItem($event)"
|
|
|
|
+ @delItem ="delItem($event)"
|
|
|
|
+ @selectSearchItem = "selectSearchItem($event)"
|
|
|
|
+ >
|
|
|
|
+
|
|
|
|
+ </DisFeatureItem>
|
|
|
|
+ <!-- <tr v-for="(item, index) in disFeatureList" :key="item.index">
|
|
<td class="FeatureSort" >{{index+1}}</td>
|
|
<td class="FeatureSort" >{{index+1}}</td>
|
|
<td class="FeatureType" >
|
|
<td class="FeatureType" >
|
|
<el-select size="mini" :class="{selectType: item.typeNull}" v-model.trim="item.type" placeholder="标签类型" @change="clickItem(index,'FeatureType')">
|
|
<el-select size="mini" :class="{selectType: item.typeNull}" v-model.trim="item.type" placeholder="标签类型" @change="clickItem(index,'FeatureType')">
|
|
@@ -152,19 +170,13 @@
|
|
@input="handleInp(index,$event,'FeatureResult')"
|
|
@input="handleInp(index,$event,'FeatureResult')"
|
|
@focus="clickItem(index,'FeatureResult')">
|
|
@focus="clickItem(index,'FeatureResult')">
|
|
</el-input>
|
|
</el-input>
|
|
- <!-- <Textarea
|
|
|
|
- :value = "item.midResult"
|
|
|
|
- :readonly = "item.type==3"
|
|
|
|
- :borderRed = 'item.verifyResult'
|
|
|
|
- @handleInp="handleInp(index,$event,'FeatureResult')"
|
|
|
|
- ></Textarea> -->
|
|
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</td>
|
|
</td>
|
|
<td class="FeatureOpera">
|
|
<td class="FeatureOpera">
|
|
<el-button type="text" size="small" class="delete" @click="addItem(index, 1)"><div class="btnOpera">+</div></el-button>
|
|
<el-button type="text" size="small" class="delete" @click="addItem(index, 1)"><div class="btnOpera">+</div></el-button>
|
|
<el-button v-if="index !=0" type="text" size="small" class="delete" @click="delItem(index, 1)"><div class="btnOpera">-</div></el-button>
|
|
<el-button v-if="index !=0" type="text" size="small" class="delete" @click="delItem(index, 1)"><div class="btnOpera">-</div></el-button>
|
|
</td>
|
|
</td>
|
|
- </tr>
|
|
|
|
|
|
+ </tr> -->
|
|
</table>
|
|
</table>
|
|
<p class="moduleTitle">诊断公式:</p>
|
|
<p class="moduleTitle">诊断公式:</p>
|
|
<p class="inpTips">可输入数字(0~9);可输入规定汉字:任、一、二、三、四、五、六、七、八、九、十,其余汉字不可输入可输入的符号:“.”、“/”、“()” “+”;确诊还可输入“拟、诊”二字;鉴别诊断的序号不可输入公式中,数据放入后该条件无效;</p>
|
|
<p class="inpTips">可输入数字(0~9);可输入规定汉字:任、一、二、三、四、五、六、七、八、九、十,其余汉字不可输入可输入的符号:“.”、“/”、“()” “+”;确诊还可输入“拟、诊”二字;鉴别诊断的序号不可输入公式中,数据放入后该条件无效;</p>
|
|
@@ -175,7 +187,20 @@
|
|
<td class="FormulaNumber">公式</td>
|
|
<td class="FormulaNumber">公式</td>
|
|
<td class="FormulaOpera"></td>
|
|
<td class="FormulaOpera"></td>
|
|
</tr>
|
|
</tr>
|
|
- <tr v-for="(item, index) in disFormulaList" :key="item.index">
|
|
|
|
|
|
+
|
|
|
|
+ <DisFormulaItem
|
|
|
|
+ v-for="(item, index) in disFormulaList"
|
|
|
|
+ :key="index"
|
|
|
|
+ :item = "item"
|
|
|
|
+ :index = "index"
|
|
|
|
+ :formulaTypeList = 'formulaTypeList'
|
|
|
|
+ @handleInp="handleInp($event)"
|
|
|
|
+ @clickItem="clickItem($event)"
|
|
|
|
+ @addItem ="addItem($event)"
|
|
|
|
+ @delItem ="delItem($event)"
|
|
|
|
+ >
|
|
|
|
+ </DisFormulaItem>
|
|
|
|
+ <!-- <tr v-for="(item, index) in disFormulaList" :key="item.index">
|
|
<td class="FormulaSort">{{index +1}}</td>
|
|
<td class="FormulaSort">{{index +1}}</td>
|
|
<td class="FormulaType">
|
|
<td class="FormulaType">
|
|
<el-select size="mini" :class="{selectType: item.verifyType}" v-model.trim="item.type" placeholder="标签类型" @change="clickItem(index,'FormulaType')">
|
|
<el-select size="mini" :class="{selectType: item.verifyType}" v-model.trim="item.type" placeholder="标签类型" @change="clickItem(index,'FormulaType')">
|
|
@@ -201,10 +226,7 @@
|
|
<el-button type="text" size="small" class="delete" @click="addItem(index, 2)"><div class="btnOpera">+</div></el-button>
|
|
<el-button type="text" size="small" class="delete" @click="addItem(index, 2)"><div class="btnOpera">+</div></el-button>
|
|
<el-button v-if="index !=0" type="text" size="small" class="delete" @click="delItem(index, 2)"><div class="btnOpera">-</div></el-button>
|
|
<el-button v-if="index !=0" type="text" size="small" class="delete" @click="delItem(index, 2)"><div class="btnOpera">-</div></el-button>
|
|
</td>
|
|
</td>
|
|
- <!-- <td class="selectedContent ">{{item.indexUnique}}</td>
|
|
|
|
- <td class="selectedContentGroup"><input class="groupInput" type="text" v-model="item.indexDesc" @input="handleInp(index,$event)"></td>
|
|
|
|
- <td class="selectedContentOpera"><el-button type="text" size="small" class="delete" @click="delSelectedIndex(item, index)">删除</el-button></td> -->
|
|
|
|
- </tr>
|
|
|
|
|
|
+ </tr> -->
|
|
|
|
|
|
</table>
|
|
</table>
|
|
<div class="btn clearfix">
|
|
<div class="btn clearfix">
|
|
@@ -242,7 +264,10 @@
|
|
import api from '@api/diagBase.js';
|
|
import api from '@api/diagBase.js';
|
|
import utils from '@api/utils.js';
|
|
import utils from '@api/utils.js';
|
|
import apis from '@api/icss.js';
|
|
import apis from '@api/icss.js';
|
|
- import Textarea from './Textarea'
|
|
|
|
|
|
+ import Textarea from './Textarea';
|
|
|
|
+ import DisFeatureItem from './DisFeatureItem'
|
|
|
|
+ import DisFormulaItem from './DisFormulaItem'
|
|
|
|
+
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'AddChronicAndIndexRelation',
|
|
name: 'AddChronicAndIndexRelation',
|
|
@@ -296,6 +321,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created(){
|
|
created(){
|
|
|
|
+ console.time('aaaaaaa')
|
|
const userLoginDTO = JSON.parse(localStorage.getItem('userLoginDTO'))
|
|
const userLoginDTO = JSON.parse(localStorage.getItem('userLoginDTO'))
|
|
this.modifier = userLoginDTO && userLoginDTO.linkman
|
|
this.modifier = userLoginDTO && userLoginDTO.linkman
|
|
this.getDropList()
|
|
this.getDropList()
|
|
@@ -321,10 +347,17 @@
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
- for(let i=0; i <this.$refs.textarea.length; i++) {
|
|
|
|
- this.$refs.textarea[i].resizeTextarea()
|
|
|
|
- }
|
|
|
|
|
|
+ if(Array.isArray(this.$refs.textarea)) {
|
|
|
|
+ for(let i=0; i <this.$refs.textarea.length; i++) {
|
|
|
|
+ this.$refs.textarea[i].resizeTextarea()
|
|
|
|
+ }
|
|
|
|
+ }else {
|
|
|
|
+ this.$refs.textarea&&this.$refs.textarea.resizeTextarea()
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ console.timeEnd('aaaaaaa')
|
|
})
|
|
})
|
|
|
|
+
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
// searchTagVal(newVal, preVal) {
|
|
// searchTagVal(newVal, preVal) {
|
|
@@ -378,7 +411,8 @@
|
|
this.searchDiagVal = ''
|
|
this.searchDiagVal = ''
|
|
this.diagList=[]
|
|
this.diagList=[]
|
|
},
|
|
},
|
|
- selectSearchItem(index, item, searchType){
|
|
|
|
|
|
+ selectSearchItem(event){
|
|
|
|
+ const {index, item, searchType} = event
|
|
if(searchType === 'FeatureStand') {
|
|
if(searchType === 'FeatureStand') {
|
|
const SelectResult = this.getSelectResult(this.disFeatureList[index].standard, item)
|
|
const SelectResult = this.getSelectResult(this.disFeatureList[index].standard, item)
|
|
this.disFeatureList[index].standard = SelectResult
|
|
this.disFeatureList[index].standard = SelectResult
|
|
@@ -428,7 +462,8 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- addItem(index, type) {
|
|
|
|
|
|
+ addItem(event) {
|
|
|
|
+ const {index, type } = event
|
|
if(type == 1) {
|
|
if(type == 1) {
|
|
const item = {
|
|
const item = {
|
|
type:1,
|
|
type:1,
|
|
@@ -453,7 +488,8 @@
|
|
this.disFormulaList.splice(index+1, 0, item)
|
|
this.disFormulaList.splice(index+1, 0, item)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- delItem(index, type) {
|
|
|
|
|
|
+ delItem(event) {
|
|
|
|
+ const {index, type} = event
|
|
if(type == 1) {
|
|
if(type == 1) {
|
|
this.disFeatureList.splice(index, 1)
|
|
this.disFeatureList.splice(index, 1)
|
|
}else if(type == 2) {
|
|
}else if(type == 2) {
|
|
@@ -980,8 +1016,8 @@
|
|
},
|
|
},
|
|
|
|
|
|
// handleInp(index,e,type,itemType){ //分组不能输入负数
|
|
// handleInp(index,e,type,itemType){ //分组不能输入负数
|
|
- handleInp(index,e,type,itemType){ //分组不能输入负数
|
|
|
|
-
|
|
|
|
|
|
+ handleInp(event){
|
|
|
|
+ const {index,e,type,itemType} = event
|
|
const value = e
|
|
const value = e
|
|
if(type === 'FeatureNumber') { //序号只能输入数字和.
|
|
if(type === 'FeatureNumber') { //序号只能输入数字和.
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -1114,7 +1150,9 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
- Textarea
|
|
|
|
|
|
+ Textarea,
|
|
|
|
+ DisFeatureItem,
|
|
|
|
+ DisFormulaItem
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|