提交 1b98a669 authored 作者: 钟是志's avatar 钟是志

打印相关功能调整

上级 350b2000
......@@ -123,6 +123,7 @@ export function getLodop(dir, oOBJECT, oEMBED) {
//===如下空白位置适合调用统一功能(如注册语句、语言选择等):===
LODOP.SET_SHOW_MODE('LANGUAGE', 0);
LODOP.SET_LICENSES('成都市知用科技有限公司', '649677881727389907689190562356', '', '');
console.log('licenses注入语句已执行');
//===========================================================
return LODOP;
} catch (err) {
......
......@@ -2,8 +2,8 @@ import { message } from 'antd';
import { ModalConfirm, ModalInfo } from '@/baseComponent/Modal';
import * as lo from './LodopFuncs';
export const A4Height = '29.6cm';
export const A4Width = '20.9cm';
export const A4Height = '28.7cm';
export const A4Width = '19.8cm';
export const imageStyleAll = {
width: '100%',
// height: '100%',
......@@ -28,8 +28,6 @@ export function getCLodopFuncJS() {
}
document.querySelector('body').appendChild(sc);
sc.onload = function() {
console.log(window.LODOP);
// getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
resolve(true);
console.log('打印插件加载成功');
};
......@@ -101,3 +99,22 @@ export const styleCount = (config) => {
};
return style;
};
export const templateCode = [
{
path: '/xg/xg_hard/SearchAndPrint/printReview',
code: 'award',
name: '评奖评优奖状',
},
{
path: '/xg/student_affairs/replace/printStudentCard',
code: 'reissueStudentCard',
name: '学生证补办打印',
},
{
path: '/xg/stundents_record/printStudentCard',
code: 'studentCard',
name: '学生信息-学生证打印',
},
];
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论