From fb1205e22778115caadfe954e60720be852cceba Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 25 二月 2025 15:28:14 +0800
Subject: [PATCH] gx
---
src/views/home/components/shiwuguoming/editDietary.vue | 6 +++---
src/views/home/components/fangAn/editDietary.vue | 8 ++++----
src/views/home/components/editDietary.vue | 6 +++---
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/views/home/components/editDietary.vue b/src/views/home/components/editDietary.vue
index 5e8ef1c..49992ca 100644
--- a/src/views/home/components/editDietary.vue
+++ b/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`,
diff --git a/src/views/home/components/fangAn/editDietary.vue b/src/views/home/components/fangAn/editDietary.vue
index e5912a0..a79ecca 100644
--- a/src/views/home/components/fangAn/editDietary.vue
+++ b/src/views/home/components/fangAn/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" class="print-section">
+ <div id="fanganprintFrom1" class="print-section">
<div>
<el-form size="small">
<div style="width: 100%">
@@ -536,7 +536,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="'#fanganprintFrom1'">
<el-icon>
<Printer />
</el-icon>
@@ -546,7 +546,7 @@
<el-icon>
<Position />
</el-icon>
- 导出
+ 导出22
</el-button>
</div>
@@ -805,7 +805,7 @@
}
const generatePDF = () => {
- const element = document.getElementById('printFrom1');
+ const element = document.getElementById('fanganprintFrom1');
const opt = {
margin: 0,
filename: `${state.tableData.表名}.pdf`,
diff --git a/src/views/home/components/shiwuguoming/editDietary.vue b/src/views/home/components/shiwuguoming/editDietary.vue
index 88a90da..114b1a0 100644
--- a/src/views/home/components/shiwuguoming/editDietary.vue
+++ b/src/views/home/components/shiwuguoming/editDietary.vue
@@ -3,7 +3,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="guomingyuan">
<div>
<el-form size="small">
<div style="width: 100%">
@@ -473,7 +473,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="'#guomingyuan'">
<el-icon><Printer /></el-icon>
打印
</el-button>
@@ -628,7 +628,7 @@
}
const generatePDF=()=> {
- const element = document.getElementById('printFrom1');
+ const element = document.getElementById('guomingyuan');
const opt = {
margin: 10,
filename: `${state.tableData.表名}.pdf`,
--
Gitblit v1.8.0