|
|
|
@ -14,8 +14,8 @@ |
|
|
|
<el-table-column prop="itemName" label="项目" width="180" /> |
|
|
|
<el-table-column prop="result" label="结果" min-width="200"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-autocomplete |
|
|
|
style="width: 100%" |
|
|
|
<el-autocomplete |
|
|
|
style="width: 100%;" |
|
|
|
type="textarea" |
|
|
|
v-model="scope.row.result" |
|
|
|
:fetch-suggestions="querySearch" |
|
|
|
@ -27,7 +27,9 @@ |
|
|
|
" |
|
|
|
:autosize="{ minRows: 1, maxRows: 100 }" |
|
|
|
:data-ismultiline="scope.row.isMultiLine" |
|
|
|
/> |
|
|
|
@blur="madeTooltips(scope.$index)" |
|
|
|
:class="scope.$index % 2 == 0 ? '1':'error'" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="unit" label="单位" width="80" align="center"/> |
|
|
|
@ -36,11 +38,16 @@ |
|
|
|
label="参考范围" |
|
|
|
width="80" align="center" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="tooltips" |
|
|
|
label="提示" |
|
|
|
width="40" align="center" |
|
|
|
/> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
// 0-无参考范围,1-数字型,2-字符型,3-性激素 |
|
|
|
import { mapState } from "vuex"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
|
|
|
|
@ -49,6 +56,7 @@ export default { |
|
|
|
props:["isCheckPicture"], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
resultStatus:[], //结果状态提示数据 |
|
|
|
restaurants: [], //结果模版 |
|
|
|
currentRow: -1, //当前操作的行 |
|
|
|
}; |
|
|
|
@ -58,7 +66,7 @@ export default { |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
mounted() { |
|
|
|
// this.enterToTab(); |
|
|
|
this.dictInit() |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
@ -66,6 +74,13 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
|
|
|
|
dictInit(){ |
|
|
|
//获取结果状态提示数据 |
|
|
|
getapi('/api/app/result-status').then(res =>{ |
|
|
|
if(res.code != -1) resultStatus = res.data.items |
|
|
|
}) |
|
|
|
}, |
|
|
|
//选择项目 |
|
|
|
rowClick(row) { |
|
|
|
this.doctorCheck.checkItem = row; |
|
|
|
@ -190,12 +205,63 @@ export default { |
|
|
|
.el-table th.el-table__cell.is-leaf { |
|
|
|
padding: 0; |
|
|
|
} |
|
|
|
|
|
|
|
::v-deep .el-textarea__inner { |
|
|
|
min-height: 23px; |
|
|
|
height: 23px; |
|
|
|
line-height: 1.25; |
|
|
|
padding: 2px 15px 2px 2px; |
|
|
|
} |
|
|
|
|
|
|
|
/*错误*/ |
|
|
|
::v-deep .error .el-textarea__inner { |
|
|
|
background-color: yellow !important; |
|
|
|
color: red !important; |
|
|
|
} |
|
|
|
|
|
|
|
/*阴性 v-bind("(window.pageHeight > 600 ? (window.pageHeight - 250) : 350) + 'px'") */ |
|
|
|
::v-deep .negative .el-textarea__inner { |
|
|
|
background-color: yellow !important; |
|
|
|
color: red !important; |
|
|
|
} |
|
|
|
|
|
|
|
/*阳性 v-bind("(window.pageHeight > 600 ? (window.pageHeight - 250) : 350) + 'px'") */ |
|
|
|
::v-deep .positive .el-textarea__inner { |
|
|
|
background-color: yellow !important; |
|
|
|
color: red !important; |
|
|
|
} |
|
|
|
|
|
|
|
/*弱阳性 v-bind("(window.pageHeight > 600 ? (window.pageHeight - 250) : 350) + 'px'") */ |
|
|
|
::v-deep .lowPositive .el-textarea__inner { |
|
|
|
background-color: yellow !important; |
|
|
|
color: red !important; |
|
|
|
} |
|
|
|
|
|
|
|
/*偏低 v-bind("(window.pageHeight > 600 ? (window.pageHeight - 250) : 350) + 'px'") */ |
|
|
|
::v-deep .low .el-textarea__inner { |
|
|
|
background-color: yellow !important; |
|
|
|
color: red !important; |
|
|
|
} |
|
|
|
|
|
|
|
/*偏高 v-bind("(window.pageHeight > 600 ? (window.pageHeight - 250) : 350) + 'px'") */ |
|
|
|
::v-deep .high .el-textarea__inner { |
|
|
|
background-color: yellow !important; |
|
|
|
color: red !important; |
|
|
|
} |
|
|
|
|
|
|
|
/*超低 v-bind("(window.pageHeight > 600 ? (window.pageHeight - 250) : 350) + 'px'") */ |
|
|
|
::v-deep .superLow .el-textarea__inner { |
|
|
|
background-color: yellow !important; |
|
|
|
color: red !important; |
|
|
|
} |
|
|
|
|
|
|
|
/*偏高 v-bind("(window.pageHeight > 600 ? (window.pageHeight - 250) : 350) + 'px'") */ |
|
|
|
::v-deep .superHigh .el-textarea__inner { |
|
|
|
background-color: yellow !important; |
|
|
|
color: red !important; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</style> |
|
|
|
|
|
|
|
|