| | |
| | | <div class="dietarySurvey-item"> |
| | | <el-dialog v-model="state.dialogTableVisible" title="营养饮食指导方案" :fullscreen="true" width="100%"> |
| | | <div class="container" style="width: 100%; height: 100%;overflow: auto;" > |
| | | <div id="printFrom1" class="print-section"> |
| | | <div id="fanganprintFrom1" class="print-section"> |
| | | <div> |
| | | <el-form size="small"> |
| | | <div style="width: 100%"> |
| | |
| | | <el-button type="primary" @click="onSubmit"> |
| | | 保存 |
| | | </el-button> |
| | | <el-button v-if="state.viewInfo.id" type="primary" v-print="'#printFrom1'"> |
| | | <el-button v-if="state.viewInfo.id" type="primary" v-print="'#fanganprintFrom1'"> |
| | | <el-icon> |
| | | <Printer /> |
| | | </el-icon> |
| | |
| | | <el-icon> |
| | | <Position /> |
| | | </el-icon> |
| | | 导出 |
| | | 导出22 |
| | | </el-button> |
| | | |
| | | </div> |
| | |
| | | |
| | | } |
| | | const generatePDF = () => { |
| | | const element = document.getElementById('printFrom1'); |
| | | const element = document.getElementById('fanganprintFrom1'); |
| | | const opt = { |
| | | margin: 0, |
| | | filename: `${state.tableData.表名}.pdf`, |