ecinc-cloud-yoabase 9.6.276 → 9.6.278
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 +213 -84
- package/lib/ecyoabase.umd.js +213 -84
- package/lib/ecyoabase.umd.min.js +9 -9
- package/package.json +1 -1
package/lib/ecyoabase.umd.js
CHANGED
|
@@ -14492,7 +14492,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "", ""]);
|
|
|
14492
14492
|
|
|
14493
14493
|
/***/ }),
|
|
14494
14494
|
|
|
14495
|
-
/***/
|
|
14495
|
+
/***/ 599:
|
|
14496
14496
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14497
14497
|
|
|
14498
14498
|
"use strict";
|
|
@@ -14506,7 +14506,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14506
14506
|
|
|
14507
14507
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
14508
14508
|
// Module
|
|
14509
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
14509
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-13424484] .el-table__body-wrapper::-webkit-scrollbar{height:8px!important}[data-v-13424484] .el-table__body-wrapper::-webkit-scrollbar-track{border-radius:12px}[data-v-13424484] .el-table__body-wrapper::-webkit-scrollbar-thumb{border-radius:12px;background-color:#f2f5fb}[data-v-13424484] .el-form .el-table__body .tdlbl{background:#f2f5fb!important}#new-busi-form[data-v-13424484]{height:100%;background:#f0f2f5}#new-busi-form .new-head[data-v-13424484]{height:68px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0 20px;background:#fff}#new-busi-form .new-head[data-v-13424484],#new-busi-form .new-head .head-left[data-v-13424484]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}#new-busi-form .new-head .head-left img[data-v-13424484]{width:44px;height:44px}#new-busi-form .new-head .head-left .head-title[data-v-13424484]{margin-left:10px;margin-top:10px;font-size:var(--portalFontSize13);color:#999;font-weight:400}#new-busi-form .new-head .head-left .head-title .moduleTitle[data-v-13424484]{font-size:22px;line-height:29px}#new-busi-form .new-head .head-left .head-title .moduleT[data-v-13424484]{position:relative;font-weight:400;color:#999}#new-busi-form .new-head .head-left .head-title .sidebar-divide[data-v-13424484]{border-right:1px solid #ccc;margin:0 10px;height:14px}#new-busi-form .new-head .head-left .head-title .formTapBtn[data-v-13424484]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:10px;font-family:MicrosoftYaHei;color:#000;font-size:var(--portalFontSize13)}#new-busi-form .new-head .head-left .head-title .formTapBtn .tapItemBtn[data-v-13424484]{position:relative;margin-right:15px}#new-busi-form .new-head .head-left .head-title .formTapBtn .active[data-v-13424484]{position:relative;color:var(--subjectColor);font-weight:700}#new-busi-form .new-head .head-left .head-title .formTapBtn .active[data-v-13424484]:after{content:\"\";position:absolute;bottom:-12px;left:0;width:100%;height:2px;background:var(--subjectColor)}#new-busi-form .new-head .head-left .head-title .formTapBtn .tapItemBtn[data-v-13424484]:hover{cursor:pointer;color:var(--subjectColor)}#new-busi-form .busi-box[data-v-13424484]{height:calc(100% - 68px);overflow-y:auto}#new-busi-form .busi-box .busi-content[data-v-13424484]{width:calc(100% - 40px);background:#fff;min-height:100%;margin:20px auto;-webkit-box-shadow:0 0 6px 0 rgba(0,0,0,.06);box-shadow:0 0 6px 0 rgba(0,0,0,.06)}#new-busi-form .busi-box .busi-content .title-info[data-v-13424484]{height:93px;text-align:center;line-height:93px;font-size:24px;color:#000}#new-busi-form .busi-box .busi-content .busi-components[data-v-13424484]{width:87%;margin:0 auto;padding:0}@media (max-width:1600px){#new-busi-form .busi-box .busi-content[data-v-13424484]{width:calc(100% - 40px)}}@media (min-width:2120px){#new-busi-form .busi-box .busi-content[data-v-13424484]{width:calc(100% - 40px)}}#new-busi-form .busi-box[data-v-13424484]::-webkit-scrollbar{background-color:#f0f2f5;width:8px}#new-busi-form .busi-box[data-v-13424484]::-webkit-scrollbar-thumb{border-radius:12px}#new-busi-form .busi-box:hover.busi-box[data-v-13424484]::-webkit-scrollbar-thumb{background-color:#d5d6d8}#new-busi-form[data-v-13424484] .el-table .el-table__header-wrapper .el-table__header thead th{background:transparent!important}#new-busi-form[data-v-13424484] .el-form .el-table__body .tdlbl .required{position:absolute;left:6px}#new-busi-form[data-v-13424484] .el-table__cell.tdlbl{padding:4px 6px 4px 15px!important}#new-busi-form[data-v-13424484] .el-form .el-table__body .tdlbl{text-align:left}#new-busi-form[data-v-13424484] .el-form .el-table__body td.tdw17{width:15.6%}#new-busi-form[data-v-13424484] .el-form .el-table__body td.tdw33{width:34.4%}#new-busi-form[data-v-13424484] .el-form .el-table__body td.tdw83{width:84.4%}#new-busi-form[data-v-13424484] .el-form .el-table__body td.tdw13{width:10.4%}#new-busi-form[data-v-13424484] .el-form .el-table__body td.tdw20{width:22.9%}#new-busi-form[data-v-13424484] .el-form .el-table.el-table--border td{border-right-color:#999!important;border-bottom-color:#999!important}#new-busi-form[data-v-13424484] .el-table--border .el-table__cell{border-right:1px solid #999}#new-busi-form[data-v-13424484] .el-form .el-table.el-table--border{border-color:#999}#new-busi-form .el-table--group[data-v-13424484]:after,#new-busi-form[data-v-13424484] .el-form .el-table:before,#new-busi-form[data-v-13424484] .el-table--border:after,#new-busi-form[data-v-13424484] .el-table:before{background-color:#999}#new-busi-form[data-v-13424484] .title-container{border-color:#fff!important}#new-busi-form[data-v-13424484] .title-container .has-bottom{border:1px solid #999;border-bottom:0}#new-busi-form[data-v-13424484] .el-form .el-table:after{background-color:#999}#new-busi-form[data-v-13424484] .el-table--border{border-color:#999}#new-busi-form[data-v-13424484] .el-tabs .el-tabs__header{width:60%;background-color:unset}#new-busi-form[data-v-13424484] .el-tabs__nav-wrap:after{height:0}#new-busi-form[data-v-13424484] .el-table td.el-table__cell,#new-busi-form[data-v-13424484] .el-table th.el-table__cell.is-leaf{border-bottom:1px solid #999}#new-busi-form[data-v-13424484] .toolbar-box .el-button{border:1px solid #999}#new-busi-form[data-v-13424484] .el-popover__reference-wrapper .el-button-group .toolbar-box{padding:0 1px 0 0}#new-busi-form.full-screen .busi-content[data-v-13424484]{width:calc(100% - 40px);min-width:1000px}#new-busi-form.full-screen .busi-content .busi-components[data-v-13424484]{width:87%;margin:0 auto;padding:0}@media (min-width:3840px){#new-busi-form.full-screen .busi-content[data-v-13424484]{width:3200px}}", ""]);
|
|
14510
14510
|
// Exports
|
|
14511
14511
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
14512
14512
|
|
|
@@ -15379,7 +15379,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".water[data-v-48516f0c]{position:absol
|
|
|
15379
15379
|
|
|
15380
15380
|
/***/ }),
|
|
15381
15381
|
|
|
15382
|
-
/***/
|
|
15382
|
+
/***/ 333:
|
|
15383
15383
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
15384
15384
|
|
|
15385
15385
|
"use strict";
|
|
@@ -15393,7 +15393,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15393
15393
|
|
|
15394
15394
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
15395
15395
|
// Module
|
|
15396
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
15396
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-ffb44912]:export{stdMenuBgcolor:var(--lmBgColor);stdMenuHover:var(--lmBgColorActive)!important;stdMenuText:var(--lmTextColor)!important;stdMenuAcitveText:var(--lmTextColorActive)!important;stdSubMenuBgcolor:var(--lmBgColor);stdSubMenuHover:hsla(193,8%,67%,.42);stdSubMenuActiveText:var(--lmTextColorActive)!important;darkMenuBgcolor:#304156;darkMenuHover:#263445;darkMenuText:#bfcbd9;darkMenuAcitveText:#ffd04b;darkSubMenuBgcolor:#384b63;darkSubMenuHover:#263445;darkSubMenuActiveText:#ffd04b;sideBarWidth:210px;formLabelWidth:133px;lightBlue:var(--subjectColor)}.wflow-container[data-v-ffb44912]{background-color:#f3f3f3;font-weight:400;font-size:13px}[data-v-ffb44912] .sidebar-logo-link{background-color:#fff}[data-v-ffb44912] .sidebar-logo-link .sidebar-logo{margin-left:20px;height:36px!important;width:36px!important}.sidebar-logo-container[data-v-ffb44912]{background:var(--bgColor);color:var(--textColor)}[data-v-ffb44912] .page-container{overflow-y:auto;height:calc(100vh - 60px);background-color:#fff}[data-v-ffb44912] .page-container::-webkit-scrollbar{background-color:#f0f2f5;width:8px}[data-v-ffb44912] .page-container::-webkit-scrollbar-thumb{border-radius:12px}[data-v-ffb44912] .page-container:hover.page-container::-webkit-scrollbar-thumb{background-color:#d5d6d8}", ""]);
|
|
15397
15397
|
// Exports
|
|
15398
15398
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
15399
15399
|
|
|
@@ -77428,19 +77428,19 @@ var update = add("41f46e32", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
77428
77428
|
|
|
77429
77429
|
/***/ }),
|
|
77430
77430
|
|
|
77431
|
-
/***/
|
|
77431
|
+
/***/ 9747:
|
|
77432
77432
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
77433
77433
|
|
|
77434
77434
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
77435
77435
|
|
|
77436
77436
|
// load the styles
|
|
77437
|
-
var content = __webpack_require__(
|
|
77437
|
+
var content = __webpack_require__(599);
|
|
77438
77438
|
if(content.__esModule) content = content.default;
|
|
77439
77439
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
77440
77440
|
if(content.locals) module.exports = content.locals;
|
|
77441
77441
|
// add the styles to the DOM
|
|
77442
77442
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
77443
|
-
var update = add("
|
|
77443
|
+
var update = add("8bf56e5a", content, true, {"sourceMap":false,"shadowMode":false});
|
|
77444
77444
|
|
|
77445
77445
|
/***/ }),
|
|
77446
77446
|
|
|
@@ -78100,19 +78100,19 @@ var update = add("278986c4", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
78100
78100
|
|
|
78101
78101
|
/***/ }),
|
|
78102
78102
|
|
|
78103
|
-
/***/
|
|
78103
|
+
/***/ 1249:
|
|
78104
78104
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
78105
78105
|
|
|
78106
78106
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
78107
78107
|
|
|
78108
78108
|
// load the styles
|
|
78109
|
-
var content = __webpack_require__(
|
|
78109
|
+
var content = __webpack_require__(333);
|
|
78110
78110
|
if(content.__esModule) content = content.default;
|
|
78111
78111
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
78112
78112
|
if(content.locals) module.exports = content.locals;
|
|
78113
78113
|
// add the styles to the DOM
|
|
78114
78114
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
78115
|
-
var update = add("
|
|
78115
|
+
var update = add("3f4a32b8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
78116
78116
|
|
|
78117
78117
|
/***/ }),
|
|
78118
78118
|
|
|
@@ -222975,8 +222975,8 @@ var gwapCalendar_component = normalizeComponent(
|
|
|
222975
222975
|
)
|
|
222976
222976
|
|
|
222977
222977
|
/* harmony default export */ var gwapCalendar = (gwapCalendar_component.exports);
|
|
222978
|
-
;// 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/common/components/commHeader/commonHeader.vue?vue&type=template&id=
|
|
222979
|
-
var
|
|
222978
|
+
;// 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/common/components/commHeader/commonHeader.vue?vue&type=template&id=ffb44912&scoped=true
|
|
222979
|
+
var commonHeadervue_type_template_id_ffb44912_scoped_true_render = function render() {
|
|
222980
222980
|
var _vm = this,
|
|
222981
222981
|
_c = _vm._self._c;
|
|
222982
222982
|
return _c('div', {
|
|
@@ -222987,7 +222987,7 @@ var commonHeadervue_type_template_id_1f47279d_scoped_true_render = function rend
|
|
|
222987
222987
|
}
|
|
222988
222988
|
}), _c('BusiForm'), _c('select-dialog')], 1);
|
|
222989
222989
|
};
|
|
222990
|
-
var
|
|
222990
|
+
var commonHeadervue_type_template_id_ffb44912_scoped_true_staticRenderFns = [];
|
|
222991
222991
|
|
|
222992
222992
|
;// 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/common/components/commHeader/commonHeader.vue?vue&type=script&lang=js
|
|
222993
222993
|
function commonHeadervue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return commonHeadervue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, commonHeadervue_type_script_lang_js_typeof(o); }
|
|
@@ -223043,14 +223043,19 @@ function commonHeadervue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
223043
223043
|
} else if (this.$route.query.logoTitle) {
|
|
223044
223044
|
document.title = this.$route.query.logoTitle;
|
|
223045
223045
|
}
|
|
223046
|
+
var pageContainer = document.querySelector('.page-container');
|
|
223047
|
+
var headerContainer = document.querySelector('.page-header-container');
|
|
223048
|
+
if (headerContainer && pageContainer) {
|
|
223049
|
+
pageContainer.style.height = 'calc(100vh - ' + headerContainer.clientHeight + 'px)';
|
|
223050
|
+
}
|
|
223046
223051
|
},
|
|
223047
223052
|
methods: {}
|
|
223048
223053
|
});
|
|
223049
223054
|
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/common/components/commHeader/commonHeader.vue?vue&type=script&lang=js
|
|
223050
223055
|
/* harmony default export */ var commHeader_commonHeadervue_type_script_lang_js = (commonHeadervue_type_script_lang_js);
|
|
223051
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/common/components/commHeader/commonHeader.vue?vue&type=style&index=0&id=
|
|
223052
|
-
var
|
|
223053
|
-
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/common/components/commHeader/commonHeader.vue?vue&type=style&index=0&id=
|
|
223056
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/common/components/commHeader/commonHeader.vue?vue&type=style&index=0&id=ffb44912&prod&scoped=true&lang=scss
|
|
223057
|
+
var commonHeadervue_type_style_index_0_id_ffb44912_prod_scoped_true_lang_scss = __webpack_require__(1249);
|
|
223058
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/common/components/commHeader/commonHeader.vue?vue&type=style&index=0&id=ffb44912&prod&scoped=true&lang=scss
|
|
223054
223059
|
|
|
223055
223060
|
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/common/components/commHeader/commonHeader.vue
|
|
223056
223061
|
|
|
@@ -223063,11 +223068,11 @@ var commonHeadervue_type_style_index_0_id_1f47279d_prod_scoped_true_lang_scss =
|
|
|
223063
223068
|
|
|
223064
223069
|
var commonHeader_component = normalizeComponent(
|
|
223065
223070
|
commHeader_commonHeadervue_type_script_lang_js,
|
|
223066
|
-
|
|
223067
|
-
|
|
223071
|
+
commonHeadervue_type_template_id_ffb44912_scoped_true_render,
|
|
223072
|
+
commonHeadervue_type_template_id_ffb44912_scoped_true_staticRenderFns,
|
|
223068
223073
|
false,
|
|
223069
223074
|
null,
|
|
223070
|
-
"
|
|
223075
|
+
"ffb44912",
|
|
223071
223076
|
null
|
|
223072
223077
|
|
|
223073
223078
|
)
|
|
@@ -239956,8 +239961,8 @@ var InlineTextEditor_component = normalizeComponent(
|
|
|
239956
239961
|
)
|
|
239957
239962
|
|
|
239958
239963
|
/* harmony default export */ var InlineTextEditor = (InlineTextEditor_component.exports);
|
|
239959
|
-
;// 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=
|
|
239960
|
-
var
|
|
239964
|
+
;// 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=d4b340ae&scoped=true
|
|
239965
|
+
var PrintFilevue_type_template_id_d4b340ae_scoped_true_render = function render() {
|
|
239961
239966
|
var _vm = this,
|
|
239962
239967
|
_c = _vm._self._c;
|
|
239963
239968
|
return _c('div', {
|
|
@@ -239997,7 +240002,7 @@ var PrintFilevue_type_template_id_30ef3fd2_scoped_true_render = function render(
|
|
|
239997
240002
|
}
|
|
239998
240003
|
})], 1);
|
|
239999
240004
|
};
|
|
240000
|
-
var
|
|
240005
|
+
var PrintFilevue_type_template_id_d4b340ae_scoped_true_staticRenderFns = [];
|
|
240001
240006
|
|
|
240002
240007
|
;// 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
|
|
240003
240008
|
|
|
@@ -240041,73 +240046,197 @@ var PrintFilevue_type_template_id_30ef3fd2_scoped_true_staticRenderFns = [];
|
|
|
240041
240046
|
btnSaveAsDownloadClick: function btnSaveAsDownloadClick() {
|
|
240042
240047
|
var _this = this;
|
|
240043
240048
|
var $scope = this.$vnode.context;
|
|
240049
|
+
//A4纸210mm*297mm,按1英寸=25.41mm、96DPI(每英寸px数)、上下边距20mm计算,打印区域宽度为(210-20*2)/25.41*96=643px,打印区域高度为(297-20*2)/25.41*96=971px,
|
|
240050
|
+
//web表单print:宽度为950px,根据A4打印区域比例转换高度为950/643*971=1434px
|
|
240051
|
+
var pageHeight = 1434; //打印内容高度,根据高度计算分页
|
|
240052
|
+
var blankHeight = 0; //空白高度
|
|
240053
|
+
|
|
240054
|
+
//处理单分页处理
|
|
240055
|
+
var printDiv = ifrmPrint.contentDocument.querySelector('.form-container-print');
|
|
240056
|
+
printDiv.style.paddingTop = '0px';
|
|
240057
|
+
var rows = printDiv.querySelector('tbody').children;
|
|
240058
|
+
var headerHeight = printDiv.querySelector('.form-header').getBoundingClientRect().height; //表单标题栏高度
|
|
240059
|
+
var rowsHeight = 0;
|
|
240060
|
+
var pageSize = 0;
|
|
240061
|
+
var prevPositionY = 0;
|
|
240062
|
+
var _loop = function _loop() {
|
|
240063
|
+
var row = rows[r];
|
|
240064
|
+
rowsHeight = headerHeight + row.offsetTop;
|
|
240065
|
+
//超过一页,计算最后一页内容高度
|
|
240066
|
+
if (pageSize > 0) {
|
|
240067
|
+
rowsHeight -= pageHeight * pageSize;
|
|
240068
|
+
}
|
|
240069
|
+
if (rowsHeight + row.clientHeight > pageHeight) {
|
|
240070
|
+
if (row.querySelectorAll('TR').length > 0 || row.querySelectorAll('.ideaDiv').length > 0) {
|
|
240071
|
+
//内嵌子表
|
|
240072
|
+
var subRows = row.querySelectorAll('TR');
|
|
240073
|
+
if (subRows.length === 0) {
|
|
240074
|
+
//处理意见栏
|
|
240075
|
+
subRows = row.querySelectorAll('.ideaDiv');
|
|
240076
|
+
}
|
|
240077
|
+
subRows.forEach(function (subRow, subIndex) {
|
|
240078
|
+
var subRowsHeight = rowsHeight + subRow.offsetTop;
|
|
240079
|
+
var positionY = headerHeight + row.offsetTop + subRow.offsetTop;
|
|
240080
|
+
if (subRow.tagName === 'TR' && subIndex > 0) {
|
|
240081
|
+
//子表行数据,加上表头高度
|
|
240082
|
+
subRowsHeight += row.querySelector('.el-table__header-wrapper').clientHeight;
|
|
240083
|
+
positionY += row.querySelector('.el-table__header-wrapper').clientHeight;
|
|
240084
|
+
}
|
|
240085
|
+
//超过一页,计算最后一页内容高度
|
|
240086
|
+
if (pageSize > 0) {
|
|
240087
|
+
subRowsHeight -= pageHeight * pageSize;
|
|
240088
|
+
}
|
|
240089
|
+
if (subRowsHeight + subRow.clientHeight >= pageHeight) {
|
|
240090
|
+
pageSize++;
|
|
240091
|
+
subRow.classList.add('print_breakpage');
|
|
240092
|
+
subRow.setAttribute('pageHeight', positionY - prevPositionY);
|
|
240093
|
+
subRow.setAttribute('positionY', positionY);
|
|
240094
|
+
prevPositionY = positionY;
|
|
240095
|
+
}
|
|
240096
|
+
});
|
|
240097
|
+
} else if (row.clientHeight > pageHeight && r + 1 < rows.length) {
|
|
240098
|
+
//单行高度超过页面高度,直接按页面高度截取
|
|
240099
|
+
pageSize++;
|
|
240100
|
+
row.classList.add('print_breakpage');
|
|
240101
|
+
row.setAttribute('pageHeight', pageHeight);
|
|
240102
|
+
row.setAttribute('positionY', prevPositionY + pageHeight);
|
|
240103
|
+
prevPositionY = prevPositionY + pageHeight;
|
|
240104
|
+
var remainderHeight = headerHeight + row.offsetTop + row.clientHeight - prevPositionY;
|
|
240105
|
+
|
|
240106
|
+
//剩余部分单独一页
|
|
240107
|
+
row = rows[r + 1];
|
|
240108
|
+
pageSize++;
|
|
240109
|
+
row.classList.add('print_breakpage');
|
|
240110
|
+
row.setAttribute('pageHeight', remainderHeight);
|
|
240111
|
+
row.setAttribute('positionY', headerHeight + row.offsetTop);
|
|
240112
|
+
prevPositionY = headerHeight + row.offsetTop;
|
|
240113
|
+
|
|
240114
|
+
//将剩余部分不足一页空白高度追加到标题栏高度
|
|
240115
|
+
if (pageHeight > remainderHeight) {
|
|
240116
|
+
blankHeight += pageHeight - remainderHeight;
|
|
240117
|
+
headerHeight += pageHeight - remainderHeight;
|
|
240118
|
+
}
|
|
240119
|
+
} else {
|
|
240120
|
+
pageSize++;
|
|
240121
|
+
row.classList.add('print_breakpage');
|
|
240122
|
+
row.setAttribute('pageHeight', headerHeight + row.offsetTop - prevPositionY);
|
|
240123
|
+
row.setAttribute('positionY', headerHeight + row.offsetTop);
|
|
240124
|
+
prevPositionY = headerHeight + row.offsetTop;
|
|
240125
|
+
}
|
|
240126
|
+
}
|
|
240127
|
+
};
|
|
240128
|
+
for (var r = 0; r < rows.length; r++) {
|
|
240129
|
+
_loop();
|
|
240130
|
+
}
|
|
240131
|
+
|
|
240132
|
+
//附件分页处理
|
|
240133
|
+
var attachTitle = printDiv.querySelector('.sidebar-area-title');
|
|
240134
|
+
rowsHeight = attachTitle.offsetTop + blankHeight;
|
|
240135
|
+
//超过一页,计算最后一页内容高度
|
|
240136
|
+
if (pageSize > 0) {
|
|
240137
|
+
rowsHeight -= pageHeight * pageSize;
|
|
240138
|
+
}
|
|
240139
|
+
if (rowsHeight + attachTitle.getBoundingClientRect().height >= pageHeight) {
|
|
240140
|
+
pageSize++;
|
|
240141
|
+
attachTitle.classList.add('print_breakpage');
|
|
240142
|
+
attachTitle.setAttribute('pageHeight', rowsHeight);
|
|
240143
|
+
attachTitle.setAttribute('positionY', attachTitle.offsetTop);
|
|
240144
|
+
rowsHeight = attachTitle.clientHeight + blankHeight;
|
|
240145
|
+
} else {
|
|
240146
|
+
rowsHeight += attachTitle.clientHeight;
|
|
240147
|
+
}
|
|
240148
|
+
var attachs = printDiv.querySelectorAll('.attach-row');
|
|
240149
|
+
attachs.forEach(function (row, rindex) {
|
|
240150
|
+
if (rowsHeight + row.getBoundingClientRect().height >= pageHeight) {
|
|
240151
|
+
pageSize++;
|
|
240152
|
+
row.classList.add('print_breakpage');
|
|
240153
|
+
row.setAttribute('pageHeight', rowsHeight);
|
|
240154
|
+
row.setAttribute('positionY', row.offsetTop);
|
|
240155
|
+
rowsHeight = row.getBoundingClientRect().height + blankHeight;
|
|
240156
|
+
} else {
|
|
240157
|
+
rowsHeight += row.getBoundingClientRect().height;
|
|
240158
|
+
}
|
|
240159
|
+
});
|
|
240160
|
+
if (attachs.length === 0) {
|
|
240161
|
+
rowsHeight += printDiv.querySelector('.sidebar-area-content').getBoundingClientRect().height;
|
|
240162
|
+
}
|
|
240163
|
+
rowsHeight += 15; //sidebar-area-content下边距
|
|
240164
|
+
printDiv.innerHTML += '<span class="print_breakpage" pageHeight=' + rowsHeight + '></span>';
|
|
240165
|
+
|
|
240044
240166
|
// 返回base64图片地址
|
|
240045
|
-
var
|
|
240046
|
-
var formTables = printDiv.querySelectorAll('.print_formtb');
|
|
240167
|
+
var printPages = printDiv.querySelectorAll('.print_breakpage');
|
|
240047
240168
|
new Promise(function (resolve) {
|
|
240048
|
-
|
|
240049
|
-
|
|
240050
|
-
}
|
|
240051
|
-
printDiv.querySelectorAll('.page-splice').forEach(function (ps) {
|
|
240052
|
-
ps.style.display = 'none';
|
|
240053
|
-
});
|
|
240054
|
-
|
|
240169
|
+
if (printPages.length === 0) {
|
|
240170
|
+
printPages = [printDiv];
|
|
240171
|
+
}
|
|
240055
240172
|
//遍历formTables,一次只保存一个分页图片
|
|
240056
|
-
_this.saveWebformBase64data($scope,
|
|
240173
|
+
_this.saveWebformBase64data($scope, printPages, 0, 0, resolve);
|
|
240057
240174
|
}).then(function (rst) {
|
|
240058
240175
|
_this.$bus.emit('closeDoingDialog');
|
|
240059
240176
|
if (rst) {
|
|
240060
|
-
|
|
240177
|
+
//$scope.isShow = false
|
|
240061
240178
|
var url = "/apigw" + '/' + $scope.wfEngineUrl.split('/')[0] + '/webForm/download?module=' + $scope.wfInstance.module + '&busiDataId=' + $scope.wfInstance.busiDataId;
|
|
240062
|
-
url += '&pageSize=' +
|
|
240179
|
+
url += '&pageSize=' + printPages.length;
|
|
240063
240180
|
if ($scope.wfInstance.module !== 'fawen') url += '&doc=true';
|
|
240064
240181
|
url += '&httpPort=' + location.port;
|
|
240065
240182
|
window.open(url);
|
|
240066
240183
|
}
|
|
240067
240184
|
});
|
|
240068
240185
|
},
|
|
240069
|
-
saveWebformBase64data: function saveWebformBase64data($scope,
|
|
240186
|
+
saveWebformBase64data: function saveWebformBase64data($scope, printPages, pageNum, positionY, resolve) {
|
|
240070
240187
|
var _this2 = this;
|
|
240071
|
-
var printDiv = ifrmPrint.contentDocument.querySelector('
|
|
240072
|
-
var
|
|
240073
|
-
|
|
240074
|
-
if (
|
|
240075
|
-
|
|
240076
|
-
}
|
|
240077
|
-
|
|
240078
|
-
|
|
240079
|
-
|
|
240080
|
-
|
|
240081
|
-
|
|
240082
|
-
|
|
240083
|
-
|
|
240084
|
-
|
|
240085
|
-
|
|
240086
|
-
|
|
240087
|
-
|
|
240088
|
-
|
|
240089
|
-
|
|
240090
|
-
|
|
240091
|
-
|
|
240092
|
-
|
|
240093
|
-
|
|
240094
|
-
|
|
240095
|
-
|
|
240096
|
-
|
|
240097
|
-
|
|
240188
|
+
var printDiv = ifrmPrint.contentDocument.querySelector('.form-container-print');
|
|
240189
|
+
var page = printPages[pageNum++];
|
|
240190
|
+
var pageHeight = 1434;
|
|
240191
|
+
if (page.attributes['pageHeight']) {
|
|
240192
|
+
pageHeight = parseInt(page.attributes['pageHeight'].nodeValue);
|
|
240193
|
+
}
|
|
240194
|
+
if (pageHeight > 0) {
|
|
240195
|
+
this.$bus.emit('showDoingDialog', '共' + printPages.length + '页,正在处理第' + pageNum + '页┉');
|
|
240196
|
+
html2canvas_default()(printDiv, {
|
|
240197
|
+
x: 0,
|
|
240198
|
+
y: positionY,
|
|
240199
|
+
width: 950,
|
|
240200
|
+
height: pageHeight,
|
|
240201
|
+
scale: 2,
|
|
240202
|
+
// 增加渲染分辨率
|
|
240203
|
+
dpi: 96,
|
|
240204
|
+
logging: false
|
|
240205
|
+
}).then(function (canvas) {
|
|
240206
|
+
var dataURL = canvas.toDataURL('image/png');
|
|
240207
|
+
_this2.$http({
|
|
240208
|
+
method: 'POST',
|
|
240209
|
+
url: '/' + $scope.wfEngineUrl.split('/')[0] + '/webForm/saveWebformBase64data',
|
|
240210
|
+
params: {
|
|
240211
|
+
busiDataId: $scope.wfInstance.busiDataId,
|
|
240212
|
+
pageNum: pageNum
|
|
240213
|
+
},
|
|
240214
|
+
data: {
|
|
240215
|
+
formBase64data: dataURL
|
|
240216
|
+
}
|
|
240217
|
+
}).then(function (res) {
|
|
240218
|
+
if (res.code === 'success') {
|
|
240219
|
+
if (printPages.length === pageNum) {
|
|
240220
|
+
resolve(res);
|
|
240221
|
+
} else {
|
|
240222
|
+
if (page.attributes['positionY']) {
|
|
240223
|
+
positionY = parseInt(page.attributes['positionY'].nodeValue);
|
|
240224
|
+
} else {
|
|
240225
|
+
positionY += pageHeight;
|
|
240226
|
+
}
|
|
240227
|
+
_this2.saveWebformBase64data($scope, printPages, pageNum, positionY, resolve);
|
|
240228
|
+
}
|
|
240098
240229
|
} else {
|
|
240099
|
-
_this2
|
|
240230
|
+
_this2.$message({
|
|
240231
|
+
message: res.message,
|
|
240232
|
+
type: 'warning'
|
|
240233
|
+
});
|
|
240100
240234
|
}
|
|
240101
|
-
}
|
|
240102
|
-
_this2.$message(
|
|
240103
|
-
|
|
240104
|
-
type: 'warning'
|
|
240105
|
-
});
|
|
240106
|
-
}
|
|
240107
|
-
}, function (err) {
|
|
240108
|
-
_this2.$message.error(err);
|
|
240235
|
+
}, function (err) {
|
|
240236
|
+
_this2.$message.error(err);
|
|
240237
|
+
});
|
|
240109
240238
|
});
|
|
240110
|
-
}
|
|
240239
|
+
}
|
|
240111
240240
|
},
|
|
240112
240241
|
btnToDuBan: function btnToDuBan($scope) {
|
|
240113
240242
|
console.log(11, $scope);
|
|
@@ -240238,11 +240367,11 @@ var PrintFilevue_type_template_id_30ef3fd2_scoped_true_staticRenderFns = [];
|
|
|
240238
240367
|
;
|
|
240239
240368
|
var PrintFile_component = normalizeComponent(
|
|
240240
240369
|
components_PrintFilevue_type_script_lang_js,
|
|
240241
|
-
|
|
240242
|
-
|
|
240370
|
+
PrintFilevue_type_template_id_d4b340ae_scoped_true_render,
|
|
240371
|
+
PrintFilevue_type_template_id_d4b340ae_scoped_true_staticRenderFns,
|
|
240243
240372
|
false,
|
|
240244
240373
|
null,
|
|
240245
|
-
"
|
|
240374
|
+
"d4b340ae",
|
|
240246
240375
|
null
|
|
240247
240376
|
|
|
240248
240377
|
)
|
|
@@ -242564,8 +242693,8 @@ var WformLayoutSetting_component = normalizeComponent(
|
|
|
242564
242693
|
)
|
|
242565
242694
|
|
|
242566
242695
|
/* harmony default export */ var WformLayoutSetting = (WformLayoutSetting_component.exports);
|
|
242567
|
-
;// 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/BasicformOpenPage/newBusiForm.vue?vue&type=template&id=
|
|
242568
|
-
var
|
|
242696
|
+
;// 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/BasicformOpenPage/newBusiForm.vue?vue&type=template&id=13424484&scoped=true
|
|
242697
|
+
var newBusiFormvue_type_template_id_13424484_scoped_true_render = function render() {
|
|
242569
242698
|
var _vm = this,
|
|
242570
242699
|
_c = _vm._self._c;
|
|
242571
242700
|
return _c('div', {
|
|
@@ -242884,7 +243013,7 @@ var newBusiFormvue_type_template_id_24765317_scoped_true_render = function rende
|
|
|
242884
243013
|
}
|
|
242885
243014
|
})], 1)]) : _vm._e()]) : _vm._e(), _c('select-dialog')], 1);
|
|
242886
243015
|
};
|
|
242887
|
-
var
|
|
243016
|
+
var newBusiFormvue_type_template_id_13424484_scoped_true_staticRenderFns = [];
|
|
242888
243017
|
|
|
242889
243018
|
// EXTERNAL MODULE: ./src/wapp/settings.js
|
|
242890
243019
|
var settings = __webpack_require__(3844);
|
|
@@ -243404,9 +243533,9 @@ var settings = __webpack_require__(3844);
|
|
|
243404
243533
|
});
|
|
243405
243534
|
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=script&lang=js
|
|
243406
243535
|
/* harmony default export */ var BasicformOpenPage_newBusiFormvue_type_script_lang_js = (newBusiFormvue_type_script_lang_js);
|
|
243407
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=style&index=0&id=
|
|
243408
|
-
var
|
|
243409
|
-
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=style&index=0&id=
|
|
243536
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=style&index=0&id=13424484&prod&scoped=true&lang=scss
|
|
243537
|
+
var newBusiFormvue_type_style_index_0_id_13424484_prod_scoped_true_lang_scss = __webpack_require__(9747);
|
|
243538
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=style&index=0&id=13424484&prod&scoped=true&lang=scss
|
|
243410
243539
|
|
|
243411
243540
|
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue
|
|
243412
243541
|
|
|
@@ -243419,11 +243548,11 @@ var newBusiFormvue_type_style_index_0_id_24765317_prod_scoped_true_lang_scss = _
|
|
|
243419
243548
|
|
|
243420
243549
|
var newBusiForm_component = normalizeComponent(
|
|
243421
243550
|
BasicformOpenPage_newBusiFormvue_type_script_lang_js,
|
|
243422
|
-
|
|
243423
|
-
|
|
243551
|
+
newBusiFormvue_type_template_id_13424484_scoped_true_render,
|
|
243552
|
+
newBusiFormvue_type_template_id_13424484_scoped_true_staticRenderFns,
|
|
243424
243553
|
false,
|
|
243425
243554
|
null,
|
|
243426
|
-
"
|
|
243555
|
+
"13424484",
|
|
243427
243556
|
null
|
|
243428
243557
|
|
|
243429
243558
|
)
|