lanfeng-components 1.1.17-beta.0 → 1.1.17-beta.3
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/lanfeng-components.common.js +27 -1189
- package/lanfeng-components.css +1 -1
- package/lanfeng-components.umd.js +27 -1189
- package/lanfeng-components.umd.min.js +15 -15
- package/package.json +1 -1
|
@@ -47872,17 +47872,6 @@ var Map = getNative(root, 'Map');
|
|
|
47872
47872
|
module.exports = Map;
|
|
47873
47873
|
|
|
47874
47874
|
|
|
47875
|
-
/***/ }),
|
|
47876
|
-
|
|
47877
|
-
/***/ "7a2b":
|
|
47878
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
47879
|
-
|
|
47880
|
-
"use strict";
|
|
47881
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_e7162bf0_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ee44");
|
|
47882
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_e7162bf0_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_e7162bf0_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
47883
|
-
/* unused harmony reexport * */
|
|
47884
|
-
|
|
47885
|
-
|
|
47886
47875
|
/***/ }),
|
|
47887
47876
|
|
|
47888
47877
|
/***/ "7a41":
|
|
@@ -107304,6 +107293,17 @@ var staticWindow = typeof window === staticStrUndefined ? 0 : window
|
|
|
107304
107293
|
module.exports = staticWindow
|
|
107305
107294
|
|
|
107306
107295
|
|
|
107296
|
+
/***/ }),
|
|
107297
|
+
|
|
107298
|
+
/***/ "c948":
|
|
107299
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
107300
|
+
|
|
107301
|
+
"use strict";
|
|
107302
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_2b9e8f4d_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d907");
|
|
107303
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_2b9e8f4d_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_2b9e8f4d_prod_scoped_true_lang_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
107304
|
+
/* unused harmony reexport * */
|
|
107305
|
+
|
|
107306
|
+
|
|
107307
107307
|
/***/ }),
|
|
107308
107308
|
|
|
107309
107309
|
/***/ "c9a4":
|
|
@@ -110703,6 +110703,13 @@ var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
|
110703
110703
|
module.exports = isSet;
|
|
110704
110704
|
|
|
110705
110705
|
|
|
110706
|
+
/***/ }),
|
|
110707
|
+
|
|
110708
|
+
/***/ "d907":
|
|
110709
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
110710
|
+
|
|
110711
|
+
// extracted by mini-css-extract-plugin
|
|
110712
|
+
|
|
110706
110713
|
/***/ }),
|
|
110707
110714
|
|
|
110708
110715
|
/***/ "d96e":
|
|
@@ -114344,17 +114351,6 @@ function helperNumberOffsetPoint (str, offsetIndex) {
|
|
|
114344
114351
|
module.exports = helperNumberOffsetPoint
|
|
114345
114352
|
|
|
114346
114353
|
|
|
114347
|
-
/***/ }),
|
|
114348
|
-
|
|
114349
|
-
/***/ "eb84":
|
|
114350
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
114351
|
-
|
|
114352
|
-
"use strict";
|
|
114353
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_c9210aa8_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ee1e");
|
|
114354
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_c9210aa8_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_11_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_11_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_11_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_11_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_c9210aa8_prod_lang_less_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
114355
|
-
/* unused harmony reexport * */
|
|
114356
|
-
|
|
114357
|
-
|
|
114358
114354
|
/***/ }),
|
|
114359
114355
|
|
|
114360
114356
|
/***/ "ebe4":
|
|
@@ -114844,20 +114840,6 @@ function mapToArray(map) {
|
|
|
114844
114840
|
module.exports = mapToArray;
|
|
114845
114841
|
|
|
114846
114842
|
|
|
114847
|
-
/***/ }),
|
|
114848
|
-
|
|
114849
|
-
/***/ "ee1e":
|
|
114850
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
114851
|
-
|
|
114852
|
-
// extracted by mini-css-extract-plugin
|
|
114853
|
-
|
|
114854
|
-
/***/ }),
|
|
114855
|
-
|
|
114856
|
-
/***/ "ee44":
|
|
114857
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
114858
|
-
|
|
114859
|
-
// extracted by mini-css-extract-plugin
|
|
114860
|
-
|
|
114861
114843
|
/***/ }),
|
|
114862
114844
|
|
|
114863
114845
|
/***/ "eec1":
|
|
@@ -116007,34 +115989,6 @@ function isKey(value, object) {
|
|
|
116007
115989
|
module.exports = isKey;
|
|
116008
115990
|
|
|
116009
115991
|
|
|
116010
|
-
/***/ }),
|
|
116011
|
-
|
|
116012
|
-
/***/ "f665":
|
|
116013
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
116014
|
-
|
|
116015
|
-
"use strict";
|
|
116016
|
-
|
|
116017
|
-
var $ = __webpack_require__("23e7");
|
|
116018
|
-
var iterate = __webpack_require__("2266");
|
|
116019
|
-
var aCallable = __webpack_require__("59ed");
|
|
116020
|
-
var anObject = __webpack_require__("825a");
|
|
116021
|
-
var getIteratorDirect = __webpack_require__("46c4");
|
|
116022
|
-
|
|
116023
|
-
// `Iterator.prototype.find` method
|
|
116024
|
-
// https://tc39.es/ecma262/#sec-iterator.prototype.find
|
|
116025
|
-
$({ target: 'Iterator', proto: true, real: true }, {
|
|
116026
|
-
find: function find(predicate) {
|
|
116027
|
-
anObject(this);
|
|
116028
|
-
aCallable(predicate);
|
|
116029
|
-
var record = getIteratorDirect(this);
|
|
116030
|
-
var counter = 0;
|
|
116031
|
-
return iterate(record, function (value, stop) {
|
|
116032
|
-
if (predicate(value, counter++)) return stop(value);
|
|
116033
|
-
}, { IS_RECORD: true, INTERRUPTED: true }).result;
|
|
116034
|
-
}
|
|
116035
|
-
});
|
|
116036
|
-
|
|
116037
|
-
|
|
116038
115992
|
/***/ }),
|
|
116039
115993
|
|
|
116040
115994
|
/***/ "f69b":
|
|
@@ -116797,8 +116751,6 @@ __webpack_require__.d(__webpack_exports__, "FileViewUtil", function() { return /
|
|
|
116797
116751
|
__webpack_require__.d(__webpack_exports__, "Drawer", function() { return /* reexport */ package_Drawer; });
|
|
116798
116752
|
__webpack_require__.d(__webpack_exports__, "Modal", function() { return /* reexport */ package_Modal; });
|
|
116799
116753
|
__webpack_require__.d(__webpack_exports__, "proCardDetail", function() { return /* reexport */ proIndex; });
|
|
116800
|
-
__webpack_require__.d(__webpack_exports__, "NewForm", function() { return /* reexport */ NewForm; });
|
|
116801
|
-
__webpack_require__.d(__webpack_exports__, "Upload", function() { return /* reexport */ package_Upload; });
|
|
116802
116754
|
|
|
116803
116755
|
// NAMESPACE OBJECT: ./node_modules/axios/lib/platform/common/utils.js
|
|
116804
116756
|
var common_utils_namespaceObject = {};
|
|
@@ -176500,12 +176452,12 @@ var vxe_theme = __webpack_require__("2a71");
|
|
|
176500
176452
|
// EXTERNAL MODULE: ./src/styles/variables.less
|
|
176501
176453
|
var variables = __webpack_require__("945b");
|
|
176502
176454
|
|
|
176503
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3e6a03fa-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package/SearchForm/index.vue?vue&type=template&id=
|
|
176504
|
-
var
|
|
176455
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3e6a03fa-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package/SearchForm/index.vue?vue&type=template&id=2b9e8f4d&scoped=true
|
|
176456
|
+
var SearchFormvue_type_template_id_2b9e8f4d_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:{ SearchForm: true, mb44: _vm.config.length > _vm.rowsShows * 2 }},[_c('a-row',{staticClass:"leftPart",style:(_vm.searchPartWidthStyle)},_vm._l((_vm.config),function(item,index){return _c('a-col',{directives:[{name:"show",rawName:"v-show",value:(_vm.showExpandConfigItems ? true : index < _vm.rowsShows * 2),expression:"showExpandConfigItems ? true : index < rowsShows * 2"}],key:item.key,staticClass:"item",class:{ 'ml-none': index % _vm.rowsShows === 0 },style:(_vm.autoWidth)},[(item.type === 'input')?_c('a-input',_vm._b({staticClass:"itemElement",attrs:{"allowClear":""},on:{"change":function($event){return _vm.searchChangeInput($event, item.key)}},model:{value:(_vm.searchData[item.key]),callback:function ($$v) {_vm.$set(_vm.searchData, item.key, $$v)},expression:"searchData[item.key]"}},'a-input',item.attrs,false)):_vm._e(),(item.type === 'select')?_c('a-select',_vm._b({staticClass:"itemElement",attrs:{"showSearch":"","filterOption":_vm.filterOption,"allowClear":"","getPopupContainer":function (triggerNode) { return triggerNode.parentNode; }},on:{"change":function($event){return _vm.searchChangeSelect($event, item.key, item.attrs)}},model:{value:(_vm.searchData[item.key]),callback:function ($$v) {_vm.$set(_vm.searchData, item.key, $$v)},expression:"searchData[item.key]"}},'a-select',item.attrs,false),_vm._l((item.option),function(option){return _c('a-select-option',{key:option.value,attrs:{"value":option.value}},[_vm._v(" "+_vm._s(option.label)+" ")])}),1):_vm._e(),(item.type === 'datePicker')?_c('a-date-picker',_vm._b({staticClass:"itemElement",attrs:{"valueFormat":"YYYY-MM-DD","allowClear":"","getPopupContainer":function (triggerNode) { return triggerNode.parentNode; }},on:{"change":function($event){return _vm.searchChangeSelect($event, item.key)}},model:{value:(_vm.searchData[item.key]),callback:function ($$v) {_vm.$set(_vm.searchData, item.key, $$v)},expression:"searchData[item.key]"}},'a-date-picker',item.attrs,false)):_vm._e(),(item.type === 'rangePicker')?_c('a-range-picker',_vm._b({staticClass:"itemElement",attrs:{"valueFormat":"YYYY-MM-DD","allowClear":"","getPopupContainer":function (triggerNode) { return triggerNode.parentNode; }},on:{"change":function($event){return _vm.searchChangeRangePicker($event, item.key, item.attrs.changeDate)}},model:{value:(_vm.searchData[item.key]),callback:function ($$v) {_vm.$set(_vm.searchData, item.key, $$v)},expression:"searchData[item.key]"}},'a-range-picker',item.attrs,false)):_vm._e(),(item.type === 'rangePickerToTime')?_c('a-range-picker',_vm._b({staticClass:"itemElement",attrs:{"valueFormat":"YYYY-MM-DD HH:mm:ss","allowClear":"","show-time":"","getPopupContainer":function (triggerNode) { return triggerNode.parentNode; }},on:{"change":function($event){return _vm.searchChangeRangePickerToTime($event, item.key, item.attrs.changeDate)}},model:{value:(_vm.searchData[item.key]),callback:function ($$v) {_vm.$set(_vm.searchData, item.key, $$v)},expression:"searchData[item.key]"}},'a-range-picker',item.attrs,false)):_vm._e(),(item.type === 'rangePickerToMonth')?_c('a-range-picker',_vm._b({staticClass:"itemElement",attrs:{"allowClear":false,"getPopupContainer":function (triggerNode) { return triggerNode.parentNode; },"mode":_vm.mode,"format":"YYYY-MM","value":_vm.value},on:{"panelChange":_vm.handlePanelChange}},'a-range-picker',item.attrs,false)):_vm._e(),(item.type === 'monthPicker')?_c('a-month-picker',_vm._b({staticClass:"itemElement",attrs:{"getPopupContainer":function (triggerNode) { return triggerNode.parentNode; },"valueFormat":"YYYY-MM"},model:{value:(_vm.searchData[item.key]),callback:function ($$v) {_vm.$set(_vm.searchData, item.key, $$v)},expression:"searchData[item.key]"}},'a-month-picker',item.attrs,false)):_vm._e(),(item.type === 'mulSelect')?_c('a-select',_vm._b({staticClass:"itemElement",attrs:{"mode":"multiple","maxTagCount":1,"showSearch":"","filterOption":_vm.filterOption,"allowClear":"","getPopupContainer":function (triggerNode) { return triggerNode.parentNode; }},on:{"change":function($event){return _vm.searchChangeSelect($event, item.key, item.attrs)}},model:{value:(_vm.searchData[item.key]),callback:function ($$v) {_vm.$set(_vm.searchData, item.key, $$v)},expression:"searchData[item.key]"}},'a-select',item.attrs,false),_vm._l((item.option),function(option){return _c('a-select-option',{key:option.value,attrs:{"value":option.value}},[_vm._v(" "+_vm._s(option.label)+" ")])}),1):_vm._e()],1)}),1),_c('div',{class:{ btnBar: true, Multiplebtn: _vm.config.length > _vm.rowsShows, btnGroup: _vm.config.length <= _vm.rowsShows }},[_c('a-button',{attrs:{"type":"primary","icon":"search"},on:{"click":_vm.search}},[_vm._v("查询")]),_c('a-button',{staticClass:"resetBtn",attrs:{"icon":"reload"},on:{"click":_vm.reset}},[_vm._v("重置")])],1),(_vm.config.length > _vm.rowsShows * 2)?_c('div',{staticClass:"deploymentControl",on:{"click":_vm.changeWidth}},[_vm._v(" "+_vm._s(!_vm.showExpandConfigItems ? '展开' : '收起')+"筛选条件"),_c('a-icon',{staticClass:"icon",attrs:{"type":!_vm.showExpandConfigItems ? 'down' : 'up'}})],1):_vm._e()],1)}
|
|
176505
176457
|
var staticRenderFns = []
|
|
176506
176458
|
|
|
176507
176459
|
|
|
176508
|
-
// CONCATENATED MODULE: ./src/package/SearchForm/index.vue?vue&type=template&id=
|
|
176460
|
+
// CONCATENATED MODULE: ./src/package/SearchForm/index.vue?vue&type=template&id=2b9e8f4d&scoped=true
|
|
176509
176461
|
|
|
176510
176462
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package/SearchForm/index.vue?vue&type=script&lang=js
|
|
176511
176463
|
//
|
|
@@ -176756,8 +176708,8 @@ var staticRenderFns = []
|
|
|
176756
176708
|
});
|
|
176757
176709
|
// CONCATENATED MODULE: ./src/package/SearchForm/index.vue?vue&type=script&lang=js
|
|
176758
176710
|
/* harmony default export */ var package_SearchFormvue_type_script_lang_js = (SearchFormvue_type_script_lang_js);
|
|
176759
|
-
// EXTERNAL MODULE: ./src/package/SearchForm/index.vue?vue&type=style&index=0&id=
|
|
176760
|
-
var
|
|
176711
|
+
// EXTERNAL MODULE: ./src/package/SearchForm/index.vue?vue&type=style&index=0&id=2b9e8f4d&prod&scoped=true&lang=less
|
|
176712
|
+
var SearchFormvue_type_style_index_0_id_2b9e8f4d_prod_scoped_true_lang_less = __webpack_require__("c948");
|
|
176761
176713
|
|
|
176762
176714
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
176763
176715
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -176868,11 +176820,11 @@ function normalizeComponent(
|
|
|
176868
176820
|
|
|
176869
176821
|
var SearchForm_component = normalizeComponent(
|
|
176870
176822
|
package_SearchFormvue_type_script_lang_js,
|
|
176871
|
-
|
|
176823
|
+
SearchFormvue_type_template_id_2b9e8f4d_scoped_true_render,
|
|
176872
176824
|
staticRenderFns,
|
|
176873
176825
|
false,
|
|
176874
176826
|
null,
|
|
176875
|
-
"
|
|
176827
|
+
"2b9e8f4d",
|
|
176876
176828
|
null
|
|
176877
176829
|
|
|
176878
176830
|
)
|
|
@@ -182069,1120 +182021,6 @@ var proIndex_component = normalizeComponent(
|
|
|
182069
182021
|
)
|
|
182070
182022
|
|
|
182071
182023
|
/* harmony default export */ var proIndex = (proIndex_component.exports);
|
|
182072
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3e6a03fa-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package/NewForm/index.vue?vue&type=template&id=c9210aa8&scoped=true
|
|
182073
|
-
var NewFormvue_type_template_id_c9210aa8_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{class:_vm.allShow ? 'allShow' : 'soloShow'},_vm._l((_vm.fieldItemOptions),function(item){return _c('div',{key:item.key,staticClass:"mag24"},[(item.title)?_c('div',{staticClass:"titleDraw"},[_vm._v(_vm._s(item.title))]):_vm._e(),(!item.noVisible)?_c('div',{class:{ formStyle: !_vm.allShow && !item.noformBorder }},[_c('a-form',_vm._g(_vm._b({ref:"form",refInFor:true,attrs:{"form":_vm.form,"colon":false,"label-col":_vm.labelCol,"wrapper-col":_vm.wrapperCol,"layout":"inline"}},'a-form',_vm.$props,false),_vm.$listeners),[_c('div',{staticClass:"grid-layout",style:({
|
|
182074
|
-
'--grid-columns': _vm.rowsShows,
|
|
182075
|
-
'column-gap': _vm.columnGapWidth || '40px'
|
|
182076
|
-
})},_vm._l((item.fieldOptions),function(field){return _c('div',{key:field.key,class:[
|
|
182077
|
-
'grid-item',
|
|
182078
|
-
{
|
|
182079
|
-
isVisible: field.visible === false || _vm.formItemVisivle(field.isVisible)
|
|
182080
|
-
}
|
|
182081
|
-
],style:(Object.assign({}, field.style,
|
|
182082
|
-
{gridColumn: field.attrs && field.attrs.fullWidth ? '1 / -1' : 'auto'}))},[( true && field.visible != false)?_c('a-form-item',{class:{ topLine: field.attrs && field.attrs.topLine },style:({ wdith: field.fieldLabelWidth || _vm.fieldLabelWidth }),attrs:{"label":field.label,"required":field.required && !_vm.isDetail,"label-col":field.labelCol || _vm.labelCol,"label-colon":"","wrapper-col":field.wrapperCol || _vm.wrapperCol}},[(_vm.isDetail)?[_c('span',[_vm._v(" "+_vm._s(_vm.displayShow(_vm.model[field.showName], field.showName) || field.value))])]:(field.type === 'displayText')?[(field.attrs && field.attrs.judge)?_c('span',{staticClass:"displayText"},[_vm._v(" "+_vm._s(field.value == field.attrs.judge.ComparativeValues ? field.attrs.judge.equal || '请填匹配正确的值' : field.attrs.judge.noEqual || '请填匹配错误的值')+" ")]):_c('span',{staticClass:"displayText",staticStyle:{"white-space":"pre-wrap"}},[_vm._v(" "+_vm._s(field.attrs && field.value && field.attrs.prefixFlag ? field.attrs.prefixFlag : '')+" "+_vm._s(field.value)+" "+_vm._s(field.attrs && field.value && field.attrs.suffixFlag ? field.attrs.suffixFlag : ''))])]:(field.type === 'text')?[_c('a-input',_vm._b({directives:[{name:"decorator",rawName:"v-decorator",value:([
|
|
182083
|
-
field.key,
|
|
182084
|
-
{
|
|
182085
|
-
rules: [
|
|
182086
|
-
{
|
|
182087
|
-
required: field.required,
|
|
182088
|
-
message: ((field.label) + "不能为空")
|
|
182089
|
-
}
|
|
182090
|
-
],
|
|
182091
|
-
initialValue: field.value
|
|
182092
|
-
}
|
|
182093
|
-
]),expression:"[\n\t\t\t\t\t\t\t\t\t\t\tfield.key,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired: field.required,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: `${field.label}不能为空`\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\t\t\tinitialValue: field.value\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]"}],staticClass:"fieldControl",attrs:{"autocomplete":"off","disabled":field.disabled,"placeholder":!field.disabled ? ("请输入" + (field.placeholder || field.label)) : ''},on:{"change":function($event){return _vm.inputChange($event, field.key, field.attrs)}}},'a-input',field.attrs,false))]:(field.type === 'textarea')?[_c('div',{staticClass:"nerFormTextarea",style:({ width: field.fieldWidth + 'px' })},[_c('a-textarea',_vm._b({directives:[{name:"decorator",rawName:"v-decorator",value:([
|
|
182094
|
-
field.key,
|
|
182095
|
-
{
|
|
182096
|
-
rules: [
|
|
182097
|
-
{
|
|
182098
|
-
required: field.required,
|
|
182099
|
-
message: ((field.placeholder || field.label) + "不能为空")
|
|
182100
|
-
}
|
|
182101
|
-
],
|
|
182102
|
-
initialValue: field.value
|
|
182103
|
-
}
|
|
182104
|
-
]),expression:"[\n\t\t\t\t\t\t\t\t\t\t\t\tfield.key,\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired: field.required,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: `${field.placeholder || field.label}不能为空`\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\t\t\t\tinitialValue: field.value\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]"}],staticStyle:{"width":"100%","padding-right":"16px"},attrs:{"disabled":field.disabled,"auto-size":{
|
|
182105
|
-
minRows: field.minRows || 4,
|
|
182106
|
-
maxRows: field.maxRows || 8
|
|
182107
|
-
},"maxLength":field.max || 256,"onkeyup":"(value = value.replace(/^ +| +$/g, ''))","placeholder":!field.disabled ? ("请输入" + (field.placeholder || field.label)) : ''},on:{"change":function($event){return _vm.textAreaInput($event, field.key, field.attrs)}}},'a-textarea',field.attrs,false)),_c('div',{staticClass:"textarea-word-count"},[_c('span',{staticClass:"textarea-word-count-text"},[_vm._v(_vm._s(_vm.model[field.key] ? _vm.model[field.key].length : 0))]),_c('span',{staticClass:"textarea-word-count-text"},[_vm._v("/"+_vm._s(field.max || 256))])])],1)]:(field.type === 'select')?[_c('a-select',_vm._b({directives:[{name:"decorator",rawName:"v-decorator",value:([
|
|
182108
|
-
field.key,
|
|
182109
|
-
{
|
|
182110
|
-
rules: [
|
|
182111
|
-
{
|
|
182112
|
-
required: field.required,
|
|
182113
|
-
message: ("请选择" + (field.placeholder || field.label))
|
|
182114
|
-
}
|
|
182115
|
-
],
|
|
182116
|
-
initialValue: field.value
|
|
182117
|
-
}
|
|
182118
|
-
]),expression:"[\n\t\t\t\t\t\t\t\t\t\t\tfield.key,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired: field.required,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: `请选择${field.placeholder || field.label}`\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\t\t\tinitialValue: field.value\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]"}],ref:"selectRef",refInFor:true,staticClass:"fieldControl",attrs:{"disabled":field.disabled,"filterOption":_vm.filterOption,"showSearch":"","allowClear":"","option-filter-prop":"children","placeholder":("请选择" + (field.placeholder || field.label))},on:{"change":function($event){return _vm.searchChangeSelect($event, field.option, field.attrs)}}},'a-select',field.attrs,false),_vm._l((field.option),function(option){return _c('a-select-option',{key:option.value,attrs:{"value":option.value}},[_vm._v(_vm._s(option.label))])}),1)]:(field.type === 'url')?[_c('span',{on:{"click":function($event){return _vm.seeFile(field.value)}}},[_vm._v(_vm._s(field.value ? field.attrs.showName : ''))])]:(field.type === 'solt')?[_vm._t(field.attrs.soltName ? field.attrs.soltName : '')]:(field.type === 'upload')?[_c('Upload',_vm._b({staticStyle:{"text-align":"left"},attrs:{"fileList":field.value,"fileType":field.attrs.fileType},on:{"uploadSuccess":function($event){return _vm.uploadCallBack($event, field.key)}}},'Upload',field.attrs,false))]:(field.type === 'cascader')?[_c('a-cascader',_vm._b({directives:[{name:"decorator",rawName:"v-decorator",value:([
|
|
182119
|
-
field.key,
|
|
182120
|
-
{
|
|
182121
|
-
rules: [
|
|
182122
|
-
{
|
|
182123
|
-
required: field.required,
|
|
182124
|
-
message: ((field.label) + "不能为空")
|
|
182125
|
-
}
|
|
182126
|
-
],
|
|
182127
|
-
initialValue: field.value
|
|
182128
|
-
}
|
|
182129
|
-
]),expression:"[\n\t\t\t\t\t\t\t\t\t\t\tfield.key,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired: field.required,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: `${field.label}不能为空`\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\t\t\tinitialValue: field.value\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]"}],key:field.id,ref:"cascaderRef",refInFor:true,staticClass:"fieldControl",attrs:{"disabled":field.disabled,"options":field.option,"load-data":_vm.loadScData,"value":field.value,"placeholder":("请选择" + (field.label))},on:{"change":_vm.onChange}},'a-cascader',field.attrs,false))]:(field.type === 'monthPicker')?[_c('a-month-picker',_vm._b({directives:[{name:"decorator",rawName:"v-decorator",value:([
|
|
182130
|
-
field.key,
|
|
182131
|
-
{
|
|
182132
|
-
rules: [
|
|
182133
|
-
{
|
|
182134
|
-
required: field.required,
|
|
182135
|
-
message: ((field.label) + "不能为空")
|
|
182136
|
-
}
|
|
182137
|
-
],
|
|
182138
|
-
initialValue: field.value
|
|
182139
|
-
}
|
|
182140
|
-
]),expression:"[\n\t\t\t\t\t\t\t\t\t\t\tfield.key,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired: field.required,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: `${field.label}不能为空`\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\t\t\tinitialValue: field.value\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]"}],staticClass:"fieldControl",attrs:{"disabled":field.disabled,"valueFormat":"YYYY-MM","placeholder":!field.disabled ? ("请输入" + (field.placeholder || field.label)) : ''},on:{"change":function($event){return _vm.datePickerChange($event, field.key, field.attrs)}}},'a-month-picker',field.attrs,false))]:(field.type === 'group')?[_c('a-select',_vm._b({directives:[{name:"decorator",rawName:"v-decorator",value:([
|
|
182141
|
-
field.key,
|
|
182142
|
-
{
|
|
182143
|
-
rules: [
|
|
182144
|
-
{
|
|
182145
|
-
required: field.required,
|
|
182146
|
-
message: ("请选择" + (field.label))
|
|
182147
|
-
}
|
|
182148
|
-
],
|
|
182149
|
-
initialValue: field.value
|
|
182150
|
-
}
|
|
182151
|
-
]),expression:"[\n\t\t\t\t\t\t\t\t\t\t\tfield.key,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired: field.required,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: `请选择${field.label}`\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\t\t\tinitialValue: field.value\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]"}],ref:"selectRef",refInFor:true,attrs:{"disabled":field.disabled,"mode":"multiple","placeholder":("请选择" + (field.label))},on:{"change":_vm.groupItemChangeSelect}},'a-select',field.attrs,false),_vm._l((field.option),function(option){return _c('a-select-opt-group',{key:option.subsystemId},[_c('span',{attrs:{"slot":"label"},slot:"label"},[_c('a-icon',{attrs:{"type":"user"}}),_vm._v(_vm._s(option.subsystemName))],1),_vm._l((option.roleInfoList),function(roleInfoList){return _c('a-select-option',{key:roleInfoList.id,attrs:{"value":roleInfoList.id}},[_vm._v(" "+_vm._s(roleInfoList.name)+" ")])})],2)}),1)]:(field.type === 'data')?[_c('a-date-picker',_vm._b({directives:[{name:"decorator",rawName:"v-decorator",value:([
|
|
182152
|
-
field.key,
|
|
182153
|
-
{
|
|
182154
|
-
rules: [
|
|
182155
|
-
{
|
|
182156
|
-
required: field.required,
|
|
182157
|
-
message: ((field.label) + "不能为空")
|
|
182158
|
-
}
|
|
182159
|
-
],
|
|
182160
|
-
initialValue: field.value
|
|
182161
|
-
}
|
|
182162
|
-
]),expression:"[\n\t\t\t\t\t\t\t\t\t\t\tfield.key,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired: field.required,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: `${field.label}不能为空`\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\t\t\tinitialValue: field.value\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]"}],staticClass:"fieldControl",attrs:{"disabled":field.disabled,"valueFormat":"YYYY-MM-DD","placeholder":!field.disabled ? ("请选择" + (field.placeholder || field.label)) : ''},on:{"change":function($event){return _vm.dataPickerChange($event, field.attrs)}}},'a-date-picker',field.attrs,false))]:(field.type === 'dataTime')?[_c('a-date-picker',_vm._b({directives:[{name:"decorator",rawName:"v-decorator",value:([
|
|
182163
|
-
field.key,
|
|
182164
|
-
{
|
|
182165
|
-
rules: [
|
|
182166
|
-
{
|
|
182167
|
-
required: field.required,
|
|
182168
|
-
message: ((field.label) + "不能为空")
|
|
182169
|
-
}
|
|
182170
|
-
],
|
|
182171
|
-
initialValue: field.value
|
|
182172
|
-
}
|
|
182173
|
-
]),expression:"[\n\t\t\t\t\t\t\t\t\t\t\tfield.key,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired: field.required,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: `${field.label}不能为空`\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\t\t\tinitialValue: field.value\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]"}],staticClass:"fieldControl",attrs:{"disabled":field.disabled,"show-time":{ format: 'HH:mm' },"value-format":"YYYY-MM-DD HH:mm","placeholder":!field.disabled ? ("请选择" + (field.placeholder || field.label)) : ''},on:{"change":function($event){return _vm.dataPickerChange($event, field.attrs)}}},'a-date-picker',field.attrs,false))]:(field.type === 'rangePicker')?[_c('a-range-picker',_vm._b({directives:[{name:"decorator",rawName:"v-decorator",value:([
|
|
182174
|
-
field.key,
|
|
182175
|
-
{
|
|
182176
|
-
rules: [
|
|
182177
|
-
{
|
|
182178
|
-
required: field.required,
|
|
182179
|
-
message: ((field.label) + "不能为空")
|
|
182180
|
-
}
|
|
182181
|
-
],
|
|
182182
|
-
initialValue: field.value
|
|
182183
|
-
}
|
|
182184
|
-
]),expression:"[\n\t\t\t\t\t\t\t\t\t\t\tfield.key,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired: field.required,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: `${field.label}不能为空`\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\t\t\tinitialValue: field.value\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]"}],staticClass:"fieldControl",attrs:{"disabled":field.disabled,"valueFormat":"YYYY-MM-DD"},on:{"change":function($event){return _vm.rangePickerChange($event, field.key, field.attrs)}}},'a-range-picker',field.attrs,false))]:(field.type === 'monthRangePicker')?[_c('a-range-picker',_vm._b({directives:[{name:"decorator",rawName:"v-decorator",value:([
|
|
182185
|
-
field.key,
|
|
182186
|
-
{
|
|
182187
|
-
rules: [
|
|
182188
|
-
{
|
|
182189
|
-
required: field.required,
|
|
182190
|
-
message: ((field.label) + "不能为空")
|
|
182191
|
-
}
|
|
182192
|
-
],
|
|
182193
|
-
initialValue: field.value
|
|
182194
|
-
}
|
|
182195
|
-
]),expression:"[\n\t\t\t\t\t\t\t\t\t\t\tfield.key,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired: field.required,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: `${field.label}不能为空`\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\t\t\tinitialValue: field.value\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]"}],staticClass:"fieldControl",attrs:{"disabled":field.disabled,"valueFormat":"YYYY-MM","allowClear":false,"format":"YYYY-MM","mode":_vm.monthMode},on:{"change":function($event){return _vm.panelPickerChange($event, field.key, field.attrs)},"panelChange":function($event){return _vm.panelPickerChange($event, field.key, field.attrs)}}},'a-range-picker',field.attrs,false))]:(field.type === 'monthData')?[_c('a-month-picker',_vm._b({directives:[{name:"decorator",rawName:"v-decorator",value:([
|
|
182196
|
-
field.key,
|
|
182197
|
-
{
|
|
182198
|
-
rules: [
|
|
182199
|
-
{
|
|
182200
|
-
required: field.required,
|
|
182201
|
-
message: ((field.label) + "不能为空")
|
|
182202
|
-
}
|
|
182203
|
-
],
|
|
182204
|
-
initialValue: field.value
|
|
182205
|
-
}
|
|
182206
|
-
]),expression:"[\n\t\t\t\t\t\t\t\t\t\t\tfield.key,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired: field.required,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: `${field.label}不能为空`\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\t\t\tinitialValue: field.value\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]"}],staticClass:"fieldControl",attrs:{"disabled":field.disabled,"valueFormat":"YYYY-MM","placeholder":!field.disabled ? ("请选择" + (field.placeholder || field.label)) : ''},on:{"change":function($event){return _vm.dataPickerChange($event, field.attrs)}}},'a-month-picker',field.attrs,false))]:(field.type === 'checkbox')?[_c('a-checkbox-group',_vm._b({directives:[{name:"decorator",rawName:"v-decorator",value:([
|
|
182207
|
-
field.key,
|
|
182208
|
-
{
|
|
182209
|
-
rules: [
|
|
182210
|
-
{
|
|
182211
|
-
required: field.required,
|
|
182212
|
-
message: ("请选择" + (field.label))
|
|
182213
|
-
}
|
|
182214
|
-
],
|
|
182215
|
-
initialValue: field.value
|
|
182216
|
-
}
|
|
182217
|
-
]),expression:"[\n\t\t\t\t\t\t\t\t\t\t\tfield.key,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired: field.required,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: `请选择${field.label}`\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\t\t\tinitialValue: field.value\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]"}],attrs:{"disabled":field.disabled},on:{"change":function($event){return _vm.changeCheckbox($event, field.option, field.attrs)}}},'a-checkbox-group',field.attrs,false),_vm._l((field.option),function(option){return _c('a-checkbox',{key:option.dicCode,style:({ width: field.width }),attrs:{"value":option.dicCode}},[_vm._v(_vm._s(option.label))])}),1)]:(field.type === 'radio')?[_c('a-radio-group',_vm._b({directives:[{name:"decorator",rawName:"v-decorator",value:([
|
|
182218
|
-
field.key,
|
|
182219
|
-
{
|
|
182220
|
-
rules: [
|
|
182221
|
-
{
|
|
182222
|
-
required: field.required,
|
|
182223
|
-
message: ("请选择" + (field.label))
|
|
182224
|
-
}
|
|
182225
|
-
],
|
|
182226
|
-
initialValue: field.value
|
|
182227
|
-
}
|
|
182228
|
-
]),expression:"[\n\t\t\t\t\t\t\t\t\t\t\tfield.key,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trequired: field.required,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage: `请选择${field.label}`\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t\t\t\tinitialValue: field.value\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t]"}],attrs:{"disabled":field.disabled},on:{"change":function($event){return _vm.radioChangeSelect($event, field.option, field.attrs)}}},'a-radio-group',field.attrs,false),_vm._l((field.option),function(option){return _c('a-radio',{key:option.value,attrs:{"value":option.value}},[_vm._v(_vm._s(option.label))])}),1)]:_vm._e()],2):_vm._e()],1)}),0)])],1):_vm._e()])}),0),(_vm.isShowBtn)?_c('div',{staticClass:"bottomButton"},[_c('a-button',{attrs:{"type":_vm.isConfirmSubmit ? null : 'primary'},on:{"click":function($event){return _vm.handleSubmit_debounce()}}},[_vm._v(_vm._s(_vm.okText || '保存'))]),(_vm.isConfirmSubmit)?_c('a-popconfirm',{attrs:{"title":"确定提交吗?"},on:{"confirm":function($event){return _vm.handleSubmit_debounce(true)}}},[_c('a-button',{attrs:{"type":"primary"}},[_vm._v("立即提交")])],1):_vm._e(),_c('a-button',{on:{"click":function($event){return _vm.handCancle()}}},[_vm._v(_vm._s(_vm.cacelText || '取消'))])],1):_vm._e()])}
|
|
182229
|
-
var NewFormvue_type_template_id_c9210aa8_scoped_true_staticRenderFns = []
|
|
182230
|
-
|
|
182231
|
-
|
|
182232
|
-
// CONCATENATED MODULE: ./src/package/NewForm/index.vue?vue&type=template&id=c9210aa8&scoped=true
|
|
182233
|
-
|
|
182234
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.find.js
|
|
182235
|
-
var es_iterator_find = __webpack_require__("f665");
|
|
182236
|
-
|
|
182237
|
-
// CONCATENATED MODULE: ./src/utils/directives.js
|
|
182238
|
-
|
|
182239
|
-
/**
|
|
182240
|
-
* @description Vue自定义指令 【防抖】
|
|
182241
|
-
* @param argment[0] {type: String}
|
|
182242
|
-
* @param argment[1] {type: Object} 在绑定组件中的各个生命周期中书写业务,这里使用inserted(){}
|
|
182243
|
-
*/
|
|
182244
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.directive('debounce', {
|
|
182245
|
-
/**
|
|
182246
|
-
* @description () 在Dom父组件被挂载前的钩子函数中使用
|
|
182247
|
-
* @param el {type: Object}绑定元素的节点
|
|
182248
|
-
* @param binding {type: 所有合法的JS表达式}
|
|
182249
|
-
* */
|
|
182250
|
-
inserted(el, binding) {
|
|
182251
|
-
let timer = null;
|
|
182252
|
-
el.addEventListener('click', () => {
|
|
182253
|
-
if (timer) clearTimeout(timer);
|
|
182254
|
-
timer = setTimeout(() => {
|
|
182255
|
-
binding.value();
|
|
182256
|
-
}, 1000);
|
|
182257
|
-
}, false);
|
|
182258
|
-
}
|
|
182259
|
-
});
|
|
182260
|
-
|
|
182261
|
-
/*函数防抖*/
|
|
182262
|
-
function directives_debounce(fn, interval) {
|
|
182263
|
-
var timer;
|
|
182264
|
-
var gapTime = interval || 1000; //间隔时间 不传值默认为1000ms
|
|
182265
|
-
return function () {
|
|
182266
|
-
clearTimeout(timer);
|
|
182267
|
-
var that = this;
|
|
182268
|
-
var args = arguments; //保存arguments setTimeout是全局的 arguments不是防抖函数需要的
|
|
182269
|
-
timer = setTimeout(function () {
|
|
182270
|
-
fn.call(that, args);
|
|
182271
|
-
}, gapTime);
|
|
182272
|
-
};
|
|
182273
|
-
}
|
|
182274
|
-
/*函数节流*/
|
|
182275
|
-
function directives_throttle(fn, interval) {
|
|
182276
|
-
var enterTime = 0; //触发的时间
|
|
182277
|
-
var gapTime = interval || 2000; //间隔时间,如果interval不传值,默认为300ms
|
|
182278
|
-
return function () {
|
|
182279
|
-
var that = this;
|
|
182280
|
-
var backTime = new Date(); //第一次函数return即触发的时间
|
|
182281
|
-
if (backTime - enterTime > gapTime) {
|
|
182282
|
-
fn.call(that, arguments);
|
|
182283
|
-
enterTime = backTime; //赋值给第一次触发的时间 保存第二次触发时间
|
|
182284
|
-
}
|
|
182285
|
-
};
|
|
182286
|
-
}
|
|
182287
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/package/NewForm/index.vue?vue&type=script&lang=js
|
|
182288
|
-
|
|
182289
|
-
|
|
182290
|
-
|
|
182291
|
-
|
|
182292
|
-
|
|
182293
|
-
//
|
|
182294
|
-
//
|
|
182295
|
-
//
|
|
182296
|
-
//
|
|
182297
|
-
//
|
|
182298
|
-
//
|
|
182299
|
-
//
|
|
182300
|
-
//
|
|
182301
|
-
//
|
|
182302
|
-
//
|
|
182303
|
-
//
|
|
182304
|
-
//
|
|
182305
|
-
//
|
|
182306
|
-
//
|
|
182307
|
-
//
|
|
182308
|
-
//
|
|
182309
|
-
//
|
|
182310
|
-
//
|
|
182311
|
-
//
|
|
182312
|
-
//
|
|
182313
|
-
//
|
|
182314
|
-
//
|
|
182315
|
-
//
|
|
182316
|
-
//
|
|
182317
|
-
//
|
|
182318
|
-
//
|
|
182319
|
-
//
|
|
182320
|
-
//
|
|
182321
|
-
//
|
|
182322
|
-
//
|
|
182323
|
-
//
|
|
182324
|
-
//
|
|
182325
|
-
//
|
|
182326
|
-
//
|
|
182327
|
-
//
|
|
182328
|
-
//
|
|
182329
|
-
//
|
|
182330
|
-
//
|
|
182331
|
-
//
|
|
182332
|
-
//
|
|
182333
|
-
//
|
|
182334
|
-
//
|
|
182335
|
-
//
|
|
182336
|
-
//
|
|
182337
|
-
//
|
|
182338
|
-
//
|
|
182339
|
-
//
|
|
182340
|
-
//
|
|
182341
|
-
//
|
|
182342
|
-
//
|
|
182343
|
-
//
|
|
182344
|
-
//
|
|
182345
|
-
//
|
|
182346
|
-
//
|
|
182347
|
-
//
|
|
182348
|
-
//
|
|
182349
|
-
//
|
|
182350
|
-
//
|
|
182351
|
-
//
|
|
182352
|
-
//
|
|
182353
|
-
//
|
|
182354
|
-
//
|
|
182355
|
-
//
|
|
182356
|
-
//
|
|
182357
|
-
//
|
|
182358
|
-
//
|
|
182359
|
-
//
|
|
182360
|
-
//
|
|
182361
|
-
//
|
|
182362
|
-
//
|
|
182363
|
-
//
|
|
182364
|
-
//
|
|
182365
|
-
//
|
|
182366
|
-
//
|
|
182367
|
-
//
|
|
182368
|
-
//
|
|
182369
|
-
//
|
|
182370
|
-
//
|
|
182371
|
-
//
|
|
182372
|
-
//
|
|
182373
|
-
//
|
|
182374
|
-
//
|
|
182375
|
-
//
|
|
182376
|
-
//
|
|
182377
|
-
//
|
|
182378
|
-
//
|
|
182379
|
-
//
|
|
182380
|
-
//
|
|
182381
|
-
//
|
|
182382
|
-
//
|
|
182383
|
-
//
|
|
182384
|
-
//
|
|
182385
|
-
//
|
|
182386
|
-
//
|
|
182387
|
-
//
|
|
182388
|
-
//
|
|
182389
|
-
//
|
|
182390
|
-
//
|
|
182391
|
-
//
|
|
182392
|
-
//
|
|
182393
|
-
//
|
|
182394
|
-
//
|
|
182395
|
-
//
|
|
182396
|
-
//
|
|
182397
|
-
//
|
|
182398
|
-
//
|
|
182399
|
-
//
|
|
182400
|
-
//
|
|
182401
|
-
//
|
|
182402
|
-
//
|
|
182403
|
-
//
|
|
182404
|
-
//
|
|
182405
|
-
//
|
|
182406
|
-
//
|
|
182407
|
-
//
|
|
182408
|
-
//
|
|
182409
|
-
//
|
|
182410
|
-
//
|
|
182411
|
-
//
|
|
182412
|
-
//
|
|
182413
|
-
//
|
|
182414
|
-
//
|
|
182415
|
-
//
|
|
182416
|
-
//
|
|
182417
|
-
//
|
|
182418
|
-
//
|
|
182419
|
-
//
|
|
182420
|
-
//
|
|
182421
|
-
//
|
|
182422
|
-
//
|
|
182423
|
-
//
|
|
182424
|
-
//
|
|
182425
|
-
//
|
|
182426
|
-
//
|
|
182427
|
-
//
|
|
182428
|
-
//
|
|
182429
|
-
//
|
|
182430
|
-
//
|
|
182431
|
-
//
|
|
182432
|
-
//
|
|
182433
|
-
//
|
|
182434
|
-
//
|
|
182435
|
-
//
|
|
182436
|
-
//
|
|
182437
|
-
//
|
|
182438
|
-
//
|
|
182439
|
-
//
|
|
182440
|
-
//
|
|
182441
|
-
//
|
|
182442
|
-
//
|
|
182443
|
-
//
|
|
182444
|
-
//
|
|
182445
|
-
//
|
|
182446
|
-
//
|
|
182447
|
-
//
|
|
182448
|
-
//
|
|
182449
|
-
//
|
|
182450
|
-
//
|
|
182451
|
-
//
|
|
182452
|
-
//
|
|
182453
|
-
//
|
|
182454
|
-
//
|
|
182455
|
-
//
|
|
182456
|
-
//
|
|
182457
|
-
//
|
|
182458
|
-
//
|
|
182459
|
-
//
|
|
182460
|
-
//
|
|
182461
|
-
//
|
|
182462
|
-
//
|
|
182463
|
-
//
|
|
182464
|
-
//
|
|
182465
|
-
//
|
|
182466
|
-
//
|
|
182467
|
-
//
|
|
182468
|
-
//
|
|
182469
|
-
//
|
|
182470
|
-
//
|
|
182471
|
-
//
|
|
182472
|
-
//
|
|
182473
|
-
//
|
|
182474
|
-
//
|
|
182475
|
-
//
|
|
182476
|
-
//
|
|
182477
|
-
//
|
|
182478
|
-
//
|
|
182479
|
-
//
|
|
182480
|
-
//
|
|
182481
|
-
//
|
|
182482
|
-
//
|
|
182483
|
-
//
|
|
182484
|
-
//
|
|
182485
|
-
//
|
|
182486
|
-
//
|
|
182487
|
-
//
|
|
182488
|
-
//
|
|
182489
|
-
//
|
|
182490
|
-
//
|
|
182491
|
-
//
|
|
182492
|
-
//
|
|
182493
|
-
//
|
|
182494
|
-
//
|
|
182495
|
-
//
|
|
182496
|
-
//
|
|
182497
|
-
//
|
|
182498
|
-
//
|
|
182499
|
-
//
|
|
182500
|
-
//
|
|
182501
|
-
//
|
|
182502
|
-
//
|
|
182503
|
-
//
|
|
182504
|
-
//
|
|
182505
|
-
//
|
|
182506
|
-
//
|
|
182507
|
-
//
|
|
182508
|
-
//
|
|
182509
|
-
//
|
|
182510
|
-
//
|
|
182511
|
-
//
|
|
182512
|
-
//
|
|
182513
|
-
//
|
|
182514
|
-
//
|
|
182515
|
-
//
|
|
182516
|
-
//
|
|
182517
|
-
//
|
|
182518
|
-
//
|
|
182519
|
-
//
|
|
182520
|
-
//
|
|
182521
|
-
//
|
|
182522
|
-
//
|
|
182523
|
-
//
|
|
182524
|
-
//
|
|
182525
|
-
//
|
|
182526
|
-
//
|
|
182527
|
-
//
|
|
182528
|
-
//
|
|
182529
|
-
//
|
|
182530
|
-
//
|
|
182531
|
-
//
|
|
182532
|
-
//
|
|
182533
|
-
//
|
|
182534
|
-
//
|
|
182535
|
-
//
|
|
182536
|
-
//
|
|
182537
|
-
//
|
|
182538
|
-
//
|
|
182539
|
-
//
|
|
182540
|
-
//
|
|
182541
|
-
//
|
|
182542
|
-
//
|
|
182543
|
-
//
|
|
182544
|
-
//
|
|
182545
|
-
//
|
|
182546
|
-
//
|
|
182547
|
-
//
|
|
182548
|
-
//
|
|
182549
|
-
//
|
|
182550
|
-
//
|
|
182551
|
-
//
|
|
182552
|
-
//
|
|
182553
|
-
//
|
|
182554
|
-
//
|
|
182555
|
-
//
|
|
182556
|
-
//
|
|
182557
|
-
//
|
|
182558
|
-
//
|
|
182559
|
-
//
|
|
182560
|
-
//
|
|
182561
|
-
//
|
|
182562
|
-
//
|
|
182563
|
-
//
|
|
182564
|
-
//
|
|
182565
|
-
//
|
|
182566
|
-
//
|
|
182567
|
-
//
|
|
182568
|
-
//
|
|
182569
|
-
//
|
|
182570
|
-
//
|
|
182571
|
-
//
|
|
182572
|
-
//
|
|
182573
|
-
//
|
|
182574
|
-
//
|
|
182575
|
-
//
|
|
182576
|
-
//
|
|
182577
|
-
//
|
|
182578
|
-
//
|
|
182579
|
-
//
|
|
182580
|
-
//
|
|
182581
|
-
//
|
|
182582
|
-
//
|
|
182583
|
-
//
|
|
182584
|
-
//
|
|
182585
|
-
//
|
|
182586
|
-
//
|
|
182587
|
-
//
|
|
182588
|
-
//
|
|
182589
|
-
//
|
|
182590
|
-
//
|
|
182591
|
-
//
|
|
182592
|
-
//
|
|
182593
|
-
//
|
|
182594
|
-
//
|
|
182595
|
-
//
|
|
182596
|
-
//
|
|
182597
|
-
//
|
|
182598
|
-
//
|
|
182599
|
-
//
|
|
182600
|
-
//
|
|
182601
|
-
//
|
|
182602
|
-
//
|
|
182603
|
-
//
|
|
182604
|
-
//
|
|
182605
|
-
//
|
|
182606
|
-
//
|
|
182607
|
-
//
|
|
182608
|
-
//
|
|
182609
|
-
//
|
|
182610
|
-
//
|
|
182611
|
-
//
|
|
182612
|
-
//
|
|
182613
|
-
//
|
|
182614
|
-
//
|
|
182615
|
-
//
|
|
182616
|
-
//
|
|
182617
|
-
//
|
|
182618
|
-
//
|
|
182619
|
-
//
|
|
182620
|
-
//
|
|
182621
|
-
//
|
|
182622
|
-
//
|
|
182623
|
-
//
|
|
182624
|
-
//
|
|
182625
|
-
//
|
|
182626
|
-
//
|
|
182627
|
-
//
|
|
182628
|
-
//
|
|
182629
|
-
//
|
|
182630
|
-
//
|
|
182631
|
-
//
|
|
182632
|
-
//
|
|
182633
|
-
//
|
|
182634
|
-
//
|
|
182635
|
-
//
|
|
182636
|
-
//
|
|
182637
|
-
//
|
|
182638
|
-
//
|
|
182639
|
-
//
|
|
182640
|
-
//
|
|
182641
|
-
//
|
|
182642
|
-
//
|
|
182643
|
-
//
|
|
182644
|
-
//
|
|
182645
|
-
//
|
|
182646
|
-
//
|
|
182647
|
-
//
|
|
182648
|
-
//
|
|
182649
|
-
//
|
|
182650
|
-
//
|
|
182651
|
-
//
|
|
182652
|
-
//
|
|
182653
|
-
//
|
|
182654
|
-
//
|
|
182655
|
-
//
|
|
182656
|
-
//
|
|
182657
|
-
//
|
|
182658
|
-
//
|
|
182659
|
-
//
|
|
182660
|
-
//
|
|
182661
|
-
//
|
|
182662
|
-
//
|
|
182663
|
-
//
|
|
182664
|
-
//
|
|
182665
|
-
//
|
|
182666
|
-
//
|
|
182667
|
-
//
|
|
182668
|
-
//
|
|
182669
|
-
//
|
|
182670
|
-
//
|
|
182671
|
-
//
|
|
182672
|
-
//
|
|
182673
|
-
//
|
|
182674
|
-
//
|
|
182675
|
-
//
|
|
182676
|
-
//
|
|
182677
|
-
//
|
|
182678
|
-
//
|
|
182679
|
-
//
|
|
182680
|
-
//
|
|
182681
|
-
//
|
|
182682
|
-
//
|
|
182683
|
-
//
|
|
182684
|
-
//
|
|
182685
|
-
//
|
|
182686
|
-
//
|
|
182687
|
-
//
|
|
182688
|
-
//
|
|
182689
|
-
//
|
|
182690
|
-
//
|
|
182691
|
-
//
|
|
182692
|
-
//
|
|
182693
|
-
//
|
|
182694
|
-
//
|
|
182695
|
-
//
|
|
182696
|
-
//
|
|
182697
|
-
//
|
|
182698
|
-
//
|
|
182699
|
-
//
|
|
182700
|
-
//
|
|
182701
|
-
//
|
|
182702
|
-
//
|
|
182703
|
-
//
|
|
182704
|
-
//
|
|
182705
|
-
//
|
|
182706
|
-
//
|
|
182707
|
-
//
|
|
182708
|
-
//
|
|
182709
|
-
//
|
|
182710
|
-
//
|
|
182711
|
-
//
|
|
182712
|
-
//
|
|
182713
|
-
//
|
|
182714
|
-
//
|
|
182715
|
-
//
|
|
182716
|
-
//
|
|
182717
|
-
//
|
|
182718
|
-
//
|
|
182719
|
-
//
|
|
182720
|
-
//
|
|
182721
|
-
//
|
|
182722
|
-
//
|
|
182723
|
-
//
|
|
182724
|
-
//
|
|
182725
|
-
//
|
|
182726
|
-
//
|
|
182727
|
-
//
|
|
182728
|
-
//
|
|
182729
|
-
//
|
|
182730
|
-
//
|
|
182731
|
-
//
|
|
182732
|
-
//
|
|
182733
|
-
//
|
|
182734
|
-
//
|
|
182735
|
-
//
|
|
182736
|
-
//
|
|
182737
|
-
//
|
|
182738
|
-
//
|
|
182739
|
-
//
|
|
182740
|
-
//
|
|
182741
|
-
//
|
|
182742
|
-
//
|
|
182743
|
-
//
|
|
182744
|
-
|
|
182745
|
-
|
|
182746
|
-
|
|
182747
|
-
|
|
182748
|
-
|
|
182749
|
-
/* harmony default export */ var NewFormvue_type_script_lang_js = ({
|
|
182750
|
-
name: 'NewForm',
|
|
182751
|
-
props: {
|
|
182752
|
-
// 表单域配置
|
|
182753
|
-
fieldOptions: {
|
|
182754
|
-
type: Array,
|
|
182755
|
-
default: () => []
|
|
182756
|
-
},
|
|
182757
|
-
// 底部提交按钮
|
|
182758
|
-
isShowBtn: {
|
|
182759
|
-
type: Boolean,
|
|
182760
|
-
default: true
|
|
182761
|
-
},
|
|
182762
|
-
// 是否展示确认提交按钮
|
|
182763
|
-
isConfirmSubmit: {
|
|
182764
|
-
type: Boolean,
|
|
182765
|
-
default: false
|
|
182766
|
-
},
|
|
182767
|
-
allShow: {
|
|
182768
|
-
type: Boolean,
|
|
182769
|
-
default: false
|
|
182770
|
-
},
|
|
182771
|
-
// 编辑时表单回显的默认数据f
|
|
182772
|
-
model: {
|
|
182773
|
-
type: Object,
|
|
182774
|
-
default: () => ({})
|
|
182775
|
-
},
|
|
182776
|
-
fieldLabelWidth: {
|
|
182777
|
-
type: String,
|
|
182778
|
-
default: '100px'
|
|
182779
|
-
},
|
|
182780
|
-
// 标签宽度
|
|
182781
|
-
labelCol: {
|
|
182782
|
-
type: Object,
|
|
182783
|
-
default: () => {
|
|
182784
|
-
return {
|
|
182785
|
-
xs: {
|
|
182786
|
-
span: 24
|
|
182787
|
-
},
|
|
182788
|
-
sm: {
|
|
182789
|
-
span: 6
|
|
182790
|
-
}
|
|
182791
|
-
};
|
|
182792
|
-
}
|
|
182793
|
-
},
|
|
182794
|
-
// 一行展示几列
|
|
182795
|
-
rowsShows: {
|
|
182796
|
-
type: Number,
|
|
182797
|
-
default: 2
|
|
182798
|
-
},
|
|
182799
|
-
// 控件宽度
|
|
182800
|
-
wrapperCol: {
|
|
182801
|
-
type: Object,
|
|
182802
|
-
default: () => {
|
|
182803
|
-
return {
|
|
182804
|
-
xs: {
|
|
182805
|
-
span: 24
|
|
182806
|
-
},
|
|
182807
|
-
sm: {
|
|
182808
|
-
span: 16
|
|
182809
|
-
}
|
|
182810
|
-
};
|
|
182811
|
-
}
|
|
182812
|
-
},
|
|
182813
|
-
// 底部保存取消按钮的 展示文字
|
|
182814
|
-
okText: String,
|
|
182815
|
-
cacelText: String,
|
|
182816
|
-
columnGapWidth: {
|
|
182817
|
-
type: String,
|
|
182818
|
-
default: '40px'
|
|
182819
|
-
},
|
|
182820
|
-
isDetail: {
|
|
182821
|
-
type: Boolean,
|
|
182822
|
-
default: false
|
|
182823
|
-
}
|
|
182824
|
-
// 用于提交加载
|
|
182825
|
-
},
|
|
182826
|
-
components: {
|
|
182827
|
-
Upload: package_Upload
|
|
182828
|
-
},
|
|
182829
|
-
watch: {
|
|
182830
|
-
// 传输人 fieldOptions 发生变化的时候 需要手动触发fieldOptions()
|
|
182831
|
-
fieldOptions: {
|
|
182832
|
-
handler(fieldOptions) {
|
|
182833
|
-
// 之所以封装起来,是为了在外层调用刷新
|
|
182834
|
-
this.forceUpdate(fieldOptions);
|
|
182835
|
-
},
|
|
182836
|
-
deep: true,
|
|
182837
|
-
immediate: true
|
|
182838
|
-
},
|
|
182839
|
-
model: {
|
|
182840
|
-
handler(data) {
|
|
182841
|
-
console.log('数据发生变化', data);
|
|
182842
|
-
this.forceUpdate(this.fieldOptions);
|
|
182843
|
-
},
|
|
182844
|
-
deep: true,
|
|
182845
|
-
immediate: true
|
|
182846
|
-
}
|
|
182847
|
-
},
|
|
182848
|
-
data() {
|
|
182849
|
-
return {
|
|
182850
|
-
fieldItemOptions: [],
|
|
182851
|
-
monthMode: ['month', 'month'],
|
|
182852
|
-
isInitialized: false,
|
|
182853
|
-
// 附加的临时数据 如下拉框的name
|
|
182854
|
-
fdData: {},
|
|
182855
|
-
// 表单
|
|
182856
|
-
form: this.$form.createForm(this, {
|
|
182857
|
-
onValuesChange: this.handleValuesChange
|
|
182858
|
-
})
|
|
182859
|
-
};
|
|
182860
|
-
},
|
|
182861
|
-
mounted() {
|
|
182862
|
-
this.isInitialized = true;
|
|
182863
|
-
let o = document.getElementById('textareaFrom');
|
|
182864
|
-
console.log(o, 'textareatextareatextarea'); //#document-fragment
|
|
182865
|
-
// console.log(o.content.querySelectorAll('div')); //NodeList(2) [div#div1, div]。得到一个类数组
|
|
182866
|
-
// console.log(o.content.getElementById('div1')); //<div id="div1">我是template</div>
|
|
182867
|
-
},
|
|
182868
|
-
methods: {
|
|
182869
|
-
handleValuesChange(changedValues, allValues) {
|
|
182870
|
-
// 误删 !!! 大幅度增加性能需要, 因为初始化会循环刷表单数据,增加标识不监听表单里值变化 等页面加载完进行 后续表单变化
|
|
182871
|
-
|
|
182872
|
-
if (this.isInitialized) {
|
|
182873
|
-
console.log(changedValues, allValues);
|
|
182874
|
-
this.forceUpdate(this.fieldOptions);
|
|
182875
|
-
}
|
|
182876
|
-
},
|
|
182877
|
-
// 下拉框支持搜索功能
|
|
182878
|
-
filterOption(input, option) {
|
|
182879
|
-
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
182880
|
-
},
|
|
182881
|
-
handleChange(value, option) {
|
|
182882
|
-
console.log(option, '');
|
|
182883
|
-
this.$emit('handleChange', value);
|
|
182884
|
-
},
|
|
182885
|
-
// 普通 时间范围选择触发事件
|
|
182886
|
-
rangePickerChange(value, key, attrs) {
|
|
182887
|
-
if (attrs.changeDate) {
|
|
182888
|
-
let changeDate = attrs.changeDate;
|
|
182889
|
-
this.fdData[changeDate[0]] = value[0];
|
|
182890
|
-
this.fdData[changeDate[1]] = value[1];
|
|
182891
|
-
} else {
|
|
182892
|
-
this.$message.waring('请配置区间的开始key和结束key');
|
|
182893
|
-
}
|
|
182894
|
-
this.parentOption(value, attrs);
|
|
182895
|
-
},
|
|
182896
|
-
// 特殊 时间范围触发的事件
|
|
182897
|
-
panelPickerChange(value, key, attrs) {
|
|
182898
|
-
if (attrs.changeDate) {
|
|
182899
|
-
let changeDate = attrs.changeDate;
|
|
182900
|
-
this.fdData[changeDate[0]] = moment_default()(value[0]).format('YYYY-MM') || '';
|
|
182901
|
-
this.fdData[changeDate[1]] = moment_default()(value[1]).format('YYYY-MM') || '';
|
|
182902
|
-
this.parentOption([this.fdData[changeDate[0]], this.fdData[changeDate[1]]], attrs);
|
|
182903
|
-
//this.$emit('parentOption', [this.fdData[changeDate[0]], this.fdData[changeDate[1]]], key);
|
|
182904
|
-
} else {
|
|
182905
|
-
this.$message.waring('请配置区间的开始key和结束key');
|
|
182906
|
-
}
|
|
182907
|
-
this.$forceUpdate();
|
|
182908
|
-
// 如果存在子集联动
|
|
182909
|
-
if (attrs && attrs.children) {
|
|
182910
|
-
// 怎么进行清空数据
|
|
182911
|
-
//this.fdData[attrs.children] = undefined;
|
|
182912
|
-
this.$emit('parentOption', value, attrs.children);
|
|
182913
|
-
}
|
|
182914
|
-
},
|
|
182915
|
-
datePickerChange(value, key) {
|
|
182916
|
-
this.fdData[key] = value;
|
|
182917
|
-
},
|
|
182918
|
-
// 更新数据 (传输结构)
|
|
182919
|
-
forceUpdate(setfieldOptions) {
|
|
182920
|
-
var _this$fieldItemOption;
|
|
182921
|
-
let fieldOptions = setfieldOptions || this.fieldOptions; //如果刷新没有值那么就找默认传入的值
|
|
182922
|
-
console.log(fieldOptions, 'fieldOptions');
|
|
182923
|
-
let _this = this;
|
|
182924
|
-
_this.fieldItemOptions = deepClone(fieldOptions);
|
|
182925
|
-
(_this$fieldItemOption = _this.fieldItemOptions) === null || _this$fieldItemOption === void 0 || _this$fieldItemOption.forEach(c => {
|
|
182926
|
-
var _c$fieldOptions;
|
|
182927
|
-
(_c$fieldOptions = c.fieldOptions) === null || _c$fieldOptions === void 0 || _c$fieldOptions.forEach(b => {
|
|
182928
|
-
for (const key in _this.model) {
|
|
182929
|
-
if (b.key === key) {
|
|
182930
|
-
b.value = _this.model[key];
|
|
182931
|
-
}
|
|
182932
|
-
// 有附加数据 就进行添加
|
|
182933
|
-
if (b.type == 'select' && b.attrs && b.attrs.labelName) {
|
|
182934
|
-
let labelName = b.attrs.labelName;
|
|
182935
|
-
if (!_this.fdData[labelName]) {
|
|
182936
|
-
_this.fdData[labelName] = _this.model[labelName];
|
|
182937
|
-
}
|
|
182938
|
-
}
|
|
182939
|
-
}
|
|
182940
|
-
});
|
|
182941
|
-
});
|
|
182942
|
-
},
|
|
182943
|
-
// 联动展示控制隐藏展示 满足条件时隐藏 isVisible:{ formItemkey:'' ,formItemType:'',formItemValue:''}
|
|
182944
|
-
formItemVisible(isVisible) {
|
|
182945
|
-
if (!isVisible || !isVisible.formItemkey) {
|
|
182946
|
-
return false;
|
|
182947
|
-
}
|
|
182948
|
-
// 确保表单已经渲染完毕后再获取表单值
|
|
182949
|
-
const formValue = this.form.getFieldsValue();
|
|
182950
|
-
const formItemValue = formValue === null || formValue === void 0 ? void 0 : formValue[isVisible.formItemkey];
|
|
182951
|
-
switch (isVisible.formItemType) {
|
|
182952
|
-
case 'Array':
|
|
182953
|
-
return !(formItemValue !== null && formItemValue !== void 0 ? formItemValue : []).includes(isVisible.formItemValue);
|
|
182954
|
-
case 'boolean':
|
|
182955
|
-
return formItemValue === isVisible.formItemValue;
|
|
182956
|
-
default:
|
|
182957
|
-
return formItemValue === isVisible.formItemValue;
|
|
182958
|
-
}
|
|
182959
|
-
},
|
|
182960
|
-
textAreaInput(e, key, attrs) {
|
|
182961
|
-
this.model[key] = e.target.value;
|
|
182962
|
-
this.parentOption(e.target.value, attrs);
|
|
182963
|
-
},
|
|
182964
|
-
// 寻找name 方法 数组 或者 字符串都行
|
|
182965
|
-
findName(value, optionData, labelName) {
|
|
182966
|
-
console.log('通过id找name', value, labelName);
|
|
182967
|
-
// 有值才进行赋值name
|
|
182968
|
-
if (value && labelName) {
|
|
182969
|
-
// 数组单独赋值name
|
|
182970
|
-
if (Array.isArray(value)) {
|
|
182971
|
-
// 数组找name
|
|
182972
|
-
let labels = [];
|
|
182973
|
-
for (let itemKey of value || []) {
|
|
182974
|
-
let tempData = optionData.find(item => {
|
|
182975
|
-
return itemKey === item.value;
|
|
182976
|
-
}).label;
|
|
182977
|
-
labels.push(tempData);
|
|
182978
|
-
}
|
|
182979
|
-
this.fdData[labelName] = labels;
|
|
182980
|
-
} else {
|
|
182981
|
-
// 单个找值
|
|
182982
|
-
let findData = optionData.find(item => {
|
|
182983
|
-
return value === item.value;
|
|
182984
|
-
});
|
|
182985
|
-
this.fdData[labelName] = findData === null || findData === void 0 ? void 0 : findData.label;
|
|
182986
|
-
console.log(this.fdData[labelName], '单个找到');
|
|
182987
|
-
}
|
|
182988
|
-
}
|
|
182989
|
-
},
|
|
182990
|
-
// value选中的值 option 当前列 attrs 附加功能
|
|
182991
|
-
searchChangeSelect(value, optionData, attrs) {
|
|
182992
|
-
console.log('下拉改变', value, optionData, attrs);
|
|
182993
|
-
|
|
182994
|
-
// 1. 更新 `supplierName`(如果有 labelName)
|
|
182995
|
-
this.findName(value, optionData, attrs === null || attrs === void 0 ? void 0 : attrs.labelName);
|
|
182996
|
-
|
|
182997
|
-
// 2. 执行联动逻辑(如果有)
|
|
182998
|
-
this.parentOption(value, attrs);
|
|
182999
|
-
|
|
183000
|
-
// 3. 更新 `fdData` 里的字段
|
|
183001
|
-
if (value && attrs !== null && attrs !== void 0 && attrs.fdData) {
|
|
183002
|
-
const findData = optionData.find(item => item.value === value);
|
|
183003
|
-
|
|
183004
|
-
// 更新 `fdData` 里的字段(如 accountBank)
|
|
183005
|
-
attrs.fdData.forEach(fdKey => {
|
|
183006
|
-
this.model[fdKey] = findData[fdKey]; // 更新 model
|
|
183007
|
-
this.fdData[fdKey] = findData[fdKey];
|
|
183008
|
-
console.log(fdKey);
|
|
183009
|
-
this.$emit('getValue', fdKey, findData[fdKey]);
|
|
183010
|
-
});
|
|
183011
|
-
|
|
183012
|
-
// 4. 手动更新表单值(关键步骤!)
|
|
183013
|
-
this.$nextTick(() => {
|
|
183014
|
-
this.form.setFieldsValue({
|
|
183015
|
-
...Object.fromEntries(attrs.fdData.map(fdKey => [fdKey, findData[fdKey]]))
|
|
183016
|
-
});
|
|
183017
|
-
});
|
|
183018
|
-
}
|
|
183019
|
-
|
|
183020
|
-
// 5. 强制验证当前 select 字段(可选)
|
|
183021
|
-
// this.$nextTick(() => {
|
|
183022
|
-
// this.form.validateFields([attrs.key], { force: true });
|
|
183023
|
-
// });
|
|
183024
|
-
},
|
|
183025
|
-
// 回调给业务 进行联动 value 值 attrs.children 联动的key标识
|
|
183026
|
-
parentOption(value, attrs) {
|
|
183027
|
-
if (attrs && attrs.children) {
|
|
183028
|
-
this.$emit('parentOption', value, attrs.children);
|
|
183029
|
-
}
|
|
183030
|
-
},
|
|
183031
|
-
inputChange(value, key, attrs) {
|
|
183032
|
-
// 联动函数,有联动加这个函数
|
|
183033
|
-
this.parentOption(value.target.value, attrs);
|
|
183034
|
-
},
|
|
183035
|
-
radioChangeSelect(value, optionData, attrs) {
|
|
183036
|
-
// 联动到业务页面
|
|
183037
|
-
this.parentOption(value.target.value, attrs);
|
|
183038
|
-
// 通过key找name
|
|
183039
|
-
this.findName(value.target.value, optionData, attrs.labelName);
|
|
183040
|
-
},
|
|
183041
|
-
groupItemChangeSelect(data) {
|
|
183042
|
-
console.log('groupData', data);
|
|
183043
|
-
},
|
|
183044
|
-
// 展示
|
|
183045
|
-
displayShow(value, showName) {
|
|
183046
|
-
console.log(value, showName);
|
|
183047
|
-
if (Array.isArray(value)) {
|
|
183048
|
-
if (value.length == 0) {
|
|
183049
|
-
return ' ';
|
|
183050
|
-
} else {
|
|
183051
|
-
let retureData = value.join(',');
|
|
183052
|
-
return retureData;
|
|
183053
|
-
}
|
|
183054
|
-
} else {
|
|
183055
|
-
return value;
|
|
183056
|
-
}
|
|
183057
|
-
},
|
|
183058
|
-
// 日期选择
|
|
183059
|
-
dataPickerChange(e, attrs) {
|
|
183060
|
-
console.log(e, attrs);
|
|
183061
|
-
// 联动到业务页面
|
|
183062
|
-
this.parentOption(e, attrs);
|
|
183063
|
-
},
|
|
183064
|
-
loadScData(selectedOptions) {
|
|
183065
|
-
this.$emit('loadScData', selectedOptions);
|
|
183066
|
-
},
|
|
183067
|
-
del(value) {
|
|
183068
|
-
console.log(value, 'sdsdsd');
|
|
183069
|
-
this.$emit('del', value);
|
|
183070
|
-
},
|
|
183071
|
-
buttonAdd(key) {
|
|
183072
|
-
this.$emit('buttonAdd', key);
|
|
183073
|
-
},
|
|
183074
|
-
onChange(value, key) {
|
|
183075
|
-
console.log(value, key);
|
|
183076
|
-
},
|
|
183077
|
-
onbuttonclick() {},
|
|
183078
|
-
changeCheckbox(value, optionData, attrs) {
|
|
183079
|
-
this.findName(value, optionData, attrs === null || attrs === void 0 ? void 0 : attrs.labelName);
|
|
183080
|
-
if (attrs && attrs.children) {
|
|
183081
|
-
// 怎么进行清空数据
|
|
183082
|
-
//this.fdData[attrs.children] = undefined;
|
|
183083
|
-
console.log(value, attrs);
|
|
183084
|
-
this.parentOption(value, attrs);
|
|
183085
|
-
}
|
|
183086
|
-
this.$emit('checkboxChange', value);
|
|
183087
|
-
},
|
|
183088
|
-
// 取消
|
|
183089
|
-
handCancle() {
|
|
183090
|
-
this.$emit('handCancle');
|
|
183091
|
-
},
|
|
183092
|
-
// 联动展示控制隐藏展示 满足条件时隐藏 isVisible:{ formItemkey:'' ,formItemType:'',formItemValue:''}
|
|
183093
|
-
formItemVisivle(isVisible) {
|
|
183094
|
-
if (isVisible && isVisible.formItemkey) {
|
|
183095
|
-
// const formValue = this.$form..getFieldsValue();
|
|
183096
|
-
let formValue = this.form.getFieldsValue();
|
|
183097
|
-
if (formValue && formValue[isVisible.formItemkey] == isVisible.formItemValue) {
|
|
183098
|
-
return true;
|
|
183099
|
-
} else {
|
|
183100
|
-
return false;
|
|
183101
|
-
}
|
|
183102
|
-
} else {
|
|
183103
|
-
return false;
|
|
183104
|
-
}
|
|
183105
|
-
},
|
|
183106
|
-
// 上传组件返回配置
|
|
183107
|
-
uploadCallBack({
|
|
183108
|
-
value,
|
|
183109
|
-
valueList
|
|
183110
|
-
}, key) {
|
|
183111
|
-
console.log('上传组件返回值', value, valueList, key);
|
|
183112
|
-
if (valueList.length > 0) {
|
|
183113
|
-
this.fdData[key] = valueList;
|
|
183114
|
-
console.log('上传组件展示', this.fdData[key]);
|
|
183115
|
-
} else {
|
|
183116
|
-
this.fdData[key] = [];
|
|
183117
|
-
}
|
|
183118
|
-
},
|
|
183119
|
-
handleSubmit_debounce: directives_debounce(function (data) {
|
|
183120
|
-
// console.log('数据', data);
|
|
183121
|
-
this.handleSubmit(data[0]);
|
|
183122
|
-
}, 1000),
|
|
183123
|
-
// 提交表单
|
|
183124
|
-
handleSubmit(flag) {
|
|
183125
|
-
this.form.validateFields((err, formData) => {
|
|
183126
|
-
if (err) {
|
|
183127
|
-
this.$nextTick(() => {
|
|
183128
|
-
const errorDiv = document.getElementsByClassName('has-error');
|
|
183129
|
-
errorDiv[0].scrollIntoView({
|
|
183130
|
-
behavior: 'smooth',
|
|
183131
|
-
block: 'center'
|
|
183132
|
-
});
|
|
183133
|
-
});
|
|
183134
|
-
return;
|
|
183135
|
-
}
|
|
183136
|
-
let returnData = {
|
|
183137
|
-
...formData,
|
|
183138
|
-
...this.fdData,
|
|
183139
|
-
isSubmit: flag || false
|
|
183140
|
-
};
|
|
183141
|
-
console.log('表单返回值', returnData, 'newFormData');
|
|
183142
|
-
|
|
183143
|
-
// 提交表单逻辑
|
|
183144
|
-
this.$emit('submit', returnData);
|
|
183145
|
-
});
|
|
183146
|
-
},
|
|
183147
|
-
getFormData() {
|
|
183148
|
-
if (this.form) {
|
|
183149
|
-
const formData = this.form.getFieldsValue();
|
|
183150
|
-
//console.log('表单数据', formData);
|
|
183151
|
-
return {
|
|
183152
|
-
...formData,
|
|
183153
|
-
...this.fdData
|
|
183154
|
-
};
|
|
183155
|
-
}
|
|
183156
|
-
return {};
|
|
183157
|
-
}
|
|
183158
|
-
}
|
|
183159
|
-
});
|
|
183160
|
-
// CONCATENATED MODULE: ./src/package/NewForm/index.vue?vue&type=script&lang=js
|
|
183161
|
-
/* harmony default export */ var package_NewFormvue_type_script_lang_js = (NewFormvue_type_script_lang_js);
|
|
183162
|
-
// EXTERNAL MODULE: ./src/package/NewForm/index.vue?vue&type=style&index=0&id=c9210aa8&prod&lang=less&scoped=true
|
|
183163
|
-
var NewFormvue_type_style_index_0_id_c9210aa8_prod_lang_less_scoped_true = __webpack_require__("eb84");
|
|
183164
|
-
|
|
183165
|
-
// CONCATENATED MODULE: ./src/package/NewForm/index.vue
|
|
183166
|
-
|
|
183167
|
-
|
|
183168
|
-
|
|
183169
|
-
|
|
183170
|
-
|
|
183171
|
-
|
|
183172
|
-
/* normalize component */
|
|
183173
|
-
|
|
183174
|
-
var NewForm_component = normalizeComponent(
|
|
183175
|
-
package_NewFormvue_type_script_lang_js,
|
|
183176
|
-
NewFormvue_type_template_id_c9210aa8_scoped_true_render,
|
|
183177
|
-
NewFormvue_type_template_id_c9210aa8_scoped_true_staticRenderFns,
|
|
183178
|
-
false,
|
|
183179
|
-
null,
|
|
183180
|
-
"c9210aa8",
|
|
183181
|
-
null
|
|
183182
|
-
|
|
183183
|
-
)
|
|
183184
|
-
|
|
183185
|
-
/* harmony default export */ var NewForm = (NewForm_component.exports);
|
|
183186
182024
|
// CONCATENATED MODULE: ./src/package/index.js
|
|
183187
182025
|
|
|
183188
182026
|
|
|
@@ -183207,8 +182045,8 @@ var NewForm_component = normalizeComponent(
|
|
|
183207
182045
|
|
|
183208
182046
|
|
|
183209
182047
|
|
|
183210
|
-
|
|
183211
|
-
|
|
182048
|
+
// import NewForm from './NewForm/index';
|
|
182049
|
+
// import Upload from './Upload/index';
|
|
183212
182050
|
// 组件集合
|
|
183213
182051
|
const package_components = {
|
|
183214
182052
|
SearchForm: SearchForm,
|