|
@@ -187,10 +187,11 @@ const appContext = () => {
|
|
|
};
|
|
|
};
|
|
|
|
|
|
-const handlePrint = () => {
|
|
|
+const handlePrint = (val:any) => {
|
|
|
editor.editor.execute("print", {
|
|
|
value: {
|
|
|
- showPreview: false,
|
|
|
+ showPreview: true,
|
|
|
+ mode: val == 'server' ? 'backend' : ''
|
|
|
},
|
|
|
});
|
|
|
};
|
|
@@ -328,9 +329,10 @@ const modelFlag = ref<boolean>(false);
|
|
|
<div>
|
|
|
<div style="width: 100%; text-align: right">
|
|
|
<el-button type="success" @click="saveData">保存</el-button>
|
|
|
- <el-button icon="Printer" type="success" @click="handlePrint">
|
|
|
- 打印</el-button
|
|
|
- >
|
|
|
+ <el-button icon="Printer" type="success" @click="handlePrint('')">
|
|
|
+ 页面打印</el-button>
|
|
|
+ <el-button icon="Printer" type="success" @click="handlePrint('server')">
|
|
|
+ 服务打印</el-button>
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-button-group class="ml-4">
|