fix(common): 统一异常处理并迁移打印功能到hiprint
- 替换所有System.out.println和printStackTrace为slf4j日志记录 - 在BeanUtils、AuditFieldUtil、DateUtils、ServletUtils等工具类中添加Logger实例 - 在Flowable相关控制器和服务中统一错误日志记录格式 - 在代码生成器中添加日志记录功能 - 将前端打印组件从Lodop迁移到hiprint打印方案 - 更新体温单打印功能使用hiprint预览打印 - 移除调试用的console.log语句 - 修复打印模板中线条元素类型定义
This commit is contained in:
@@ -3,7 +3,7 @@ import {createApp} from 'vue';
|
||||
import Cookies from 'js-cookie';
|
||||
|
||||
// 导入 hiprint 并挂载到全局 window 对象
|
||||
import {hiprint, autoConnect, disAutoConnect} from 'vue-plugin-hiprint';
|
||||
import {hiprint, defaultElementTypeProvider} from 'vue-plugin-hiprint';
|
||||
|
||||
import ElementPlus, {ElDialog, ElMessage} from 'element-plus';
|
||||
import zhCn from 'element-plus/es/locale/lang/zh-cn';
|
||||
@@ -52,9 +52,9 @@ import {registerComponents} from './template';
|
||||
|
||||
window.hiprint = hiprint;
|
||||
|
||||
// 初始化 hiprint 并连接本地客户端
|
||||
// 初始化 hiprint,使用默认元素类型提供器(支持 table、text、image 等元素)
|
||||
hiprint.init({
|
||||
providers: []
|
||||
providers: [new defaultElementTypeProvider()]
|
||||
});
|
||||
|
||||
// 延迟连接,确保 hiwebSocket 已初始化
|
||||
|
||||
Reference in New Issue
Block a user