pengjun 2 years ago
parent
commit
d905b28d7b
  1. 16
      src/components/sumDoctorCheck/SumSug.vue

16
src/components/sumDoctorCheck/SumSug.vue

@ -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>
Loading…
Cancel
Save