gx
chenyc
2025-02-27 4afd7755b465829a21b238fc0ccb98d08a8381e6
src/views/home/components/editDietary.vue
@@ -2,7 +2,7 @@
    <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">
                <div id="sahnshishenghuo">
                    <div>
                        <el-form size="small">
                            <div style="width: 100%">
@@ -904,7 +904,7 @@
                    <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="'#sahnshishenghuo'">
                        <el-icon><Printer /></el-icon>
                        打印
                    </el-button>
@@ -1141,7 +1141,7 @@
    
}
const generatePDF=()=> {
      const element = document.getElementById('printFrom1');
      const element = document.getElementById('sahnshishenghuo');
      const opt = {
        margin: 10,
        filename: `${state.tableData.表名}.pdf`,