@zscreate/form-component 1.1.32 → 1.1.33
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/dist/form-component.css +73 -71
- package/dist/form-component.umd-report.html +2 -2
- package/dist/form-component.umd.js +260 -27
- package/package.json +1 -1
|
@@ -62875,13 +62875,14 @@ module.exports = /******/function (modules) {
|
|
|
62875
62875
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6903);
|
|
62876
62876
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
62877
62877
|
/* harmony import */ var _util_mathUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38);
|
|
62878
|
-
/* harmony import */ var
|
|
62878
|
+
/* harmony import */ var _util_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6955);
|
|
62879
62879
|
/* harmony import */ var _layoutItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7102);
|
|
62880
|
-
/* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
62880
|
+
/* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1119);
|
|
62881
62881
|
/* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9616);
|
|
62882
62882
|
/* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(pubsub_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
62883
62883
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7203);
|
|
62884
62884
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_5__);
|
|
62885
|
+
/* harmony import */ var _components_MessageBox_confirmBox_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5927);
|
|
62885
62886
|
|
|
62886
62887
|
//
|
|
62887
62888
|
//
|
|
@@ -63230,6 +63231,12 @@ module.exports = /******/function (modules) {
|
|
|
63230
63231
|
//
|
|
63231
63232
|
//
|
|
63232
63233
|
//
|
|
63234
|
+
//
|
|
63235
|
+
//
|
|
63236
|
+
//
|
|
63237
|
+
//
|
|
63238
|
+
//
|
|
63239
|
+
|
|
63233
63240
|
|
|
63234
63241
|
|
|
63235
63242
|
|
|
@@ -63246,9 +63253,9 @@ module.exports = /******/function (modules) {
|
|
|
63246
63253
|
//表单分页list 如果不需要分页 数组length为0
|
|
63247
63254
|
formNameHeight: 40,
|
|
63248
63255
|
//标题高度
|
|
63249
|
-
A4Width: (0,
|
|
63256
|
+
A4Width: (0,_util_util__WEBPACK_IMPORTED_MODULE_7__/* .mmToPx */ .Zt)(210),
|
|
63250
63257
|
//A4纸 px宽度
|
|
63251
|
-
A4Height: (0,
|
|
63258
|
+
A4Height: (0,_util_util__WEBPACK_IMPORTED_MODULE_7__/* .mmToPx */ .Zt)(297),
|
|
63252
63259
|
//A4纸 px高度
|
|
63253
63260
|
contentStyle: {
|
|
63254
63261
|
width: "200px",
|
|
@@ -63335,6 +63342,7 @@ module.exports = /******/function (modules) {
|
|
|
63335
63342
|
}
|
|
63336
63343
|
},
|
|
63337
63344
|
components: {
|
|
63345
|
+
ConfirmBox: _components_MessageBox_confirmBox_vue__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z,
|
|
63338
63346
|
layoutItem: _layoutItem__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
63339
63347
|
..._components_index__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.componentList
|
|
63340
63348
|
},
|
|
@@ -63583,7 +63591,7 @@ module.exports = /******/function (modules) {
|
|
|
63583
63591
|
// values里面存在当前字段的值
|
|
63584
63592
|
if (this.value && Object.keys(this.value).indexOf(widget.model) >= 0) {
|
|
63585
63593
|
if (![undefined, null].includes(this.value[widget.model])) {
|
|
63586
|
-
this.models[widget.model] = (0,
|
|
63594
|
+
this.models[widget.model] = (0,_util_util__WEBPACK_IMPORTED_MODULE_7__/* .cloneObj */ .Cl)(this.value[widget.model]);
|
|
63587
63595
|
} else {
|
|
63588
63596
|
// 如果value数据是null 或者 undefined 则需要特殊处理(用于处理数据不完整)
|
|
63589
63597
|
this.models[widget.model] = ["imgupload", "deptSelector", "userSelector", "userSelectorByRole", "relateSub"].includes(widget.type) ? [] : "";
|
|
@@ -63603,7 +63611,7 @@ module.exports = /******/function (modules) {
|
|
|
63603
63611
|
|
|
63604
63612
|
// 是否为无效值
|
|
63605
63613
|
let is_invalidation = [undefined, null].includes(widget.options.defaultValue);
|
|
63606
|
-
this.models[widget.model] = this.models[widget.model] ? this.models[widget.model] : is_invalidation ? "" : (0,
|
|
63614
|
+
this.models[widget.model] = this.models[widget.model] ? this.models[widget.model] : is_invalidation ? "" : (0,_util_util__WEBPACK_IMPORTED_MODULE_7__/* .cloneObj */ .Cl)(widget.options.defaultValue);
|
|
63607
63615
|
}
|
|
63608
63616
|
});
|
|
63609
63617
|
}
|
|
@@ -63622,13 +63630,13 @@ module.exports = /******/function (modules) {
|
|
|
63622
63630
|
}
|
|
63623
63631
|
return true;
|
|
63624
63632
|
case "checkbox":
|
|
63625
|
-
this.models[widget.model] = typeof widget.options.defaultValue === "string" ? [] : (0,
|
|
63633
|
+
this.models[widget.model] = typeof widget.options.defaultValue === "string" ? [] : (0,_util_util__WEBPACK_IMPORTED_MODULE_7__/* .cloneObj */ .Cl)(widget.options.defaultValue);
|
|
63626
63634
|
return true;
|
|
63627
63635
|
case "select":
|
|
63628
63636
|
this.models[widget.model] = widget.options.multiple ? [] : "";
|
|
63629
63637
|
return true;
|
|
63630
63638
|
case "table":
|
|
63631
|
-
this.models[widget.model] = (0,
|
|
63639
|
+
this.models[widget.model] = (0,_util_util__WEBPACK_IMPORTED_MODULE_7__/* .cloneObj */ .Cl)(widget.options.defaultValue);
|
|
63632
63640
|
this.generateTableData(widget);
|
|
63633
63641
|
return true;
|
|
63634
63642
|
default:
|
|
@@ -63742,7 +63750,7 @@ module.exports = /******/function (modules) {
|
|
|
63742
63750
|
|
|
63743
63751
|
"use strict";
|
|
63744
63752
|
/* harmony import */ var _common_CorrectionModal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8167);
|
|
63745
|
-
/* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
63753
|
+
/* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1119);
|
|
63746
63754
|
/* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9616);
|
|
63747
63755
|
/* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(pubsub_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
63748
63756
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1925);
|
|
@@ -67981,7 +67989,7 @@ module.exports = {
|
|
|
67981
67989
|
|
|
67982
67990
|
/***/ }),
|
|
67983
67991
|
|
|
67984
|
-
/***/
|
|
67992
|
+
/***/ 1119:
|
|
67985
67993
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
67986
67994
|
|
|
67987
67995
|
"use strict";
|
|
@@ -70529,8 +70537,8 @@ var Select_widgetDesign_component = (0,componentNormalizer/* default */.Z)(
|
|
|
70529
70537
|
widgetSetup: Select_widgetSetup,
|
|
70530
70538
|
widgetDesign: Select_widgetDesign
|
|
70531
70539
|
});
|
|
70532
|
-
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Table/component.vue?vue&type=template&id=
|
|
70533
|
-
var
|
|
70540
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Table/component.vue?vue&type=template&id=75b5682f&scoped=true&
|
|
70541
|
+
var componentvue_type_template_id_75b5682f_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.widget)?_c('div',{staticClass:"table-design"},[(_vm.widget.options.height == 0 && !_vm.widget.options.disabled)?_c('span',{staticClass:"last-one no-label-add-button",attrs:{"title":"添加行"}},[(!_vm.widget.options.hiddenOperateBtn)?_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.addToTableData(_vm.widget, _vm.widget.model, 'addModel')}}},[_vm._v("添加行")]):_vm._e()],1):_c('div',{staticClass:"table_label",style:({ borderColor: _vm.widget.options.height == 0 ? 'rgba(0,0,0,0)' : _vm.config.borderColor, height: _vm.widget.options.height + 'px' })},[(_vm.widget.options.enableImport && !_vm.widget.options.disabled)?_c('span',{staticStyle:{"position":"absolute","display":"flex","height":"100%","align-items":"center"}},[_c('a-upload',{staticStyle:{"margin":"0 5px"},attrs:{"action":_vm.actionUrl + "?formId=" + _vm.formId + "&tableKey=" + (_vm.widget.model),"headers":_vm.headers,"showUploadList":false},on:{"change":function (params) { _vm.handleChange(_vm.widget, params) }}},[_c('a-button',[_c('a-icon',{attrs:{"type":"upload"}}),_vm._v("上传")],1)],1),_c('confirm-box',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"content":"注意:使用Excel模板导入仅支持文本、日期、下拉等内容,无法支持复杂的组件以及数据校验等,请确认!"},on:{"confirm":function($event){return _vm.downloadTableTemplate(_vm.widget)}}},[_c('a-button',[_vm._v("下载模板")])],1)],1):_vm._e(),_vm._v(" "+_vm._s(_vm.widget.options.height != 0 ? _vm.widget.name : '')+" "),(!_vm.widget.options.disabled)?_c('span',{class:{ 'last-one': true, 'no-label-add-button': _vm.widget.options.height == 0 },attrs:{"title":"添加行"}},[(!_vm.widget.options.hiddenOperateBtn)?_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.addToTableData(_vm.widget, _vm.widget.model, 'addModel')}}},[_vm._v("添加行")]):_vm._e()],1):_vm._e()]),_vm._l((_vm.tableData[_vm.widget.model]),function(tableColums,columsIndex){return _c('div',{key:columsIndex,staticClass:"table-design-content"},[_c('div',{staticClass:"widget-grid-lay-out-wrapper",style:({
|
|
70534
70542
|
height: _vm.setHeight(
|
|
70535
70543
|
tableColums.options.rowsNum,
|
|
70536
70544
|
tableColums.options.rowsHeight
|
|
@@ -70547,9 +70555,11 @@ var componentvue_type_template_id_760c8960_scoped_true_render = function () {var
|
|
|
70547
70555
|
'grid-column': _vm.setItemPosition(col, 'column'),
|
|
70548
70556
|
'grid-row': _vm.setItemPosition(col),
|
|
70549
70557
|
})},[[_c('layoutItem',{directives:[{name:"show",rawName:"v-show",value:(_vm.getTableColumn(tableColums.columns, colIndex).options.canView),expression:"getTableColumn(tableColums.columns, colIndex).options.canView"}],key:colIndex,attrs:{"tableKey":tableColums.model,"tableIndex":columsIndex,"models":_vm.models,"rules":_vm.rules,"widget":_vm.getTableColumn(tableColums.columns, colIndex)},on:{"update:models":_vm.updateModels}})]],2)}),0),(!_vm.widget.options.disabled && !_vm.widget.options.hiddenOperateBtn)?_c('div',{staticClass:"table-design-delete"},[_c('span',{staticClass:"last-one del-button",attrs:{"title":"删除行"}},[_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.handleDeleteRow(columsIndex, _vm.widget.model)}}},[_vm._v("删除行")])],1)]):_vm._e()])})],2):_vm._e()}
|
|
70550
|
-
var
|
|
70558
|
+
var componentvue_type_template_id_75b5682f_scoped_true_staticRenderFns = []
|
|
70551
70559
|
|
|
70552
70560
|
|
|
70561
|
+
// EXTERNAL MODULE: ./src/components/MessageBox/confirmBox.vue + 9 modules
|
|
70562
|
+
var confirmBox = __webpack_require__(5927);
|
|
70553
70563
|
;// 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.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Table/component.vue?vue&type=script&lang=js&
|
|
70554
70564
|
//
|
|
70555
70565
|
//
|
|
@@ -70642,6 +70652,9 @@ var componentvue_type_template_id_760c8960_scoped_true_staticRenderFns = []
|
|
|
70642
70652
|
//
|
|
70643
70653
|
//
|
|
70644
70654
|
//
|
|
70655
|
+
//
|
|
70656
|
+
//
|
|
70657
|
+
|
|
70645
70658
|
|
|
70646
70659
|
/* harmony default export */ var Table_componentvue_type_script_lang_js_ = ({
|
|
70647
70660
|
props: {
|
|
@@ -70672,6 +70685,9 @@ var componentvue_type_template_id_760c8960_scoped_true_staticRenderFns = []
|
|
|
70672
70685
|
}
|
|
70673
70686
|
},
|
|
70674
70687
|
inject: ['config'],
|
|
70688
|
+
components: {
|
|
70689
|
+
ConfirmBox: confirmBox/* default */.Z
|
|
70690
|
+
},
|
|
70675
70691
|
data() {
|
|
70676
70692
|
return {
|
|
70677
70693
|
imgUrl: window._CONFIG['imgUrl'],
|
|
@@ -70763,10 +70779,10 @@ var componentvue_type_template_id_760c8960_scoped_true_staticRenderFns = []
|
|
|
70763
70779
|
});
|
|
70764
70780
|
;// CONCATENATED MODULE: ./src/form/modules/components/Table/component.vue?vue&type=script&lang=js&
|
|
70765
70781
|
/* harmony default export */ var components_Table_componentvue_type_script_lang_js_ = (Table_componentvue_type_script_lang_js_);
|
|
70766
|
-
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.6@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.8.1@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Table/component.vue?vue&type=style&index=0&id=
|
|
70782
|
+
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.6@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.8.1@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Table/component.vue?vue&type=style&index=0&id=75b5682f&prod&lang=less&scoped=true&
|
|
70767
70783
|
// extracted by mini-css-extract-plugin
|
|
70768
70784
|
|
|
70769
|
-
;// CONCATENATED MODULE: ./src/form/modules/components/Table/component.vue?vue&type=style&index=0&id=
|
|
70785
|
+
;// CONCATENATED MODULE: ./src/form/modules/components/Table/component.vue?vue&type=style&index=0&id=75b5682f&prod&lang=less&scoped=true&
|
|
70770
70786
|
|
|
70771
70787
|
;// CONCATENATED MODULE: ./src/form/modules/components/Table/component.vue
|
|
70772
70788
|
|
|
@@ -70779,11 +70795,11 @@ var componentvue_type_template_id_760c8960_scoped_true_staticRenderFns = []
|
|
|
70779
70795
|
|
|
70780
70796
|
var Table_component_component = (0,componentNormalizer/* default */.Z)(
|
|
70781
70797
|
components_Table_componentvue_type_script_lang_js_,
|
|
70782
|
-
|
|
70783
|
-
|
|
70798
|
+
componentvue_type_template_id_75b5682f_scoped_true_render,
|
|
70799
|
+
componentvue_type_template_id_75b5682f_scoped_true_staticRenderFns,
|
|
70784
70800
|
false,
|
|
70785
70801
|
null,
|
|
70786
|
-
"
|
|
70802
|
+
"75b5682f",
|
|
70787
70803
|
null
|
|
70788
70804
|
|
|
70789
70805
|
)
|
|
@@ -105208,6 +105224,223 @@ function convertFileSize(fileSizeInKB, digits = 2) {
|
|
|
105208
105224
|
|
|
105209
105225
|
/***/ }),
|
|
105210
105226
|
|
|
105227
|
+
/***/ 5927:
|
|
105228
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
105229
|
+
|
|
105230
|
+
"use strict";
|
|
105231
|
+
|
|
105232
|
+
// EXPORTS
|
|
105233
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
105234
|
+
Z: function() { return /* binding */ confirmBox; }
|
|
105235
|
+
});
|
|
105236
|
+
|
|
105237
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/components/MessageBox/confirmBox.vue?vue&type=template&id=0ae71c98&scoped=true&
|
|
105238
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"click":function($event){$event.stopPropagation();return _vm.handleClick.apply(null, arguments)}}},[_c('MessageBox',{ref:"box",attrs:{"title":_vm.title,"mode":"manual","callback":function () {},"closable":"","zIndex":9999999,"width":"420px"},scopedSlots:_vm._u([{key:"btn",fn:function(ref){
|
|
105239
|
+
var close = ref.close;
|
|
105240
|
+
return [_c('div',{staticClass:"tw-flex tw-justify-center tw-gap-[10px] ",staticStyle:{"display":"flex","justify-content":"center","gap":"10px"}},[_c('a-button',{on:{"click":function($event){return _vm.handleCancel(close)}}},[_vm._v(_vm._s(_vm.cancelText))]),_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.handleConfirm(close)}}},[_vm._v(_vm._s(_vm.okText))])],1)]}}])},[[_vm._v(" "+_vm._s(_vm.content)+" ")]],2),_vm._t("default")],2)}
|
|
105241
|
+
var staticRenderFns = []
|
|
105242
|
+
|
|
105243
|
+
|
|
105244
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/components/MessageBox/MessageBox.vue?vue&type=template&id=0acc75e5&
|
|
105245
|
+
var MessageBoxvue_type_template_id_0acc75e5_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-modal',{attrs:{"title":_vm.title,"width":_vm.width,"destroyOnClose":true,"zIndex":_vm.zIndex,"maskClosable":false,"closable":_vm.closable,"footer":null},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:"visible"}},[_c('div',{staticClass:"tip_content"},[_vm._t("default",function(){return [_c('a-textarea',{staticStyle:{"resize":"none"},attrs:{"readonly":true,"auto-size":{ minRows: 2, maxRows: 16 }},model:{value:(_vm.message),callback:function ($$v) {_vm.message=$$v},expression:"message"}})]},null,{ visible: _vm.visible, close: _vm.handleClose })],2),_c('div',{staticClass:"tip_btn"},[_vm._t("btn",function(){return [_c('a-button',{attrs:{"type":"primary"},on:{"click":_vm.handleClose}},[_vm._v("确定")])]},null,{ visible: _vm.visible, close: _vm.handleClose })],2)])}
|
|
105246
|
+
var MessageBoxvue_type_template_id_0acc75e5_staticRenderFns = []
|
|
105247
|
+
|
|
105248
|
+
|
|
105249
|
+
;// 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.1@vue-loader/lib/index.js??vue-loader-options!./src/components/MessageBox/MessageBox.vue?vue&type=script&lang=js&
|
|
105250
|
+
//
|
|
105251
|
+
//
|
|
105252
|
+
//
|
|
105253
|
+
//
|
|
105254
|
+
//
|
|
105255
|
+
//
|
|
105256
|
+
//
|
|
105257
|
+
//
|
|
105258
|
+
//
|
|
105259
|
+
//
|
|
105260
|
+
//
|
|
105261
|
+
//
|
|
105262
|
+
//
|
|
105263
|
+
//
|
|
105264
|
+
//
|
|
105265
|
+
//
|
|
105266
|
+
//
|
|
105267
|
+
//
|
|
105268
|
+
//
|
|
105269
|
+
//
|
|
105270
|
+
//
|
|
105271
|
+
//
|
|
105272
|
+
//
|
|
105273
|
+
//
|
|
105274
|
+
//
|
|
105275
|
+
//
|
|
105276
|
+
//
|
|
105277
|
+
//
|
|
105278
|
+
//
|
|
105279
|
+
|
|
105280
|
+
/* harmony default export */ var MessageBoxvue_type_script_lang_js_ = ({
|
|
105281
|
+
name: "MessageBox",
|
|
105282
|
+
props: {
|
|
105283
|
+
title: [String],
|
|
105284
|
+
message: [String],
|
|
105285
|
+
callback: [Function],
|
|
105286
|
+
width: {
|
|
105287
|
+
type: String,
|
|
105288
|
+
default: '768px'
|
|
105289
|
+
},
|
|
105290
|
+
zIndex: {
|
|
105291
|
+
type: Number,
|
|
105292
|
+
default: 2
|
|
105293
|
+
},
|
|
105294
|
+
closable: [Boolean],
|
|
105295
|
+
mode: {
|
|
105296
|
+
type: String,
|
|
105297
|
+
default: 'auto'
|
|
105298
|
+
}
|
|
105299
|
+
},
|
|
105300
|
+
data() {
|
|
105301
|
+
return {
|
|
105302
|
+
visible: false
|
|
105303
|
+
};
|
|
105304
|
+
},
|
|
105305
|
+
created() {
|
|
105306
|
+
if (this.mode == 'auto') {
|
|
105307
|
+
this.$nextTick(() => {
|
|
105308
|
+
this.visible = true;
|
|
105309
|
+
});
|
|
105310
|
+
}
|
|
105311
|
+
},
|
|
105312
|
+
watch: {
|
|
105313
|
+
visible(val1, val2) {
|
|
105314
|
+
if (val2 && !val1) {
|
|
105315
|
+
this.callback(false);
|
|
105316
|
+
}
|
|
105317
|
+
}
|
|
105318
|
+
},
|
|
105319
|
+
methods: {
|
|
105320
|
+
handleClose(flag = false) {
|
|
105321
|
+
this.visible = false;
|
|
105322
|
+
this.callback && this.callback(flag);
|
|
105323
|
+
}
|
|
105324
|
+
}
|
|
105325
|
+
});
|
|
105326
|
+
;// CONCATENATED MODULE: ./src/components/MessageBox/MessageBox.vue?vue&type=script&lang=js&
|
|
105327
|
+
/* harmony default export */ var MessageBox_MessageBoxvue_type_script_lang_js_ = (MessageBoxvue_type_script_lang_js_);
|
|
105328
|
+
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.6@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/_css-loader@6.8.1@css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/components/MessageBox/MessageBox.vue?vue&type=style&index=0&id=0acc75e5&prod&lang=scss&
|
|
105329
|
+
// extracted by mini-css-extract-plugin
|
|
105330
|
+
|
|
105331
|
+
;// CONCATENATED MODULE: ./src/components/MessageBox/MessageBox.vue?vue&type=style&index=0&id=0acc75e5&prod&lang=scss&
|
|
105332
|
+
|
|
105333
|
+
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
105334
|
+
var componentNormalizer = __webpack_require__(8412);
|
|
105335
|
+
;// CONCATENATED MODULE: ./src/components/MessageBox/MessageBox.vue
|
|
105336
|
+
|
|
105337
|
+
|
|
105338
|
+
|
|
105339
|
+
;
|
|
105340
|
+
|
|
105341
|
+
|
|
105342
|
+
/* normalize component */
|
|
105343
|
+
|
|
105344
|
+
var component = (0,componentNormalizer/* default */.Z)(
|
|
105345
|
+
MessageBox_MessageBoxvue_type_script_lang_js_,
|
|
105346
|
+
MessageBoxvue_type_template_id_0acc75e5_render,
|
|
105347
|
+
MessageBoxvue_type_template_id_0acc75e5_staticRenderFns,
|
|
105348
|
+
false,
|
|
105349
|
+
null,
|
|
105350
|
+
null,
|
|
105351
|
+
null
|
|
105352
|
+
|
|
105353
|
+
)
|
|
105354
|
+
|
|
105355
|
+
/* harmony default export */ var MessageBox = (component.exports);
|
|
105356
|
+
;// 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.1@vue-loader/lib/index.js??vue-loader-options!./src/components/MessageBox/confirmBox.vue?vue&type=script&lang=js&
|
|
105357
|
+
//
|
|
105358
|
+
//
|
|
105359
|
+
//
|
|
105360
|
+
//
|
|
105361
|
+
//
|
|
105362
|
+
//
|
|
105363
|
+
//
|
|
105364
|
+
//
|
|
105365
|
+
//
|
|
105366
|
+
//
|
|
105367
|
+
//
|
|
105368
|
+
//
|
|
105369
|
+
//
|
|
105370
|
+
//
|
|
105371
|
+
//
|
|
105372
|
+
//
|
|
105373
|
+
//
|
|
105374
|
+
//
|
|
105375
|
+
//
|
|
105376
|
+
|
|
105377
|
+
|
|
105378
|
+
/* harmony default export */ var confirmBoxvue_type_script_lang_js_ = ({
|
|
105379
|
+
name: "confirmBox",
|
|
105380
|
+
props: {
|
|
105381
|
+
title: {
|
|
105382
|
+
type: String,
|
|
105383
|
+
default: '提示'
|
|
105384
|
+
},
|
|
105385
|
+
content: {
|
|
105386
|
+
type: String
|
|
105387
|
+
},
|
|
105388
|
+
center: {
|
|
105389
|
+
type: Boolean,
|
|
105390
|
+
default: () => true
|
|
105391
|
+
},
|
|
105392
|
+
okText: {
|
|
105393
|
+
type: String,
|
|
105394
|
+
default: '确认'
|
|
105395
|
+
},
|
|
105396
|
+
cancelText: {
|
|
105397
|
+
type: String,
|
|
105398
|
+
default: '取消'
|
|
105399
|
+
}
|
|
105400
|
+
},
|
|
105401
|
+
components: {
|
|
105402
|
+
MessageBox: MessageBox
|
|
105403
|
+
},
|
|
105404
|
+
methods: {
|
|
105405
|
+
handleClick() {
|
|
105406
|
+
this.$refs['box'].visible = true;
|
|
105407
|
+
console.log('click');
|
|
105408
|
+
},
|
|
105409
|
+
handleCancel(close) {
|
|
105410
|
+
close();
|
|
105411
|
+
this.$emit('cancel');
|
|
105412
|
+
},
|
|
105413
|
+
handleConfirm(close) {
|
|
105414
|
+
close();
|
|
105415
|
+
this.$emit('confirm');
|
|
105416
|
+
}
|
|
105417
|
+
}
|
|
105418
|
+
});
|
|
105419
|
+
;// CONCATENATED MODULE: ./src/components/MessageBox/confirmBox.vue?vue&type=script&lang=js&
|
|
105420
|
+
/* harmony default export */ var MessageBox_confirmBoxvue_type_script_lang_js_ = (confirmBoxvue_type_script_lang_js_);
|
|
105421
|
+
;// CONCATENATED MODULE: ./src/components/MessageBox/confirmBox.vue
|
|
105422
|
+
|
|
105423
|
+
|
|
105424
|
+
|
|
105425
|
+
|
|
105426
|
+
|
|
105427
|
+
/* normalize component */
|
|
105428
|
+
;
|
|
105429
|
+
var confirmBox_component = (0,componentNormalizer/* default */.Z)(
|
|
105430
|
+
MessageBox_confirmBoxvue_type_script_lang_js_,
|
|
105431
|
+
render,
|
|
105432
|
+
staticRenderFns,
|
|
105433
|
+
false,
|
|
105434
|
+
null,
|
|
105435
|
+
"0ae71c98",
|
|
105436
|
+
null
|
|
105437
|
+
|
|
105438
|
+
)
|
|
105439
|
+
|
|
105440
|
+
/* harmony default export */ var confirmBox = (confirmBox_component.exports);
|
|
105441
|
+
|
|
105442
|
+
/***/ }),
|
|
105443
|
+
|
|
105211
105444
|
/***/ 8513:
|
|
105212
105445
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
105213
105446
|
|
|
@@ -105347,7 +105580,7 @@ var CorrectionItemvue_type_template_id_4d910d38_scoped_true_staticRenderFns = []
|
|
|
105347
105580
|
|
|
105348
105581
|
|
|
105349
105582
|
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 798 modules
|
|
105350
|
-
var components = __webpack_require__(
|
|
105583
|
+
var components = __webpack_require__(1119);
|
|
105351
105584
|
;// 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.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/CorrectionItem.vue?vue&type=script&lang=js&
|
|
105352
105585
|
//
|
|
105353
105586
|
//
|
|
@@ -106632,7 +106865,7 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
|
|
|
106632
106865
|
// EXTERNAL MODULE: ./src/api/manage.js
|
|
106633
106866
|
var manage = __webpack_require__(1474);
|
|
106634
106867
|
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 798 modules
|
|
106635
|
-
var components = __webpack_require__(
|
|
106868
|
+
var components = __webpack_require__(1119);
|
|
106636
106869
|
// EXTERNAL MODULE: ./src/form/util/Bus.js
|
|
106637
106870
|
var Bus = __webpack_require__(767);
|
|
106638
106871
|
// EXTERNAL MODULE: ./src/form/modules/config/hnkj.js
|
|
@@ -107240,7 +107473,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;
|
|
|
107240
107473
|
/***/ (function(module) {
|
|
107241
107474
|
|
|
107242
107475
|
"use strict";
|
|
107243
|
-
module.exports = {"i8":"1.1.
|
|
107476
|
+
module.exports = {"i8":"1.1.33"};
|
|
107244
107477
|
|
|
107245
107478
|
/***/ })
|
|
107246
107479
|
|
|
@@ -107373,7 +107606,7 @@ if (typeof window !== 'undefined') {
|
|
|
107373
107606
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
107374
107607
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
107375
107608
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
107376
|
-
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=template&id=
|
|
107609
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=template&id=22d88914&scoped=true&
|
|
107377
107610
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-spin',{staticClass:"layout layout-input-all-setting",class:{ 'no-border': !_vm.data.config.border, 'save-pdf': _vm.showLine, 'ant-form-noBorder': _vm.data.config.componentsNoBorder },attrs:{"spinning":_vm.formLoading,"tip":_vm.formLoadingTip}},[_c('a-form-model',{ref:"Form",attrs:{"hideRequiredMark":true,"model":_vm.models,"rules":_vm.rules,"wrapper-col":{}},on:{"update:rules":function($event){_vm.rules=$event}}},_vm._l((_vm.widgetList),function(list,listindex){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.widgetList[0].length > 0),expression:"widgetList[0].length > 0"}],key:listindex,staticClass:"paper",style:(_vm.contentStyle)},[(listindex == 0)?_vm._t("default"):_vm._e(),(listindex == 0)?_c('div',{staticClass:"form-title",style:({ height: _vm.formNameHeight })},[_vm._v(" "+_vm._s(_vm.data.config.formName)+" ")]):_vm._e(),(_vm.data.config.pageHeader && listindex === 0)?_c('div',{style:(_vm.data.config.headerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageHeader)}}):_vm._e(),_c('div',{staticClass:"page-border",style:({ borderColor: _vm.data.config.borderColor })},[_vm._l((list),function(widget,index){return [(widget.type == 'table')?[(
|
|
107378
107611
|
widget.options.layoutModel === 'auto' ||
|
|
107379
107612
|
widget.options.layoutModel === undefined
|
|
@@ -107382,7 +107615,7 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
|
|
|
107382
107615
|
borderColor: _vm.data.config.borderColor,
|
|
107383
107616
|
backgroundColor: _vm.data.config.bgc,
|
|
107384
107617
|
color: _vm.data.config.color,
|
|
107385
|
-
})},[_c('p',{staticStyle:{"position":"relative","margin-bottom":"0","padding-bottom":"0"}},[(widget.options.enableImport && !widget.options.disabled)?_c('span',{staticStyle:{"position":"absolute","display":"flex","height":"100%","align-items":"center"}},[_c('a-upload',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"action":_vm.actionUrl + "?formId=" + (_vm.data.formId) + "&tableKey=" + (widget.model),"headers":_vm.headers,"showUploadList":false},on:{"change":function (params) { return _vm.handleChange(widget, params); }}},[_c('a-button',[_c('a-icon',{attrs:{"type":"upload"}}),_vm._v("上传")],1)],1),_c('
|
|
107618
|
+
})},[_c('p',{staticStyle:{"position":"relative","margin-bottom":"0","padding-bottom":"0"}},[(widget.options.enableImport && !widget.options.disabled)?_c('span',{staticStyle:{"position":"absolute","display":"flex","height":"100%","align-items":"center"}},[_c('a-upload',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"action":_vm.actionUrl + "?formId=" + (_vm.data.formId) + "&tableKey=" + (widget.model),"headers":_vm.headers,"showUploadList":false},on:{"change":function (params) { return _vm.handleChange(widget, params); }}},[_c('a-button',[_c('a-icon',{attrs:{"type":"upload"}}),_vm._v("上传")],1)],1),_c('confirm-box',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"content":"注意:使用Excel模板导入仅支持文本、日期、下拉等内容,无法支持复杂的组件以及数据校验等,请确认!"},on:{"confirm":function($event){return _vm.downloadTableTemplate(widget)}}},[_c('a-button',[_vm._v("下载模板")])],1)],1):_vm._e(),_c('span',[_vm._v(_vm._s(widget.name))])])]):_c('div',{staticClass:"table-content",style:({ borderColor: _vm.data.config.borderColor })},[_c('p',{staticStyle:{"position":"relative","margin-bottom":"0"}},[(widget.options.enableImport && !widget.options.disabled)?_c('span',{staticStyle:{"position":"absolute","display":"flex","height":"100%","align-items":"center"}},[_c('a-upload',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"action":_vm.actionUrl + "?formId=" + (_vm.data.formId) + "&tableKey=" + (widget.model),"headers":_vm.headers,"showUploadList":false},on:{"change":function (params) { return _vm.handleChange(widget, params); }}},[_c('a-button',[_c('a-icon',{attrs:{"type":"upload"}}),_vm._v("上传")],1)],1),_c('confirm-box',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"content":"注意:使用Excel模板导入仅支持文本、日期、下拉等内容,无法支持复杂的组件以及数据校验等,请确认!"},on:{"confirm":function($event){return _vm.downloadTableTemplate(widget)}}},[_c('a-button',[_vm._v("下载模板")])],1)],1):_vm._e(),_c('span',[_vm._v(_vm._s(widget.name))])])]),_c('div',{staticClass:"table-right"},[_c('div',{staticClass:"sub-table-col sub-table-col-no-border"},[_vm._l((widget.columns),function(children,index){return _c('span',{directives:[{name:"show",rawName:"v-show",value:(children.type !== 'hidden'),expression:"children.type !== 'hidden'"}],key:index,class:[
|
|
107386
107619
|
_vm.data.config.align,
|
|
107387
107620
|
_vm.data.config.validate === true && children.options.required === true
|
|
107388
107621
|
? 'is_required'
|
|
@@ -107403,10 +107636,10 @@ var staticRenderFns = []
|
|
|
107403
107636
|
var layoutForPapervue_type_script_lang_js_ = __webpack_require__(7862);
|
|
107404
107637
|
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js&
|
|
107405
107638
|
/* harmony default export */ var layout_layoutForPapervue_type_script_lang_js_ = (layoutForPapervue_type_script_lang_js_/* default */.Z);
|
|
107406
|
-
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.6@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.8.1@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=
|
|
107639
|
+
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.6@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.8.1@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=22d88914&prod&lang=less&scoped=true&
|
|
107407
107640
|
// extracted by mini-css-extract-plugin
|
|
107408
107641
|
|
|
107409
|
-
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=
|
|
107642
|
+
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=22d88914&prod&lang=less&scoped=true&
|
|
107410
107643
|
|
|
107411
107644
|
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
107412
107645
|
var componentNormalizer = __webpack_require__(8412);
|
|
@@ -107425,7 +107658,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
107425
107658
|
staticRenderFns,
|
|
107426
107659
|
false,
|
|
107427
107660
|
null,
|
|
107428
|
-
"
|
|
107661
|
+
"22d88914",
|
|
107429
107662
|
null
|
|
107430
107663
|
|
|
107431
107664
|
)
|
|
@@ -108732,7 +108965,7 @@ var es_array_push = __webpack_require__(6903);
|
|
|
108732
108965
|
// EXTERNAL MODULE: ./src/form/util/util.js
|
|
108733
108966
|
var util = __webpack_require__(6955);
|
|
108734
108967
|
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 798 modules
|
|
108735
|
-
var components = __webpack_require__(
|
|
108968
|
+
var components = __webpack_require__(1119);
|
|
108736
108969
|
// EXTERNAL MODULE: ./src/api/manage.js
|
|
108737
108970
|
var manage = __webpack_require__(1474);
|
|
108738
108971
|
// EXTERNAL MODULE: ./src/form/modules/widgetFormItem.vue + 6 modules
|