|
|
|
@ -41,7 +41,6 @@ |
|
|
|
:disabled="sumBtnDisabled()">新增建议</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div style="width:50%;"> |
|
|
|
<el-table id="tableSuggestion" row-key="id" :data="sumDoctorCheck.suggestionList" width="100%" :height="sumHeight" |
|
|
|
border size="small" ref="tableSuggestion"> |
|
|
|
@ -61,7 +60,7 @@ |
|
|
|
:disabled="sumBtnDisabled()"> |
|
|
|
</el-input> |
|
|
|
<el-button type="danger" :icon="scope.row.collapse ? 'el-icon-arrow-down' : 'el-icon-arrow-up'" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" @click="btnCollapse(scope.$index)" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" @click="btnCollapse(sumDoctorCheck.suggestionList,scope.$index,scope.row)" |
|
|
|
:disabled="sumBtnDisabled()"></el-button> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除建议')" type="danger" icon="el-icon-delete" |
|
|
|
style="margin-left: 2px;min-width:21px;height:21px;padding:2px;" @click="delSugHead(scope.$index)" |
|
|
|
@ -222,7 +221,6 @@ export default { |
|
|
|
// // textarea.style.height = textarea.scrollHeight + 'px'; // 根据滚动高度调整高度 |
|
|
|
// }); |
|
|
|
// }); |
|
|
|
|
|
|
|
this.summaryList(this.dataTransOpts.tableS.patient_register.id) |
|
|
|
this.suggestionList(this.dataTransOpts.tableS.patient_register.id) |
|
|
|
}, |
|
|
|
@ -245,7 +243,6 @@ export default { |
|
|
|
// e.style.height = 'auto'; // 重置高度 |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
|
|
|
|
// 获取诊断数据 |
|
|
|
dictInit() { |
|
|
|
postapi('/api/app/diagnosis/getlistinsuggestion', {}).then(res => { |
|
|
|
@ -294,14 +291,17 @@ export default { |
|
|
|
// 单个折叠展开建议 |
|
|
|
btnCollapseAll() { |
|
|
|
this.collapse = !this.collapse |
|
|
|
this.sumDoctorCheck.suggestionList.forEach(e => { |
|
|
|
this.sumDoctorCheck.suggestionList.forEach((e,index) => { |
|
|
|
e.collapse = this.collapse |
|
|
|
this.$set(this.sumDoctorCheck.suggestionList,index,e) |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 单个折叠展开建议 |
|
|
|
btnCollapse(index) { |
|
|
|
this.sumDoctorCheck.suggestionList[index]['collapse'] = !this.sumDoctorCheck.suggestionList[index]['collapse'] |
|
|
|
btnCollapse(data,index,row) { |
|
|
|
row.collapse=!row.collapse |
|
|
|
this.$set(data,index,row) |
|
|
|
// this.sumDoctorCheck.suggestionList[index]['collapse'] = !this.sumDoctorCheck.suggestionList[index]['collapse'] |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['tableSuggestion'].doLayout() |
|
|
|
}) |
|
|
|
@ -773,4 +773,4 @@ export default { |
|
|
|
padding: 1px 15px 1px 2px; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|
|