|
|
@@ -92,6 +92,13 @@ const reportFormatSetupObj = {
|
|
|
async function(result){
|
|
|
console.log(result);
|
|
|
me.templateObj[`${rptNode.refId}`] = result.data;
|
|
|
+ if (result.data['主信息']['打印页面_信息']['方向'] === 'PORTRAIT') {
|
|
|
+ me.canvas.height = 1150;
|
|
|
+ me.canvas.width = 820;
|
|
|
+ } else {
|
|
|
+ me.canvas.height = 820;
|
|
|
+ me.canvas.width = 1150;
|
|
|
+ }
|
|
|
me.fieldParamOptions = me.initialSelectionFields(result.data);
|
|
|
me.initialTitle(result.data);
|
|
|
me.initialHeader(result.data);
|
|
|
@@ -407,7 +414,8 @@ const reportFormatSetupObj = {
|
|
|
updateReportTemplate: () => {
|
|
|
const me = reportFormatSetupObj;
|
|
|
const rptTemplate = me._prepareReportTemplate();
|
|
|
- if (rptTemplate) {
|
|
|
+ const curNodes = me.treeObj.getSelectedNodes();
|
|
|
+ if (rptTemplate && curNodes.length > 0) {
|
|
|
const params = { tplId: curNodes[0].ID, tplName: curNodes[0].name, tplObj: JSON.stringify(rptTemplate) };
|
|
|
const url = '/report_api/updateReportTemplate';
|
|
|
$.bootstrapLoading.start();
|