|
@@ -470,7 +470,10 @@
|
|
|
@click="openYbj"
|
|
|
>预览</el-button
|
|
|
> -->
|
|
|
- <el-button v-print="print" plain type="primary">打印</el-button>
|
|
|
+ <!-- v-print="print" -->
|
|
|
+ <el-button @click="printHtml" plain type="primary"
|
|
|
+ >打印</el-button
|
|
|
+ >
|
|
|
<el-row :gutter="24">
|
|
|
<el-col :span="6"></el-col>
|
|
|
<el-col :span="12">
|
|
@@ -621,6 +624,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
import { getJToken, getToken } from "@/utils/auth";
|
|
|
import { getInfo } from "@/api/login";
|
|
|
import { listType } from "@/api/archive/type";
|
|
|
+import print from "print-js";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
|
@@ -743,6 +747,11 @@ function confirmEvent(item, index) {
|
|
|
outMessageParams.value.messageFileList.splice(index, 1);
|
|
|
});
|
|
|
}
|
|
|
+function printHtml() {
|
|
|
+ setTimeout(() => {
|
|
|
+ proxy.$refs.dispatchRef.printY();
|
|
|
+ }, 500);
|
|
|
+}
|
|
|
//删除附件
|
|
|
function delFile(item, index) {}
|
|
|
function closeDialog(done) {
|