@dhccmobile/vue3-lo-form 1.0.2 → 1.0.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.
@@ -227,6 +227,17 @@ module.exports = function (argument) {
227
227
  };
228
228
 
229
229
 
230
+ /***/ }),
231
+
232
+ /***/ "123b":
233
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
234
+
235
+ "use strict";
236
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_DvFormLayout_vue_vue_type_style_index_0_id_751c673b_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cf16");
237
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_DvFormLayout_vue_vue_type_style_index_0_id_751c673b_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_DvFormLayout_vue_vue_type_style_index_0_id_751c673b_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
238
+ /* unused harmony reexport * */
239
+
240
+
230
241
  /***/ }),
231
242
 
232
243
  /***/ "13d2":
@@ -10354,17 +10365,6 @@ module.exports = SPECIAL_DOCUMENT_ALL ? function (it) {
10354
10365
  };
10355
10366
 
10356
10367
 
10357
- /***/ }),
10358
-
10359
- /***/ "8774":
10360
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10361
-
10362
- "use strict";
10363
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_DvForm_vue_vue_type_style_index_0_id_570608da_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9ef9");
10364
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_DvForm_vue_vue_type_style_index_0_id_570608da_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_DvForm_vue_vue_type_style_index_0_id_570608da_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
10365
- /* unused harmony reexport * */
10366
-
10367
-
10368
10368
  /***/ }),
10369
10369
 
10370
10370
  /***/ "8925":
@@ -10587,10 +10587,14 @@ const FormFieldClass = {
10587
10587
 
10588
10588
  /***/ }),
10589
10589
 
10590
- /***/ "9ef9":
10591
- /***/ (function(module, exports, __webpack_require__) {
10590
+ /***/ "9f1a":
10591
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10592
+
10593
+ "use strict";
10594
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_DvForm_vue_vue_type_style_index_0_id_5311b22e_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ba77");
10595
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_DvForm_vue_vue_type_style_index_0_id_5311b22e_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_DvForm_vue_vue_type_style_index_0_id_5311b22e_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
10596
+ /* unused harmony reexport * */
10592
10597
 
10593
- // extracted by mini-css-extract-plugin
10594
10598
 
10595
10599
  /***/ }),
10596
10600
 
@@ -13535,13 +13539,6 @@ module.exports = DESCRIPTORS && fails(function () {
13535
13539
  });
13536
13540
 
13537
13541
 
13538
- /***/ }),
13539
-
13540
- /***/ "b00e":
13541
- /***/ (function(module, exports, __webpack_require__) {
13542
-
13543
- // extracted by mini-css-extract-plugin
13544
-
13545
13542
  /***/ }),
13546
13543
 
13547
13544
  /***/ "b20f":
@@ -13614,6 +13611,13 @@ module.exports = !fails(function () {
13614
13611
  });
13615
13612
 
13616
13613
 
13614
+ /***/ }),
13615
+
13616
+ /***/ "ba77":
13617
+ /***/ (function(module, exports, __webpack_require__) {
13618
+
13619
+ // extracted by mini-css-extract-plugin
13620
+
13617
13621
  /***/ }),
13618
13622
 
13619
13623
  /***/ "c04e":
@@ -19762,6 +19766,13 @@ var WeakMap = global.WeakMap;
19762
19766
  module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
19763
19767
 
19764
19768
 
19769
+ /***/ }),
19770
+
19771
+ /***/ "cf16":
19772
+ /***/ (function(module, exports, __webpack_require__) {
19773
+
19774
+ // extracted by mini-css-extract-plugin
19775
+
19765
19776
  /***/ }),
19766
19777
 
19767
19778
  /***/ "d012":
@@ -24094,17 +24105,6 @@ module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
24094
24105
  };
24095
24106
 
24096
24107
 
24097
- /***/ }),
24098
-
24099
- /***/ "f61a":
24100
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24101
-
24102
- "use strict";
24103
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_DvFormLayout_vue_vue_type_style_index_0_id_323bdcb5_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b00e");
24104
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_DvFormLayout_vue_vue_type_style_index_0_id_323bdcb5_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_v16_dist_index_js_ref_1_1_DvFormLayout_vue_vue_type_style_index_0_id_323bdcb5_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
24105
- /* unused harmony reexport * */
24106
-
24107
-
24108
24108
  /***/ }),
24109
24109
 
24110
24110
  /***/ "f70e":
@@ -24214,15 +24214,16 @@ if (typeof window !== 'undefined') {
24214
24214
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
24215
24215
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
24216
24216
 
24217
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--15-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--15-3!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/form/DvForm.vue?vue&type=template&id=570608da&scoped=true&ts=true
24217
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--15-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--15-3!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/form/DvForm.vue?vue&type=template&id=5311b22e&scoped=true&ts=true
24218
24218
 
24219
- function DvFormvue_type_template_id_570608da_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
24219
+ function DvFormvue_type_template_id_5311b22e_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
24220
24220
  var _ctx$desForm, _ctx$desForm$controls;
24221
24221
 
24222
24222
  const _component_dv_form_layout = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("dv-form-layout");
24223
24223
 
24224
24224
  return (_ctx$desForm = _ctx.desForm) !== null && _ctx$desForm !== void 0 && (_ctx$desForm$controls = _ctx$desForm.controls) !== null && _ctx$desForm$controls !== void 0 && _ctx$desForm$controls.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", {
24225
24225
  key: 0,
24226
+ ref: "formView",
24226
24227
  class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])('lo-form-container ' + ('lo-' + (_ctx.edit ? 'enable' : 'disable') + '-edit') + ' lo-class-style-' + _ctx.styleMode)
24227
24228
  }, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.desForm.controls, (item, i) => {
24228
24229
  return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_dv_form_layout, {
@@ -24251,7 +24252,7 @@ function DvFormvue_type_template_id_570608da_scoped_true_ts_true_render(_ctx, _c
24251
24252
  })]), 1032, ["control", "customFormats", "index"]);
24252
24253
  }), 128))], 2)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
24253
24254
  }
24254
- // CONCATENATED MODULE: ./src/components/form/DvForm.vue?vue&type=template&id=570608da&scoped=true&ts=true
24255
+ // CONCATENATED MODULE: ./src/components/form/DvForm.vue?vue&type=template&id=5311b22e&scoped=true&ts=true
24255
24256
 
24256
24257
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
24257
24258
  function _defineProperty(obj, key, value) {
@@ -24488,10 +24489,10 @@ function __classPrivateFieldSet(receiver, privateMap, value) {
24488
24489
  return value;
24489
24490
  }
24490
24491
 
24491
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--15-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--15-3!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/form/DvFormLayout.vue?vue&type=template&id=323bdcb5&scoped=true&ts=true
24492
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--15-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--15-3!./node_modules/vue-loader-v16/dist/templateLoader.js??ref--7!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/components/form/DvFormLayout.vue?vue&type=template&id=751c673b&scoped=true&ts=true
24492
24493
 
24493
24494
 
24494
- const _withScopeId = n => (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-323bdcb5"), n = n(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])(), n);
24495
+ const _withScopeId = n => (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-751c673b"), n = n(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])(), n);
24495
24496
 
24496
24497
  const _hoisted_1 = {
24497
24498
  class: "lo-control-box"
@@ -24530,7 +24531,7 @@ const _hoisted_12 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root
24530
24531
  const _hoisted_13 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" 选择文件 ");
24531
24532
 
24532
24533
  const _hoisted_14 = ["title"];
24533
- function DvFormLayoutvue_type_template_id_323bdcb5_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
24534
+ function DvFormLayoutvue_type_template_id_751c673b_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
24534
24535
  const _component_a_tooltip = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-tooltip");
24535
24536
 
24536
24537
  const _component_question_circle_outlined = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("question-circle-outlined");
@@ -25105,7 +25106,7 @@ function DvFormLayoutvue_type_template_id_323bdcb5_scoped_true_ts_true_render(_c
25105
25106
  _: 3
25106
25107
  }, 8, ["class", "layout", "style"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
25107
25108
  }
25108
- // CONCATENATED MODULE: ./src/components/form/DvFormLayout.vue?vue&type=template&id=323bdcb5&scoped=true&ts=true
25109
+ // CONCATENATED MODULE: ./src/components/form/DvFormLayout.vue?vue&type=template&id=751c673b&scoped=true&ts=true
25109
25110
 
25110
25111
  // CONCATENATED MODULE: ./node_modules/vue-class-component/dist/vue-class-component.esm-bundler.js
25111
25112
  /**
@@ -82037,8 +82038,7 @@ class form_tools_service_FormToolsService {
82037
82038
  this.desForms = forms;
82038
82039
  return Promise.resolve(form_tools_service_FormToolsService.LOAD_SUCCESS);
82039
82040
  } else {
82040
- const url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype";
82041
- return this.loadDesign(url, "static");
82041
+ return this.loadDesign([this.formConfig.url || DEFAULT_FORM_FILE_NAME]);
82042
82042
  }
82043
82043
  } else if (this.formConfig.loadMode === "dynamic") {
82044
82044
  if (this.formConfig.appId != null && this.formConfig.appId !== "") {
@@ -82051,7 +82051,8 @@ class form_tools_service_FormToolsService {
82051
82051
  if (res != null && res.code === 1) {
82052
82052
  if (res.data != null && res.data.desCacheVersion != null) {
82053
82053
  if (String(formVersion) !== String(res.data.desCacheVersion.cacheVersionNumber)) {
82054
- return this.loadDesign(res.data.desCacheVersion.storageAddress, "dynamic").then(resEx => {
82054
+ const formUrl = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + res.data.desCacheVersion.storageAddress;
82055
+ return this.loadDesign([formUrl]).then(resEx => {
82055
82056
  if (resEx.code === 1) {
82056
82057
  formStore.setVersion(res.data.desCacheVersion.cacheVersionNumber);
82057
82058
  }
@@ -82063,6 +82064,7 @@ class form_tools_service_FormToolsService {
82063
82064
  this.desForms = forms;
82064
82065
  }
82065
82066
 
82067
+ console.log(this.desForms);
82066
82068
  return Promise.resolve(form_tools_service_FormToolsService.LOAD_SUCCESS);
82067
82069
  }
82068
82070
  } else {
@@ -82081,60 +82083,100 @@ class form_tools_service_FormToolsService {
82081
82083
  msg: "动态加载需指定当前系统编号(appId)"
82082
82084
  });
82083
82085
  }
82086
+ } else if (this.formConfig.loadMode === "merge") {
82087
+ if (this.formConfig.urls) {
82088
+ return new Promise(resolve => {
82089
+ this.loadDesign(this.formConfig.urls || []).then(() => {
82090
+ resolve(form_tools_service_FormToolsService.LOAD_SUCCESS);
82091
+ });
82092
+ });
82093
+ } else {
82094
+ return this.mergeUrlByType(cache_type_enum["a" /* CacheType */].FORM.code).then(response => {
82095
+ if (formVersion === response.cacheVersionNumber) {
82096
+ if (forms) {
82097
+ this.desForms = forms;
82098
+ }
82099
+
82100
+ return Promise.resolve(form_tools_service_FormToolsService.LOAD_SUCCESS);
82101
+ } else {
82102
+ return new Promise(resolve => {
82103
+ this.loadDesign(response.storageAddress).then(() => {
82104
+ formStore.setVersion(response.cacheVersionNumber);
82105
+ resolve(form_tools_service_FormToolsService.LOAD_SUCCESS);
82106
+ });
82107
+ });
82108
+ }
82109
+ });
82110
+ }
82084
82111
  }
82085
82112
 
82086
82113
  return Promise.resolve(form_tools_service_FormToolsService.LOAD_FAIL);
82087
82114
  });
82088
82115
  }
82089
82116
  /**
82090
- * @description: 加载远程表单配置
82091
- * @author ChenRui
82092
- * @date 2020/11/20 17:30
82117
+ * @description: 获取表单或字典数据地址
82118
+ * @author ZPFly
82119
+ * @date 2022/10/18 20:43
82093
82120
  */
82094
82121
 
82095
82122
 
82096
- loadDesign(url, loadMode) {
82097
- const onlySimpleLoadConfig = !!this.formConfig.onlySimpleLoadConfig;
82098
-
82099
- if (loadMode === "dynamic") {
82100
- const headers = this.createFileDownloadAuthorizationHeader();
82101
- url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + url;
82102
- return this.fetch(url, {}, undefined, "GET", headers, onlySimpleLoadConfig).then(desForms => {
82103
- const newDesForms = [];
82123
+ mergeUrlByType(type) {
82124
+ var _this$formConfig$appI;
82104
82125
 
82105
- if (desForms != null && desForms.length > 0) {
82106
- desForms.filter(item => item.desFormLayouts != null && item.desFormLayouts.length > 0).forEach(item => {
82107
- const newDesForm = this.formatDesForm(item);
82126
+ const reqAddress = [];
82127
+ const appIds = (_this$formConfig$appI = this.formConfig.appId) === null || _this$formConfig$appI === void 0 ? void 0 : _this$formConfig$appI.split(",");
82128
+ const url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype";
82129
+ const downloadUrl = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=";
82130
+ appIds === null || appIds === void 0 ? void 0 : appIds.forEach(appId => {
82131
+ const query = {
82132
+ appId: appId,
82133
+ cacheType: type
82134
+ };
82135
+ reqAddress.push(this.fetch(url, query));
82136
+ });
82137
+ return Promise.all(reqAddress).then(resp => {
82138
+ const response = {};
82139
+ const address = [];
82140
+ const cacheVersionNumber = [];
82141
+ resp.forEach(res => {
82142
+ var _res$data, _res$data$desCacheVer;
82108
82143
 
82109
- if (newDesForm != null) {
82110
- newDesForms.push(newDesForm);
82111
- }
82112
- });
82144
+ // 数据下载地址
82145
+ if (res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && (_res$data$desCacheVer = _res$data.desCacheVersion) !== null && _res$data$desCacheVer !== void 0 && _res$data$desCacheVer.storageAddress) {
82146
+ cacheVersionNumber.push(res.data.desCacheVersion.cacheVersionNumber);
82147
+ address.push(downloadUrl + res.data.desCacheVersion.storageAddress);
82113
82148
  }
82114
-
82115
- this.desForms = newDesForms;
82116
- formStore.setForms(this.desForms);
82117
- return form_tools_service_FormToolsService.LOAD_SUCCESS;
82118
82149
  });
82119
- } else {
82120
- return this.mergeFetchDesign(url).then(desForms => {
82121
- const newDesForms = [];
82150
+ response.cacheVersionNumber = cacheVersionNumber.join(",");
82151
+ response.storageAddress = address;
82152
+ return response;
82153
+ });
82154
+ }
82155
+ /**
82156
+ * @description: 加载远程表单配置
82157
+ * @author ChenRui
82158
+ * @date 2020/11/20 17:30
82159
+ */
82122
82160
 
82123
- if (desForms != null && desForms.length > 0) {
82124
- desForms.filter(item => item.desFormLayouts != null && item.desFormLayouts.length > 0).forEach(item => {
82125
- const newDesForm = this.formatDesForm(item);
82126
82161
 
82127
- if (newDesForm != null) {
82128
- newDesForms.push(newDesForm);
82129
- }
82130
- });
82131
- }
82162
+ loadDesign(urls) {
82163
+ return this.mergeFetchDesign(urls).then(desForms => {
82164
+ const newDesForms = [];
82132
82165
 
82133
- this.desForms = newDesForms;
82134
- formStore.setForms(this.desForms);
82135
- return form_tools_service_FormToolsService.LOAD_SUCCESS;
82136
- });
82137
- }
82166
+ if (desForms != null && desForms.length > 0) {
82167
+ desForms.filter(item => item.desFormLayouts != null && item.desFormLayouts.length > 0).forEach(item => {
82168
+ const newDesForm = this.formatDesForm(item);
82169
+
82170
+ if (newDesForm != null) {
82171
+ newDesForms.push(newDesForm);
82172
+ }
82173
+ });
82174
+ }
82175
+
82176
+ this.desForms = newDesForms;
82177
+ formStore.setForms(this.desForms);
82178
+ return form_tools_service_FormToolsService.LOAD_SUCCESS;
82179
+ });
82138
82180
  }
82139
82181
  /**
82140
82182
  * @description: 合并多个应用表单
@@ -82143,11 +82185,12 @@ class form_tools_service_FormToolsService {
82143
82185
  */
82144
82186
 
82145
82187
 
82146
- mergeFetchDesign(url) {
82147
- const urls = this.formConfig.urls || [url];
82188
+ mergeFetchDesign(urls) {
82189
+ const onlySimpleLoadConfig = !!this.formConfig.onlySimpleLoadConfig;
82190
+ const headers = this.createFileDownloadAuthorizationHeader();
82148
82191
  const fetches = [];
82149
82192
  urls.forEach(url => {
82150
- fetches.push(this.fetch(url, {}, undefined, "GET", undefined, !!this.formConfig.onlySimpleLoadConfig));
82193
+ fetches.push(this.fetch(url, {}, undefined, "GET", headers, onlySimpleLoadConfig));
82151
82194
  });
82152
82195
  return Promise.all(fetches).then(desForms => {
82153
82196
  let newDesForms = [];
@@ -82176,7 +82219,7 @@ class form_tools_service_FormToolsService {
82176
82219
  this.mapSysDictTreeDetailOptions = mapTreeDicts;
82177
82220
  return form_tools_service_FormToolsService.LOAD_SUCCESS;
82178
82221
  } else {
82179
- return this.loadDict(url, "static");
82222
+ return this.loadDict([url]);
82180
82223
  }
82181
82224
  } else if (this.formConfig.loadMode === "dynamic") {
82182
82225
  if (this.formConfig.appId) {
@@ -82203,8 +82246,10 @@ class form_tools_service_FormToolsService {
82203
82246
  desCacheVersion = res.data[0].desCacheVersion;
82204
82247
  }
82205
82248
 
82249
+ const distUrl = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + desCacheVersion.storageAddress;
82250
+
82206
82251
  if (String(dictVersion) !== String(desCacheVersion.cacheVersionNumber)) {
82207
- return this.loadDict(desCacheVersion.storageAddress, "dynamic").then(resEx => {
82252
+ return this.loadDict([distUrl]).then(resEx => {
82208
82253
  if (resEx.code === 1) {
82209
82254
  dictStore.setVersion(desCacheVersion.cacheVersionNumber);
82210
82255
  }
@@ -82237,6 +82282,26 @@ class form_tools_service_FormToolsService {
82237
82282
  msg: "动态加载需指定当前系统编号(appId)"
82238
82283
  };
82239
82284
  }
82285
+ } else if (this.formConfig.loadMode === "merge") {
82286
+ return this.mergeUrlByType(cache_type_enum["a" /* CacheType */].DICT.code).then(response => {
82287
+ if (dictVersion === response.cacheVersionNumber) {
82288
+ if (dicts != null || treeDicts != null) {
82289
+ this.sysDictDetailOptions = dicts;
82290
+ this.sysDictTreeDetailOptions = treeDicts;
82291
+ this.mapSysDictDetailOptions = mapDicts;
82292
+ this.mapSysDictTreeDetailOptions = mapTreeDicts;
82293
+ }
82294
+
82295
+ return form_tools_service_FormToolsService.LOAD_SUCCESS;
82296
+ } else {
82297
+ return new Promise(resolve => {
82298
+ this.loadDict(response.storageAddress).then(() => {
82299
+ formStore.setVersion(response.cacheVersionNumber);
82300
+ resolve(form_tools_service_FormToolsService.LOAD_SUCCESS);
82301
+ });
82302
+ });
82303
+ }
82304
+ });
82240
82305
  }
82241
82306
 
82242
82307
  return form_tools_service_FormToolsService.LOAD_FAIL;
@@ -82249,63 +82314,56 @@ class form_tools_service_FormToolsService {
82249
82314
  */
82250
82315
 
82251
82316
 
82252
- loadDict(url, loadMode) {
82253
- const onlySimpleLoadConfig = !!this.formConfig.onlySimpleLoadConfig;
82254
- let sysDictInfos = [];
82255
-
82256
- if (loadMode === "dynamic") {
82257
- const headers = this.createFileDownloadAuthorizationHeader();
82258
- url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + url;
82259
- return this.fetch(url, {}, undefined, "GET", headers, onlySimpleLoadConfig).then(res => {
82260
- sysDictInfos = res;
82261
-
82262
- if (sysDictInfos != null && sysDictInfos.length > 0) {
82263
- // 数据格式化
82264
- const dictionaryFormatCollection = this.inidDictOptions(sysDictInfos);
82265
- this.sysDictDetailOptions = dictionaryFormatCollection.sysDictDetailOptions || [];
82266
- this.sysDictTreeDetailOptions = dictionaryFormatCollection.sysDictTreeDetailOptions || [];
82267
- this.mapSysDictDetailOptions = dictionaryFormatCollection.mapSysDictDetailOptions;
82268
- this.mapSysDictTreeDetailOptions = dictionaryFormatCollection.mapSysDictTreeDetailOptions; // 字典本地存储
82269
-
82270
- if (dictionaryFormatCollection.sysDictDetailOptions && dictionaryFormatCollection.sysDictDetailOptions.length > 0) {
82271
- dictStore.setDicts(dictionaryFormatCollection.sysDictDetailOptions);
82272
- }
82273
-
82274
- if (dictionaryFormatCollection.sysDictTreeDetailOptions && dictionaryFormatCollection.sysDictTreeDetailOptions.length > 0) {
82275
- dictStore.setTreeDicts(dictionaryFormatCollection.sysDictTreeDetailOptions);
82276
- }
82277
-
82278
- dictStore.setMapDicts(dictionaryFormatCollection.mapSysDictDetailOptions || null);
82279
- dictStore.setMapTreeDicts(dictionaryFormatCollection.mapSysDictTreeDetailOptions || null);
82280
- }
82281
-
82282
- return form_tools_service_FormToolsService.LOAD_SUCCESS;
82283
- });
82284
- } else {
82285
- return this.mergeFetchDict(url).then(sysDictInfos => {
82286
- if (sysDictInfos != null) {
82287
- // 数据格式化
82288
- const dictionaryFormatCollection = this.inidDictOptions(sysDictInfos);
82289
- this.sysDictDetailOptions = dictionaryFormatCollection.sysDictDetailOptions || [];
82290
- this.sysDictTreeDetailOptions = dictionaryFormatCollection.sysDictTreeDetailOptions || [];
82291
- this.mapSysDictDetailOptions = dictionaryFormatCollection.mapSysDictDetailOptions;
82292
- this.mapSysDictTreeDetailOptions = dictionaryFormatCollection.mapSysDictTreeDetailOptions; // 字典本地存储
82293
-
82294
- if (dictionaryFormatCollection.sysDictDetailOptions && dictionaryFormatCollection.sysDictDetailOptions.length > 0) {
82295
- dictStore.setDicts(dictionaryFormatCollection.sysDictDetailOptions);
82296
- }
82297
-
82298
- if (dictionaryFormatCollection.sysDictTreeDetailOptions && dictionaryFormatCollection.sysDictTreeDetailOptions.length > 0) {
82299
- dictStore.setTreeDicts(dictionaryFormatCollection.sysDictTreeDetailOptions);
82300
- }
82301
-
82302
- dictStore.setMapDicts(dictionaryFormatCollection.mapSysDictDetailOptions || null);
82303
- dictStore.setMapTreeDicts(dictionaryFormatCollection.mapSysDictTreeDetailOptions || null);
82304
- }
82305
-
82306
- return form_tools_service_FormToolsService.LOAD_SUCCESS;
82307
- });
82308
- }
82317
+ loadDict(urls) {
82318
+ return this.mergeFetchDict(urls).then(sysDictInfos => {
82319
+ if (sysDictInfos != null) {
82320
+ // 数据格式化
82321
+ const dictionaryFormatCollection = this.inidDictOptions(sysDictInfos);
82322
+ this.sysDictDetailOptions = dictionaryFormatCollection.sysDictDetailOptions || [];
82323
+ this.sysDictTreeDetailOptions = dictionaryFormatCollection.sysDictTreeDetailOptions || [];
82324
+ this.mapSysDictDetailOptions = dictionaryFormatCollection.mapSysDictDetailOptions;
82325
+ this.mapSysDictTreeDetailOptions = dictionaryFormatCollection.mapSysDictTreeDetailOptions; // 字典本地存储
82326
+
82327
+ if (dictionaryFormatCollection.sysDictDetailOptions && dictionaryFormatCollection.sysDictDetailOptions.length > 0) {
82328
+ dictStore.setDicts(dictionaryFormatCollection.sysDictDetailOptions);
82329
+ }
82330
+
82331
+ if (dictionaryFormatCollection.sysDictTreeDetailOptions && dictionaryFormatCollection.sysDictTreeDetailOptions.length > 0) {
82332
+ dictStore.setTreeDicts(dictionaryFormatCollection.sysDictTreeDetailOptions);
82333
+ }
82334
+
82335
+ dictStore.setMapDicts(dictionaryFormatCollection.mapSysDictDetailOptions || null);
82336
+ dictStore.setMapTreeDicts(dictionaryFormatCollection.mapSysDictTreeDetailOptions || null);
82337
+ }
82338
+
82339
+ return form_tools_service_FormToolsService.LOAD_SUCCESS;
82340
+ }); // const onlySimpleLoadConfig = !!this.formConfig.onlySimpleLoadConfig;
82341
+ // let sysDictInfos: SysDictInfo[] = [];
82342
+ // if (loadMode === "dynamic") {
82343
+ // const headers = this.createFileDownloadAuthorizationHeader();
82344
+ // url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + url;
82345
+ // return this.fetch(url, {}, undefined, "GET", headers, onlySimpleLoadConfig).then((res: any) => {
82346
+ // sysDictInfos = res;
82347
+ // if (sysDictInfos != null && sysDictInfos.length > 0) {
82348
+ // // 数据格式化
82349
+ // const dictionaryFormatCollection: DictionaryFormatCollection = this.inidDictOptions(sysDictInfos);
82350
+ // this.sysDictDetailOptions = dictionaryFormatCollection.sysDictDetailOptions || [];
82351
+ // this.sysDictTreeDetailOptions = dictionaryFormatCollection.sysDictTreeDetailOptions || [];
82352
+ // this.mapSysDictDetailOptions = dictionaryFormatCollection.mapSysDictDetailOptions;
82353
+ // this.mapSysDictTreeDetailOptions = dictionaryFormatCollection.mapSysDictTreeDetailOptions;
82354
+ // // 字典本地存储
82355
+ // if (dictionaryFormatCollection.sysDictDetailOptions && dictionaryFormatCollection.sysDictDetailOptions.length > 0) {
82356
+ // dictStore.setDicts(dictionaryFormatCollection.sysDictDetailOptions);
82357
+ // }
82358
+ // if (dictionaryFormatCollection.sysDictTreeDetailOptions && dictionaryFormatCollection.sysDictTreeDetailOptions.length > 0) {
82359
+ // dictStore.setTreeDicts(dictionaryFormatCollection.sysDictTreeDetailOptions);
82360
+ // }
82361
+ // dictStore.setMapDicts(dictionaryFormatCollection.mapSysDictDetailOptions || null);
82362
+ // dictStore.setMapTreeDicts(dictionaryFormatCollection.mapSysDictTreeDetailOptions || null);
82363
+ // }
82364
+ // return FormToolsService.LOAD_SUCCESS;
82365
+ // });
82366
+ // }
82309
82367
  }
82310
82368
  /**
82311
82369
  * @description: 合并多个应用字典
@@ -82315,9 +82373,8 @@ class form_tools_service_FormToolsService {
82315
82373
 
82316
82374
 
82317
82375
  mergeFetchDict(dictUrl) {
82318
- const urls = this.formConfig.dictUrls || [dictUrl];
82319
82376
  const fetchDicts = [];
82320
- urls.forEach(url => {
82377
+ dictUrl.forEach(url => {
82321
82378
  fetchDicts.push(this.fetch(url, {}, undefined, "GET", undefined, !!this.formConfig.onlySimpleLoadConfig));
82322
82379
  });
82323
82380
  return Promise.all(fetchDicts).then(dictInfos => {
@@ -84910,8 +84967,8 @@ DvFormLayoutvue_type_script_lang_ts_DvFormLayout = __decorate([Options({
84910
84967
  /* harmony default export */ var DvFormLayoutvue_type_script_lang_ts = (DvFormLayoutvue_type_script_lang_ts_DvFormLayout);
84911
84968
  // CONCATENATED MODULE: ./src/components/form/DvFormLayout.vue?vue&type=script&lang=ts
84912
84969
 
84913
- // EXTERNAL MODULE: ./src/components/form/DvFormLayout.vue?vue&type=style&index=0&id=323bdcb5&lang=scss&scoped=true
84914
- var DvFormLayoutvue_type_style_index_0_id_323bdcb5_lang_scss_scoped_true = __webpack_require__("f61a");
84970
+ // EXTERNAL MODULE: ./src/components/form/DvFormLayout.vue?vue&type=style&index=0&id=751c673b&lang=scss&scoped=true
84971
+ var DvFormLayoutvue_type_style_index_0_id_751c673b_lang_scss_scoped_true = __webpack_require__("123b");
84915
84972
 
84916
84973
  // CONCATENATED MODULE: ./src/components/form/DvFormLayout.vue
84917
84974
 
@@ -84921,7 +84978,7 @@ var DvFormLayoutvue_type_style_index_0_id_323bdcb5_lang_scss_scoped_true = __web
84921
84978
 
84922
84979
 
84923
84980
 
84924
- const DvFormLayout_exports_ = /*#__PURE__*/exportHelper_default()(DvFormLayoutvue_type_script_lang_ts, [['render',DvFormLayoutvue_type_template_id_323bdcb5_scoped_true_ts_true_render],['__scopeId',"data-v-323bdcb5"]])
84981
+ const DvFormLayout_exports_ = /*#__PURE__*/exportHelper_default()(DvFormLayoutvue_type_script_lang_ts, [['render',DvFormLayoutvue_type_template_id_751c673b_scoped_true_ts_true_render],['__scopeId',"data-v-751c673b"]])
84925
84982
 
84926
84983
  /* harmony default export */ var form_DvFormLayout = (DvFormLayout_exports_);
84927
84984
  // CONCATENATED MODULE: ./src/services/date-format.service.ts
@@ -85285,7 +85342,8 @@ class FormApi_FormApi {
85285
85342
  getText(key) {
85286
85343
  const control = this.getControl(key);
85287
85344
 
85288
- if (control && control instanceof FormControl_FormControl) {
85345
+ if (control) {
85346
+ //control && control instanceof FormControl
85289
85347
  return control.text();
85290
85348
  }
85291
85349
 
@@ -85301,7 +85359,8 @@ class FormApi_FormApi {
85301
85359
  getOptions(key) {
85302
85360
  const control = this.getControl(key);
85303
85361
 
85304
- if (control && control instanceof FormControl_FormControl && control.controlAttr) {
85362
+ if (control && control.controlAttr) {
85363
+ //control && control instanceof FormControl && control.controlAttr
85305
85364
  return extractOptions(control.controlAttr);
85306
85365
  }
85307
85366
 
@@ -85336,7 +85395,8 @@ class FormApi_FormApi {
85336
85395
  getAttribute(key, attribute) {
85337
85396
  const control = this.getControl(key);
85338
85397
 
85339
- if (control && control instanceof FormControl_FormControl && control.controlAttr) {
85398
+ if (control && control.controlAttr) {
85399
+ //control && control instanceof FormControl && control.controlAttr
85340
85400
  return control.controlAttr[attribute];
85341
85401
  }
85342
85402
  }
@@ -85369,7 +85429,8 @@ class FormApi_FormApi {
85369
85429
  getValidate(key, name) {
85370
85430
  const control = this.getControl(key);
85371
85431
 
85372
- if (control && control instanceof FormControl_FormControl) {
85432
+ if (control) {
85433
+ //control && control instanceof FormControl
85373
85434
  return control.getValidate(name);
85374
85435
  }
85375
85436
  }
@@ -85383,7 +85444,8 @@ class FormApi_FormApi {
85383
85444
  removeValidate(key, validateName) {
85384
85445
  const control = this.getControl(key);
85385
85446
 
85386
- if (control && control instanceof FormControl_FormControl) {
85447
+ if (control) {
85448
+ //control && control instanceof FormControl
85387
85449
  const validates = control.validates;
85388
85450
 
85389
85451
  if (validates && validates.length > 0) {
@@ -85405,7 +85467,8 @@ class FormApi_FormApi {
85405
85467
  removeAllValidates(key) {
85406
85468
  const control = this.getControl(key);
85407
85469
 
85408
- if (control && control instanceof FormControl_FormControl) {
85470
+ if (control) {
85471
+ //control && control instanceof FormControl
85409
85472
  control.validates = [];
85410
85473
  }
85411
85474
  }
@@ -85419,7 +85482,8 @@ class FormApi_FormApi {
85419
85482
  getValidates(key) {
85420
85483
  const control = this.getControl(key);
85421
85484
 
85422
- if (control && control instanceof FormControl_FormControl) {
85485
+ if (control) {
85486
+ //control && control instanceof FormControl
85423
85487
  return control.validates;
85424
85488
  }
85425
85489
 
@@ -85456,7 +85520,8 @@ class FormApi_FormApi {
85456
85520
  setTimeout(() => {
85457
85521
  control = this.getControl(key);
85458
85522
 
85459
- if (control && control instanceof FormControl_FormControl) {
85523
+ if (control) {
85524
+ //control && control instanceof FormControl
85460
85525
  this.setValidateInner(control, validate, isCover);
85461
85526
  }
85462
85527
  });
@@ -85669,7 +85734,8 @@ class FormApi_FormApi {
85669
85734
  setTimeout(() => {
85670
85735
  control = this.getControl(propertyName, undefined, false);
85671
85736
 
85672
- if (control && control instanceof FormControl_FormControl) {
85737
+ if (control) {
85738
+ //control && control instanceof FormControl
85673
85739
  const history = (fieldChangeHistory[propertyName] || []).sort((a, b) => {
85674
85740
  const aTime = new Date(a.time).getTime();
85675
85741
  const bTime = new Date(b.time).getTime();
@@ -85681,7 +85747,8 @@ class FormApi_FormApi {
85681
85747
  } else {
85682
85748
  control = this.getControl(propertyName, undefined, false);
85683
85749
 
85684
- if (control && control instanceof FormControl_FormControl) {
85750
+ if (control) {
85751
+ //control && control instanceof FormControl
85685
85752
  const history = (fieldChangeHistory[propertyName] || []).sort((a, b) => {
85686
85753
  const aTime = new Date(a.time).getTime();
85687
85754
  const bTime = new Date(b.time).getTime();
@@ -85850,7 +85917,8 @@ class FormApi_FormApi {
85850
85917
 
85851
85918
 
85852
85919
  setControlOptions(control, key, data, defaultVal) {
85853
- if (control && control instanceof FormControl_FormControl && control.controlAttr) {
85920
+ if (control && control.controlAttr) {
85921
+ //control && control instanceof FormControl && control.controlAttr)
85854
85922
  storageOptions(control.controlAttr, data);
85855
85923
  this.setAttribute(key, Attribute.IsOptionType, constants_enum["k" /* OptionType */].Fixed.code);
85856
85924
  this.setAttribute(key, Attribute.OptionConfig, data);
@@ -85868,7 +85936,8 @@ class FormApi_FormApi {
85868
85936
 
85869
85937
 
85870
85938
  setControlAttribute(control, attribute, data) {
85871
- if (control && control instanceof FormControl_FormControl && attribute) {
85939
+ if (control && attribute) {
85940
+ //control && control instanceof FormControl && attribute
85872
85941
  control.controlAttr[attribute] = data;
85873
85942
  }
85874
85943
  }
@@ -86507,6 +86576,24 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends Vue {
86507
86576
  }
86508
86577
 
86509
86578
  this.$emit("complete");
86579
+ this.$nextTick(() => {
86580
+ try {
86581
+ const formView = this.$refs.formView;
86582
+ const cons = formView.getElementsByClassName("lo-control-container");
86583
+ const len = cons.length;
86584
+
86585
+ if (len > 2) {
86586
+ const con1 = cons[len - 1];
86587
+ const con2 = cons[len - 2];
86588
+
86589
+ if (con1.clientWidth === con1.clientWidth && con1.offsetLeft !== con2.offsetLeft) {
86590
+ con1.style.width = "200%";
86591
+ }
86592
+ }
86593
+ } catch (e) {
86594
+ console.error("自动修改表单宽度错误" + e);
86595
+ }
86596
+ });
86510
86597
  }
86511
86598
  }
86512
86599
  /**
@@ -86933,8 +87020,8 @@ DvFormvue_type_script_lang_ts_DyForm = __decorate([Options({
86933
87020
  /* harmony default export */ var DvFormvue_type_script_lang_ts = (DvFormvue_type_script_lang_ts_DyForm);
86934
87021
  // CONCATENATED MODULE: ./src/components/form/DvForm.vue?vue&type=script&lang=ts
86935
87022
 
86936
- // EXTERNAL MODULE: ./src/components/form/DvForm.vue?vue&type=style&index=0&id=570608da&lang=scss&scoped=true
86937
- var DvFormvue_type_style_index_0_id_570608da_lang_scss_scoped_true = __webpack_require__("8774");
87023
+ // EXTERNAL MODULE: ./src/components/form/DvForm.vue?vue&type=style&index=0&id=5311b22e&lang=scss&scoped=true
87024
+ var DvFormvue_type_style_index_0_id_5311b22e_lang_scss_scoped_true = __webpack_require__("9f1a");
86938
87025
 
86939
87026
  // CONCATENATED MODULE: ./src/components/form/DvForm.vue
86940
87027
 
@@ -86944,7 +87031,7 @@ var DvFormvue_type_style_index_0_id_570608da_lang_scss_scoped_true = __webpack_r
86944
87031
 
86945
87032
 
86946
87033
 
86947
- const DvForm_exports_ = /*#__PURE__*/exportHelper_default()(DvFormvue_type_script_lang_ts, [['render',DvFormvue_type_template_id_570608da_scoped_true_ts_true_render],['__scopeId',"data-v-570608da"]])
87034
+ const DvForm_exports_ = /*#__PURE__*/exportHelper_default()(DvFormvue_type_script_lang_ts, [['render',DvFormvue_type_template_id_5311b22e_scoped_true_ts_true_render],['__scopeId',"data-v-5311b22e"]])
86948
87035
 
86949
87036
  /* harmony default export */ var DvForm = (DvForm_exports_);
86950
87037
  // EXTERNAL MODULE: ./node_modules/decimal.js/decimal.js