Browse Source

doctor

master
pengjun 2 years ago
parent
commit
9d0d8fbc14
  1. 67
      src/components/doctorCheck/CheckSumSug.vue

67
src/components/doctorCheck/CheckSumSug.vue

@ -9,7 +9,7 @@
<template slot="header">
<div style="display: flex;justify-content:space-between;">
<div>小结</div>
<div></div>
<div></div>
</div>
</template>
<template slot-scope="scope">
@ -22,31 +22,37 @@
</div>
</template>
</el-table-column>
</el-table>
</el-table>
</div>
<div
:style="`display: flex;position: absolute; top:${window.pageHeight - sumHeight - 38}px;right:${sumWidth + 125}px;z-index: 3000;`">
<div v-show="checkPagePriv(pagePriv.privs, '生成小结')">
<el-button type="primary" class="btnClass" @click="btnMakeDiagnosis"
:disabled="doctorBtnDisabled('btnMakeDiagnosis')">生成小结</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '新增小结')">
<el-button type="primary" class="btnClass" @click="addSummary"
:disabled="doctorBtnDisabled('addSummary')">新增小结</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '保存结果')">
<el-button type="primary" class="btnClass" @click="save" :disabled="doctorBtnDisabled('save')">保存结果</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '审核')">
<el-button type="primary" class="btnClass" style="min-width: 40px;" @click="audit"
:disabled="doctorBtnDisabled('audit')">审核</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '排队')">
<el-button type="primary" class="btnClass" style="min-width: 40px;" @click="btnLineUp"
:disabled="doctorBtnDisabled('btnLineUp')">排队</el-button>
</div>
</div>
<div
:style="`display: flex;position: absolute; top:${window.pageHeight - sumHeight - 38}px;right:125px;z-index: 3000;`">
<div v-show="checkPagePriv(pagePriv.privs, '新增建议')">
<el-button type="primary" class="btnClass" @click="addSuggestion"
:disabled="doctorBtnDisabled('addSuggestion')">新增建议</el-button>
</div>
</div>
<div style="display: flex; position:absolute; top:0px;right:0px;z-index: 300;">
<div v-show="checkPagePriv(pagePriv.privs, '生成小结')">
<el-button type="primary" class="btnClass" @click="btnMakeDiagnosis"
:disabled="doctorBtnDisabled('btnMakeDiagnosis')">生成小结</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '新增小结')">
<el-button type="primary" class="btnClass" @click="addSummary"
:disabled="doctorBtnDisabled('addSummary')">新增小结</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '保存结果')">
<el-button type="primary" class="btnClass" @click="save"
:disabled="doctorBtnDisabled('save')">保存结果</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '审核')">
<el-button type="primary" class="btnClass" style="min-width: 40px;" @click="audit"
:disabled="doctorBtnDisabled('audit')">审核</el-button>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '排队')">
<el-button type="primary" class="btnClass" style="min-width: 40px;" @click="btnLineUp"
:disabled="doctorBtnDisabled('btnLineUp')">排队</el-button>
</div>
</div>
<div :style="`margin-left:2px;width:${sumWidth}px;`">
<el-table id="tableSuggestion" row-key="id" :data="doctorCheck.checkSuggestionList" size="samll"
:height="sumHeight" width="100%" border>
@ -55,12 +61,7 @@
<template slot="header">
<div style="display: flex;justify-content:space-between;">
<div>建议</div>
<div style="display: flex;">
<div v-show="checkPagePriv(pagePriv.privs, '新增建议')">
<el-button type="primary" class="btnClass" @click="addSuggestion"
:disabled="doctorBtnDisabled('addSuggestion')">新增建议</el-button>
</div>
</div>
<div></div>
</div>
</template>
<template slot-scope="scope">
@ -119,8 +120,10 @@ export default {
//
sumHeight() {
return this.window.pageHeight < 600 ? Math.floor((480 - (this.isCheckPicture ? 110 : 0)) * 2 / 5) : Math.floor((this.window.pageHeight - 120 - (this.isCheckPicture ? 110 : 0)) * 2 / 5);
let fixHeight = this.window.pageHeight < 600 ? 600 : this.window.pageHeight
return Math.floor((fixHeight - 120 - (this.isCheckPicture ? 110 : 0)) * 2 / 5);
}
},
methods: {

Loading…
Cancel
Save