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.common.js
CHANGED
|
@@ -14482,7 +14482,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "", ""]);
|
|
|
14482
14482
|
|
|
14483
14483
|
/***/ }),
|
|
14484
14484
|
|
|
14485
|
-
/***/
|
|
14485
|
+
/***/ 2919:
|
|
14486
14486
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14487
14487
|
|
|
14488
14488
|
"use strict";
|
|
@@ -14496,7 +14496,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14496
14496
|
|
|
14497
14497
|
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()));
|
|
14498
14498
|
// Module
|
|
14499
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
14499
|
+
___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}}", ""]);
|
|
14500
14500
|
// Exports
|
|
14501
14501
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
14502
14502
|
|
|
@@ -15369,7 +15369,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".water[data-v-48516f0c]{position:absol
|
|
|
15369
15369
|
|
|
15370
15370
|
/***/ }),
|
|
15371
15371
|
|
|
15372
|
-
/***/
|
|
15372
|
+
/***/ 4701:
|
|
15373
15373
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
15374
15374
|
|
|
15375
15375
|
"use strict";
|
|
@@ -15383,7 +15383,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15383
15383
|
|
|
15384
15384
|
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()));
|
|
15385
15385
|
// Module
|
|
15386
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
15386
|
+
___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}", ""]);
|
|
15387
15387
|
// Exports
|
|
15388
15388
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
15389
15389
|
|
|
@@ -77418,19 +77418,19 @@ var update = add("7a162b30", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
77418
77418
|
|
|
77419
77419
|
/***/ }),
|
|
77420
77420
|
|
|
77421
|
-
/***/
|
|
77421
|
+
/***/ 969:
|
|
77422
77422
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
77423
77423
|
|
|
77424
77424
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
77425
77425
|
|
|
77426
77426
|
// load the styles
|
|
77427
|
-
var content = __webpack_require__(
|
|
77427
|
+
var content = __webpack_require__(2919);
|
|
77428
77428
|
if(content.__esModule) content = content.default;
|
|
77429
77429
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
77430
77430
|
if(content.locals) module.exports = content.locals;
|
|
77431
77431
|
// add the styles to the DOM
|
|
77432
77432
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
77433
|
-
var update = add("
|
|
77433
|
+
var update = add("3a26455a", content, true, {"sourceMap":false,"shadowMode":false});
|
|
77434
77434
|
|
|
77435
77435
|
/***/ }),
|
|
77436
77436
|
|
|
@@ -78090,19 +78090,19 @@ var update = add("231f9a9e", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
78090
78090
|
|
|
78091
78091
|
/***/ }),
|
|
78092
78092
|
|
|
78093
|
-
/***/
|
|
78093
|
+
/***/ 8847:
|
|
78094
78094
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
78095
78095
|
|
|
78096
78096
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
78097
78097
|
|
|
78098
78098
|
// load the styles
|
|
78099
|
-
var content = __webpack_require__(
|
|
78099
|
+
var content = __webpack_require__(4701);
|
|
78100
78100
|
if(content.__esModule) content = content.default;
|
|
78101
78101
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
78102
78102
|
if(content.locals) module.exports = content.locals;
|
|
78103
78103
|
// add the styles to the DOM
|
|
78104
78104
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
78105
|
-
var update = add("
|
|
78105
|
+
var update = add("735e14b8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
78106
78106
|
|
|
78107
78107
|
/***/ }),
|
|
78108
78108
|
|
|
@@ -222965,8 +222965,8 @@ var gwapCalendar_component = normalizeComponent(
|
|
|
222965
222965
|
)
|
|
222966
222966
|
|
|
222967
222967
|
/* harmony default export */ var gwapCalendar = (gwapCalendar_component.exports);
|
|
222968
|
-
;// 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/common/components/commHeader/commonHeader.vue?vue&type=template&id=
|
|
222969
|
-
var
|
|
222968
|
+
;// 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/common/components/commHeader/commonHeader.vue?vue&type=template&id=ffb44912&scoped=true
|
|
222969
|
+
var commonHeadervue_type_template_id_ffb44912_scoped_true_render = function render() {
|
|
222970
222970
|
var _vm = this,
|
|
222971
222971
|
_c = _vm._self._c;
|
|
222972
222972
|
return _c('div', {
|
|
@@ -222977,7 +222977,7 @@ var commonHeadervue_type_template_id_1f47279d_scoped_true_render = function rend
|
|
|
222977
222977
|
}
|
|
222978
222978
|
}), _c('BusiForm'), _c('select-dialog')], 1);
|
|
222979
222979
|
};
|
|
222980
|
-
var
|
|
222980
|
+
var commonHeadervue_type_template_id_ffb44912_scoped_true_staticRenderFns = [];
|
|
222981
222981
|
|
|
222982
222982
|
;// 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/common/components/commHeader/commonHeader.vue?vue&type=script&lang=js
|
|
222983
222983
|
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); }
|
|
@@ -223033,14 +223033,19 @@ function commonHeadervue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
223033
223033
|
} else if (this.$route.query.logoTitle) {
|
|
223034
223034
|
document.title = this.$route.query.logoTitle;
|
|
223035
223035
|
}
|
|
223036
|
+
var pageContainer = document.querySelector('.page-container');
|
|
223037
|
+
var headerContainer = document.querySelector('.page-header-container');
|
|
223038
|
+
if (headerContainer && pageContainer) {
|
|
223039
|
+
pageContainer.style.height = 'calc(100vh - ' + headerContainer.clientHeight + 'px)';
|
|
223040
|
+
}
|
|
223036
223041
|
},
|
|
223037
223042
|
methods: {}
|
|
223038
223043
|
});
|
|
223039
223044
|
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/common/components/commHeader/commonHeader.vue?vue&type=script&lang=js
|
|
223040
223045
|
/* harmony default export */ var commHeader_commonHeadervue_type_script_lang_js = (commonHeadervue_type_script_lang_js);
|
|
223041
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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=
|
|
223042
|
-
var
|
|
223043
|
-
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/common/components/commHeader/commonHeader.vue?vue&type=style&index=0&id=
|
|
223046
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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
|
|
223047
|
+
var commonHeadervue_type_style_index_0_id_ffb44912_prod_scoped_true_lang_scss = __webpack_require__(8847);
|
|
223048
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/common/components/commHeader/commonHeader.vue?vue&type=style&index=0&id=ffb44912&prod&scoped=true&lang=scss
|
|
223044
223049
|
|
|
223045
223050
|
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/common/components/commHeader/commonHeader.vue
|
|
223046
223051
|
|
|
@@ -223053,11 +223058,11 @@ var commonHeadervue_type_style_index_0_id_1f47279d_prod_scoped_true_lang_scss =
|
|
|
223053
223058
|
|
|
223054
223059
|
var commonHeader_component = normalizeComponent(
|
|
223055
223060
|
commHeader_commonHeadervue_type_script_lang_js,
|
|
223056
|
-
|
|
223057
|
-
|
|
223061
|
+
commonHeadervue_type_template_id_ffb44912_scoped_true_render,
|
|
223062
|
+
commonHeadervue_type_template_id_ffb44912_scoped_true_staticRenderFns,
|
|
223058
223063
|
false,
|
|
223059
223064
|
null,
|
|
223060
|
-
"
|
|
223065
|
+
"ffb44912",
|
|
223061
223066
|
null
|
|
223062
223067
|
|
|
223063
223068
|
)
|
|
@@ -239946,8 +239951,8 @@ var InlineTextEditor_component = normalizeComponent(
|
|
|
239946
239951
|
)
|
|
239947
239952
|
|
|
239948
239953
|
/* harmony default export */ var InlineTextEditor = (InlineTextEditor_component.exports);
|
|
239949
|
-
;// 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=
|
|
239950
|
-
var
|
|
239954
|
+
;// 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=d4b340ae&scoped=true
|
|
239955
|
+
var PrintFilevue_type_template_id_d4b340ae_scoped_true_render = function render() {
|
|
239951
239956
|
var _vm = this,
|
|
239952
239957
|
_c = _vm._self._c;
|
|
239953
239958
|
return _c('div', {
|
|
@@ -239987,7 +239992,7 @@ var PrintFilevue_type_template_id_30ef3fd2_scoped_true_render = function render(
|
|
|
239987
239992
|
}
|
|
239988
239993
|
})], 1);
|
|
239989
239994
|
};
|
|
239990
|
-
var
|
|
239995
|
+
var PrintFilevue_type_template_id_d4b340ae_scoped_true_staticRenderFns = [];
|
|
239991
239996
|
|
|
239992
239997
|
;// 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
|
|
239993
239998
|
|
|
@@ -240031,73 +240036,197 @@ var PrintFilevue_type_template_id_30ef3fd2_scoped_true_staticRenderFns = [];
|
|
|
240031
240036
|
btnSaveAsDownloadClick: function btnSaveAsDownloadClick() {
|
|
240032
240037
|
var _this = this;
|
|
240033
240038
|
var $scope = this.$vnode.context;
|
|
240039
|
+
//A4纸210mm*297mm,按1英寸=25.41mm、96DPI(每英寸px数)、上下边距20mm计算,打印区域宽度为(210-20*2)/25.41*96=643px,打印区域高度为(297-20*2)/25.41*96=971px,
|
|
240040
|
+
//web表单print:宽度为950px,根据A4打印区域比例转换高度为950/643*971=1434px
|
|
240041
|
+
var pageHeight = 1434; //打印内容高度,根据高度计算分页
|
|
240042
|
+
var blankHeight = 0; //空白高度
|
|
240043
|
+
|
|
240044
|
+
//处理单分页处理
|
|
240045
|
+
var printDiv = ifrmPrint.contentDocument.querySelector('.form-container-print');
|
|
240046
|
+
printDiv.style.paddingTop = '0px';
|
|
240047
|
+
var rows = printDiv.querySelector('tbody').children;
|
|
240048
|
+
var headerHeight = printDiv.querySelector('.form-header').getBoundingClientRect().height; //表单标题栏高度
|
|
240049
|
+
var rowsHeight = 0;
|
|
240050
|
+
var pageSize = 0;
|
|
240051
|
+
var prevPositionY = 0;
|
|
240052
|
+
var _loop = function _loop() {
|
|
240053
|
+
var row = rows[r];
|
|
240054
|
+
rowsHeight = headerHeight + row.offsetTop;
|
|
240055
|
+
//超过一页,计算最后一页内容高度
|
|
240056
|
+
if (pageSize > 0) {
|
|
240057
|
+
rowsHeight -= pageHeight * pageSize;
|
|
240058
|
+
}
|
|
240059
|
+
if (rowsHeight + row.clientHeight > pageHeight) {
|
|
240060
|
+
if (row.querySelectorAll('TR').length > 0 || row.querySelectorAll('.ideaDiv').length > 0) {
|
|
240061
|
+
//内嵌子表
|
|
240062
|
+
var subRows = row.querySelectorAll('TR');
|
|
240063
|
+
if (subRows.length === 0) {
|
|
240064
|
+
//处理意见栏
|
|
240065
|
+
subRows = row.querySelectorAll('.ideaDiv');
|
|
240066
|
+
}
|
|
240067
|
+
subRows.forEach(function (subRow, subIndex) {
|
|
240068
|
+
var subRowsHeight = rowsHeight + subRow.offsetTop;
|
|
240069
|
+
var positionY = headerHeight + row.offsetTop + subRow.offsetTop;
|
|
240070
|
+
if (subRow.tagName === 'TR' && subIndex > 0) {
|
|
240071
|
+
//子表行数据,加上表头高度
|
|
240072
|
+
subRowsHeight += row.querySelector('.el-table__header-wrapper').clientHeight;
|
|
240073
|
+
positionY += row.querySelector('.el-table__header-wrapper').clientHeight;
|
|
240074
|
+
}
|
|
240075
|
+
//超过一页,计算最后一页内容高度
|
|
240076
|
+
if (pageSize > 0) {
|
|
240077
|
+
subRowsHeight -= pageHeight * pageSize;
|
|
240078
|
+
}
|
|
240079
|
+
if (subRowsHeight + subRow.clientHeight >= pageHeight) {
|
|
240080
|
+
pageSize++;
|
|
240081
|
+
subRow.classList.add('print_breakpage');
|
|
240082
|
+
subRow.setAttribute('pageHeight', positionY - prevPositionY);
|
|
240083
|
+
subRow.setAttribute('positionY', positionY);
|
|
240084
|
+
prevPositionY = positionY;
|
|
240085
|
+
}
|
|
240086
|
+
});
|
|
240087
|
+
} else if (row.clientHeight > pageHeight && r + 1 < rows.length) {
|
|
240088
|
+
//单行高度超过页面高度,直接按页面高度截取
|
|
240089
|
+
pageSize++;
|
|
240090
|
+
row.classList.add('print_breakpage');
|
|
240091
|
+
row.setAttribute('pageHeight', pageHeight);
|
|
240092
|
+
row.setAttribute('positionY', prevPositionY + pageHeight);
|
|
240093
|
+
prevPositionY = prevPositionY + pageHeight;
|
|
240094
|
+
var remainderHeight = headerHeight + row.offsetTop + row.clientHeight - prevPositionY;
|
|
240095
|
+
|
|
240096
|
+
//剩余部分单独一页
|
|
240097
|
+
row = rows[r + 1];
|
|
240098
|
+
pageSize++;
|
|
240099
|
+
row.classList.add('print_breakpage');
|
|
240100
|
+
row.setAttribute('pageHeight', remainderHeight);
|
|
240101
|
+
row.setAttribute('positionY', headerHeight + row.offsetTop);
|
|
240102
|
+
prevPositionY = headerHeight + row.offsetTop;
|
|
240103
|
+
|
|
240104
|
+
//将剩余部分不足一页空白高度追加到标题栏高度
|
|
240105
|
+
if (pageHeight > remainderHeight) {
|
|
240106
|
+
blankHeight += pageHeight - remainderHeight;
|
|
240107
|
+
headerHeight += pageHeight - remainderHeight;
|
|
240108
|
+
}
|
|
240109
|
+
} else {
|
|
240110
|
+
pageSize++;
|
|
240111
|
+
row.classList.add('print_breakpage');
|
|
240112
|
+
row.setAttribute('pageHeight', headerHeight + row.offsetTop - prevPositionY);
|
|
240113
|
+
row.setAttribute('positionY', headerHeight + row.offsetTop);
|
|
240114
|
+
prevPositionY = headerHeight + row.offsetTop;
|
|
240115
|
+
}
|
|
240116
|
+
}
|
|
240117
|
+
};
|
|
240118
|
+
for (var r = 0; r < rows.length; r++) {
|
|
240119
|
+
_loop();
|
|
240120
|
+
}
|
|
240121
|
+
|
|
240122
|
+
//附件分页处理
|
|
240123
|
+
var attachTitle = printDiv.querySelector('.sidebar-area-title');
|
|
240124
|
+
rowsHeight = attachTitle.offsetTop + blankHeight;
|
|
240125
|
+
//超过一页,计算最后一页内容高度
|
|
240126
|
+
if (pageSize > 0) {
|
|
240127
|
+
rowsHeight -= pageHeight * pageSize;
|
|
240128
|
+
}
|
|
240129
|
+
if (rowsHeight + attachTitle.getBoundingClientRect().height >= pageHeight) {
|
|
240130
|
+
pageSize++;
|
|
240131
|
+
attachTitle.classList.add('print_breakpage');
|
|
240132
|
+
attachTitle.setAttribute('pageHeight', rowsHeight);
|
|
240133
|
+
attachTitle.setAttribute('positionY', attachTitle.offsetTop);
|
|
240134
|
+
rowsHeight = attachTitle.clientHeight + blankHeight;
|
|
240135
|
+
} else {
|
|
240136
|
+
rowsHeight += attachTitle.clientHeight;
|
|
240137
|
+
}
|
|
240138
|
+
var attachs = printDiv.querySelectorAll('.attach-row');
|
|
240139
|
+
attachs.forEach(function (row, rindex) {
|
|
240140
|
+
if (rowsHeight + row.getBoundingClientRect().height >= pageHeight) {
|
|
240141
|
+
pageSize++;
|
|
240142
|
+
row.classList.add('print_breakpage');
|
|
240143
|
+
row.setAttribute('pageHeight', rowsHeight);
|
|
240144
|
+
row.setAttribute('positionY', row.offsetTop);
|
|
240145
|
+
rowsHeight = row.getBoundingClientRect().height + blankHeight;
|
|
240146
|
+
} else {
|
|
240147
|
+
rowsHeight += row.getBoundingClientRect().height;
|
|
240148
|
+
}
|
|
240149
|
+
});
|
|
240150
|
+
if (attachs.length === 0) {
|
|
240151
|
+
rowsHeight += printDiv.querySelector('.sidebar-area-content').getBoundingClientRect().height;
|
|
240152
|
+
}
|
|
240153
|
+
rowsHeight += 15; //sidebar-area-content下边距
|
|
240154
|
+
printDiv.innerHTML += '<span class="print_breakpage" pageHeight=' + rowsHeight + '></span>';
|
|
240155
|
+
|
|
240034
240156
|
// 返回base64图片地址
|
|
240035
|
-
var
|
|
240036
|
-
var formTables = printDiv.querySelectorAll('.print_formtb');
|
|
240157
|
+
var printPages = printDiv.querySelectorAll('.print_breakpage');
|
|
240037
240158
|
new Promise(function (resolve) {
|
|
240038
|
-
|
|
240039
|
-
|
|
240040
|
-
}
|
|
240041
|
-
printDiv.querySelectorAll('.page-splice').forEach(function (ps) {
|
|
240042
|
-
ps.style.display = 'none';
|
|
240043
|
-
});
|
|
240044
|
-
|
|
240159
|
+
if (printPages.length === 0) {
|
|
240160
|
+
printPages = [printDiv];
|
|
240161
|
+
}
|
|
240045
240162
|
//遍历formTables,一次只保存一个分页图片
|
|
240046
|
-
_this.saveWebformBase64data($scope,
|
|
240163
|
+
_this.saveWebformBase64data($scope, printPages, 0, 0, resolve);
|
|
240047
240164
|
}).then(function (rst) {
|
|
240048
240165
|
_this.$bus.emit('closeDoingDialog');
|
|
240049
240166
|
if (rst) {
|
|
240050
|
-
|
|
240167
|
+
//$scope.isShow = false
|
|
240051
240168
|
var url = "/apigw" + '/' + $scope.wfEngineUrl.split('/')[0] + '/webForm/download?module=' + $scope.wfInstance.module + '&busiDataId=' + $scope.wfInstance.busiDataId;
|
|
240052
|
-
url += '&pageSize=' +
|
|
240169
|
+
url += '&pageSize=' + printPages.length;
|
|
240053
240170
|
if ($scope.wfInstance.module !== 'fawen') url += '&doc=true';
|
|
240054
240171
|
url += '&httpPort=' + location.port;
|
|
240055
240172
|
window.open(url);
|
|
240056
240173
|
}
|
|
240057
240174
|
});
|
|
240058
240175
|
},
|
|
240059
|
-
saveWebformBase64data: function saveWebformBase64data($scope,
|
|
240176
|
+
saveWebformBase64data: function saveWebformBase64data($scope, printPages, pageNum, positionY, resolve) {
|
|
240060
240177
|
var _this2 = this;
|
|
240061
|
-
var printDiv = ifrmPrint.contentDocument.querySelector('
|
|
240062
|
-
var
|
|
240063
|
-
|
|
240064
|
-
if (
|
|
240065
|
-
|
|
240066
|
-
}
|
|
240067
|
-
|
|
240068
|
-
|
|
240069
|
-
|
|
240070
|
-
|
|
240071
|
-
|
|
240072
|
-
|
|
240073
|
-
|
|
240074
|
-
|
|
240075
|
-
|
|
240076
|
-
|
|
240077
|
-
|
|
240078
|
-
|
|
240079
|
-
|
|
240080
|
-
|
|
240081
|
-
|
|
240082
|
-
|
|
240083
|
-
|
|
240084
|
-
|
|
240085
|
-
|
|
240086
|
-
|
|
240087
|
-
|
|
240178
|
+
var printDiv = ifrmPrint.contentDocument.querySelector('.form-container-print');
|
|
240179
|
+
var page = printPages[pageNum++];
|
|
240180
|
+
var pageHeight = 1434;
|
|
240181
|
+
if (page.attributes['pageHeight']) {
|
|
240182
|
+
pageHeight = parseInt(page.attributes['pageHeight'].nodeValue);
|
|
240183
|
+
}
|
|
240184
|
+
if (pageHeight > 0) {
|
|
240185
|
+
this.$bus.emit('showDoingDialog', '共' + printPages.length + '页,正在处理第' + pageNum + '页┉');
|
|
240186
|
+
html2canvas_default()(printDiv, {
|
|
240187
|
+
x: 0,
|
|
240188
|
+
y: positionY,
|
|
240189
|
+
width: 950,
|
|
240190
|
+
height: pageHeight,
|
|
240191
|
+
scale: 2,
|
|
240192
|
+
// 增加渲染分辨率
|
|
240193
|
+
dpi: 96,
|
|
240194
|
+
logging: false
|
|
240195
|
+
}).then(function (canvas) {
|
|
240196
|
+
var dataURL = canvas.toDataURL('image/png');
|
|
240197
|
+
_this2.$http({
|
|
240198
|
+
method: 'POST',
|
|
240199
|
+
url: '/' + $scope.wfEngineUrl.split('/')[0] + '/webForm/saveWebformBase64data',
|
|
240200
|
+
params: {
|
|
240201
|
+
busiDataId: $scope.wfInstance.busiDataId,
|
|
240202
|
+
pageNum: pageNum
|
|
240203
|
+
},
|
|
240204
|
+
data: {
|
|
240205
|
+
formBase64data: dataURL
|
|
240206
|
+
}
|
|
240207
|
+
}).then(function (res) {
|
|
240208
|
+
if (res.code === 'success') {
|
|
240209
|
+
if (printPages.length === pageNum) {
|
|
240210
|
+
resolve(res);
|
|
240211
|
+
} else {
|
|
240212
|
+
if (page.attributes['positionY']) {
|
|
240213
|
+
positionY = parseInt(page.attributes['positionY'].nodeValue);
|
|
240214
|
+
} else {
|
|
240215
|
+
positionY += pageHeight;
|
|
240216
|
+
}
|
|
240217
|
+
_this2.saveWebformBase64data($scope, printPages, pageNum, positionY, resolve);
|
|
240218
|
+
}
|
|
240088
240219
|
} else {
|
|
240089
|
-
_this2
|
|
240220
|
+
_this2.$message({
|
|
240221
|
+
message: res.message,
|
|
240222
|
+
type: 'warning'
|
|
240223
|
+
});
|
|
240090
240224
|
}
|
|
240091
|
-
}
|
|
240092
|
-
_this2.$message(
|
|
240093
|
-
|
|
240094
|
-
type: 'warning'
|
|
240095
|
-
});
|
|
240096
|
-
}
|
|
240097
|
-
}, function (err) {
|
|
240098
|
-
_this2.$message.error(err);
|
|
240225
|
+
}, function (err) {
|
|
240226
|
+
_this2.$message.error(err);
|
|
240227
|
+
});
|
|
240099
240228
|
});
|
|
240100
|
-
}
|
|
240229
|
+
}
|
|
240101
240230
|
},
|
|
240102
240231
|
btnToDuBan: function btnToDuBan($scope) {
|
|
240103
240232
|
console.log(11, $scope);
|
|
@@ -240228,11 +240357,11 @@ var PrintFilevue_type_template_id_30ef3fd2_scoped_true_staticRenderFns = [];
|
|
|
240228
240357
|
;
|
|
240229
240358
|
var PrintFile_component = normalizeComponent(
|
|
240230
240359
|
components_PrintFilevue_type_script_lang_js,
|
|
240231
|
-
|
|
240232
|
-
|
|
240360
|
+
PrintFilevue_type_template_id_d4b340ae_scoped_true_render,
|
|
240361
|
+
PrintFilevue_type_template_id_d4b340ae_scoped_true_staticRenderFns,
|
|
240233
240362
|
false,
|
|
240234
240363
|
null,
|
|
240235
|
-
"
|
|
240364
|
+
"d4b340ae",
|
|
240236
240365
|
null
|
|
240237
240366
|
|
|
240238
240367
|
)
|
|
@@ -242554,8 +242683,8 @@ var WformLayoutSetting_component = normalizeComponent(
|
|
|
242554
242683
|
)
|
|
242555
242684
|
|
|
242556
242685
|
/* harmony default export */ var WformLayoutSetting = (WformLayoutSetting_component.exports);
|
|
242557
|
-
;// 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/BasicformOpenPage/newBusiForm.vue?vue&type=template&id=
|
|
242558
|
-
var
|
|
242686
|
+
;// 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/BasicformOpenPage/newBusiForm.vue?vue&type=template&id=13424484&scoped=true
|
|
242687
|
+
var newBusiFormvue_type_template_id_13424484_scoped_true_render = function render() {
|
|
242559
242688
|
var _vm = this,
|
|
242560
242689
|
_c = _vm._self._c;
|
|
242561
242690
|
return _c('div', {
|
|
@@ -242874,7 +243003,7 @@ var newBusiFormvue_type_template_id_24765317_scoped_true_render = function rende
|
|
|
242874
243003
|
}
|
|
242875
243004
|
})], 1)]) : _vm._e()]) : _vm._e(), _c('select-dialog')], 1);
|
|
242876
243005
|
};
|
|
242877
|
-
var
|
|
243006
|
+
var newBusiFormvue_type_template_id_13424484_scoped_true_staticRenderFns = [];
|
|
242878
243007
|
|
|
242879
243008
|
// EXTERNAL MODULE: ./src/wapp/settings.js
|
|
242880
243009
|
var settings = __webpack_require__(7710);
|
|
@@ -243394,9 +243523,9 @@ var settings = __webpack_require__(7710);
|
|
|
243394
243523
|
});
|
|
243395
243524
|
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=script&lang=js
|
|
243396
243525
|
/* harmony default export */ var BasicformOpenPage_newBusiFormvue_type_script_lang_js = (newBusiFormvue_type_script_lang_js);
|
|
243397
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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=
|
|
243398
|
-
var
|
|
243399
|
-
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=style&index=0&id=
|
|
243526
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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
|
|
243527
|
+
var newBusiFormvue_type_style_index_0_id_13424484_prod_scoped_true_lang_scss = __webpack_require__(969);
|
|
243528
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue?vue&type=style&index=0&id=13424484&prod&scoped=true&lang=scss
|
|
243400
243529
|
|
|
243401
243530
|
;// CONCATENATED MODULE: ./packages/ecyoa/yoabase/src/BasicformOpenPage/newBusiForm.vue
|
|
243402
243531
|
|
|
@@ -243409,11 +243538,11 @@ var newBusiFormvue_type_style_index_0_id_24765317_prod_scoped_true_lang_scss = _
|
|
|
243409
243538
|
|
|
243410
243539
|
var newBusiForm_component = normalizeComponent(
|
|
243411
243540
|
BasicformOpenPage_newBusiFormvue_type_script_lang_js,
|
|
243412
|
-
|
|
243413
|
-
|
|
243541
|
+
newBusiFormvue_type_template_id_13424484_scoped_true_render,
|
|
243542
|
+
newBusiFormvue_type_template_id_13424484_scoped_true_staticRenderFns,
|
|
243414
243543
|
false,
|
|
243415
243544
|
null,
|
|
243416
|
-
"
|
|
243545
|
+
"13424484",
|
|
243417
243546
|
null
|
|
243418
243547
|
|
|
243419
243548
|
)
|