ecinc-cloud-yoabase 9.6.296 → 9.6.298
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ecyoabase.common.js +25 -10
- package/lib/ecyoabase.umd.js +25 -10
- package/lib/ecyoabase.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecyoabase.common.js
CHANGED
|
@@ -240066,8 +240066,8 @@ var InlineTextEditor_component = normalizeComponent(
|
|
|
240066
240066
|
)
|
|
240067
240067
|
|
|
240068
240068
|
/* harmony default export */ var InlineTextEditor = (InlineTextEditor_component.exports);
|
|
240069
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/workflow/wfInstance/mainform/components/PrintFile.vue?vue&type=template&id=
|
|
240070
|
-
var
|
|
240069
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/workflow/wfInstance/mainform/components/PrintFile.vue?vue&type=template&id=3a381c2a&scoped=true
|
|
240070
|
+
var PrintFilevue_type_template_id_3a381c2a_scoped_true_render = function render() {
|
|
240071
240071
|
var _vm = this,
|
|
240072
240072
|
_c = _vm._self._c;
|
|
240073
240073
|
return _c('div', {
|
|
@@ -240107,7 +240107,7 @@ var PrintFilevue_type_template_id_4070b204_scoped_true_render = function render(
|
|
|
240107
240107
|
}
|
|
240108
240108
|
})], 1);
|
|
240109
240109
|
};
|
|
240110
|
-
var
|
|
240110
|
+
var PrintFilevue_type_template_id_3a381c2a_scoped_true_staticRenderFns = [];
|
|
240111
240111
|
|
|
240112
240112
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/workflow/wfInstance/mainform/components/PrintFile.vue?vue&type=script&lang=js
|
|
240113
240113
|
|
|
@@ -240155,9 +240155,17 @@ var PrintFilevue_type_template_id_4070b204_scoped_true_staticRenderFns = [];
|
|
|
240155
240155
|
//web表单print:宽度为950px,根据A4打印区域比例转换高度为950/643*971=1434px
|
|
240156
240156
|
var pageHeight = 1434; //打印内容高度,根据高度计算分页
|
|
240157
240157
|
var blankHeight = 0; //空白高度
|
|
240158
|
+
var landscape = 0;
|
|
240159
|
+
var printDiv = ifrmPrint.contentDocument.querySelector('.form-container-print');
|
|
240160
|
+
// 仅查找td标签下的.el-table
|
|
240161
|
+
var innerTables = Array.from(printDiv.querySelectorAll('td .el-table'));
|
|
240162
|
+
if (innerTables.length > 0) {
|
|
240163
|
+
//横板打印宽度1200px,边距112,根据A4打印区域比较转换高度为(1200-112*2)*(210/297)
|
|
240164
|
+
pageHeight = 690;
|
|
240165
|
+
landscape = 1;
|
|
240166
|
+
}
|
|
240158
240167
|
|
|
240159
240168
|
//处理单分页处理
|
|
240160
|
-
var printDiv = ifrmPrint.contentDocument.querySelector('.form-container-print');
|
|
240161
240169
|
printDiv.style.paddingTop = '0px';
|
|
240162
240170
|
var rows = printDiv.querySelector('tbody').children;
|
|
240163
240171
|
var headerHeight = printDiv.querySelector('.form-header').getBoundingClientRect().height; //表单标题栏高度
|
|
@@ -240263,7 +240271,7 @@ var PrintFilevue_type_template_id_4070b204_scoped_true_staticRenderFns = [];
|
|
|
240263
240271
|
}
|
|
240264
240272
|
});
|
|
240265
240273
|
if (attachs.length === 0) {
|
|
240266
|
-
rowsHeight += printDiv.querySelector('.sidebar-area-content').getBoundingClientRect().height;
|
|
240274
|
+
rowsHeight += printDiv.querySelector('.sidebar-area-content').getBoundingClientRect().height + 20;
|
|
240267
240275
|
}
|
|
240268
240276
|
rowsHeight += 15; //sidebar-area-content下边距
|
|
240269
240277
|
printDiv.innerHTML += '<span class="print_breakpage" pageHeight=' + rowsHeight + '></span>';
|
|
@@ -240289,7 +240297,7 @@ var PrintFilevue_type_template_id_4070b204_scoped_true_staticRenderFns = [];
|
|
|
240289
240297
|
} else {
|
|
240290
240298
|
//另存为下载处理单、正文、附件自动打开下载链接
|
|
240291
240299
|
var url = "/apigw" + '/' + $scope.wfEngineUrl.split('/')[0] + '/webForm/download?module=' + $scope.wfInstance.module + '&busiDataId=' + $scope.wfInstance.busiDataId;
|
|
240292
|
-
url += '&pageSize=' + printPages.length;
|
|
240300
|
+
url += '&pageSize=' + printPages.length + '&landscape=' + landscape;
|
|
240293
240301
|
if ($scope.wfInstance.module !== 'fawen') url += '&doc=true';
|
|
240294
240302
|
url += '&httpPort=' + location.port;
|
|
240295
240303
|
window.open(url);
|
|
@@ -240304,6 +240312,13 @@ var PrintFilevue_type_template_id_4070b204_scoped_true_staticRenderFns = [];
|
|
|
240304
240312
|
var printDiv = ifrmPrint.contentDocument.querySelector('.form-container-print');
|
|
240305
240313
|
var page = printPages[pageNum++];
|
|
240306
240314
|
var pageHeight = 1434;
|
|
240315
|
+
var pageWidth = 950;
|
|
240316
|
+
// 仅查找td标签下的.el-table
|
|
240317
|
+
var innerTables = Array.from(printDiv.querySelectorAll('td .el-table'));
|
|
240318
|
+
if (innerTables.length > 0) {
|
|
240319
|
+
pageHeight = 690;
|
|
240320
|
+
pageWidth = 1200;
|
|
240321
|
+
}
|
|
240307
240322
|
if (page.attributes['pageHeight']) {
|
|
240308
240323
|
pageHeight = parseInt(page.attributes['pageHeight'].nodeValue);
|
|
240309
240324
|
}
|
|
@@ -240317,7 +240332,7 @@ var PrintFilevue_type_template_id_4070b204_scoped_true_staticRenderFns = [];
|
|
|
240317
240332
|
html2canvas_default()(printDiv, {
|
|
240318
240333
|
x: 0,
|
|
240319
240334
|
y: positionY,
|
|
240320
|
-
width:
|
|
240335
|
+
width: pageWidth,
|
|
240321
240336
|
height: pageHeight,
|
|
240322
240337
|
scale: 2,
|
|
240323
240338
|
// 增加渲染分辨率
|
|
@@ -240488,11 +240503,11 @@ var PrintFilevue_type_template_id_4070b204_scoped_true_staticRenderFns = [];
|
|
|
240488
240503
|
;
|
|
240489
240504
|
var PrintFile_component = normalizeComponent(
|
|
240490
240505
|
components_PrintFilevue_type_script_lang_js,
|
|
240491
|
-
|
|
240492
|
-
|
|
240506
|
+
PrintFilevue_type_template_id_3a381c2a_scoped_true_render,
|
|
240507
|
+
PrintFilevue_type_template_id_3a381c2a_scoped_true_staticRenderFns,
|
|
240493
240508
|
false,
|
|
240494
240509
|
null,
|
|
240495
|
-
"
|
|
240510
|
+
"3a381c2a",
|
|
240496
240511
|
null
|
|
240497
240512
|
|
|
240498
240513
|
)
|
package/lib/ecyoabase.umd.js
CHANGED
|
@@ -240076,8 +240076,8 @@ var InlineTextEditor_component = normalizeComponent(
|
|
|
240076
240076
|
)
|
|
240077
240077
|
|
|
240078
240078
|
/* harmony default export */ var InlineTextEditor = (InlineTextEditor_component.exports);
|
|
240079
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/workflow/wfInstance/mainform/components/PrintFile.vue?vue&type=template&id=
|
|
240080
|
-
var
|
|
240079
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/workflow/wfInstance/mainform/components/PrintFile.vue?vue&type=template&id=3a381c2a&scoped=true
|
|
240080
|
+
var PrintFilevue_type_template_id_3a381c2a_scoped_true_render = function render() {
|
|
240081
240081
|
var _vm = this,
|
|
240082
240082
|
_c = _vm._self._c;
|
|
240083
240083
|
return _c('div', {
|
|
@@ -240117,7 +240117,7 @@ var PrintFilevue_type_template_id_4070b204_scoped_true_render = function render(
|
|
|
240117
240117
|
}
|
|
240118
240118
|
})], 1);
|
|
240119
240119
|
};
|
|
240120
|
-
var
|
|
240120
|
+
var PrintFilevue_type_template_id_3a381c2a_scoped_true_staticRenderFns = [];
|
|
240121
240121
|
|
|
240122
240122
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/workflow/wfInstance/mainform/components/PrintFile.vue?vue&type=script&lang=js
|
|
240123
240123
|
|
|
@@ -240165,9 +240165,17 @@ var PrintFilevue_type_template_id_4070b204_scoped_true_staticRenderFns = [];
|
|
|
240165
240165
|
//web表单print:宽度为950px,根据A4打印区域比例转换高度为950/643*971=1434px
|
|
240166
240166
|
var pageHeight = 1434; //打印内容高度,根据高度计算分页
|
|
240167
240167
|
var blankHeight = 0; //空白高度
|
|
240168
|
+
var landscape = 0;
|
|
240169
|
+
var printDiv = ifrmPrint.contentDocument.querySelector('.form-container-print');
|
|
240170
|
+
// 仅查找td标签下的.el-table
|
|
240171
|
+
var innerTables = Array.from(printDiv.querySelectorAll('td .el-table'));
|
|
240172
|
+
if (innerTables.length > 0) {
|
|
240173
|
+
//横板打印宽度1200px,边距112,根据A4打印区域比较转换高度为(1200-112*2)*(210/297)
|
|
240174
|
+
pageHeight = 690;
|
|
240175
|
+
landscape = 1;
|
|
240176
|
+
}
|
|
240168
240177
|
|
|
240169
240178
|
//处理单分页处理
|
|
240170
|
-
var printDiv = ifrmPrint.contentDocument.querySelector('.form-container-print');
|
|
240171
240179
|
printDiv.style.paddingTop = '0px';
|
|
240172
240180
|
var rows = printDiv.querySelector('tbody').children;
|
|
240173
240181
|
var headerHeight = printDiv.querySelector('.form-header').getBoundingClientRect().height; //表单标题栏高度
|
|
@@ -240273,7 +240281,7 @@ var PrintFilevue_type_template_id_4070b204_scoped_true_staticRenderFns = [];
|
|
|
240273
240281
|
}
|
|
240274
240282
|
});
|
|
240275
240283
|
if (attachs.length === 0) {
|
|
240276
|
-
rowsHeight += printDiv.querySelector('.sidebar-area-content').getBoundingClientRect().height;
|
|
240284
|
+
rowsHeight += printDiv.querySelector('.sidebar-area-content').getBoundingClientRect().height + 20;
|
|
240277
240285
|
}
|
|
240278
240286
|
rowsHeight += 15; //sidebar-area-content下边距
|
|
240279
240287
|
printDiv.innerHTML += '<span class="print_breakpage" pageHeight=' + rowsHeight + '></span>';
|
|
@@ -240299,7 +240307,7 @@ var PrintFilevue_type_template_id_4070b204_scoped_true_staticRenderFns = [];
|
|
|
240299
240307
|
} else {
|
|
240300
240308
|
//另存为下载处理单、正文、附件自动打开下载链接
|
|
240301
240309
|
var url = "/apigw" + '/' + $scope.wfEngineUrl.split('/')[0] + '/webForm/download?module=' + $scope.wfInstance.module + '&busiDataId=' + $scope.wfInstance.busiDataId;
|
|
240302
|
-
url += '&pageSize=' + printPages.length;
|
|
240310
|
+
url += '&pageSize=' + printPages.length + '&landscape=' + landscape;
|
|
240303
240311
|
if ($scope.wfInstance.module !== 'fawen') url += '&doc=true';
|
|
240304
240312
|
url += '&httpPort=' + location.port;
|
|
240305
240313
|
window.open(url);
|
|
@@ -240314,6 +240322,13 @@ var PrintFilevue_type_template_id_4070b204_scoped_true_staticRenderFns = [];
|
|
|
240314
240322
|
var printDiv = ifrmPrint.contentDocument.querySelector('.form-container-print');
|
|
240315
240323
|
var page = printPages[pageNum++];
|
|
240316
240324
|
var pageHeight = 1434;
|
|
240325
|
+
var pageWidth = 950;
|
|
240326
|
+
// 仅查找td标签下的.el-table
|
|
240327
|
+
var innerTables = Array.from(printDiv.querySelectorAll('td .el-table'));
|
|
240328
|
+
if (innerTables.length > 0) {
|
|
240329
|
+
pageHeight = 690;
|
|
240330
|
+
pageWidth = 1200;
|
|
240331
|
+
}
|
|
240317
240332
|
if (page.attributes['pageHeight']) {
|
|
240318
240333
|
pageHeight = parseInt(page.attributes['pageHeight'].nodeValue);
|
|
240319
240334
|
}
|
|
@@ -240327,7 +240342,7 @@ var PrintFilevue_type_template_id_4070b204_scoped_true_staticRenderFns = [];
|
|
|
240327
240342
|
html2canvas_default()(printDiv, {
|
|
240328
240343
|
x: 0,
|
|
240329
240344
|
y: positionY,
|
|
240330
|
-
width:
|
|
240345
|
+
width: pageWidth,
|
|
240331
240346
|
height: pageHeight,
|
|
240332
240347
|
scale: 2,
|
|
240333
240348
|
// 增加渲染分辨率
|
|
@@ -240498,11 +240513,11 @@ var PrintFilevue_type_template_id_4070b204_scoped_true_staticRenderFns = [];
|
|
|
240498
240513
|
;
|
|
240499
240514
|
var PrintFile_component = normalizeComponent(
|
|
240500
240515
|
components_PrintFilevue_type_script_lang_js,
|
|
240501
|
-
|
|
240502
|
-
|
|
240516
|
+
PrintFilevue_type_template_id_3a381c2a_scoped_true_render,
|
|
240517
|
+
PrintFilevue_type_template_id_3a381c2a_scoped_true_staticRenderFns,
|
|
240503
240518
|
false,
|
|
240504
240519
|
null,
|
|
240505
|
-
"
|
|
240520
|
+
"3a381c2a",
|
|
240506
240521
|
null
|
|
240507
240522
|
|
|
240508
240523
|
)
|