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.
@@ -47881,17 +47881,6 @@ var Map = getNative(root, 'Map');
47881
47881
  module.exports = Map;
47882
47882
 
47883
47883
 
47884
- /***/ }),
47885
-
47886
- /***/ "7a2b":
47887
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
47888
-
47889
- "use strict";
47890
- /* 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");
47891
- /* 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__);
47892
- /* unused harmony reexport * */
47893
-
47894
-
47895
47884
  /***/ }),
47896
47885
 
47897
47886
  /***/ "7a41":
@@ -107313,6 +107302,17 @@ var staticWindow = typeof window === staticStrUndefined ? 0 : window
107313
107302
  module.exports = staticWindow
107314
107303
 
107315
107304
 
107305
+ /***/ }),
107306
+
107307
+ /***/ "c948":
107308
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
107309
+
107310
+ "use strict";
107311
+ /* 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");
107312
+ /* 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__);
107313
+ /* unused harmony reexport * */
107314
+
107315
+
107316
107316
  /***/ }),
107317
107317
 
107318
107318
  /***/ "c9a4":
@@ -110712,6 +110712,13 @@ var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
110712
110712
  module.exports = isSet;
110713
110713
 
110714
110714
 
110715
+ /***/ }),
110716
+
110717
+ /***/ "d907":
110718
+ /***/ (function(module, exports, __webpack_require__) {
110719
+
110720
+ // extracted by mini-css-extract-plugin
110721
+
110715
110722
  /***/ }),
110716
110723
 
110717
110724
  /***/ "d96e":
@@ -114353,17 +114360,6 @@ function helperNumberOffsetPoint (str, offsetIndex) {
114353
114360
  module.exports = helperNumberOffsetPoint
114354
114361
 
114355
114362
 
114356
- /***/ }),
114357
-
114358
- /***/ "eb84":
114359
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
114360
-
114361
- "use strict";
114362
- /* 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");
114363
- /* 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__);
114364
- /* unused harmony reexport * */
114365
-
114366
-
114367
114363
  /***/ }),
114368
114364
 
114369
114365
  /***/ "ebe4":
@@ -114853,20 +114849,6 @@ function mapToArray(map) {
114853
114849
  module.exports = mapToArray;
114854
114850
 
114855
114851
 
114856
- /***/ }),
114857
-
114858
- /***/ "ee1e":
114859
- /***/ (function(module, exports, __webpack_require__) {
114860
-
114861
- // extracted by mini-css-extract-plugin
114862
-
114863
- /***/ }),
114864
-
114865
- /***/ "ee44":
114866
- /***/ (function(module, exports, __webpack_require__) {
114867
-
114868
- // extracted by mini-css-extract-plugin
114869
-
114870
114852
  /***/ }),
114871
114853
 
114872
114854
  /***/ "eec1":
@@ -116016,34 +115998,6 @@ function isKey(value, object) {
116016
115998
  module.exports = isKey;
116017
115999
 
116018
116000
 
116019
- /***/ }),
116020
-
116021
- /***/ "f665":
116022
- /***/ (function(module, exports, __webpack_require__) {
116023
-
116024
- "use strict";
116025
-
116026
- var $ = __webpack_require__("23e7");
116027
- var iterate = __webpack_require__("2266");
116028
- var aCallable = __webpack_require__("59ed");
116029
- var anObject = __webpack_require__("825a");
116030
- var getIteratorDirect = __webpack_require__("46c4");
116031
-
116032
- // `Iterator.prototype.find` method
116033
- // https://tc39.es/ecma262/#sec-iterator.prototype.find
116034
- $({ target: 'Iterator', proto: true, real: true }, {
116035
- find: function find(predicate) {
116036
- anObject(this);
116037
- aCallable(predicate);
116038
- var record = getIteratorDirect(this);
116039
- var counter = 0;
116040
- return iterate(record, function (value, stop) {
116041
- if (predicate(value, counter++)) return stop(value);
116042
- }, { IS_RECORD: true, INTERRUPTED: true }).result;
116043
- }
116044
- });
116045
-
116046
-
116047
116001
  /***/ }),
116048
116002
 
116049
116003
  /***/ "f69b":
@@ -116806,8 +116760,6 @@ __webpack_require__.d(__webpack_exports__, "FileViewUtil", function() { return /
116806
116760
  __webpack_require__.d(__webpack_exports__, "Drawer", function() { return /* reexport */ package_Drawer; });
116807
116761
  __webpack_require__.d(__webpack_exports__, "Modal", function() { return /* reexport */ package_Modal; });
116808
116762
  __webpack_require__.d(__webpack_exports__, "proCardDetail", function() { return /* reexport */ proIndex; });
116809
- __webpack_require__.d(__webpack_exports__, "NewForm", function() { return /* reexport */ NewForm; });
116810
- __webpack_require__.d(__webpack_exports__, "Upload", function() { return /* reexport */ package_Upload; });
116811
116763
 
116812
116764
  // NAMESPACE OBJECT: ./node_modules/axios/lib/platform/common/utils.js
116813
116765
  var common_utils_namespaceObject = {};
@@ -176509,12 +176461,12 @@ var vxe_theme = __webpack_require__("2a71");
176509
176461
  // EXTERNAL MODULE: ./src/styles/variables.less
176510
176462
  var variables = __webpack_require__("945b");
176511
176463
 
176512
- // 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=e7162bf0&scoped=true
176513
- var SearchFormvue_type_template_id_e7162bf0_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)}
176464
+ // 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
176465
+ 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)}
176514
176466
  var staticRenderFns = []
176515
176467
 
176516
176468
 
176517
- // CONCATENATED MODULE: ./src/package/SearchForm/index.vue?vue&type=template&id=e7162bf0&scoped=true
176469
+ // CONCATENATED MODULE: ./src/package/SearchForm/index.vue?vue&type=template&id=2b9e8f4d&scoped=true
176518
176470
 
176519
176471
  // 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
176520
176472
  //
@@ -176765,8 +176717,8 @@ var staticRenderFns = []
176765
176717
  });
176766
176718
  // CONCATENATED MODULE: ./src/package/SearchForm/index.vue?vue&type=script&lang=js
176767
176719
  /* harmony default export */ var package_SearchFormvue_type_script_lang_js = (SearchFormvue_type_script_lang_js);
176768
- // EXTERNAL MODULE: ./src/package/SearchForm/index.vue?vue&type=style&index=0&id=e7162bf0&prod&scoped=true&lang=less
176769
- var SearchFormvue_type_style_index_0_id_e7162bf0_prod_scoped_true_lang_less = __webpack_require__("7a2b");
176720
+ // EXTERNAL MODULE: ./src/package/SearchForm/index.vue?vue&type=style&index=0&id=2b9e8f4d&prod&scoped=true&lang=less
176721
+ var SearchFormvue_type_style_index_0_id_2b9e8f4d_prod_scoped_true_lang_less = __webpack_require__("c948");
176770
176722
 
176771
176723
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
176772
176724
  /* globals __VUE_SSR_CONTEXT__ */
@@ -176877,11 +176829,11 @@ function normalizeComponent(
176877
176829
 
176878
176830
  var SearchForm_component = normalizeComponent(
176879
176831
  package_SearchFormvue_type_script_lang_js,
176880
- SearchFormvue_type_template_id_e7162bf0_scoped_true_render,
176832
+ SearchFormvue_type_template_id_2b9e8f4d_scoped_true_render,
176881
176833
  staticRenderFns,
176882
176834
  false,
176883
176835
  null,
176884
- "e7162bf0",
176836
+ "2b9e8f4d",
176885
176837
  null
176886
176838
 
176887
176839
  )
@@ -182078,1120 +182030,6 @@ var proIndex_component = normalizeComponent(
182078
182030
  )
182079
182031
 
182080
182032
  /* harmony default export */ var proIndex = (proIndex_component.exports);
182081
- // 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
182082
- 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:({
182083
- '--grid-columns': _vm.rowsShows,
182084
- 'column-gap': _vm.columnGapWidth || '40px'
182085
- })},_vm._l((item.fieldOptions),function(field){return _c('div',{key:field.key,class:[
182086
- 'grid-item',
182087
- {
182088
- isVisible: field.visible === false || _vm.formItemVisivle(field.isVisible)
182089
- }
182090
- ],style:(Object.assign({}, field.style,
182091
- {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:([
182092
- field.key,
182093
- {
182094
- rules: [
182095
- {
182096
- required: field.required,
182097
- message: ((field.label) + "不能为空")
182098
- }
182099
- ],
182100
- initialValue: field.value
182101
- }
182102
- ]),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:([
182103
- field.key,
182104
- {
182105
- rules: [
182106
- {
182107
- required: field.required,
182108
- message: ((field.placeholder || field.label) + "不能为空")
182109
- }
182110
- ],
182111
- initialValue: field.value
182112
- }
182113
- ]),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":{
182114
- minRows: field.minRows || 4,
182115
- maxRows: field.maxRows || 8
182116
- },"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:([
182117
- field.key,
182118
- {
182119
- rules: [
182120
- {
182121
- required: field.required,
182122
- message: ("请选择" + (field.placeholder || field.label))
182123
- }
182124
- ],
182125
- initialValue: field.value
182126
- }
182127
- ]),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:([
182128
- field.key,
182129
- {
182130
- rules: [
182131
- {
182132
- required: field.required,
182133
- message: ((field.label) + "不能为空")
182134
- }
182135
- ],
182136
- initialValue: field.value
182137
- }
182138
- ]),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:([
182139
- field.key,
182140
- {
182141
- rules: [
182142
- {
182143
- required: field.required,
182144
- message: ((field.label) + "不能为空")
182145
- }
182146
- ],
182147
- initialValue: field.value
182148
- }
182149
- ]),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:([
182150
- field.key,
182151
- {
182152
- rules: [
182153
- {
182154
- required: field.required,
182155
- message: ("请选择" + (field.label))
182156
- }
182157
- ],
182158
- initialValue: field.value
182159
- }
182160
- ]),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:([
182161
- field.key,
182162
- {
182163
- rules: [
182164
- {
182165
- required: field.required,
182166
- message: ((field.label) + "不能为空")
182167
- }
182168
- ],
182169
- initialValue: field.value
182170
- }
182171
- ]),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:([
182172
- field.key,
182173
- {
182174
- rules: [
182175
- {
182176
- required: field.required,
182177
- message: ((field.label) + "不能为空")
182178
- }
182179
- ],
182180
- initialValue: field.value
182181
- }
182182
- ]),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:([
182183
- field.key,
182184
- {
182185
- rules: [
182186
- {
182187
- required: field.required,
182188
- message: ((field.label) + "不能为空")
182189
- }
182190
- ],
182191
- initialValue: field.value
182192
- }
182193
- ]),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:([
182194
- field.key,
182195
- {
182196
- rules: [
182197
- {
182198
- required: field.required,
182199
- message: ((field.label) + "不能为空")
182200
- }
182201
- ],
182202
- initialValue: field.value
182203
- }
182204
- ]),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:([
182205
- field.key,
182206
- {
182207
- rules: [
182208
- {
182209
- required: field.required,
182210
- message: ((field.label) + "不能为空")
182211
- }
182212
- ],
182213
- initialValue: field.value
182214
- }
182215
- ]),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:([
182216
- field.key,
182217
- {
182218
- rules: [
182219
- {
182220
- required: field.required,
182221
- message: ("请选择" + (field.label))
182222
- }
182223
- ],
182224
- initialValue: field.value
182225
- }
182226
- ]),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:([
182227
- field.key,
182228
- {
182229
- rules: [
182230
- {
182231
- required: field.required,
182232
- message: ("请选择" + (field.label))
182233
- }
182234
- ],
182235
- initialValue: field.value
182236
- }
182237
- ]),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()])}
182238
- var NewFormvue_type_template_id_c9210aa8_scoped_true_staticRenderFns = []
182239
-
182240
-
182241
- // CONCATENATED MODULE: ./src/package/NewForm/index.vue?vue&type=template&id=c9210aa8&scoped=true
182242
-
182243
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.find.js
182244
- var es_iterator_find = __webpack_require__("f665");
182245
-
182246
- // CONCATENATED MODULE: ./src/utils/directives.js
182247
-
182248
- /**
182249
- * @description Vue自定义指令 【防抖】
182250
- * @param argment[0] {type: String}
182251
- * @param argment[1] {type: Object} 在绑定组件中的各个生命周期中书写业务,这里使用inserted(){}
182252
- */
182253
- external_commonjs_vue_commonjs2_vue_root_Vue_default.a.directive('debounce', {
182254
- /**
182255
- * @description () 在Dom父组件被挂载前的钩子函数中使用
182256
- * @param el {type: Object}绑定元素的节点
182257
- * @param binding {type: 所有合法的JS表达式}
182258
- * */
182259
- inserted(el, binding) {
182260
- let timer = null;
182261
- el.addEventListener('click', () => {
182262
- if (timer) clearTimeout(timer);
182263
- timer = setTimeout(() => {
182264
- binding.value();
182265
- }, 1000);
182266
- }, false);
182267
- }
182268
- });
182269
-
182270
- /*函数防抖*/
182271
- function directives_debounce(fn, interval) {
182272
- var timer;
182273
- var gapTime = interval || 1000; //间隔时间 不传值默认为1000ms
182274
- return function () {
182275
- clearTimeout(timer);
182276
- var that = this;
182277
- var args = arguments; //保存arguments setTimeout是全局的 arguments不是防抖函数需要的
182278
- timer = setTimeout(function () {
182279
- fn.call(that, args);
182280
- }, gapTime);
182281
- };
182282
- }
182283
- /*函数节流*/
182284
- function directives_throttle(fn, interval) {
182285
- var enterTime = 0; //触发的时间
182286
- var gapTime = interval || 2000; //间隔时间,如果interval不传值,默认为300ms
182287
- return function () {
182288
- var that = this;
182289
- var backTime = new Date(); //第一次函数return即触发的时间
182290
- if (backTime - enterTime > gapTime) {
182291
- fn.call(that, arguments);
182292
- enterTime = backTime; //赋值给第一次触发的时间 保存第二次触发时间
182293
- }
182294
- };
182295
- }
182296
- // 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
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
- //
182750
- //
182751
- //
182752
- //
182753
-
182754
-
182755
-
182756
-
182757
-
182758
- /* harmony default export */ var NewFormvue_type_script_lang_js = ({
182759
- name: 'NewForm',
182760
- props: {
182761
- // 表单域配置
182762
- fieldOptions: {
182763
- type: Array,
182764
- default: () => []
182765
- },
182766
- // 底部提交按钮
182767
- isShowBtn: {
182768
- type: Boolean,
182769
- default: true
182770
- },
182771
- // 是否展示确认提交按钮
182772
- isConfirmSubmit: {
182773
- type: Boolean,
182774
- default: false
182775
- },
182776
- allShow: {
182777
- type: Boolean,
182778
- default: false
182779
- },
182780
- // 编辑时表单回显的默认数据f
182781
- model: {
182782
- type: Object,
182783
- default: () => ({})
182784
- },
182785
- fieldLabelWidth: {
182786
- type: String,
182787
- default: '100px'
182788
- },
182789
- // 标签宽度
182790
- labelCol: {
182791
- type: Object,
182792
- default: () => {
182793
- return {
182794
- xs: {
182795
- span: 24
182796
- },
182797
- sm: {
182798
- span: 6
182799
- }
182800
- };
182801
- }
182802
- },
182803
- // 一行展示几列
182804
- rowsShows: {
182805
- type: Number,
182806
- default: 2
182807
- },
182808
- // 控件宽度
182809
- wrapperCol: {
182810
- type: Object,
182811
- default: () => {
182812
- return {
182813
- xs: {
182814
- span: 24
182815
- },
182816
- sm: {
182817
- span: 16
182818
- }
182819
- };
182820
- }
182821
- },
182822
- // 底部保存取消按钮的 展示文字
182823
- okText: String,
182824
- cacelText: String,
182825
- columnGapWidth: {
182826
- type: String,
182827
- default: '40px'
182828
- },
182829
- isDetail: {
182830
- type: Boolean,
182831
- default: false
182832
- }
182833
- // 用于提交加载
182834
- },
182835
- components: {
182836
- Upload: package_Upload
182837
- },
182838
- watch: {
182839
- // 传输人 fieldOptions 发生变化的时候 需要手动触发fieldOptions()
182840
- fieldOptions: {
182841
- handler(fieldOptions) {
182842
- // 之所以封装起来,是为了在外层调用刷新
182843
- this.forceUpdate(fieldOptions);
182844
- },
182845
- deep: true,
182846
- immediate: true
182847
- },
182848
- model: {
182849
- handler(data) {
182850
- console.log('数据发生变化', data);
182851
- this.forceUpdate(this.fieldOptions);
182852
- },
182853
- deep: true,
182854
- immediate: true
182855
- }
182856
- },
182857
- data() {
182858
- return {
182859
- fieldItemOptions: [],
182860
- monthMode: ['month', 'month'],
182861
- isInitialized: false,
182862
- // 附加的临时数据 如下拉框的name
182863
- fdData: {},
182864
- // 表单
182865
- form: this.$form.createForm(this, {
182866
- onValuesChange: this.handleValuesChange
182867
- })
182868
- };
182869
- },
182870
- mounted() {
182871
- this.isInitialized = true;
182872
- let o = document.getElementById('textareaFrom');
182873
- console.log(o, 'textareatextareatextarea'); //#document-fragment
182874
- // console.log(o.content.querySelectorAll('div')); //NodeList(2) [div#div1, div]。得到一个类数组
182875
- // console.log(o.content.getElementById('div1')); //<div id="div1">我是template</div>
182876
- },
182877
- methods: {
182878
- handleValuesChange(changedValues, allValues) {
182879
- // 误删 !!! 大幅度增加性能需要, 因为初始化会循环刷表单数据,增加标识不监听表单里值变化 等页面加载完进行 后续表单变化
182880
-
182881
- if (this.isInitialized) {
182882
- console.log(changedValues, allValues);
182883
- this.forceUpdate(this.fieldOptions);
182884
- }
182885
- },
182886
- // 下拉框支持搜索功能
182887
- filterOption(input, option) {
182888
- return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0;
182889
- },
182890
- handleChange(value, option) {
182891
- console.log(option, '');
182892
- this.$emit('handleChange', value);
182893
- },
182894
- // 普通 时间范围选择触发事件
182895
- rangePickerChange(value, key, attrs) {
182896
- if (attrs.changeDate) {
182897
- let changeDate = attrs.changeDate;
182898
- this.fdData[changeDate[0]] = value[0];
182899
- this.fdData[changeDate[1]] = value[1];
182900
- } else {
182901
- this.$message.waring('请配置区间的开始key和结束key');
182902
- }
182903
- this.parentOption(value, attrs);
182904
- },
182905
- // 特殊 时间范围触发的事件
182906
- panelPickerChange(value, key, attrs) {
182907
- if (attrs.changeDate) {
182908
- let changeDate = attrs.changeDate;
182909
- this.fdData[changeDate[0]] = moment_default()(value[0]).format('YYYY-MM') || '';
182910
- this.fdData[changeDate[1]] = moment_default()(value[1]).format('YYYY-MM') || '';
182911
- this.parentOption([this.fdData[changeDate[0]], this.fdData[changeDate[1]]], attrs);
182912
- //this.$emit('parentOption', [this.fdData[changeDate[0]], this.fdData[changeDate[1]]], key);
182913
- } else {
182914
- this.$message.waring('请配置区间的开始key和结束key');
182915
- }
182916
- this.$forceUpdate();
182917
- // 如果存在子集联动
182918
- if (attrs && attrs.children) {
182919
- // 怎么进行清空数据
182920
- //this.fdData[attrs.children] = undefined;
182921
- this.$emit('parentOption', value, attrs.children);
182922
- }
182923
- },
182924
- datePickerChange(value, key) {
182925
- this.fdData[key] = value;
182926
- },
182927
- // 更新数据 (传输结构)
182928
- forceUpdate(setfieldOptions) {
182929
- var _this$fieldItemOption;
182930
- let fieldOptions = setfieldOptions || this.fieldOptions; //如果刷新没有值那么就找默认传入的值
182931
- console.log(fieldOptions, 'fieldOptions');
182932
- let _this = this;
182933
- _this.fieldItemOptions = deepClone(fieldOptions);
182934
- (_this$fieldItemOption = _this.fieldItemOptions) === null || _this$fieldItemOption === void 0 || _this$fieldItemOption.forEach(c => {
182935
- var _c$fieldOptions;
182936
- (_c$fieldOptions = c.fieldOptions) === null || _c$fieldOptions === void 0 || _c$fieldOptions.forEach(b => {
182937
- for (const key in _this.model) {
182938
- if (b.key === key) {
182939
- b.value = _this.model[key];
182940
- }
182941
- // 有附加数据 就进行添加
182942
- if (b.type == 'select' && b.attrs && b.attrs.labelName) {
182943
- let labelName = b.attrs.labelName;
182944
- if (!_this.fdData[labelName]) {
182945
- _this.fdData[labelName] = _this.model[labelName];
182946
- }
182947
- }
182948
- }
182949
- });
182950
- });
182951
- },
182952
- // 联动展示控制隐藏展示 满足条件时隐藏 isVisible:{ formItemkey:'' ,formItemType:'',formItemValue:''}
182953
- formItemVisible(isVisible) {
182954
- if (!isVisible || !isVisible.formItemkey) {
182955
- return false;
182956
- }
182957
- // 确保表单已经渲染完毕后再获取表单值
182958
- const formValue = this.form.getFieldsValue();
182959
- const formItemValue = formValue === null || formValue === void 0 ? void 0 : formValue[isVisible.formItemkey];
182960
- switch (isVisible.formItemType) {
182961
- case 'Array':
182962
- return !(formItemValue !== null && formItemValue !== void 0 ? formItemValue : []).includes(isVisible.formItemValue);
182963
- case 'boolean':
182964
- return formItemValue === isVisible.formItemValue;
182965
- default:
182966
- return formItemValue === isVisible.formItemValue;
182967
- }
182968
- },
182969
- textAreaInput(e, key, attrs) {
182970
- this.model[key] = e.target.value;
182971
- this.parentOption(e.target.value, attrs);
182972
- },
182973
- // 寻找name 方法 数组 或者 字符串都行
182974
- findName(value, optionData, labelName) {
182975
- console.log('通过id找name', value, labelName);
182976
- // 有值才进行赋值name
182977
- if (value && labelName) {
182978
- // 数组单独赋值name
182979
- if (Array.isArray(value)) {
182980
- // 数组找name
182981
- let labels = [];
182982
- for (let itemKey of value || []) {
182983
- let tempData = optionData.find(item => {
182984
- return itemKey === item.value;
182985
- }).label;
182986
- labels.push(tempData);
182987
- }
182988
- this.fdData[labelName] = labels;
182989
- } else {
182990
- // 单个找值
182991
- let findData = optionData.find(item => {
182992
- return value === item.value;
182993
- });
182994
- this.fdData[labelName] = findData === null || findData === void 0 ? void 0 : findData.label;
182995
- console.log(this.fdData[labelName], '单个找到');
182996
- }
182997
- }
182998
- },
182999
- // value选中的值 option 当前列 attrs 附加功能
183000
- searchChangeSelect(value, optionData, attrs) {
183001
- console.log('下拉改变', value, optionData, attrs);
183002
-
183003
- // 1. 更新 `supplierName`(如果有 labelName)
183004
- this.findName(value, optionData, attrs === null || attrs === void 0 ? void 0 : attrs.labelName);
183005
-
183006
- // 2. 执行联动逻辑(如果有)
183007
- this.parentOption(value, attrs);
183008
-
183009
- // 3. 更新 `fdData` 里的字段
183010
- if (value && attrs !== null && attrs !== void 0 && attrs.fdData) {
183011
- const findData = optionData.find(item => item.value === value);
183012
-
183013
- // 更新 `fdData` 里的字段(如 accountBank)
183014
- attrs.fdData.forEach(fdKey => {
183015
- this.model[fdKey] = findData[fdKey]; // 更新 model
183016
- this.fdData[fdKey] = findData[fdKey];
183017
- console.log(fdKey);
183018
- this.$emit('getValue', fdKey, findData[fdKey]);
183019
- });
183020
-
183021
- // 4. 手动更新表单值(关键步骤!)
183022
- this.$nextTick(() => {
183023
- this.form.setFieldsValue({
183024
- ...Object.fromEntries(attrs.fdData.map(fdKey => [fdKey, findData[fdKey]]))
183025
- });
183026
- });
183027
- }
183028
-
183029
- // 5. 强制验证当前 select 字段(可选)
183030
- // this.$nextTick(() => {
183031
- // this.form.validateFields([attrs.key], { force: true });
183032
- // });
183033
- },
183034
- // 回调给业务 进行联动 value 值 attrs.children 联动的key标识
183035
- parentOption(value, attrs) {
183036
- if (attrs && attrs.children) {
183037
- this.$emit('parentOption', value, attrs.children);
183038
- }
183039
- },
183040
- inputChange(value, key, attrs) {
183041
- // 联动函数,有联动加这个函数
183042
- this.parentOption(value.target.value, attrs);
183043
- },
183044
- radioChangeSelect(value, optionData, attrs) {
183045
- // 联动到业务页面
183046
- this.parentOption(value.target.value, attrs);
183047
- // 通过key找name
183048
- this.findName(value.target.value, optionData, attrs.labelName);
183049
- },
183050
- groupItemChangeSelect(data) {
183051
- console.log('groupData', data);
183052
- },
183053
- // 展示
183054
- displayShow(value, showName) {
183055
- console.log(value, showName);
183056
- if (Array.isArray(value)) {
183057
- if (value.length == 0) {
183058
- return ' ';
183059
- } else {
183060
- let retureData = value.join(',');
183061
- return retureData;
183062
- }
183063
- } else {
183064
- return value;
183065
- }
183066
- },
183067
- // 日期选择
183068
- dataPickerChange(e, attrs) {
183069
- console.log(e, attrs);
183070
- // 联动到业务页面
183071
- this.parentOption(e, attrs);
183072
- },
183073
- loadScData(selectedOptions) {
183074
- this.$emit('loadScData', selectedOptions);
183075
- },
183076
- del(value) {
183077
- console.log(value, 'sdsdsd');
183078
- this.$emit('del', value);
183079
- },
183080
- buttonAdd(key) {
183081
- this.$emit('buttonAdd', key);
183082
- },
183083
- onChange(value, key) {
183084
- console.log(value, key);
183085
- },
183086
- onbuttonclick() {},
183087
- changeCheckbox(value, optionData, attrs) {
183088
- this.findName(value, optionData, attrs === null || attrs === void 0 ? void 0 : attrs.labelName);
183089
- if (attrs && attrs.children) {
183090
- // 怎么进行清空数据
183091
- //this.fdData[attrs.children] = undefined;
183092
- console.log(value, attrs);
183093
- this.parentOption(value, attrs);
183094
- }
183095
- this.$emit('checkboxChange', value);
183096
- },
183097
- // 取消
183098
- handCancle() {
183099
- this.$emit('handCancle');
183100
- },
183101
- // 联动展示控制隐藏展示 满足条件时隐藏 isVisible:{ formItemkey:'' ,formItemType:'',formItemValue:''}
183102
- formItemVisivle(isVisible) {
183103
- if (isVisible && isVisible.formItemkey) {
183104
- // const formValue = this.$form..getFieldsValue();
183105
- let formValue = this.form.getFieldsValue();
183106
- if (formValue && formValue[isVisible.formItemkey] == isVisible.formItemValue) {
183107
- return true;
183108
- } else {
183109
- return false;
183110
- }
183111
- } else {
183112
- return false;
183113
- }
183114
- },
183115
- // 上传组件返回配置
183116
- uploadCallBack({
183117
- value,
183118
- valueList
183119
- }, key) {
183120
- console.log('上传组件返回值', value, valueList, key);
183121
- if (valueList.length > 0) {
183122
- this.fdData[key] = valueList;
183123
- console.log('上传组件展示', this.fdData[key]);
183124
- } else {
183125
- this.fdData[key] = [];
183126
- }
183127
- },
183128
- handleSubmit_debounce: directives_debounce(function (data) {
183129
- // console.log('数据', data);
183130
- this.handleSubmit(data[0]);
183131
- }, 1000),
183132
- // 提交表单
183133
- handleSubmit(flag) {
183134
- this.form.validateFields((err, formData) => {
183135
- if (err) {
183136
- this.$nextTick(() => {
183137
- const errorDiv = document.getElementsByClassName('has-error');
183138
- errorDiv[0].scrollIntoView({
183139
- behavior: 'smooth',
183140
- block: 'center'
183141
- });
183142
- });
183143
- return;
183144
- }
183145
- let returnData = {
183146
- ...formData,
183147
- ...this.fdData,
183148
- isSubmit: flag || false
183149
- };
183150
- console.log('表单返回值', returnData, 'newFormData');
183151
-
183152
- // 提交表单逻辑
183153
- this.$emit('submit', returnData);
183154
- });
183155
- },
183156
- getFormData() {
183157
- if (this.form) {
183158
- const formData = this.form.getFieldsValue();
183159
- //console.log('表单数据', formData);
183160
- return {
183161
- ...formData,
183162
- ...this.fdData
183163
- };
183164
- }
183165
- return {};
183166
- }
183167
- }
183168
- });
183169
- // CONCATENATED MODULE: ./src/package/NewForm/index.vue?vue&type=script&lang=js
183170
- /* harmony default export */ var package_NewFormvue_type_script_lang_js = (NewFormvue_type_script_lang_js);
183171
- // EXTERNAL MODULE: ./src/package/NewForm/index.vue?vue&type=style&index=0&id=c9210aa8&prod&lang=less&scoped=true
183172
- var NewFormvue_type_style_index_0_id_c9210aa8_prod_lang_less_scoped_true = __webpack_require__("eb84");
183173
-
183174
- // CONCATENATED MODULE: ./src/package/NewForm/index.vue
183175
-
183176
-
183177
-
183178
-
183179
-
183180
-
183181
- /* normalize component */
183182
-
183183
- var NewForm_component = normalizeComponent(
183184
- package_NewFormvue_type_script_lang_js,
183185
- NewFormvue_type_template_id_c9210aa8_scoped_true_render,
183186
- NewFormvue_type_template_id_c9210aa8_scoped_true_staticRenderFns,
183187
- false,
183188
- null,
183189
- "c9210aa8",
183190
- null
183191
-
183192
- )
183193
-
183194
- /* harmony default export */ var NewForm = (NewForm_component.exports);
183195
182033
  // CONCATENATED MODULE: ./src/package/index.js
183196
182034
 
183197
182035
 
@@ -183216,8 +182054,8 @@ var NewForm_component = normalizeComponent(
183216
182054
 
183217
182055
 
183218
182056
 
183219
-
183220
-
182057
+ // import NewForm from './NewForm/index';
182058
+ // import Upload from './Upload/index';
183221
182059
  // 组件集合
183222
182060
  const package_components = {
183223
182061
  SearchForm: SearchForm,