@zscreate/form-component 1.1.12 → 1.1.14
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 +77 -79
- package/dist/form-component.umd-report.html +2 -2
- package/dist/form-component.umd.js +232 -85
- package/package.json +1 -1
|
@@ -62871,7 +62871,7 @@ module.exports = /******/function (modules) {
|
|
|
62871
62871
|
/* harmony import */ var _util_mathUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38);
|
|
62872
62872
|
/* harmony import */ var _util_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6955);
|
|
62873
62873
|
/* harmony import */ var _layoutItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6778);
|
|
62874
|
-
/* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
62874
|
+
/* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9569);
|
|
62875
62875
|
/* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9616);
|
|
62876
62876
|
/* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(pubsub_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
62877
62877
|
|
|
@@ -63185,6 +63185,37 @@ module.exports = /******/function (modules) {
|
|
|
63185
63185
|
//
|
|
63186
63186
|
//
|
|
63187
63187
|
//
|
|
63188
|
+
//
|
|
63189
|
+
//
|
|
63190
|
+
//
|
|
63191
|
+
//
|
|
63192
|
+
//
|
|
63193
|
+
//
|
|
63194
|
+
//
|
|
63195
|
+
//
|
|
63196
|
+
//
|
|
63197
|
+
//
|
|
63198
|
+
//
|
|
63199
|
+
//
|
|
63200
|
+
//
|
|
63201
|
+
//
|
|
63202
|
+
//
|
|
63203
|
+
//
|
|
63204
|
+
//
|
|
63205
|
+
//
|
|
63206
|
+
//
|
|
63207
|
+
//
|
|
63208
|
+
//
|
|
63209
|
+
//
|
|
63210
|
+
//
|
|
63211
|
+
//
|
|
63212
|
+
//
|
|
63213
|
+
//
|
|
63214
|
+
//
|
|
63215
|
+
//
|
|
63216
|
+
//
|
|
63217
|
+
//
|
|
63218
|
+
//
|
|
63188
63219
|
|
|
63189
63220
|
|
|
63190
63221
|
|
|
@@ -63216,7 +63247,12 @@ module.exports = /******/function (modules) {
|
|
|
63216
63247
|
tableLoading: false,
|
|
63217
63248
|
tableModel: {},
|
|
63218
63249
|
tableIndex: {},
|
|
63219
|
-
originIndex: 0
|
|
63250
|
+
originIndex: 0,
|
|
63251
|
+
imgUrl: window._CONFIG['imgUrl'],
|
|
63252
|
+
actionUrl: window._CONFIG['domianURL'] + '/form/formdesiger/importTableExcel',
|
|
63253
|
+
headers: {
|
|
63254
|
+
'X-Access-Token': localStorage.getItem('token')
|
|
63255
|
+
}
|
|
63220
63256
|
};
|
|
63221
63257
|
},
|
|
63222
63258
|
inject: {
|
|
@@ -63304,6 +63340,28 @@ module.exports = /******/function (modules) {
|
|
|
63304
63340
|
}
|
|
63305
63341
|
},
|
|
63306
63342
|
methods: {
|
|
63343
|
+
handleChange(widget, {
|
|
63344
|
+
file
|
|
63345
|
+
}) {
|
|
63346
|
+
if (file.size > 10 * 1024 * 1024) {
|
|
63347
|
+
this.$message.error("文件超出10M");
|
|
63348
|
+
return false;
|
|
63349
|
+
}
|
|
63350
|
+
if (file.status == "done") {
|
|
63351
|
+
const res = file.response;
|
|
63352
|
+
if (res.success && res.result) {
|
|
63353
|
+
this.tableIndex[widget.model] = 0;
|
|
63354
|
+
this.$set(this.tableData, widget.model, []);
|
|
63355
|
+
this.models[widget.model] = res.result || [];
|
|
63356
|
+
this.tableInitByModel(widget.model);
|
|
63357
|
+
} else {
|
|
63358
|
+
this.$message.error('导入失败');
|
|
63359
|
+
}
|
|
63360
|
+
}
|
|
63361
|
+
},
|
|
63362
|
+
downloadTableTemplate(widget) {
|
|
63363
|
+
window.open(this.imgUrl + widget.options.templatePath);
|
|
63364
|
+
},
|
|
63307
63365
|
//添加子表单里面的row
|
|
63308
63366
|
addToTableData(data, model, addModel) {
|
|
63309
63367
|
let dataTemp = JSON.parse(JSON.stringify(data));
|
|
@@ -63643,7 +63701,7 @@ module.exports = /******/function (modules) {
|
|
|
63643
63701
|
|
|
63644
63702
|
"use strict";
|
|
63645
63703
|
/* harmony import */ var _common_CorrectionModal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1445);
|
|
63646
|
-
/* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
63704
|
+
/* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9569);
|
|
63647
63705
|
/* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9616);
|
|
63648
63706
|
/* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(pubsub_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
63649
63707
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1925);
|
|
@@ -67880,7 +67938,7 @@ module.exports = {
|
|
|
67880
67938
|
|
|
67881
67939
|
/***/ }),
|
|
67882
67940
|
|
|
67883
|
-
/***/
|
|
67941
|
+
/***/ 9569:
|
|
67884
67942
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
67885
67943
|
|
|
67886
67944
|
"use strict";
|
|
@@ -70428,8 +70486,8 @@ var Select_widgetDesign_component = (0,componentNormalizer/* default */.Z)(
|
|
|
70428
70486
|
widgetSetup: Select_widgetSetup,
|
|
70429
70487
|
widgetDesign: Select_widgetDesign
|
|
70430
70488
|
});
|
|
70431
|
-
;// 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=
|
|
70432
|
-
var
|
|
70489
|
+
;// 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=6239d374&scoped=true&
|
|
70490
|
+
var componentvue_type_template_id_6239d374_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) { return _vm.handleChange(_vm.widget, params); }}},[_c('a-button',[_c('a-icon',{attrs:{"type":"upload"}}),_vm._v("上传")],1)],1),_c('a-button',{staticStyle:{"float":"left","margin":"0 5px"},on:{"click":function($event){return _vm.downloadTableTemplate(_vm.widget)}}},[_vm._v("下载模板")])],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:({
|
|
70433
70491
|
height: _vm.setHeight(
|
|
70434
70492
|
tableColums.options.rowsNum,
|
|
70435
70493
|
tableColums.options.rowsHeight
|
|
@@ -70445,8 +70503,8 @@ var componentvue_type_template_id_405b2913_scoped_true_render = function () {var
|
|
|
70445
70503
|
})},_vm._l((tableColums.designList),function(col,colIndex){return _c('div',{key:colIndex,style:({
|
|
70446
70504
|
'grid-column': _vm.setItemPosition(col, 'column'),
|
|
70447
70505
|
'grid-row': _vm.setItemPosition(col),
|
|
70448
|
-
})},[[_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)?_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()}
|
|
70449
|
-
var
|
|
70506
|
+
})},[[_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()}
|
|
70507
|
+
var componentvue_type_template_id_6239d374_scoped_true_staticRenderFns = []
|
|
70450
70508
|
|
|
70451
70509
|
|
|
70452
70510
|
;// 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&
|
|
@@ -70527,6 +70585,20 @@ var componentvue_type_template_id_405b2913_scoped_true_staticRenderFns = []
|
|
|
70527
70585
|
//
|
|
70528
70586
|
//
|
|
70529
70587
|
//
|
|
70588
|
+
//
|
|
70589
|
+
//
|
|
70590
|
+
//
|
|
70591
|
+
//
|
|
70592
|
+
//
|
|
70593
|
+
//
|
|
70594
|
+
//
|
|
70595
|
+
//
|
|
70596
|
+
//
|
|
70597
|
+
//
|
|
70598
|
+
//
|
|
70599
|
+
//
|
|
70600
|
+
//
|
|
70601
|
+
//
|
|
70530
70602
|
|
|
70531
70603
|
/* harmony default export */ var Table_componentvue_type_script_lang_js_ = ({
|
|
70532
70604
|
props: {
|
|
@@ -70545,6 +70617,10 @@ var componentvue_type_template_id_405b2913_scoped_true_staticRenderFns = []
|
|
|
70545
70617
|
return {};
|
|
70546
70618
|
}
|
|
70547
70619
|
},
|
|
70620
|
+
formId: {
|
|
70621
|
+
type: String,
|
|
70622
|
+
default: ''
|
|
70623
|
+
},
|
|
70548
70624
|
tableData: {
|
|
70549
70625
|
type: Object,
|
|
70550
70626
|
default: () => {
|
|
@@ -70554,7 +70630,13 @@ var componentvue_type_template_id_405b2913_scoped_true_staticRenderFns = []
|
|
|
70554
70630
|
},
|
|
70555
70631
|
inject: ['config'],
|
|
70556
70632
|
data() {
|
|
70557
|
-
return {
|
|
70633
|
+
return {
|
|
70634
|
+
imgUrl: window._CONFIG['imgUrl'],
|
|
70635
|
+
actionUrl: window._CONFIG['domianURL'] + '/form/formdesiger/importTableExcel',
|
|
70636
|
+
headers: {
|
|
70637
|
+
'X-Access-Token': localStorage.getItem('token')
|
|
70638
|
+
}
|
|
70639
|
+
};
|
|
70558
70640
|
},
|
|
70559
70641
|
beforeCreate: function () {
|
|
70560
70642
|
// 直接 components 申明layoutItem 会导致循环调用问题, 但是用 异步组件 () =>layoutItem.vue 会导致 副组件 $nextTick 无法获取dom 更新后回调
|
|
@@ -70564,6 +70646,26 @@ var componentvue_type_template_id_405b2913_scoped_true_staticRenderFns = []
|
|
|
70564
70646
|
console.log(this.widget, '.......', this.tableData);
|
|
70565
70647
|
},
|
|
70566
70648
|
methods: {
|
|
70649
|
+
handleChange(widget, {
|
|
70650
|
+
file
|
|
70651
|
+
}) {
|
|
70652
|
+
if (file.size > 10 * 1024 * 1024) {
|
|
70653
|
+
this.$message.error("文件超出10M");
|
|
70654
|
+
return false;
|
|
70655
|
+
}
|
|
70656
|
+
if (file.status == "done") {
|
|
70657
|
+
const res = file.response;
|
|
70658
|
+
if (res.success && res.result) {
|
|
70659
|
+
const parent = this.$parent.$parent.$parent;
|
|
70660
|
+
parent.tableIndex[widget.model] = 0;
|
|
70661
|
+
parent.$set(parent.tableData, widget.model, undefined);
|
|
70662
|
+
parent.models[widget.model] = res.result || [];
|
|
70663
|
+
parent.tableInitByModel(widget.model);
|
|
70664
|
+
} else {
|
|
70665
|
+
this.$message.error('导入失败');
|
|
70666
|
+
}
|
|
70667
|
+
}
|
|
70668
|
+
},
|
|
70567
70669
|
updateModels(val) {
|
|
70568
70670
|
this.$emit('update:models', val);
|
|
70569
70671
|
},
|
|
@@ -70603,6 +70705,9 @@ var componentvue_type_template_id_405b2913_scoped_true_staticRenderFns = []
|
|
|
70603
70705
|
// console.log(weight,model,addModel)
|
|
70604
70706
|
this.$emit('addToTableData', weight, model, addModel);
|
|
70605
70707
|
},
|
|
70708
|
+
downloadTableTemplate(widget) {
|
|
70709
|
+
window.open(this.imgUrl + widget.options.templatePath);
|
|
70710
|
+
},
|
|
70606
70711
|
handleDeleteRow(columsIndex, model) {
|
|
70607
70712
|
this.$emit('handleDeleteRow', columsIndex, model);
|
|
70608
70713
|
}
|
|
@@ -70610,10 +70715,10 @@ var componentvue_type_template_id_405b2913_scoped_true_staticRenderFns = []
|
|
|
70610
70715
|
});
|
|
70611
70716
|
;// CONCATENATED MODULE: ./src/form/modules/components/Table/component.vue?vue&type=script&lang=js&
|
|
70612
70717
|
/* harmony default export */ var components_Table_componentvue_type_script_lang_js_ = (Table_componentvue_type_script_lang_js_);
|
|
70613
|
-
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.7.3@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=
|
|
70718
|
+
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.7.3@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=6239d374&prod&lang=less&scoped=true&
|
|
70614
70719
|
// extracted by mini-css-extract-plugin
|
|
70615
70720
|
|
|
70616
|
-
;// CONCATENATED MODULE: ./src/form/modules/components/Table/component.vue?vue&type=style&index=0&id=
|
|
70721
|
+
;// CONCATENATED MODULE: ./src/form/modules/components/Table/component.vue?vue&type=style&index=0&id=6239d374&prod&lang=less&scoped=true&
|
|
70617
70722
|
|
|
70618
70723
|
;// CONCATENATED MODULE: ./src/form/modules/components/Table/component.vue
|
|
70619
70724
|
|
|
@@ -70626,18 +70731,18 @@ var componentvue_type_template_id_405b2913_scoped_true_staticRenderFns = []
|
|
|
70626
70731
|
|
|
70627
70732
|
var Table_component_component = (0,componentNormalizer/* default */.Z)(
|
|
70628
70733
|
components_Table_componentvue_type_script_lang_js_,
|
|
70629
|
-
|
|
70630
|
-
|
|
70734
|
+
componentvue_type_template_id_6239d374_scoped_true_render,
|
|
70735
|
+
componentvue_type_template_id_6239d374_scoped_true_staticRenderFns,
|
|
70631
70736
|
false,
|
|
70632
70737
|
null,
|
|
70633
|
-
"
|
|
70738
|
+
"6239d374",
|
|
70634
70739
|
null
|
|
70635
70740
|
|
|
70636
70741
|
)
|
|
70637
70742
|
|
|
70638
70743
|
/* harmony default export */ var Table_component = (Table_component_component.exports);
|
|
70639
|
-
;// 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/widgetSetup.vue?vue&type=template&id=
|
|
70640
|
-
var
|
|
70744
|
+
;// 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/widgetSetup.vue?vue&type=template&id=1fb871cc&scoped=true&
|
|
70745
|
+
var widgetSetupvue_type_template_id_1fb871cc_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control"},[_c('div',{staticClass:"form_wrap"},[_c('div',{staticClass:"form"},[_c('a-form-model',[_c('a-form-model-item',{attrs:{"label":"默认值"}},[_c('a-input',{attrs:{"type":"textarea"},model:{value:(_vm.defaultValue),callback:function ($$v) {_vm.defaultValue=$$v},expression:"defaultValue"}})],1),_c('a-form-model-item',{attrs:{"label":"支持导入"}},[_c('a-switch',{model:{value:(_vm.widget.options.enableImport),callback:function ($$v) {_vm.$set(_vm.widget.options, "enableImport", $$v)},expression:"widget.options.enableImport"}})],1),_c('a-form-model-item',{attrs:{"label":"隐藏操作按钮"}},[_c('a-switch',{model:{value:(_vm.widget.options.hiddenOperateBtn),callback:function ($$v) {_vm.$set(_vm.widget.options, "hiddenOperateBtn", $$v)},expression:"widget.options.hiddenOperateBtn"}})],1),_c('a-form-model-item',{ref:"title",attrs:{"label":"标题布局方式:","prop":"title"}},[_c('a-radio-group',{attrs:{"button-style":"solid"},model:{value:(_vm.widget.options.inline),callback:function ($$v) {_vm.$set(_vm.widget.options, "inline", $$v)},expression:"widget.options.inline"}},[_c('a-radio-button',{attrs:{"value":false}},[_vm._v(" 块级 ")]),_c('a-radio-button',{attrs:{"value":true}},[_vm._v(" 行内 ")])],1)],1),(
|
|
70641
70746
|
_vm.widget.options &&
|
|
70642
70747
|
Object.keys(_vm.widget.options).indexOf('inline') >= 0 &&
|
|
70643
70748
|
_vm.widget.options.inline == false
|
|
@@ -70645,7 +70750,7 @@ var widgetSetupvue_type_template_id_591385ae_scoped_true_render = function () {v
|
|
|
70645
70750
|
_vm.widget.options.inline == false &&
|
|
70646
70751
|
_vm.widget.options.layoutModel == 'design'
|
|
70647
70752
|
)?[_c('a-form-model-item',{attrs:{"label":"基础网格列数:"}},[_c('a-input-number',{attrs:{"step":2,"max":24,"min":0},model:{value:(_vm.widget.options.columnsNum),callback:function ($$v) {_vm.$set(_vm.widget.options, "columnsNum", $$v)},expression:"widget.options.columnsNum"}})],1),_c('a-form-model-item',{attrs:{"label":"基础网格行数"}},[_c('a-input-number',{attrs:{"step":1,"min":0},model:{value:(_vm.widget.options.rowsNum),callback:function ($$v) {_vm.$set(_vm.widget.options, "rowsNum", $$v)},expression:"widget.options.rowsNum"}})],1),_c('a-form-model-item',{attrs:{"label":"基础行高"}},[_c('a-input-number',{attrs:{"step":1,"min":20},model:{value:(_vm.widget.options.rowsHeight),callback:function ($$v) {_vm.$set(_vm.widget.options, "rowsHeight", $$v)},expression:"widget.options.rowsHeight"}})],1),_c('a-form-model-item',{attrs:{"label":"子集配置:"}},[_c('ul',[_c('li',[_c('span',[_vm._v("横向起点")]),_vm._v("/ "),_c('span',[_vm._v("步长")]),_vm._v("/ "),_c('span',[_vm._v("纵向起点")]),_vm._v("/ "),_c('span',[_vm._v("步长")])]),_vm._l((_vm.widget.designList),function(item,index){return _c('li',{key:index},[_c('i',{staticClass:"drag-item",staticStyle:{"font-size":"16px","margin":"0 5px"}},[_c('i',{staticClass:"iconfont icon-icon_bars"})]),_c('a-input-number',{staticStyle:{"width":"47px"},attrs:{"placeholder":"横向起始位置","type":"number","min":0},model:{value:(item.x),callback:function ($$v) {_vm.$set(item, "x", _vm._n($$v))},expression:"item.x"}}),_c('a-input-number',{staticStyle:{"width":"47px","marginright":"3px"},attrs:{"placeholder":"行步长","type":"number","min":0},model:{value:(item.w),callback:function ($$v) {_vm.$set(item, "w", _vm._n($$v))},expression:"item.w"}}),_c('a-input-number',{staticStyle:{"width":"47px","marginright":"3px"},attrs:{"placeholder":"竖向起始位置","type":"number","min":0},model:{value:(item.y),callback:function ($$v) {_vm.$set(item, "y", _vm._n($$v))},expression:"item.y"}}),_c('a-input-number',{staticStyle:{"width":"47px","marginright":"3px"},attrs:{"placeholder":"列步长","type":"number","min":0},model:{value:(item.h),callback:function ($$v) {_vm.$set(item, "h", _vm._n($$v))},expression:"item.h"}}),_c('a-button',{staticStyle:{"margin-left":"5px","border-radius":"50%"},attrs:{"circle":"","plain":"","type":"danger","size":"small","icon":"minus"},on:{"click":function($event){return _vm.handleOptionsRemove(index)}}})],1)})],2),_c('div',{staticStyle:{"margin-left":"22px"}},[_c('el-button',{attrs:{"type":"text"},on:{"click":_vm.handleTableAddColumn}},[_vm._v("添加列")])],1)])]:_vm._e(),_c('a-form-model-item',{ref:"sum",attrs:{"label":"求值公式:","prop":"sum"}},[_c('a-select',{attrs:{"mode":"multiple","placeholder":"请选择","value":_vm.widget.options.computingMethod},on:{"change":_vm.handleChange}},[_c('a-select-option',{attrs:{"value":"$sum"}},[_vm._v("和($sum)")]),_c('a-select-option',{attrs:{"value":"$average"}},[_vm._v("平均值($average)")]),_c('a-select-option',{attrs:{"value":"$max"}},[_vm._v("最大值($max)")]),_c('a-select-option',{attrs:{"value":"$min"}},[_vm._v("最小值($min)")])],1)],1),_c('a-form-model-item',{ref:"qzgs",attrs:{"label":"求值公式:"}},[_c('a-select',{attrs:{"mode":"multiple","placeholder":"请选择","value":_vm.widget.options.computingSub},on:{"change":_vm.handleChangetwo}},_vm._l((_vm.widget.columns),function(item,index){return _c('a-select-option',{key:index,attrs:{"value":item.model}},[_vm._v(_vm._s(item.name))])}),1)],1)],2)],1)])])}
|
|
70648
|
-
var
|
|
70753
|
+
var widgetSetupvue_type_template_id_1fb871cc_scoped_true_staticRenderFns = []
|
|
70649
70754
|
|
|
70650
70755
|
|
|
70651
70756
|
;// 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/widgetSetup.vue?vue&type=script&lang=js&
|
|
@@ -70808,6 +70913,11 @@ var widgetSetupvue_type_template_id_591385ae_scoped_true_staticRenderFns = []
|
|
|
70808
70913
|
//
|
|
70809
70914
|
//
|
|
70810
70915
|
//
|
|
70916
|
+
//
|
|
70917
|
+
//
|
|
70918
|
+
//
|
|
70919
|
+
//
|
|
70920
|
+
//
|
|
70811
70921
|
|
|
70812
70922
|
/* harmony default export */ var Table_widgetSetupvue_type_script_lang_js_ = ({
|
|
70813
70923
|
name: "widgetSetup",
|
|
@@ -70860,10 +70970,10 @@ var widgetSetupvue_type_template_id_591385ae_scoped_true_staticRenderFns = []
|
|
|
70860
70970
|
});
|
|
70861
70971
|
;// CONCATENATED MODULE: ./src/form/modules/components/Table/widgetSetup.vue?vue&type=script&lang=js&
|
|
70862
70972
|
/* harmony default export */ var components_Table_widgetSetupvue_type_script_lang_js_ = (Table_widgetSetupvue_type_script_lang_js_);
|
|
70863
|
-
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.7.3@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/widgetSetup.vue?vue&type=style&index=0&id=
|
|
70973
|
+
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.7.3@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/widgetSetup.vue?vue&type=style&index=0&id=1fb871cc&prod&lang=less&scoped=true&
|
|
70864
70974
|
// extracted by mini-css-extract-plugin
|
|
70865
70975
|
|
|
70866
|
-
;// CONCATENATED MODULE: ./src/form/modules/components/Table/widgetSetup.vue?vue&type=style&index=0&id=
|
|
70976
|
+
;// CONCATENATED MODULE: ./src/form/modules/components/Table/widgetSetup.vue?vue&type=style&index=0&id=1fb871cc&prod&lang=less&scoped=true&
|
|
70867
70977
|
|
|
70868
70978
|
;// CONCATENATED MODULE: ./src/form/modules/components/Table/widgetSetup.vue
|
|
70869
70979
|
|
|
@@ -70876,11 +70986,11 @@ var widgetSetupvue_type_template_id_591385ae_scoped_true_staticRenderFns = []
|
|
|
70876
70986
|
|
|
70877
70987
|
var Table_widgetSetup_component = (0,componentNormalizer/* default */.Z)(
|
|
70878
70988
|
components_Table_widgetSetupvue_type_script_lang_js_,
|
|
70879
|
-
|
|
70880
|
-
|
|
70989
|
+
widgetSetupvue_type_template_id_1fb871cc_scoped_true_render,
|
|
70990
|
+
widgetSetupvue_type_template_id_1fb871cc_scoped_true_staticRenderFns,
|
|
70881
70991
|
false,
|
|
70882
70992
|
null,
|
|
70883
|
-
"
|
|
70993
|
+
"1fb871cc",
|
|
70884
70994
|
null
|
|
70885
70995
|
|
|
70886
70996
|
)
|
|
@@ -104966,7 +105076,7 @@ var CorrectionItemvue_type_template_id_4d910d38_scoped_true_staticRenderFns = []
|
|
|
104966
105076
|
|
|
104967
105077
|
|
|
104968
105078
|
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 792 modules
|
|
104969
|
-
var components = __webpack_require__(
|
|
105079
|
+
var components = __webpack_require__(9569);
|
|
104970
105080
|
;// 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&
|
|
104971
105081
|
//
|
|
104972
105082
|
//
|
|
@@ -106252,7 +106362,7 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
|
|
|
106252
106362
|
// EXTERNAL MODULE: ./src/api/manage.js
|
|
106253
106363
|
var manage = __webpack_require__(1474);
|
|
106254
106364
|
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 792 modules
|
|
106255
|
-
var components = __webpack_require__(
|
|
106365
|
+
var components = __webpack_require__(9569);
|
|
106256
106366
|
// EXTERNAL MODULE: ./src/form/util/Bus.js
|
|
106257
106367
|
var Bus = __webpack_require__(767);
|
|
106258
106368
|
// EXTERNAL MODULE: ./src/form/modules/config/hnkj.js
|
|
@@ -106860,7 +106970,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;
|
|
|
106860
106970
|
/***/ (function(module) {
|
|
106861
106971
|
|
|
106862
106972
|
"use strict";
|
|
106863
|
-
module.exports = {"i8":"1.1.
|
|
106973
|
+
module.exports = {"i8":"1.1.14"};
|
|
106864
106974
|
|
|
106865
106975
|
/***/ })
|
|
106866
106976
|
|
|
@@ -106993,7 +107103,7 @@ if (typeof window !== 'undefined') {
|
|
|
106993
107103
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
106994
107104
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
106995
107105
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
106996
|
-
;// 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=
|
|
107106
|
+
;// 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=3ed4fe34&scoped=true&
|
|
106997
107107
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"layout layout-input-all-setting",class:{ 'no-border': !_vm.data.config.border, 'save-pdf': _vm.showLine, 'ant-form-noBorder': _vm.data.config.componentsNoBorder }},[_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')?[(
|
|
106998
107108
|
widget.options.layoutModel === 'auto' ||
|
|
106999
107109
|
widget.options.layoutModel === undefined
|
|
@@ -107002,13 +107112,13 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
|
|
|
107002
107112
|
borderColor: _vm.data.config.borderColor,
|
|
107003
107113
|
backgroundColor: _vm.data.config.bgc,
|
|
107004
107114
|
color: _vm.data.config.color,
|
|
107005
|
-
})},[_c('p',[_vm._v(_vm._s(widget.name))])]):_c('div',{staticClass:"table-content",style:({ borderColor: _vm.data.config.borderColor })},[_c('p',[_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,staticStyle:{"border-right":"1px solid #333","border-bottom":"1px solid #333"},style:({ borderColor: _vm.data.config.borderColor })},[_vm._v(_vm._s(children.name))])}),(widget.columns.length > 0 && !widget.options.disabled)?_c('span',{staticClass:"last-one",style:({ borderColor: _vm.data.config.borderColor })},[_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.addToTableData(widget, widget.model, 'addModel')}}},[_vm._v("添加行")])],1):_vm._e()],2),_vm._l((_vm.tableData[widget.model]),function(tableColums,columsIndex){return _c('div',{key:columsIndex,staticClass:"sub-table-col sub-table-col-no-border"},[_vm._l((tableColums.columns),function(tableItem,talbeIndex){return _c('span',{directives:[{name:"show",rawName:"v-show",value:(tableItem.type !== 'hidden'),expression:"tableItem.type !== 'hidden'"}],key:talbeIndex},[_c('layout-item',{directives:[{name:"show",rawName:"v-show",value:(tableItem.options.canView),expression:"tableItem.options.canView"}],attrs:{"tableKey":tableColums.model,"rules":_vm.rules,"tableIndex":columsIndex,"widget":tableItem,"verifyNode":_vm.verifyNode,"suggest":_vm.suggest,"verifyLogs":_vm.verifyLogs,"models":_vm.models,"showLabel":false},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1)}),(!widget.options.disabled)?_c('span',{staticClass:"last-one",style:({ borderColor: _vm.data.config.borderColor })},[_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.handleDeleteRow(columsIndex, widget.model)}}},[_vm._v("删除行")])],1):_vm._e()],2)}),(
|
|
107115
|
+
})},[_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('a-button',{staticStyle:{"float":"left","margin":"0 5px"},on:{"click":function($event){return _vm.downloadTableTemplate(widget)}}},[_vm._v("下载模板")])],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('a-button',{staticStyle:{"float":"left","margin":"0 5px"},on:{"click":function($event){return _vm.downloadTableTemplate(widget)}}},[_vm._v("下载模板")])],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,staticStyle:{"border-right":"1px solid #333","border-bottom":"1px solid #333"},style:({ borderColor: _vm.data.config.borderColor })},[_vm._v(_vm._s(children.name))])}),(!widget.options.hiddenOperateBtn && widget.columns.length > 0 && !widget.options.disabled)?_c('span',{staticClass:"last-one",style:({ borderColor: _vm.data.config.borderColor })},[_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.addToTableData(widget, widget.model, 'addModel')}}},[_vm._v("添加行")])],1):_vm._e()],2),_vm._l((_vm.tableData[widget.model]),function(tableColums,columsIndex){return _c('div',{key:columsIndex,staticClass:"sub-table-col sub-table-col-no-border"},[_vm._l((tableColums.columns),function(tableItem,talbeIndex){return _c('span',{directives:[{name:"show",rawName:"v-show",value:(tableItem.type !== 'hidden'),expression:"tableItem.type !== 'hidden'"}],key:talbeIndex,staticClass:"sub-table-item"},[_c('layout-item',{directives:[{name:"show",rawName:"v-show",value:(tableItem.options.canView),expression:"tableItem.options.canView"}],attrs:{"tableKey":tableColums.model,"rules":_vm.rules,"tableIndex":columsIndex,"widget":tableItem,"verifyNode":_vm.verifyNode,"suggest":_vm.suggest,"verifyLogs":_vm.verifyLogs,"models":_vm.models,"showLabel":false},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1)}),(!widget.options.disabled && !widget.options.hiddenOperateBtn)?_c('span',{staticClass:"last-one",style:({ borderColor: _vm.data.config.borderColor })},[_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.handleDeleteRow(columsIndex, widget.model)}}},[_vm._v("删除行")])],1):_vm._e()],2)}),(
|
|
107006
107116
|
widget.options.computingSub.length > 0 &&
|
|
107007
107117
|
widget.options.computingMethod.length > 0 &&
|
|
107008
107118
|
_vm.tableData &&
|
|
107009
107119
|
_vm.tableData[widget.model] &&
|
|
107010
107120
|
_vm.tableData[widget.model].length > 0
|
|
107011
|
-
)?_c('div',{staticClass:"computed-wrap"},[_c('div',{staticClass:"item"},[_c('div',[_vm._v("需统计字段")]),_vm._l((widget.options.computingSub),function(_item,key){return _c('div',{key:key},[_vm._v(" "+_vm._s(_vm.getSubName(_item, widget.columns))+" ")])})],2),_vm._l((widget.options.computingMethod),function(_methodItem,key){return _c('div',{key:key,staticClass:"item"},[_c('div',[_vm._v(_vm._s(_vm.getMethodName(_methodItem)))]),_vm._l((widget.options.computingSub),function(_subItem,it_key){return _c('div',{key:it_key},[_vm._v(" "+_vm._s(_vm.getMathResult(_methodItem, _vm.models[widget.model], _subItem))+" ")])})],2)})],2):_vm._e()],2)]):(widget.options.layoutModel === 'design')?_c('a-spin',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"table_border row-item",style:({ borderColor: _vm.data.config.borderColor }),attrs:{"spinning":_vm.tableLoading,"tip":"数据加载中"}},[_c('tableComponent',{attrs:{"widget":widget,"tableData":_vm.tableData,"rules":_vm.rules,"models":_vm.models,"index":index,"listindex":listindex},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event},"addToTableData":_vm.addToTableData,"handleDeleteRow":_vm.handleDeleteRow}})],1):_vm._e()]:(widget.type === 'grid')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('grid-component',{attrs:{"rules":_vm.rules,"models":_vm.models,"widget":widget,"index":index,"verifyNode":_vm.verifyNode,"suggest":_vm.suggest,"verifyLogs":_vm.verifyLogs,"config":_vm.data.config,"listindex":listindex},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'grid-lay-out')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",class:widget.type == 'grid-lay-out' ? ' no-row-item ' : '',style:({ borderColor: _vm.data.config.borderColor })},[_c('grid-layout-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"index":index,"verifyNode":_vm.verifyNode,"suggest":_vm.suggest,"verifyLogs":_vm.verifyLogs,"listindex":listindex,"config":_vm.data.config},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'verify')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('verify-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"verifyNode":_vm.verifyNode,"verifyLogs":_vm.verifyLogs,"suggest":_vm.suggest},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'all-lay-out')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('all-layout-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"index":index,"listindex":listindex},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'placeholder')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,class:{
|
|
107121
|
+
)?_c('div',{staticClass:"computed-wrap"},[_c('div',{staticClass:"item"},[_c('div',[_vm._v("需统计字段")]),_vm._l((widget.options.computingSub),function(_item,key){return _c('div',{key:key},[_vm._v(" "+_vm._s(_vm.getSubName(_item, widget.columns))+" ")])})],2),_vm._l((widget.options.computingMethod),function(_methodItem,key){return _c('div',{key:key,staticClass:"item"},[_c('div',[_vm._v(_vm._s(_vm.getMethodName(_methodItem)))]),_vm._l((widget.options.computingSub),function(_subItem,it_key){return _c('div',{key:it_key},[_vm._v(" "+_vm._s(_vm.getMathResult(_methodItem, _vm.models[widget.model], _subItem))+" ")])})],2)})],2):_vm._e()],2)]):(widget.options.layoutModel === 'design')?_c('a-spin',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"table_border row-item",style:({ borderColor: _vm.data.config.borderColor }),attrs:{"spinning":_vm.tableLoading,"tip":"数据加载中"}},[_c('tableComponent',{attrs:{"widget":widget,"tableData":_vm.tableData,"rules":_vm.rules,"models":_vm.models,"formId":_vm.data.formId,"index":index,"listindex":listindex},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event},"addToTableData":_vm.addToTableData,"handleDeleteRow":_vm.handleDeleteRow}})],1):_vm._e()]:(widget.type === 'grid')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('grid-component',{attrs:{"rules":_vm.rules,"models":_vm.models,"widget":widget,"index":index,"verifyNode":_vm.verifyNode,"suggest":_vm.suggest,"verifyLogs":_vm.verifyLogs,"config":_vm.data.config,"listindex":listindex},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'grid-lay-out')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",class:widget.type == 'grid-lay-out' ? ' no-row-item ' : '',style:({ borderColor: _vm.data.config.borderColor })},[_c('grid-layout-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"index":index,"verifyNode":_vm.verifyNode,"suggest":_vm.suggest,"verifyLogs":_vm.verifyLogs,"listindex":listindex,"config":_vm.data.config},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'verify')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('verify-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"verifyNode":_vm.verifyNode,"verifyLogs":_vm.verifyLogs,"suggest":_vm.suggest},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'all-lay-out')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('all-layout-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"index":index,"listindex":listindex},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'placeholder')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,class:{
|
|
107012
107122
|
'item-bottom': !widget.options.border,
|
|
107013
107123
|
'row-item': widget.options.border,
|
|
107014
107124
|
},style:({ borderColor: _vm.data.config.borderColor })},[_c('layout-item',{attrs:{"widget":widget,"models":_vm.models,"rules":_vm.rules,"verifyNode":_vm.verifyNode,"verifyLogs":_vm.verifyLogs},on:{"update:models":function($event){_vm.models=$event},"update:rules":function($event){_vm.rules=$event}}})],1):_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('layout-item',{attrs:{"widget":widget,"models":_vm.models,"verifyNode":_vm.verifyNode,"verifyLogs":_vm.verifyLogs,"suggest":_vm.suggest,"rules":_vm.rules},on:{"update:models":function($event){_vm.models=$event},"update:rules":function($event){_vm.rules=$event}}})],1)]})],2),(_vm.data.config.pageFooter && listindex === _vm.widgetList.length - 1)?_c('div',{style:(_vm.data.config.footerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageFooter)}}):_vm._e()],2)}),0)],1)}
|
|
@@ -107019,10 +107129,10 @@ var staticRenderFns = []
|
|
|
107019
107129
|
var layoutForPapervue_type_script_lang_js_ = __webpack_require__(7862);
|
|
107020
107130
|
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js&
|
|
107021
107131
|
/* harmony default export */ var layout_layoutForPapervue_type_script_lang_js_ = (layoutForPapervue_type_script_lang_js_/* default */.Z);
|
|
107022
|
-
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.7.3@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=
|
|
107132
|
+
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.7.3@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=3ed4fe34&prod&lang=less&scoped=true&
|
|
107023
107133
|
// extracted by mini-css-extract-plugin
|
|
107024
107134
|
|
|
107025
|
-
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=
|
|
107135
|
+
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=3ed4fe34&prod&lang=less&scoped=true&
|
|
107026
107136
|
|
|
107027
107137
|
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
107028
107138
|
var componentNormalizer = __webpack_require__(8412);
|
|
@@ -107041,7 +107151,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
107041
107151
|
staticRenderFns,
|
|
107042
107152
|
false,
|
|
107043
107153
|
null,
|
|
107044
|
-
"
|
|
107154
|
+
"3ed4fe34",
|
|
107045
107155
|
null
|
|
107046
107156
|
|
|
107047
107157
|
)
|
|
@@ -107475,6 +107585,7 @@ const advanceComponents = [{
|
|
|
107475
107585
|
canEdit: true,
|
|
107476
107586
|
height: 40,
|
|
107477
107587
|
canView: true,
|
|
107588
|
+
hiddenOperateBtn: false,
|
|
107478
107589
|
defaulcanView: true,
|
|
107479
107590
|
computingMethod: [],
|
|
107480
107591
|
//计算方法
|
|
@@ -107911,6 +108022,7 @@ const layoutComponents = [{
|
|
|
107911
108022
|
options: {
|
|
107912
108023
|
columnsNum: 4,
|
|
107913
108024
|
rowsNum: 2,
|
|
108025
|
+
enableImport: false,
|
|
107914
108026
|
rowsHeight: 50,
|
|
107915
108027
|
customClass: '',
|
|
107916
108028
|
align: 'top',
|
|
@@ -108346,7 +108458,7 @@ var es_array_push = __webpack_require__(6903);
|
|
|
108346
108458
|
// EXTERNAL MODULE: ./src/form/util/util.js
|
|
108347
108459
|
var util = __webpack_require__(6955);
|
|
108348
108460
|
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 792 modules
|
|
108349
|
-
var components = __webpack_require__(
|
|
108461
|
+
var components = __webpack_require__(9569);
|
|
108350
108462
|
// EXTERNAL MODULE: ./src/api/manage.js
|
|
108351
108463
|
var manage = __webpack_require__(1474);
|
|
108352
108464
|
// EXTERNAL MODULE: ./src/form/modules/widgetFormItem.vue + 6 modules
|
|
@@ -109178,52 +109290,52 @@ var widgetConfigvue_type_template_id_1271bdc2_scoped_true_render = function () {
|
|
|
109178
109290
|
var widgetConfigvue_type_template_id_1271bdc2_scoped_true_staticRenderFns = []
|
|
109179
109291
|
|
|
109180
109292
|
|
|
109181
|
-
;// 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/widgetPublicConfig.vue?vue&type=template&id=
|
|
109182
|
-
var
|
|
109183
|
-
|
|
109184
|
-
|
|
109185
|
-
|
|
109186
|
-
|
|
109187
|
-
|
|
109188
|
-
|
|
109189
|
-
|
|
109190
|
-
|
|
109191
|
-
|
|
109192
|
-
|
|
109193
|
-
|
|
109194
|
-
|
|
109195
|
-
|
|
109196
|
-
|
|
109197
|
-
|
|
109198
|
-
|
|
109199
|
-
|
|
109200
|
-
|
|
109201
|
-
|
|
109202
|
-
|
|
109203
|
-
|
|
109204
|
-
|
|
109205
|
-
|
|
109206
|
-
|
|
109207
|
-
|
|
109208
|
-
|
|
109209
|
-
|
|
109210
|
-
|
|
109211
|
-
|
|
109212
|
-
|
|
109213
|
-
|
|
109214
|
-
|
|
109215
|
-
|
|
109216
|
-
|
|
109217
|
-
|
|
109218
|
-
|
|
109219
|
-
|
|
109220
|
-
|
|
109221
|
-
|
|
109222
|
-
|
|
109223
|
-
|
|
109224
|
-
|
|
109225
|
-
|
|
109226
|
-
var
|
|
109293
|
+
;// 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/widgetPublicConfig.vue?vue&type=template&id=133d4020&scoped=true&
|
|
109294
|
+
var widgetPublicConfigvue_type_template_id_133d4020_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form"},[_c('a-form-model',[_c('a-form-model-item',{ref:"title",attrs:{"label":"标题"}},[_c('a-input',{model:{value:(_vm.widget.name),callback:function ($$v) {_vm.$set(_vm.widget, "name", $$v)},expression:"widget.name"}})],1),_c('a-form-model-item',{attrs:{"label":"标签宽度","prop":"title"}},[_c('a-input-number',{model:{value:(_vm.widget.options.labelWidth),callback:function ($$v) {_vm.$set(_vm.widget.options, "labelWidth", $$v)},expression:"widget.options.labelWidth"}})],1),_c('a-form-model-item',{attrs:{"label":"高度","prop":"title"}},[_c('a-input-number',{model:{value:(_vm.widget.options.height),callback:function ($$v) {_vm.$set(_vm.widget.options, "height", $$v)},expression:"widget.options.height"}})],1),(_vm.widget.type === 'select')?_c('a-form-model-item',{ref:"bg_bgc",attrs:{"label":"背景颜色","prop":"bgcolor"}},[_c('colorPicker',{attrs:{"defaultColor":"#FFFFFF"},model:{value:(_vm.widget.options.bgColor),callback:function ($$v) {_vm.$set(_vm.widget.options, "bgColor", $$v)},expression:"widget.options.bgColor"}})],1):_vm._e(),_c('a-form-model-item',{attrs:{"label":"组件无边框","prop":"title"}},[_c('a-switch',{model:{value:(_vm.widget.options.noBorder),callback:function ($$v) {_vm.$set(_vm.widget.options, "noBorder", $$v)},expression:"widget.options.noBorder"}})],1),(['input', 'textarea'].includes(_vm.widget.type))?_c('div',[_c('a-form-model-item',{ref:"bgc",attrs:{"label":"字体颜色","prop":"labelwordcolor"}},[_c('colorPicker',{staticStyle:{"z-index":"3"},attrs:{"defaultColor":"#000000"},model:{value:(_vm.widget.options.fontColor),callback:function ($$v) {_vm.$set(_vm.widget.options, "fontColor", $$v)},expression:"widget.options.fontColor"}})],1),_c('a-form-model-item',{ref:"bg_bgc",attrs:{"label":"背景颜色","prop":"bgcolor"}},[_c('colorPicker',{attrs:{"defaultColor":"#FFFFFF"},model:{value:(_vm.widget.options.bgColor),callback:function ($$v) {_vm.$set(_vm.widget.options, "bgColor", $$v)},expression:"widget.options.bgColor"}})],1),_c('a-form-model-item',{attrs:{"label":"字体类型","prop":"title"}},[_c('a-select',{attrs:{"placeholder":"请选择字体"},model:{value:(_vm.widget.options.fontFamily),callback:function ($$v) {_vm.$set(_vm.widget.options, "fontFamily", $$v)},expression:"widget.options.fontFamily"}},_vm._l((_vm.fontNames),function(item,idx){return _c('a-select-option',{key:idx,attrs:{"value":item}},[_vm._v(" "+_vm._s(item)+" ")])}),1)],1)],1):_vm._e(),(_vm.widget.type == 'codeControl')?_c('a-form-model-item',{attrs:{"label":"默认值"}},[_c('a-input',{attrs:{"disabled":""},model:{value:(_vm.widget.key),callback:function ($$v) {_vm.$set(_vm.widget, "key", $$v)},expression:"widget.key"}})],1):_vm._e(),(!_vm.seatList.includes(_vm.widget.type))?_c('a-form-model-item',{attrs:{"label":"占位内容"}},[_c('a-input',{model:{value:(_vm.widget.options.placeholder),callback:function ($$v) {_vm.$set(_vm.widget.options, "placeholder", $$v)},expression:"widget.options.placeholder"}})],1):_vm._e(),(_vm.widget.type == 'superLink')?_c('a-form-model-item',{attrs:{"label":"超链接名称"}},[_c('a-input',{model:{value:(_vm.widget.options.title),callback:function ($$v) {_vm.$set(_vm.widget.options, "title", $$v)},expression:"widget.options.title"}})],1):_vm._e(),_vm._t("default"),_c('a-form-model-item',{attrs:{"label":"唯一key"}},[_c('a-input',{model:{value:(_vm.widget.model),callback:function ($$v) {_vm.$set(_vm.widget, "model", $$v)},expression:"widget.model"}})],1),(
|
|
109295
|
+
_vm.widget.options && Object.keys(_vm.widget.options).indexOf('multiple') >= 0
|
|
109296
|
+
)?_c('a-form-model-item',{attrs:{"label":"是否多选"}},[_c('a-switch',{model:{value:(_vm.widget.options.multiple),callback:function ($$v) {_vm.$set(_vm.widget.options, "multiple", $$v)},expression:"widget.options.multiple"}})],1):_vm._e(),(
|
|
109297
|
+
_vm.widget.type != 'verify' &&
|
|
109298
|
+
_vm.widget.type != 'uploadModel' &&
|
|
109299
|
+
_vm.widget.type != 'table' &&
|
|
109300
|
+
_vm.widget.type != 'placeholder'
|
|
109301
|
+
)?_c('a-form-model-item',{attrs:{"label":"操作属性:"}},[(
|
|
109302
|
+
_vm.widget.options &&
|
|
109303
|
+
Object.keys(_vm.widget.options).indexOf('canCorrect') >= 0
|
|
109304
|
+
)?_c('a-checkbox',{attrs:{"size":"mini"},model:{value:(_vm.widget.options.canCorrect),callback:function ($$v) {_vm.$set(_vm.widget.options, "canCorrect", $$v)},expression:"widget.options.canCorrect"}},[_vm._v("允许纠错")]):_vm._e(),(
|
|
109305
|
+
_vm.widget.options &&
|
|
109306
|
+
Object.keys(_vm.widget.options).indexOf('readonly') >= 0
|
|
109307
|
+
)?_c('a-checkbox',{attrs:{"size":"mini"},model:{value:(_vm.widget.options.readonly),callback:function ($$v) {_vm.$set(_vm.widget.options, "readonly", $$v)},expression:"widget.options.readonly"}},[_vm._v("完全只读")]):_vm._e(),(
|
|
109308
|
+
_vm.widget.options &&
|
|
109309
|
+
Object.keys(_vm.widget.options).indexOf('canAgainSearch') >= 0
|
|
109310
|
+
)?_c('a-checkbox',{attrs:{"size":"mini"},model:{value:(_vm.widget.options.canAgainSearch),callback:function ($$v) {_vm.$set(_vm.widget.options, "canAgainSearch", $$v)},expression:"widget.options.canAgainSearch"}},[_vm._v("是否作为查询属性")]):_vm._e(),(
|
|
109311
|
+
_vm.widget.options &&
|
|
109312
|
+
Object.keys(_vm.widget.options).indexOf('disabled') >= 0
|
|
109313
|
+
)?_c('a-checkbox',{attrs:{"size":"mini"},on:{"change":_vm.disabledchange},model:{value:(_vm.widget.options.disabled),callback:function ($$v) {_vm.$set(_vm.widget.options, "disabled", $$v)},expression:"widget.options.disabled"}},[_vm._v("禁用")]):_vm._e(),(
|
|
109314
|
+
_vm.widget.options &&
|
|
109315
|
+
Object.keys(_vm.widget.options).indexOf('editable') >= 0
|
|
109316
|
+
)?_c('a-checkbox',{attrs:{"size":"mini"},model:{value:(_vm.widget.options.editable),callback:function ($$v) {_vm.$set(_vm.widget.options, "editable", $$v)},expression:"widget.options.editable"}},[_vm._v("文本框可输入")]):_vm._e(),(
|
|
109317
|
+
_vm.widget.options &&
|
|
109318
|
+
Object.keys(_vm.widget.options).indexOf('clearable') >= 0
|
|
109319
|
+
)?_c('a-checkbox',{attrs:{"size":"mini"},model:{value:(_vm.widget.options.clearable),callback:function ($$v) {_vm.$set(_vm.widget.options, "clearable", $$v)},expression:"widget.options.clearable"}},[_vm._v("显示清除按钮")]):_vm._e(),(
|
|
109320
|
+
_vm.widget.options &&
|
|
109321
|
+
Object.keys(_vm.widget.options).indexOf('arrowControl') >= 0
|
|
109322
|
+
)?_c('a-checkbox',{attrs:{"size":"mini"},model:{value:(_vm.widget.options.arrowControl),callback:function ($$v) {_vm.$set(_vm.widget.options, "arrowControl", $$v)},expression:"widget.options.arrowControl"}},[_vm._v("使用箭头进行时间选择")]):_vm._e(),(
|
|
109323
|
+
_vm.widget.options &&
|
|
109324
|
+
Object.keys(_vm.widget.options).indexOf('isDelete') >= 0
|
|
109325
|
+
)?_c('a-checkbox',{attrs:{"size":"mini"},model:{value:(_vm.widget.options.isDelete),callback:function ($$v) {_vm.$set(_vm.widget.options, "isDelete", $$v)},expression:"widget.options.isDelete"}},[_vm._v("删除")]):_vm._e(),(
|
|
109326
|
+
_vm.widget.options && Object.keys(_vm.widget.options).indexOf('isEdit') >= 0
|
|
109327
|
+
)?_c('a-checkbox',{attrs:{"size":"mini"},model:{value:(_vm.widget.options.isEdit),callback:function ($$v) {_vm.$set(_vm.widget.options, "isEdit", $$v)},expression:"widget.options.isEdit"}},[_vm._v("编辑")]):_vm._e()],1):_vm._e(),(!_vm.cantSetRequireList.includes(_vm.widget.type))?_c('a-form-model-item',{attrs:{"label":"校验:"}},[(
|
|
109328
|
+
['rate', 'number', 'switch', 'slider', 'placeholder'].indexOf(
|
|
109329
|
+
_vm.widget.type
|
|
109330
|
+
) == -1
|
|
109331
|
+
)?_c('div',[_c('a-checkbox',{attrs:{"size":"mini"},model:{value:(_vm.widget.options.required),callback:function ($$v) {_vm.$set(_vm.widget.options, "required", $$v)},expression:"widget.options.required"}},[_vm._v("必填")])],1):_vm._e(),(['input', 'select', 'date', 'time'].includes(_vm.widget.type))?_c('div',[_c('a-checkbox',{attrs:{"size":"mini"},on:{"change":_vm.onlyChange},model:{value:(_vm.widget.options.onlyvalue),callback:function ($$v) {_vm.$set(_vm.widget.options, "onlyvalue", $$v)},expression:"widget.options.onlyvalue"}},[_vm._v("合法值校验")]),(_vm.widget.options.onlyvalue)?_c('a-input',{attrs:{"placeholder":"请输入合法值校验值接口地址"},model:{value:(_vm.widget.options.onlyurl),callback:function ($$v) {_vm.$set(_vm.widget.options, "onlyurl", $$v)},expression:"widget.options.onlyurl"}}):_vm._e()],1):_vm._e(),(_vm.canCompareList.includes(_vm.widget.type))?_c('a-form-model-item',{attrs:{"label":"范围比较"}},[_c('a-row',[_c('a-col',{attrs:{"span":8}},[_c('a-select',{attrs:{"placeholder":"请选择"},model:{value:(_vm.widget.options.condition),callback:function ($$v) {_vm.$set(_vm.widget.options, "condition", $$v)},expression:"widget.options.condition"}},[_c('a-select-option',{attrs:{"value":"大于"}},[_vm._v("大于等于")]),_c('a-select-option',{attrs:{"value":"小于"}},[_vm._v("小于等于")])],1)],1),_c('a-col',{attrs:{"span":10,"offset":1}},[_c('a-select',{attrs:{"placeholder":"请选择"},on:{"focus":_vm.focus},model:{value:(_vm.widget.options.conditionValue),callback:function ($$v) {_vm.$set(_vm.widget.options, "conditionValue", $$v)},expression:"widget.options.conditionValue"}},_vm._l((_vm.compareList),function(item,idx){return _c('a-select-option',{key:idx,attrs:{"value":item.model}},[_vm._v(_vm._s(item.name))])}),1)],1)],1)],1):_vm._e(),(
|
|
109332
|
+
_vm.widget.options &&
|
|
109333
|
+
Object.keys(_vm.widget.options).indexOf('dataType') >= 0
|
|
109334
|
+
)?_c('a-select',{staticStyle:{"width":"100%"},attrs:{"show-search":"","filter-option":_vm.searchDataType},model:{value:(_vm.widget.options.dataType),callback:function ($$v) {_vm.$set(_vm.widget.options, "dataType", $$v)},expression:"widget.options.dataType"}},[_c('a-select-option',{attrs:{"name":"字符串","value":"string"}},[_vm._v("字符串")]),_c('a-select-option',{attrs:{"name":"URL地址","value":"url"}},[_vm._v("URL地址")]),_c('a-select-option',{attrs:{"name":"邮箱地址","value":"email"}},[_vm._v("邮箱地址")]),(_vm.regularCheckDicts.length > 0)?_vm._l((_vm.regularCheckDicts),function(regular,idx){return _c('a-select-option',{key:idx,attrs:{"name":regular.title,"value":'regular__' + regular.value}},[_vm._v(_vm._s(regular.title))])}):_vm._e()],2):_vm._e(),(
|
|
109335
|
+
_vm.widget.options &&
|
|
109336
|
+
Object.keys(_vm.widget.options).indexOf('pattern') >= 0
|
|
109337
|
+
)?_c('div',[_c('a-input',{staticStyle:{"width":"100%"},attrs:{"placeholder":"填写正则表达式"},model:{value:(_vm.widget.options.pattern),callback:function ($$v) {_vm.$set(_vm.widget.options, "pattern", $$v)},expression:"widget.options.pattern"}}),_c('a-input',{directives:[{name:"show",rawName:"v-show",value:(_vm.widget.options.pattern),expression:"widget.options.pattern"}],staticStyle:{"width":"100%"},attrs:{"placeholder":"请填写错误提示"},on:{"blur":_vm.valideError},model:{value:(_vm.widget.options.patternError),callback:function ($$v) {_vm.$set(_vm.widget.options, "patternError", $$v)},expression:"widget.options.patternError"}})],1):_vm._e()],1):_vm._e()],2)],1)}
|
|
109338
|
+
var widgetPublicConfigvue_type_template_id_133d4020_scoped_true_staticRenderFns = []
|
|
109227
109339
|
|
|
109228
109340
|
|
|
109229
109341
|
// EXTERNAL MODULE: ./src/form/util/Bus.js
|
|
@@ -109511,6 +109623,11 @@ var Bus = __webpack_require__(767);
|
|
|
109511
109623
|
//
|
|
109512
109624
|
//
|
|
109513
109625
|
//
|
|
109626
|
+
//
|
|
109627
|
+
//
|
|
109628
|
+
//
|
|
109629
|
+
//
|
|
109630
|
+
|
|
109514
109631
|
|
|
109515
109632
|
|
|
109516
109633
|
const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "华文楷体", "宋体", "微软雅黑", "Arial", "Tahoma", "Verdana", "Times New Roman", "Courier New"];
|
|
@@ -109535,7 +109652,8 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
109535
109652
|
//不能设置必填项
|
|
109536
109653
|
canCompareList: [
|
|
109537
109654
|
// 可比较集合 例如 时间大小比较
|
|
109538
|
-
"date"]
|
|
109655
|
+
"date"],
|
|
109656
|
+
regularCheckDicts: []
|
|
109539
109657
|
};
|
|
109540
109658
|
},
|
|
109541
109659
|
props: {
|
|
@@ -109552,7 +109670,9 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
109552
109670
|
}
|
|
109553
109671
|
}
|
|
109554
109672
|
},
|
|
109555
|
-
created() {
|
|
109673
|
+
created() {
|
|
109674
|
+
this.getRegularCheckDicts();
|
|
109675
|
+
},
|
|
109556
109676
|
computed: {
|
|
109557
109677
|
show() {
|
|
109558
109678
|
if (this.widget && Object.keys(this.widget).length > 0) {
|
|
@@ -109560,8 +109680,30 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
109560
109680
|
}
|
|
109561
109681
|
return false;
|
|
109562
109682
|
}
|
|
109683
|
+
// regularCheckDicts() {
|
|
109684
|
+
// const regularCheckDicts = Vue.prototype.RegularCheckDicts
|
|
109685
|
+
// return regularCheckDicts ? regularCheckDicts() : []
|
|
109686
|
+
// },
|
|
109563
109687
|
},
|
|
109688
|
+
|
|
109564
109689
|
methods: {
|
|
109690
|
+
searchDataType(input, option) {
|
|
109691
|
+
const {
|
|
109692
|
+
name
|
|
109693
|
+
} = option.data.attrs;
|
|
109694
|
+
return name.toLowerCase().includes(input.toLowerCase());
|
|
109695
|
+
},
|
|
109696
|
+
getRegularCheckDicts() {
|
|
109697
|
+
// if (Vue.prototype.RegularCheckDicts !== undefined) {
|
|
109698
|
+
// return
|
|
109699
|
+
// }
|
|
109700
|
+
// Vue.prototype.RegularCheckDicts = () => ([])
|
|
109701
|
+
(0,manage/* getAction */.s7)(`/sys/dict/getDictItems/regular_check`).then(res => {
|
|
109702
|
+
if (res.success) {
|
|
109703
|
+
this.regularCheckDicts = res.result || [];
|
|
109704
|
+
}
|
|
109705
|
+
});
|
|
109706
|
+
},
|
|
109565
109707
|
focus() {
|
|
109566
109708
|
Bus/* default.$emit */.Z.$emit("getWidgetFormList");
|
|
109567
109709
|
},
|
|
@@ -109601,6 +109743,11 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
109601
109743
|
if (!this.show) {
|
|
109602
109744
|
return false;
|
|
109603
109745
|
}
|
|
109746
|
+
if (val.startsWith('regular__')) {
|
|
109747
|
+
this.validator['type'] = undefined;
|
|
109748
|
+
this.valiatePattern(val.replace('regular__', ''));
|
|
109749
|
+
return;
|
|
109750
|
+
}
|
|
109604
109751
|
if (val) {
|
|
109605
109752
|
this.validator.type = {
|
|
109606
109753
|
type: val,
|
|
@@ -109687,10 +109834,10 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
109687
109834
|
});
|
|
109688
109835
|
;// CONCATENATED MODULE: ./src/form/modules/widgetPublicConfig.vue?vue&type=script&lang=js&
|
|
109689
109836
|
/* harmony default export */ var modules_widgetPublicConfigvue_type_script_lang_js_ = (widgetPublicConfigvue_type_script_lang_js_);
|
|
109690
|
-
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.7.3@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/widgetPublicConfig.vue?vue&type=style&index=0&id=
|
|
109837
|
+
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.7.3@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/widgetPublicConfig.vue?vue&type=style&index=0&id=133d4020&prod&lang=less&scoped=true&
|
|
109691
109838
|
// extracted by mini-css-extract-plugin
|
|
109692
109839
|
|
|
109693
|
-
;// CONCATENATED MODULE: ./src/form/modules/widgetPublicConfig.vue?vue&type=style&index=0&id=
|
|
109840
|
+
;// CONCATENATED MODULE: ./src/form/modules/widgetPublicConfig.vue?vue&type=style&index=0&id=133d4020&prod&lang=less&scoped=true&
|
|
109694
109841
|
|
|
109695
109842
|
;// CONCATENATED MODULE: ./src/form/modules/widgetPublicConfig.vue
|
|
109696
109843
|
|
|
@@ -109703,11 +109850,11 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
109703
109850
|
|
|
109704
109851
|
var widgetPublicConfig_component = (0,componentNormalizer/* default */.Z)(
|
|
109705
109852
|
modules_widgetPublicConfigvue_type_script_lang_js_,
|
|
109706
|
-
|
|
109707
|
-
|
|
109853
|
+
widgetPublicConfigvue_type_template_id_133d4020_scoped_true_render,
|
|
109854
|
+
widgetPublicConfigvue_type_template_id_133d4020_scoped_true_staticRenderFns,
|
|
109708
109855
|
false,
|
|
109709
109856
|
null,
|
|
109710
|
-
"
|
|
109857
|
+
"133d4020",
|
|
109711
109858
|
null
|
|
109712
109859
|
|
|
109713
109860
|
)
|