@zscreate/form-component 1.1.148 → 1.1.150
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.
|
@@ -63497,7 +63497,7 @@ module.exports = /******/function (modules) {
|
|
|
63497
63497
|
/* harmony import */ var _util_mathUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38);
|
|
63498
63498
|
/* harmony import */ var _util_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6955);
|
|
63499
63499
|
/* harmony import */ var _layoutItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9025);
|
|
63500
|
-
/* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
63500
|
+
/* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8343);
|
|
63501
63501
|
/* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9616);
|
|
63502
63502
|
/* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(pubsub_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
63503
63503
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7203);
|
|
@@ -67002,6 +67002,36 @@ module.exports = function (text, test, separator) {
|
|
|
67002
67002
|
return matcher;
|
|
67003
67003
|
};
|
|
67004
67004
|
|
|
67005
|
+
/***/ }),
|
|
67006
|
+
|
|
67007
|
+
/***/ 3558:
|
|
67008
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
67009
|
+
|
|
67010
|
+
"use strict";
|
|
67011
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
67012
|
+
/* harmony export */ A9: function() { return /* binding */ ajaxGetDictItems; },
|
|
67013
|
+
/* harmony export */ jZ: function() { return /* binding */ queryDepartTreeList; },
|
|
67014
|
+
/* harmony export */ o$: function() { return /* binding */ getSignature; }
|
|
67015
|
+
/* harmony export */ });
|
|
67016
|
+
/* unused harmony exports jumpPDF, queryTreeList, duplicateCheck */
|
|
67017
|
+
/* harmony import */ var _api_manage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1474);
|
|
67018
|
+
|
|
67019
|
+
const jumpPDF = params => getAction("form/formdesiger/reviewJimuPdf", params);
|
|
67020
|
+
const queryTreeList = params => getAction("/sys/permission/queryTreeList", params);
|
|
67021
|
+
|
|
67022
|
+
// 部门管理
|
|
67023
|
+
const queryDepartTreeList = params => (0,_api_manage__WEBPACK_IMPORTED_MODULE_0__/* .getAction */ .s7)("/formApi/queryTreeList", params);
|
|
67024
|
+
|
|
67025
|
+
//字典标签专用(通过code获取字典数组)
|
|
67026
|
+
const ajaxGetDictItems = (code, params) => (0,_api_manage__WEBPACK_IMPORTED_MODULE_0__/* .getAction */ .s7)(`/sys/dict/getDictItems/${code}`, params);
|
|
67027
|
+
|
|
67028
|
+
// 重复校验
|
|
67029
|
+
const duplicateCheck = params => getAction("/sys/duplicate/check", params);
|
|
67030
|
+
|
|
67031
|
+
// 表单 签名
|
|
67032
|
+
const getSignature = () => (0,_api_manage__WEBPACK_IMPORTED_MODULE_0__/* .getAction */ .s7)('workhall/userseal/queryById');
|
|
67033
|
+
|
|
67034
|
+
|
|
67005
67035
|
/***/ }),
|
|
67006
67036
|
|
|
67007
67037
|
/***/ 1474:
|
|
@@ -67908,7 +67938,7 @@ module.exports = {
|
|
|
67908
67938
|
|
|
67909
67939
|
/***/ }),
|
|
67910
67940
|
|
|
67911
|
-
/***/
|
|
67941
|
+
/***/ 8343:
|
|
67912
67942
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
67913
67943
|
|
|
67914
67944
|
"use strict";
|
|
@@ -73966,22 +73996,8 @@ var JMultiSelectTagvue_type_template_id_d8294bb8_render = function () {var _vm=t
|
|
|
73966
73996
|
var JMultiSelectTagvue_type_template_id_d8294bb8_staticRenderFns = []
|
|
73967
73997
|
|
|
73968
73998
|
|
|
73969
|
-
|
|
73970
|
-
|
|
73971
|
-
const queryTreeList = params => getAction("/sys/permission/queryTreeList", params);
|
|
73972
|
-
|
|
73973
|
-
// 部门管理
|
|
73974
|
-
const queryDepartTreeList = params => (0,manage/* getAction */.s7)("/formApi/queryTreeList", params);
|
|
73975
|
-
|
|
73976
|
-
//字典标签专用(通过code获取字典数组)
|
|
73977
|
-
const ajaxGetDictItems = (code, params) => (0,manage/* getAction */.s7)(`/sys/dict/getDictItems/${code}`, params);
|
|
73978
|
-
|
|
73979
|
-
// 重复校验
|
|
73980
|
-
const duplicateCheck = params => getAction("/sys/duplicate/check", params);
|
|
73981
|
-
|
|
73982
|
-
// 表单 签名
|
|
73983
|
-
const getSignature = () => (0,manage/* getAction */.s7)('workhall/userseal/queryById');
|
|
73984
|
-
|
|
73999
|
+
// EXTERNAL MODULE: ./src/api/api.js
|
|
74000
|
+
var api = __webpack_require__(3558);
|
|
73985
74001
|
;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/JMultiSelectTag.vue?vue&type=script&lang=js&
|
|
73986
74002
|
//
|
|
73987
74003
|
//
|
|
@@ -74075,7 +74091,7 @@ const getSignature = () => (0,manage/* getAction */.s7)('workhall/userseal/query
|
|
|
74075
74091
|
if (this.options && this.options.length > 0) {
|
|
74076
74092
|
this.dictOptions = [...this.options];
|
|
74077
74093
|
} else {
|
|
74078
|
-
ajaxGetDictItems(this.dictCode, null).then(res => {
|
|
74094
|
+
(0,api/* ajaxGetDictItems */.A9)(this.dictCode, null).then(res => {
|
|
74079
74095
|
if (res.success) {
|
|
74080
74096
|
this.dictOptions = res.result;
|
|
74081
74097
|
}
|
|
@@ -77365,7 +77381,7 @@ const Verify_componentvue_type_script_lang_js_layoutItem = () => Promise.resolve
|
|
|
77365
77381
|
},
|
|
77366
77382
|
// 获取签名签章
|
|
77367
77383
|
getuserSgin() {
|
|
77368
|
-
getSignature().then(res => {
|
|
77384
|
+
(0,api/* getSignature */.o$)().then(res => {
|
|
77369
77385
|
if (res.success) {
|
|
77370
77386
|
this.userSign = res.result.userSign || "";
|
|
77371
77387
|
this.userSeal = res.result.userSeal || "";
|
|
@@ -81404,7 +81420,7 @@ const JeecgListMixin = {
|
|
|
81404
81420
|
|
|
81405
81421
|
loadDepartTree() {
|
|
81406
81422
|
const that = this;
|
|
81407
|
-
queryDepartTreeList().then(res => {
|
|
81423
|
+
(0,api/* queryDepartTreeList */.jZ)().then(res => {
|
|
81408
81424
|
if (res.success) {
|
|
81409
81425
|
that.departTreeData = [];
|
|
81410
81426
|
for (let i = 0; i < res.result.length; i++) {
|
|
@@ -82865,8 +82881,8 @@ var componentvue_type_template_id_3abdfc74_scoped_true_render = function () {var
|
|
|
82865
82881
|
var componentvue_type_template_id_3abdfc74_scoped_true_staticRenderFns = []
|
|
82866
82882
|
|
|
82867
82883
|
|
|
82868
|
-
// EXTERNAL MODULE: ./src/form/modules/components/ImgUpload/downloadPage.vue +
|
|
82869
|
-
var downloadPage = __webpack_require__(
|
|
82884
|
+
// EXTERNAL MODULE: ./src/form/modules/components/ImgUpload/downloadPage.vue + 3 modules
|
|
82885
|
+
var downloadPage = __webpack_require__(5379);
|
|
82870
82886
|
// EXTERNAL MODULE: ./src/utils/encryption/aesEncrypt.js
|
|
82871
82887
|
var aesEncrypt = __webpack_require__(3488);
|
|
82872
82888
|
;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/ImgUpload/component.vue?vue&type=script&lang=js&
|
|
@@ -107550,7 +107566,7 @@ var componentvue_type_template_id_7ac066c0_scoped_true_staticRenderFns = []
|
|
|
107550
107566
|
this.userSign = this.dataModel;
|
|
107551
107567
|
return;
|
|
107552
107568
|
}
|
|
107553
|
-
getSignature().then(res => {
|
|
107569
|
+
(0,api/* getSignature */.o$)().then(res => {
|
|
107554
107570
|
if (res.success) {
|
|
107555
107571
|
this.userSign = res.result.userSign || this.userInfo.realname;
|
|
107556
107572
|
} else {
|
|
@@ -108002,7 +108018,7 @@ var componentvue_type_template_id_5eaeb53f_scoped_true_staticRenderFns = []
|
|
|
108002
108018
|
this.isShowBtn = false;
|
|
108003
108019
|
return;
|
|
108004
108020
|
}
|
|
108005
|
-
getSignature().then(res => {
|
|
108021
|
+
(0,api/* getSignature */.o$)().then(res => {
|
|
108006
108022
|
if (res.success) {
|
|
108007
108023
|
this.userSeal = res.result.userSeal || "";
|
|
108008
108024
|
}
|
|
@@ -109452,7 +109468,7 @@ var TextArea_component = (0,componentNormalizer/* default */.Z)(
|
|
|
109452
109468
|
// 获取签名签章
|
|
109453
109469
|
getuserSgin() {
|
|
109454
109470
|
const userInfo = this.getUserInfo() || {};
|
|
109455
|
-
getSignature().then(res => {
|
|
109471
|
+
(0,api/* getSignature */.o$)().then(res => {
|
|
109456
109472
|
if (res.success) {
|
|
109457
109473
|
this.userSign = res.result.userSign || userInfo.realname;
|
|
109458
109474
|
this.userSeal = res.result.userSeal || "";
|
|
@@ -116967,7 +116983,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
116967
116983
|
|
|
116968
116984
|
/***/ }),
|
|
116969
116985
|
|
|
116970
|
-
/***/
|
|
116986
|
+
/***/ 5379:
|
|
116971
116987
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
116972
116988
|
|
|
116973
116989
|
"use strict";
|
|
@@ -116977,12 +116993,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
116977
116993
|
Z: function() { return /* binding */ downloadPage; }
|
|
116978
116994
|
});
|
|
116979
116995
|
|
|
116980
|
-
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/ImgUpload/downloadPage.vue?vue&type=template&id=
|
|
116981
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm.
|
|
116982
|
-
var staticRenderFns = [
|
|
116983
|
-
|
|
116996
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/ImgUpload/downloadPage.vue?vue&type=template&id=96251bdc&
|
|
116997
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"width":"100vw","height":"100vh","position":"fixed","z-index":"999999999","top":"0","left":"0","background-color":"#fff","display":"flex","justify-content":"center","align-items":"center"}},[_c('p',{staticStyle:{"text-align":"center","font-weight":"bold","font-size":"18px"}},[_vm._v(" "+_vm._s(_vm.error ? _vm.error : '文件下载中...')+" ")])])}
|
|
116998
|
+
var staticRenderFns = []
|
|
116984
116999
|
|
|
116985
|
-
;// CONCATENATED MODULE: ./src/form/modules/components/ImgUpload/downloadPage.vue?vue&type=template&id=19ffbaed&
|
|
116986
117000
|
|
|
116987
117001
|
// EXTERNAL MODULE: ./src/api/manage.js
|
|
116988
117002
|
var manage = __webpack_require__(1474);
|
|
@@ -116996,6 +117010,11 @@ var util = __webpack_require__(4948);
|
|
|
116996
117010
|
|
|
116997
117011
|
/* harmony default export */ var downloadPagevue_type_script_lang_js_ = ({
|
|
116998
117012
|
name: "downloadPage",
|
|
117013
|
+
data() {
|
|
117014
|
+
return {
|
|
117015
|
+
error: undefined
|
|
117016
|
+
};
|
|
117017
|
+
},
|
|
116999
117018
|
async created() {
|
|
117000
117019
|
const {
|
|
117001
117020
|
type = '',
|
|
@@ -117015,7 +117034,8 @@ var util = __webpack_require__(4948);
|
|
|
117015
117034
|
code
|
|
117016
117035
|
}));
|
|
117017
117036
|
if (err1 || !res1.success || !res1.result) {
|
|
117018
|
-
|
|
117037
|
+
this.error = res1.message || '下载失败';
|
|
117038
|
+
return this.$message.error(this.error);
|
|
117019
117039
|
}
|
|
117020
117040
|
const {
|
|
117021
117041
|
unionId = ''
|
|
@@ -117026,21 +117046,22 @@ var util = __webpack_require__(4948);
|
|
|
117026
117046
|
unionId
|
|
117027
117047
|
}));
|
|
117028
117048
|
if (err || !res.success || !res.result) {
|
|
117029
|
-
|
|
117049
|
+
this.error = res.message || '下载失败';
|
|
117050
|
+
return this.$message.error(this.error);
|
|
117030
117051
|
}
|
|
117031
117052
|
// alert(JSON.stringify(res))
|
|
117032
|
-
const
|
|
117053
|
+
const openId = res.result;
|
|
117033
117054
|
// alert('2: '+ open_unionId)
|
|
117034
|
-
if (!
|
|
117035
|
-
let
|
|
117055
|
+
// if (!openId) return this.$message.error(res.message || '获取openId失败')
|
|
117056
|
+
let en_openId = await (0,aesEncrypt/* encryption */.y)(openId);
|
|
117036
117057
|
window.opener.postMessage({
|
|
117037
117058
|
type: 'openId',
|
|
117038
|
-
data:
|
|
117059
|
+
data: en_openId
|
|
117039
117060
|
});
|
|
117040
|
-
|
|
117041
|
-
|
|
117061
|
+
en_openId = en_openId.replaceAll("+", "%2B");
|
|
117062
|
+
en_openId = en_openId.replaceAll("=", "%3D");
|
|
117042
117063
|
// let en_fileId = await encryption(fileId)
|
|
117043
|
-
location.href = window._CONFIG['domianURL'] + `/sys/common/downloadZip?fileId=${fileId}&openId=${
|
|
117064
|
+
location.href = window._CONFIG['domianURL'] + `/sys/common/downloadZip?fileId=${fileId}&openId=${en_openId}`;
|
|
117044
117065
|
setTimeout(() => {
|
|
117045
117066
|
// window.parent.downloadPageClose && window.parent.downloadPageClose()
|
|
117046
117067
|
// window.close()
|
|
@@ -117117,8 +117138,8 @@ var CorrectionItemvue_type_template_id_5e8c04b6_scoped_true_render = function ()
|
|
|
117117
117138
|
var CorrectionItemvue_type_template_id_5e8c04b6_scoped_true_staticRenderFns = []
|
|
117118
117139
|
|
|
117119
117140
|
|
|
117120
|
-
// EXTERNAL MODULE: ./src/form/modules/components/index.js +
|
|
117121
|
-
var components = __webpack_require__(
|
|
117141
|
+
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 856 modules
|
|
117142
|
+
var components = __webpack_require__(8343);
|
|
117122
117143
|
;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/CorrectionItem.vue?vue&type=script&lang=js&
|
|
117123
117144
|
//
|
|
117124
117145
|
//
|
|
@@ -118964,8 +118985,8 @@ var vuedraggable_umd = __webpack_require__(6507);
|
|
|
118964
118985
|
var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_umd);
|
|
118965
118986
|
// EXTERNAL MODULE: ./src/api/manage.js
|
|
118966
118987
|
var manage = __webpack_require__(1474);
|
|
118967
|
-
// EXTERNAL MODULE: ./src/form/modules/components/index.js +
|
|
118968
|
-
var components = __webpack_require__(
|
|
118988
|
+
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 856 modules
|
|
118989
|
+
var components = __webpack_require__(8343);
|
|
118969
118990
|
// EXTERNAL MODULE: ./src/form/util/Bus.js
|
|
118970
118991
|
var Bus = __webpack_require__(767);
|
|
118971
118992
|
// EXTERNAL MODULE: ./src/form/modules/config/hnkj.js
|
|
@@ -119582,7 +119603,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;
|
|
|
119582
119603
|
/***/ (function(module) {
|
|
119583
119604
|
|
|
119584
119605
|
"use strict";
|
|
119585
|
-
module.exports = {"i8":"1.1.
|
|
119606
|
+
module.exports = {"i8":"1.1.150"};
|
|
119586
119607
|
|
|
119587
119608
|
/***/ })
|
|
119588
119609
|
|
|
@@ -121108,8 +121129,8 @@ var widgetFormvue_type_template_id_2979875c_scoped_true_staticRenderFns = []
|
|
|
121108
121129
|
var es_array_push = __webpack_require__(9211);
|
|
121109
121130
|
// EXTERNAL MODULE: ./src/form/util/util.js
|
|
121110
121131
|
var util = __webpack_require__(6955);
|
|
121111
|
-
// EXTERNAL MODULE: ./src/form/modules/components/index.js +
|
|
121112
|
-
var components = __webpack_require__(
|
|
121132
|
+
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 856 modules
|
|
121133
|
+
var components = __webpack_require__(8343);
|
|
121113
121134
|
// EXTERNAL MODULE: ./src/api/manage.js
|
|
121114
121135
|
var manage = __webpack_require__(1474);
|
|
121115
121136
|
// EXTERNAL MODULE: ./src/form/modules/widgetFormItem.vue + 6 modules
|
|
@@ -124861,8 +124882,141 @@ const messageBox = function (message, title, config = {}) {
|
|
|
124861
124882
|
});
|
|
124862
124883
|
// EXTERNAL MODULE: ./src/components/FilePreview.vue + 3 modules
|
|
124863
124884
|
var FilePreview = __webpack_require__(1961);
|
|
124864
|
-
// EXTERNAL MODULE: ./src/form/modules/components/ImgUpload/downloadPage.vue +
|
|
124865
|
-
var downloadPage = __webpack_require__(
|
|
124885
|
+
// EXTERNAL MODULE: ./src/form/modules/components/ImgUpload/downloadPage.vue + 3 modules
|
|
124886
|
+
var downloadPage = __webpack_require__(5379);
|
|
124887
|
+
// EXTERNAL MODULE: ./src/api/api.js
|
|
124888
|
+
var api = __webpack_require__(3558);
|
|
124889
|
+
;// CONCATENATED MODULE: ./src/utils/print.js
|
|
124890
|
+
// 打印类属性、方法定义
|
|
124891
|
+
/* eslint-disable */
|
|
124892
|
+
|
|
124893
|
+
|
|
124894
|
+
const Print = function (dom, options) {
|
|
124895
|
+
if (!(this instanceof Print)) return new Print(dom, options);
|
|
124896
|
+
this.options = this.extend({
|
|
124897
|
+
noPrint: '.no-print'
|
|
124898
|
+
}, options);
|
|
124899
|
+
if (typeof dom === 'string') {
|
|
124900
|
+
this.dom = document.querySelector(dom).cloneNode(true);
|
|
124901
|
+
} else {
|
|
124902
|
+
this.isDOM(dom);
|
|
124903
|
+
this.dom = this.isDOM(dom) ? dom.cloneNode(true) : dom.$el.cloneNode(true);
|
|
124904
|
+
}
|
|
124905
|
+
this.init();
|
|
124906
|
+
};
|
|
124907
|
+
Print.prototype = {
|
|
124908
|
+
init: function () {
|
|
124909
|
+
var content = this.getStyle() + this.getHtml();
|
|
124910
|
+
this.writeIframe(content);
|
|
124911
|
+
},
|
|
124912
|
+
extend: function (obj, obj2) {
|
|
124913
|
+
for (var k in obj2) {
|
|
124914
|
+
obj[k] = obj2[k];
|
|
124915
|
+
}
|
|
124916
|
+
return obj;
|
|
124917
|
+
},
|
|
124918
|
+
getStyle: function () {
|
|
124919
|
+
var str = '',
|
|
124920
|
+
styles = document.querySelectorAll('style,link');
|
|
124921
|
+
for (var i = 0; i < styles.length; i++) {
|
|
124922
|
+
str += styles[i].outerHTML;
|
|
124923
|
+
}
|
|
124924
|
+
str += '<style>' + (this.options.noPrint ? this.options.noPrint : '.no-print') + '{display:none;}</style>';
|
|
124925
|
+
// str += '<style>html,body,div{height: auto!important;font-size:14px}</style>';
|
|
124926
|
+
|
|
124927
|
+
// str +=
|
|
124928
|
+
// '<style>input,textarea{top: 50%!important; transform:translateY(-50%)!important}</style>';
|
|
124929
|
+
return str;
|
|
124930
|
+
},
|
|
124931
|
+
getHtml: function () {
|
|
124932
|
+
var inputs = this.dom.querySelectorAll('input');
|
|
124933
|
+
var textareas = this.dom.querySelectorAll('textarea');
|
|
124934
|
+
var selects = this.dom.querySelectorAll('select');
|
|
124935
|
+
var labelbg = this.dom.querySelectorAll('.ant-form-item-label, .table-content, .sub-table-col > span');
|
|
124936
|
+
for (var l = 0; l < labelbg.length; l++) {
|
|
124937
|
+
let item = labelbg[l];
|
|
124938
|
+
item.style.background = 'none';
|
|
124939
|
+
}
|
|
124940
|
+
for (var k = 0; k < inputs.length; k++) {
|
|
124941
|
+
if (inputs[k].type == 'checkbox' || inputs[k].type == 'radio') {
|
|
124942
|
+
if (inputs[k].checked == true) {
|
|
124943
|
+
inputs[k].setAttribute('checked', 'checked');
|
|
124944
|
+
} else {
|
|
124945
|
+
inputs[k].removeAttribute('checked');
|
|
124946
|
+
}
|
|
124947
|
+
} else if (inputs[k].type == 'text') {
|
|
124948
|
+
inputs[k].setAttribute('value', inputs[k].value);
|
|
124949
|
+
} else {
|
|
124950
|
+
inputs[k].setAttribute('value', inputs[k].value);
|
|
124951
|
+
}
|
|
124952
|
+
}
|
|
124953
|
+
for (var k2 = 0; k2 < textareas.length; k2++) {
|
|
124954
|
+
if (textareas[k2].type == 'textarea') {
|
|
124955
|
+
textareas[k2].innerHTML = textareas[k2].value;
|
|
124956
|
+
}
|
|
124957
|
+
}
|
|
124958
|
+
for (var k3 = 0; k3 < selects.length; k3++) {
|
|
124959
|
+
if (selects[k3].type == 'select-one') {
|
|
124960
|
+
var child = selects[k3].children;
|
|
124961
|
+
for (var i in child) {
|
|
124962
|
+
if (child[i].tagName == 'OPTION') {
|
|
124963
|
+
if (child[i].selected == true) {
|
|
124964
|
+
child[i].setAttribute('selected', 'selected');
|
|
124965
|
+
} else {
|
|
124966
|
+
child[i].removeAttribute('selected');
|
|
124967
|
+
}
|
|
124968
|
+
}
|
|
124969
|
+
}
|
|
124970
|
+
}
|
|
124971
|
+
}
|
|
124972
|
+
return this.dom.outerHTML;
|
|
124973
|
+
},
|
|
124974
|
+
writeIframe: function (content) {
|
|
124975
|
+
var w,
|
|
124976
|
+
doc,
|
|
124977
|
+
iframe = document.createElement('iframe'),
|
|
124978
|
+
f = document.body.appendChild(iframe);
|
|
124979
|
+
iframe.id = 'myIframe';
|
|
124980
|
+
//iframe.style = "position:absolute;width:0;height:0;top:-10px;left:-10px;";
|
|
124981
|
+
iframe.setAttribute('style', 'position:absolute;width:0;height:0;top:-10px;left:-10px;');
|
|
124982
|
+
w = f.contentWindow || f.contentDocument;
|
|
124983
|
+
doc = f.contentDocument || f.contentWindow.document;
|
|
124984
|
+
doc.open();
|
|
124985
|
+
console.log(content);
|
|
124986
|
+
doc.write(content);
|
|
124987
|
+
doc.close();
|
|
124988
|
+
var _this = this;
|
|
124989
|
+
iframe.onload = function () {
|
|
124990
|
+
_this.toPrint(w);
|
|
124991
|
+
setTimeout(function () {
|
|
124992
|
+
document.body.removeChild(iframe);
|
|
124993
|
+
}, 100);
|
|
124994
|
+
};
|
|
124995
|
+
},
|
|
124996
|
+
toPrint: function (frameWindow) {
|
|
124997
|
+
try {
|
|
124998
|
+
setTimeout(function () {
|
|
124999
|
+
frameWindow.focus();
|
|
125000
|
+
try {
|
|
125001
|
+
if (!frameWindow.document.execCommand('print', false, null)) {
|
|
125002
|
+
frameWindow.print();
|
|
125003
|
+
}
|
|
125004
|
+
} catch (e) {
|
|
125005
|
+
frameWindow.print();
|
|
125006
|
+
}
|
|
125007
|
+
frameWindow.close();
|
|
125008
|
+
}, 10);
|
|
125009
|
+
} catch (err) {
|
|
125010
|
+
console.log('err', err);
|
|
125011
|
+
}
|
|
125012
|
+
},
|
|
125013
|
+
isDOM: typeof HTMLElement === 'object' ? function (obj) {
|
|
125014
|
+
return obj instanceof HTMLElement;
|
|
125015
|
+
} : function (obj) {
|
|
125016
|
+
return obj && typeof obj === 'object' && obj.nodeType === 1 && typeof obj.nodeName === 'string';
|
|
125017
|
+
}
|
|
125018
|
+
};
|
|
125019
|
+
/* harmony default export */ var print = (Print);
|
|
124866
125020
|
;// CONCATENATED MODULE: ./src/main.js
|
|
124867
125021
|
|
|
124868
125022
|
const version = (__webpack_require__(4147)/* .version */ .i8);
|
|
@@ -124876,6 +125030,7 @@ console.log("version:", version);
|
|
|
124876
125030
|
|
|
124877
125031
|
|
|
124878
125032
|
|
|
125033
|
+
|
|
124879
125034
|
const main_components = [layoutForPaper, Container, layoutItem["default"], FilePreview/* default */.Z];
|
|
124880
125035
|
const install = function (Vue, opts = {}, router = undefined) {
|
|
124881
125036
|
__webpack_require__.g.Vue = Vue;
|
|
@@ -124898,6 +125053,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
124898
125053
|
}
|
|
124899
125054
|
/* harmony default export */ var main = ({
|
|
124900
125055
|
install,
|
|
125056
|
+
Print: print,
|
|
124901
125057
|
...components/* default */.Z.componentList,
|
|
124902
125058
|
MessageBox: components_MessageBox
|
|
124903
125059
|
});
|