@zscreate/form-component 1.1.149 → 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++) {
|
|
@@ -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 || "";
|
|
@@ -117122,8 +117138,8 @@ var CorrectionItemvue_type_template_id_5e8c04b6_scoped_true_render = function ()
|
|
|
117122
117138
|
var CorrectionItemvue_type_template_id_5e8c04b6_scoped_true_staticRenderFns = []
|
|
117123
117139
|
|
|
117124
117140
|
|
|
117125
|
-
// EXTERNAL MODULE: ./src/form/modules/components/index.js +
|
|
117126
|
-
var components = __webpack_require__(
|
|
117141
|
+
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 856 modules
|
|
117142
|
+
var components = __webpack_require__(8343);
|
|
117127
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&
|
|
117128
117144
|
//
|
|
117129
117145
|
//
|
|
@@ -118969,8 +118985,8 @@ var vuedraggable_umd = __webpack_require__(6507);
|
|
|
118969
118985
|
var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_umd);
|
|
118970
118986
|
// EXTERNAL MODULE: ./src/api/manage.js
|
|
118971
118987
|
var manage = __webpack_require__(1474);
|
|
118972
|
-
// EXTERNAL MODULE: ./src/form/modules/components/index.js +
|
|
118973
|
-
var components = __webpack_require__(
|
|
118988
|
+
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 856 modules
|
|
118989
|
+
var components = __webpack_require__(8343);
|
|
118974
118990
|
// EXTERNAL MODULE: ./src/form/util/Bus.js
|
|
118975
118991
|
var Bus = __webpack_require__(767);
|
|
118976
118992
|
// EXTERNAL MODULE: ./src/form/modules/config/hnkj.js
|
|
@@ -119587,7 +119603,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;
|
|
|
119587
119603
|
/***/ (function(module) {
|
|
119588
119604
|
|
|
119589
119605
|
"use strict";
|
|
119590
|
-
module.exports = {"i8":"1.1.
|
|
119606
|
+
module.exports = {"i8":"1.1.150"};
|
|
119591
119607
|
|
|
119592
119608
|
/***/ })
|
|
119593
119609
|
|
|
@@ -121113,8 +121129,8 @@ var widgetFormvue_type_template_id_2979875c_scoped_true_staticRenderFns = []
|
|
|
121113
121129
|
var es_array_push = __webpack_require__(9211);
|
|
121114
121130
|
// EXTERNAL MODULE: ./src/form/util/util.js
|
|
121115
121131
|
var util = __webpack_require__(6955);
|
|
121116
|
-
// EXTERNAL MODULE: ./src/form/modules/components/index.js +
|
|
121117
|
-
var components = __webpack_require__(
|
|
121132
|
+
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 856 modules
|
|
121133
|
+
var components = __webpack_require__(8343);
|
|
121118
121134
|
// EXTERNAL MODULE: ./src/api/manage.js
|
|
121119
121135
|
var manage = __webpack_require__(1474);
|
|
121120
121136
|
// EXTERNAL MODULE: ./src/form/modules/widgetFormItem.vue + 6 modules
|
|
@@ -124868,6 +124884,139 @@ const messageBox = function (message, title, config = {}) {
|
|
|
124868
124884
|
var FilePreview = __webpack_require__(1961);
|
|
124869
124885
|
// EXTERNAL MODULE: ./src/form/modules/components/ImgUpload/downloadPage.vue + 3 modules
|
|
124870
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);
|
|
124871
125020
|
;// CONCATENATED MODULE: ./src/main.js
|
|
124872
125021
|
|
|
124873
125022
|
const version = (__webpack_require__(4147)/* .version */ .i8);
|
|
@@ -124881,6 +125030,7 @@ console.log("version:", version);
|
|
|
124881
125030
|
|
|
124882
125031
|
|
|
124883
125032
|
|
|
125033
|
+
|
|
124884
125034
|
const main_components = [layoutForPaper, Container, layoutItem["default"], FilePreview/* default */.Z];
|
|
124885
125035
|
const install = function (Vue, opts = {}, router = undefined) {
|
|
124886
125036
|
__webpack_require__.g.Vue = Vue;
|
|
@@ -124903,6 +125053,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
124903
125053
|
}
|
|
124904
125054
|
/* harmony default export */ var main = ({
|
|
124905
125055
|
install,
|
|
125056
|
+
Print: print,
|
|
124906
125057
|
...components/* default */.Z.componentList,
|
|
124907
125058
|
MessageBox: components_MessageBox
|
|
124908
125059
|
});
|