@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.
@@ -218,6 +218,17 @@ module.exports = function (argument) {
218
218
  };
219
219
 
220
220
 
221
+ /***/ }),
222
+
223
+ /***/ "123b":
224
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
225
+
226
+ "use strict";
227
+ /* 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");
228
+ /* 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__);
229
+ /* unused harmony reexport * */
230
+
231
+
221
232
  /***/ }),
222
233
 
223
234
  /***/ "13d2":
@@ -10345,17 +10356,6 @@ module.exports = SPECIAL_DOCUMENT_ALL ? function (it) {
10345
10356
  };
10346
10357
 
10347
10358
 
10348
- /***/ }),
10349
-
10350
- /***/ "8774":
10351
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10352
-
10353
- "use strict";
10354
- /* 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");
10355
- /* 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__);
10356
- /* unused harmony reexport * */
10357
-
10358
-
10359
10359
  /***/ }),
10360
10360
 
10361
10361
  /***/ "8925":
@@ -10578,10 +10578,14 @@ const FormFieldClass = {
10578
10578
 
10579
10579
  /***/ }),
10580
10580
 
10581
- /***/ "9ef9":
10582
- /***/ (function(module, exports, __webpack_require__) {
10581
+ /***/ "9f1a":
10582
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10583
+
10584
+ "use strict";
10585
+ /* 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");
10586
+ /* 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__);
10587
+ /* unused harmony reexport * */
10583
10588
 
10584
- // extracted by mini-css-extract-plugin
10585
10589
 
10586
10590
  /***/ }),
10587
10591
 
@@ -13526,13 +13530,6 @@ module.exports = DESCRIPTORS && fails(function () {
13526
13530
  });
13527
13531
 
13528
13532
 
13529
- /***/ }),
13530
-
13531
- /***/ "b00e":
13532
- /***/ (function(module, exports, __webpack_require__) {
13533
-
13534
- // extracted by mini-css-extract-plugin
13535
-
13536
13533
  /***/ }),
13537
13534
 
13538
13535
  /***/ "b20f":
@@ -13605,6 +13602,13 @@ module.exports = !fails(function () {
13605
13602
  });
13606
13603
 
13607
13604
 
13605
+ /***/ }),
13606
+
13607
+ /***/ "ba77":
13608
+ /***/ (function(module, exports, __webpack_require__) {
13609
+
13610
+ // extracted by mini-css-extract-plugin
13611
+
13608
13612
  /***/ }),
13609
13613
 
13610
13614
  /***/ "c04e":
@@ -19753,6 +19757,13 @@ var WeakMap = global.WeakMap;
19753
19757
  module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
19754
19758
 
19755
19759
 
19760
+ /***/ }),
19761
+
19762
+ /***/ "cf16":
19763
+ /***/ (function(module, exports, __webpack_require__) {
19764
+
19765
+ // extracted by mini-css-extract-plugin
19766
+
19756
19767
  /***/ }),
19757
19768
 
19758
19769
  /***/ "d012":
@@ -24085,17 +24096,6 @@ module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
24085
24096
  };
24086
24097
 
24087
24098
 
24088
- /***/ }),
24089
-
24090
- /***/ "f61a":
24091
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24092
-
24093
- "use strict";
24094
- /* 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");
24095
- /* 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__);
24096
- /* unused harmony reexport * */
24097
-
24098
-
24099
24099
  /***/ }),
24100
24100
 
24101
24101
  /***/ "f70e":
@@ -24205,15 +24205,16 @@ if (typeof window !== 'undefined') {
24205
24205
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
24206
24206
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
24207
24207
 
24208
- // 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
24208
+ // 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
24209
24209
 
24210
- function DvFormvue_type_template_id_570608da_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
24210
+ function DvFormvue_type_template_id_5311b22e_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
24211
24211
  var _ctx$desForm, _ctx$desForm$controls;
24212
24212
 
24213
24213
  const _component_dv_form_layout = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("dv-form-layout");
24214
24214
 
24215
24215
  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", {
24216
24216
  key: 0,
24217
+ ref: "formView",
24217
24218
  class: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["normalizeClass"])('lo-form-container ' + ('lo-' + (_ctx.edit ? 'enable' : 'disable') + '-edit') + ' lo-class-style-' + _ctx.styleMode)
24218
24219
  }, [(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) => {
24219
24220
  return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_dv_form_layout, {
@@ -24242,7 +24243,7 @@ function DvFormvue_type_template_id_570608da_scoped_true_ts_true_render(_ctx, _c
24242
24243
  })]), 1032, ["control", "customFormats", "index"]);
24243
24244
  }), 128))], 2)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
24244
24245
  }
24245
- // CONCATENATED MODULE: ./src/components/form/DvForm.vue?vue&type=template&id=570608da&scoped=true&ts=true
24246
+ // CONCATENATED MODULE: ./src/components/form/DvForm.vue?vue&type=template&id=5311b22e&scoped=true&ts=true
24246
24247
 
24247
24248
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
24248
24249
  function _defineProperty(obj, key, value) {
@@ -24479,10 +24480,10 @@ function __classPrivateFieldSet(receiver, privateMap, value) {
24479
24480
  return value;
24480
24481
  }
24481
24482
 
24482
- // 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
24483
+ // 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
24483
24484
 
24484
24485
 
24485
- 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);
24486
+ 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);
24486
24487
 
24487
24488
  const _hoisted_1 = {
24488
24489
  class: "lo-control-box"
@@ -24521,7 +24522,7 @@ const _hoisted_12 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root
24521
24522
  const _hoisted_13 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(" 选择文件 ");
24522
24523
 
24523
24524
  const _hoisted_14 = ["title"];
24524
- function DvFormLayoutvue_type_template_id_323bdcb5_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
24525
+ function DvFormLayoutvue_type_template_id_751c673b_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
24525
24526
  const _component_a_tooltip = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-tooltip");
24526
24527
 
24527
24528
  const _component_question_circle_outlined = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("question-circle-outlined");
@@ -25096,7 +25097,7 @@ function DvFormLayoutvue_type_template_id_323bdcb5_scoped_true_ts_true_render(_c
25096
25097
  _: 3
25097
25098
  }, 8, ["class", "layout", "style"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
25098
25099
  }
25099
- // CONCATENATED MODULE: ./src/components/form/DvFormLayout.vue?vue&type=template&id=323bdcb5&scoped=true&ts=true
25100
+ // CONCATENATED MODULE: ./src/components/form/DvFormLayout.vue?vue&type=template&id=751c673b&scoped=true&ts=true
25100
25101
 
25101
25102
  // CONCATENATED MODULE: ./node_modules/vue-class-component/dist/vue-class-component.esm-bundler.js
25102
25103
  /**
@@ -82028,8 +82029,7 @@ class form_tools_service_FormToolsService {
82028
82029
  this.desForms = forms;
82029
82030
  return Promise.resolve(form_tools_service_FormToolsService.LOAD_SUCCESS);
82030
82031
  } else {
82031
- const url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype";
82032
- return this.loadDesign(url, "static");
82032
+ return this.loadDesign([this.formConfig.url || DEFAULT_FORM_FILE_NAME]);
82033
82033
  }
82034
82034
  } else if (this.formConfig.loadMode === "dynamic") {
82035
82035
  if (this.formConfig.appId != null && this.formConfig.appId !== "") {
@@ -82042,7 +82042,8 @@ class form_tools_service_FormToolsService {
82042
82042
  if (res != null && res.code === 1) {
82043
82043
  if (res.data != null && res.data.desCacheVersion != null) {
82044
82044
  if (String(formVersion) !== String(res.data.desCacheVersion.cacheVersionNumber)) {
82045
- return this.loadDesign(res.data.desCacheVersion.storageAddress, "dynamic").then(resEx => {
82045
+ const formUrl = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + res.data.desCacheVersion.storageAddress;
82046
+ return this.loadDesign([formUrl]).then(resEx => {
82046
82047
  if (resEx.code === 1) {
82047
82048
  formStore.setVersion(res.data.desCacheVersion.cacheVersionNumber);
82048
82049
  }
@@ -82054,6 +82055,7 @@ class form_tools_service_FormToolsService {
82054
82055
  this.desForms = forms;
82055
82056
  }
82056
82057
 
82058
+ console.log(this.desForms);
82057
82059
  return Promise.resolve(form_tools_service_FormToolsService.LOAD_SUCCESS);
82058
82060
  }
82059
82061
  } else {
@@ -82072,60 +82074,100 @@ class form_tools_service_FormToolsService {
82072
82074
  msg: "动态加载需指定当前系统编号(appId)"
82073
82075
  });
82074
82076
  }
82077
+ } else if (this.formConfig.loadMode === "merge") {
82078
+ if (this.formConfig.urls) {
82079
+ return new Promise(resolve => {
82080
+ this.loadDesign(this.formConfig.urls || []).then(() => {
82081
+ resolve(form_tools_service_FormToolsService.LOAD_SUCCESS);
82082
+ });
82083
+ });
82084
+ } else {
82085
+ return this.mergeUrlByType(cache_type_enum["a" /* CacheType */].FORM.code).then(response => {
82086
+ if (formVersion === response.cacheVersionNumber) {
82087
+ if (forms) {
82088
+ this.desForms = forms;
82089
+ }
82090
+
82091
+ return Promise.resolve(form_tools_service_FormToolsService.LOAD_SUCCESS);
82092
+ } else {
82093
+ return new Promise(resolve => {
82094
+ this.loadDesign(response.storageAddress).then(() => {
82095
+ formStore.setVersion(response.cacheVersionNumber);
82096
+ resolve(form_tools_service_FormToolsService.LOAD_SUCCESS);
82097
+ });
82098
+ });
82099
+ }
82100
+ });
82101
+ }
82075
82102
  }
82076
82103
 
82077
82104
  return Promise.resolve(form_tools_service_FormToolsService.LOAD_FAIL);
82078
82105
  });
82079
82106
  }
82080
82107
  /**
82081
- * @description: 加载远程表单配置
82082
- * @author ChenRui
82083
- * @date 2020/11/20 17:30
82108
+ * @description: 获取表单或字典数据地址
82109
+ * @author ZPFly
82110
+ * @date 2022/10/18 20:43
82084
82111
  */
82085
82112
 
82086
82113
 
82087
- loadDesign(url, loadMode) {
82088
- const onlySimpleLoadConfig = !!this.formConfig.onlySimpleLoadConfig;
82089
-
82090
- if (loadMode === "dynamic") {
82091
- const headers = this.createFileDownloadAuthorizationHeader();
82092
- url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + url;
82093
- return this.fetch(url, {}, undefined, "GET", headers, onlySimpleLoadConfig).then(desForms => {
82094
- const newDesForms = [];
82114
+ mergeUrlByType(type) {
82115
+ var _this$formConfig$appI;
82095
82116
 
82096
- if (desForms != null && desForms.length > 0) {
82097
- desForms.filter(item => item.desFormLayouts != null && item.desFormLayouts.length > 0).forEach(item => {
82098
- const newDesForm = this.formatDesForm(item);
82117
+ const reqAddress = [];
82118
+ const appIds = (_this$formConfig$appI = this.formConfig.appId) === null || _this$formConfig$appI === void 0 ? void 0 : _this$formConfig$appI.split(",");
82119
+ const url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype";
82120
+ const downloadUrl = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=";
82121
+ appIds === null || appIds === void 0 ? void 0 : appIds.forEach(appId => {
82122
+ const query = {
82123
+ appId: appId,
82124
+ cacheType: type
82125
+ };
82126
+ reqAddress.push(this.fetch(url, query));
82127
+ });
82128
+ return Promise.all(reqAddress).then(resp => {
82129
+ const response = {};
82130
+ const address = [];
82131
+ const cacheVersionNumber = [];
82132
+ resp.forEach(res => {
82133
+ var _res$data, _res$data$desCacheVer;
82099
82134
 
82100
- if (newDesForm != null) {
82101
- newDesForms.push(newDesForm);
82102
- }
82103
- });
82135
+ // 数据下载地址
82136
+ 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) {
82137
+ cacheVersionNumber.push(res.data.desCacheVersion.cacheVersionNumber);
82138
+ address.push(downloadUrl + res.data.desCacheVersion.storageAddress);
82104
82139
  }
82105
-
82106
- this.desForms = newDesForms;
82107
- formStore.setForms(this.desForms);
82108
- return form_tools_service_FormToolsService.LOAD_SUCCESS;
82109
82140
  });
82110
- } else {
82111
- return this.mergeFetchDesign(url).then(desForms => {
82112
- const newDesForms = [];
82141
+ response.cacheVersionNumber = cacheVersionNumber.join(",");
82142
+ response.storageAddress = address;
82143
+ return response;
82144
+ });
82145
+ }
82146
+ /**
82147
+ * @description: 加载远程表单配置
82148
+ * @author ChenRui
82149
+ * @date 2020/11/20 17:30
82150
+ */
82113
82151
 
82114
- if (desForms != null && desForms.length > 0) {
82115
- desForms.filter(item => item.desFormLayouts != null && item.desFormLayouts.length > 0).forEach(item => {
82116
- const newDesForm = this.formatDesForm(item);
82117
82152
 
82118
- if (newDesForm != null) {
82119
- newDesForms.push(newDesForm);
82120
- }
82121
- });
82122
- }
82153
+ loadDesign(urls) {
82154
+ return this.mergeFetchDesign(urls).then(desForms => {
82155
+ const newDesForms = [];
82123
82156
 
82124
- this.desForms = newDesForms;
82125
- formStore.setForms(this.desForms);
82126
- return form_tools_service_FormToolsService.LOAD_SUCCESS;
82127
- });
82128
- }
82157
+ if (desForms != null && desForms.length > 0) {
82158
+ desForms.filter(item => item.desFormLayouts != null && item.desFormLayouts.length > 0).forEach(item => {
82159
+ const newDesForm = this.formatDesForm(item);
82160
+
82161
+ if (newDesForm != null) {
82162
+ newDesForms.push(newDesForm);
82163
+ }
82164
+ });
82165
+ }
82166
+
82167
+ this.desForms = newDesForms;
82168
+ formStore.setForms(this.desForms);
82169
+ return form_tools_service_FormToolsService.LOAD_SUCCESS;
82170
+ });
82129
82171
  }
82130
82172
  /**
82131
82173
  * @description: 合并多个应用表单
@@ -82134,11 +82176,12 @@ class form_tools_service_FormToolsService {
82134
82176
  */
82135
82177
 
82136
82178
 
82137
- mergeFetchDesign(url) {
82138
- const urls = this.formConfig.urls || [url];
82179
+ mergeFetchDesign(urls) {
82180
+ const onlySimpleLoadConfig = !!this.formConfig.onlySimpleLoadConfig;
82181
+ const headers = this.createFileDownloadAuthorizationHeader();
82139
82182
  const fetches = [];
82140
82183
  urls.forEach(url => {
82141
- fetches.push(this.fetch(url, {}, undefined, "GET", undefined, !!this.formConfig.onlySimpleLoadConfig));
82184
+ fetches.push(this.fetch(url, {}, undefined, "GET", headers, onlySimpleLoadConfig));
82142
82185
  });
82143
82186
  return Promise.all(fetches).then(desForms => {
82144
82187
  let newDesForms = [];
@@ -82167,7 +82210,7 @@ class form_tools_service_FormToolsService {
82167
82210
  this.mapSysDictTreeDetailOptions = mapTreeDicts;
82168
82211
  return form_tools_service_FormToolsService.LOAD_SUCCESS;
82169
82212
  } else {
82170
- return this.loadDict(url, "static");
82213
+ return this.loadDict([url]);
82171
82214
  }
82172
82215
  } else if (this.formConfig.loadMode === "dynamic") {
82173
82216
  if (this.formConfig.appId) {
@@ -82194,8 +82237,10 @@ class form_tools_service_FormToolsService {
82194
82237
  desCacheVersion = res.data[0].desCacheVersion;
82195
82238
  }
82196
82239
 
82240
+ const distUrl = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + desCacheVersion.storageAddress;
82241
+
82197
82242
  if (String(dictVersion) !== String(desCacheVersion.cacheVersionNumber)) {
82198
- return this.loadDict(desCacheVersion.storageAddress, "dynamic").then(resEx => {
82243
+ return this.loadDict([distUrl]).then(resEx => {
82199
82244
  if (resEx.code === 1) {
82200
82245
  dictStore.setVersion(desCacheVersion.cacheVersionNumber);
82201
82246
  }
@@ -82228,6 +82273,26 @@ class form_tools_service_FormToolsService {
82228
82273
  msg: "动态加载需指定当前系统编号(appId)"
82229
82274
  };
82230
82275
  }
82276
+ } else if (this.formConfig.loadMode === "merge") {
82277
+ return this.mergeUrlByType(cache_type_enum["a" /* CacheType */].DICT.code).then(response => {
82278
+ if (dictVersion === response.cacheVersionNumber) {
82279
+ if (dicts != null || treeDicts != null) {
82280
+ this.sysDictDetailOptions = dicts;
82281
+ this.sysDictTreeDetailOptions = treeDicts;
82282
+ this.mapSysDictDetailOptions = mapDicts;
82283
+ this.mapSysDictTreeDetailOptions = mapTreeDicts;
82284
+ }
82285
+
82286
+ return form_tools_service_FormToolsService.LOAD_SUCCESS;
82287
+ } else {
82288
+ return new Promise(resolve => {
82289
+ this.loadDict(response.storageAddress).then(() => {
82290
+ formStore.setVersion(response.cacheVersionNumber);
82291
+ resolve(form_tools_service_FormToolsService.LOAD_SUCCESS);
82292
+ });
82293
+ });
82294
+ }
82295
+ });
82231
82296
  }
82232
82297
 
82233
82298
  return form_tools_service_FormToolsService.LOAD_FAIL;
@@ -82240,63 +82305,56 @@ class form_tools_service_FormToolsService {
82240
82305
  */
82241
82306
 
82242
82307
 
82243
- loadDict(url, loadMode) {
82244
- const onlySimpleLoadConfig = !!this.formConfig.onlySimpleLoadConfig;
82245
- let sysDictInfos = [];
82246
-
82247
- if (loadMode === "dynamic") {
82248
- const headers = this.createFileDownloadAuthorizationHeader();
82249
- url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + url;
82250
- return this.fetch(url, {}, undefined, "GET", headers, onlySimpleLoadConfig).then(res => {
82251
- sysDictInfos = res;
82252
-
82253
- if (sysDictInfos != null && sysDictInfos.length > 0) {
82254
- // 数据格式化
82255
- const dictionaryFormatCollection = this.inidDictOptions(sysDictInfos);
82256
- this.sysDictDetailOptions = dictionaryFormatCollection.sysDictDetailOptions || [];
82257
- this.sysDictTreeDetailOptions = dictionaryFormatCollection.sysDictTreeDetailOptions || [];
82258
- this.mapSysDictDetailOptions = dictionaryFormatCollection.mapSysDictDetailOptions;
82259
- this.mapSysDictTreeDetailOptions = dictionaryFormatCollection.mapSysDictTreeDetailOptions; // 字典本地存储
82260
-
82261
- if (dictionaryFormatCollection.sysDictDetailOptions && dictionaryFormatCollection.sysDictDetailOptions.length > 0) {
82262
- dictStore.setDicts(dictionaryFormatCollection.sysDictDetailOptions);
82263
- }
82264
-
82265
- if (dictionaryFormatCollection.sysDictTreeDetailOptions && dictionaryFormatCollection.sysDictTreeDetailOptions.length > 0) {
82266
- dictStore.setTreeDicts(dictionaryFormatCollection.sysDictTreeDetailOptions);
82267
- }
82268
-
82269
- dictStore.setMapDicts(dictionaryFormatCollection.mapSysDictDetailOptions || null);
82270
- dictStore.setMapTreeDicts(dictionaryFormatCollection.mapSysDictTreeDetailOptions || null);
82271
- }
82272
-
82273
- return form_tools_service_FormToolsService.LOAD_SUCCESS;
82274
- });
82275
- } else {
82276
- return this.mergeFetchDict(url).then(sysDictInfos => {
82277
- if (sysDictInfos != null) {
82278
- // 数据格式化
82279
- const dictionaryFormatCollection = this.inidDictOptions(sysDictInfos);
82280
- this.sysDictDetailOptions = dictionaryFormatCollection.sysDictDetailOptions || [];
82281
- this.sysDictTreeDetailOptions = dictionaryFormatCollection.sysDictTreeDetailOptions || [];
82282
- this.mapSysDictDetailOptions = dictionaryFormatCollection.mapSysDictDetailOptions;
82283
- this.mapSysDictTreeDetailOptions = dictionaryFormatCollection.mapSysDictTreeDetailOptions; // 字典本地存储
82284
-
82285
- if (dictionaryFormatCollection.sysDictDetailOptions && dictionaryFormatCollection.sysDictDetailOptions.length > 0) {
82286
- dictStore.setDicts(dictionaryFormatCollection.sysDictDetailOptions);
82287
- }
82288
-
82289
- if (dictionaryFormatCollection.sysDictTreeDetailOptions && dictionaryFormatCollection.sysDictTreeDetailOptions.length > 0) {
82290
- dictStore.setTreeDicts(dictionaryFormatCollection.sysDictTreeDetailOptions);
82291
- }
82292
-
82293
- dictStore.setMapDicts(dictionaryFormatCollection.mapSysDictDetailOptions || null);
82294
- dictStore.setMapTreeDicts(dictionaryFormatCollection.mapSysDictTreeDetailOptions || null);
82295
- }
82296
-
82297
- return form_tools_service_FormToolsService.LOAD_SUCCESS;
82298
- });
82299
- }
82308
+ loadDict(urls) {
82309
+ return this.mergeFetchDict(urls).then(sysDictInfos => {
82310
+ if (sysDictInfos != null) {
82311
+ // 数据格式化
82312
+ const dictionaryFormatCollection = this.inidDictOptions(sysDictInfos);
82313
+ this.sysDictDetailOptions = dictionaryFormatCollection.sysDictDetailOptions || [];
82314
+ this.sysDictTreeDetailOptions = dictionaryFormatCollection.sysDictTreeDetailOptions || [];
82315
+ this.mapSysDictDetailOptions = dictionaryFormatCollection.mapSysDictDetailOptions;
82316
+ this.mapSysDictTreeDetailOptions = dictionaryFormatCollection.mapSysDictTreeDetailOptions; // 字典本地存储
82317
+
82318
+ if (dictionaryFormatCollection.sysDictDetailOptions && dictionaryFormatCollection.sysDictDetailOptions.length > 0) {
82319
+ dictStore.setDicts(dictionaryFormatCollection.sysDictDetailOptions);
82320
+ }
82321
+
82322
+ if (dictionaryFormatCollection.sysDictTreeDetailOptions && dictionaryFormatCollection.sysDictTreeDetailOptions.length > 0) {
82323
+ dictStore.setTreeDicts(dictionaryFormatCollection.sysDictTreeDetailOptions);
82324
+ }
82325
+
82326
+ dictStore.setMapDicts(dictionaryFormatCollection.mapSysDictDetailOptions || null);
82327
+ dictStore.setMapTreeDicts(dictionaryFormatCollection.mapSysDictTreeDetailOptions || null);
82328
+ }
82329
+
82330
+ return form_tools_service_FormToolsService.LOAD_SUCCESS;
82331
+ }); // const onlySimpleLoadConfig = !!this.formConfig.onlySimpleLoadConfig;
82332
+ // let sysDictInfos: SysDictInfo[] = [];
82333
+ // if (loadMode === "dynamic") {
82334
+ // const headers = this.createFileDownloadAuthorizationHeader();
82335
+ // url = this.formConfig.url + "/ms-loong/api/v1/des-cache-info/permit_endpoint/download?storageAddress=" + url;
82336
+ // return this.fetch(url, {}, undefined, "GET", headers, onlySimpleLoadConfig).then((res: any) => {
82337
+ // sysDictInfos = res;
82338
+ // if (sysDictInfos != null && sysDictInfos.length > 0) {
82339
+ // // 数据格式化
82340
+ // const dictionaryFormatCollection: DictionaryFormatCollection = this.inidDictOptions(sysDictInfos);
82341
+ // this.sysDictDetailOptions = dictionaryFormatCollection.sysDictDetailOptions || [];
82342
+ // this.sysDictTreeDetailOptions = dictionaryFormatCollection.sysDictTreeDetailOptions || [];
82343
+ // this.mapSysDictDetailOptions = dictionaryFormatCollection.mapSysDictDetailOptions;
82344
+ // this.mapSysDictTreeDetailOptions = dictionaryFormatCollection.mapSysDictTreeDetailOptions;
82345
+ // // 字典本地存储
82346
+ // if (dictionaryFormatCollection.sysDictDetailOptions && dictionaryFormatCollection.sysDictDetailOptions.length > 0) {
82347
+ // dictStore.setDicts(dictionaryFormatCollection.sysDictDetailOptions);
82348
+ // }
82349
+ // if (dictionaryFormatCollection.sysDictTreeDetailOptions && dictionaryFormatCollection.sysDictTreeDetailOptions.length > 0) {
82350
+ // dictStore.setTreeDicts(dictionaryFormatCollection.sysDictTreeDetailOptions);
82351
+ // }
82352
+ // dictStore.setMapDicts(dictionaryFormatCollection.mapSysDictDetailOptions || null);
82353
+ // dictStore.setMapTreeDicts(dictionaryFormatCollection.mapSysDictTreeDetailOptions || null);
82354
+ // }
82355
+ // return FormToolsService.LOAD_SUCCESS;
82356
+ // });
82357
+ // }
82300
82358
  }
82301
82359
  /**
82302
82360
  * @description: 合并多个应用字典
@@ -82306,9 +82364,8 @@ class form_tools_service_FormToolsService {
82306
82364
 
82307
82365
 
82308
82366
  mergeFetchDict(dictUrl) {
82309
- const urls = this.formConfig.dictUrls || [dictUrl];
82310
82367
  const fetchDicts = [];
82311
- urls.forEach(url => {
82368
+ dictUrl.forEach(url => {
82312
82369
  fetchDicts.push(this.fetch(url, {}, undefined, "GET", undefined, !!this.formConfig.onlySimpleLoadConfig));
82313
82370
  });
82314
82371
  return Promise.all(fetchDicts).then(dictInfos => {
@@ -84901,8 +84958,8 @@ DvFormLayoutvue_type_script_lang_ts_DvFormLayout = __decorate([Options({
84901
84958
  /* harmony default export */ var DvFormLayoutvue_type_script_lang_ts = (DvFormLayoutvue_type_script_lang_ts_DvFormLayout);
84902
84959
  // CONCATENATED MODULE: ./src/components/form/DvFormLayout.vue?vue&type=script&lang=ts
84903
84960
 
84904
- // EXTERNAL MODULE: ./src/components/form/DvFormLayout.vue?vue&type=style&index=0&id=323bdcb5&lang=scss&scoped=true
84905
- var DvFormLayoutvue_type_style_index_0_id_323bdcb5_lang_scss_scoped_true = __webpack_require__("f61a");
84961
+ // EXTERNAL MODULE: ./src/components/form/DvFormLayout.vue?vue&type=style&index=0&id=751c673b&lang=scss&scoped=true
84962
+ var DvFormLayoutvue_type_style_index_0_id_751c673b_lang_scss_scoped_true = __webpack_require__("123b");
84906
84963
 
84907
84964
  // CONCATENATED MODULE: ./src/components/form/DvFormLayout.vue
84908
84965
 
@@ -84912,7 +84969,7 @@ var DvFormLayoutvue_type_style_index_0_id_323bdcb5_lang_scss_scoped_true = __web
84912
84969
 
84913
84970
 
84914
84971
 
84915
- 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"]])
84972
+ 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"]])
84916
84973
 
84917
84974
  /* harmony default export */ var form_DvFormLayout = (DvFormLayout_exports_);
84918
84975
  // CONCATENATED MODULE: ./src/services/date-format.service.ts
@@ -85276,7 +85333,8 @@ class FormApi_FormApi {
85276
85333
  getText(key) {
85277
85334
  const control = this.getControl(key);
85278
85335
 
85279
- if (control && control instanceof FormControl_FormControl) {
85336
+ if (control) {
85337
+ //control && control instanceof FormControl
85280
85338
  return control.text();
85281
85339
  }
85282
85340
 
@@ -85292,7 +85350,8 @@ class FormApi_FormApi {
85292
85350
  getOptions(key) {
85293
85351
  const control = this.getControl(key);
85294
85352
 
85295
- if (control && control instanceof FormControl_FormControl && control.controlAttr) {
85353
+ if (control && control.controlAttr) {
85354
+ //control && control instanceof FormControl && control.controlAttr
85296
85355
  return extractOptions(control.controlAttr);
85297
85356
  }
85298
85357
 
@@ -85327,7 +85386,8 @@ class FormApi_FormApi {
85327
85386
  getAttribute(key, attribute) {
85328
85387
  const control = this.getControl(key);
85329
85388
 
85330
- if (control && control instanceof FormControl_FormControl && control.controlAttr) {
85389
+ if (control && control.controlAttr) {
85390
+ //control && control instanceof FormControl && control.controlAttr
85331
85391
  return control.controlAttr[attribute];
85332
85392
  }
85333
85393
  }
@@ -85360,7 +85420,8 @@ class FormApi_FormApi {
85360
85420
  getValidate(key, name) {
85361
85421
  const control = this.getControl(key);
85362
85422
 
85363
- if (control && control instanceof FormControl_FormControl) {
85423
+ if (control) {
85424
+ //control && control instanceof FormControl
85364
85425
  return control.getValidate(name);
85365
85426
  }
85366
85427
  }
@@ -85374,7 +85435,8 @@ class FormApi_FormApi {
85374
85435
  removeValidate(key, validateName) {
85375
85436
  const control = this.getControl(key);
85376
85437
 
85377
- if (control && control instanceof FormControl_FormControl) {
85438
+ if (control) {
85439
+ //control && control instanceof FormControl
85378
85440
  const validates = control.validates;
85379
85441
 
85380
85442
  if (validates && validates.length > 0) {
@@ -85396,7 +85458,8 @@ class FormApi_FormApi {
85396
85458
  removeAllValidates(key) {
85397
85459
  const control = this.getControl(key);
85398
85460
 
85399
- if (control && control instanceof FormControl_FormControl) {
85461
+ if (control) {
85462
+ //control && control instanceof FormControl
85400
85463
  control.validates = [];
85401
85464
  }
85402
85465
  }
@@ -85410,7 +85473,8 @@ class FormApi_FormApi {
85410
85473
  getValidates(key) {
85411
85474
  const control = this.getControl(key);
85412
85475
 
85413
- if (control && control instanceof FormControl_FormControl) {
85476
+ if (control) {
85477
+ //control && control instanceof FormControl
85414
85478
  return control.validates;
85415
85479
  }
85416
85480
 
@@ -85447,7 +85511,8 @@ class FormApi_FormApi {
85447
85511
  setTimeout(() => {
85448
85512
  control = this.getControl(key);
85449
85513
 
85450
- if (control && control instanceof FormControl_FormControl) {
85514
+ if (control) {
85515
+ //control && control instanceof FormControl
85451
85516
  this.setValidateInner(control, validate, isCover);
85452
85517
  }
85453
85518
  });
@@ -85660,7 +85725,8 @@ class FormApi_FormApi {
85660
85725
  setTimeout(() => {
85661
85726
  control = this.getControl(propertyName, undefined, false);
85662
85727
 
85663
- if (control && control instanceof FormControl_FormControl) {
85728
+ if (control) {
85729
+ //control && control instanceof FormControl
85664
85730
  const history = (fieldChangeHistory[propertyName] || []).sort((a, b) => {
85665
85731
  const aTime = new Date(a.time).getTime();
85666
85732
  const bTime = new Date(b.time).getTime();
@@ -85672,7 +85738,8 @@ class FormApi_FormApi {
85672
85738
  } else {
85673
85739
  control = this.getControl(propertyName, undefined, false);
85674
85740
 
85675
- if (control && control instanceof FormControl_FormControl) {
85741
+ if (control) {
85742
+ //control && control instanceof FormControl
85676
85743
  const history = (fieldChangeHistory[propertyName] || []).sort((a, b) => {
85677
85744
  const aTime = new Date(a.time).getTime();
85678
85745
  const bTime = new Date(b.time).getTime();
@@ -85841,7 +85908,8 @@ class FormApi_FormApi {
85841
85908
 
85842
85909
 
85843
85910
  setControlOptions(control, key, data, defaultVal) {
85844
- if (control && control instanceof FormControl_FormControl && control.controlAttr) {
85911
+ if (control && control.controlAttr) {
85912
+ //control && control instanceof FormControl && control.controlAttr)
85845
85913
  storageOptions(control.controlAttr, data);
85846
85914
  this.setAttribute(key, Attribute.IsOptionType, constants_enum["k" /* OptionType */].Fixed.code);
85847
85915
  this.setAttribute(key, Attribute.OptionConfig, data);
@@ -85859,7 +85927,8 @@ class FormApi_FormApi {
85859
85927
 
85860
85928
 
85861
85929
  setControlAttribute(control, attribute, data) {
85862
- if (control && control instanceof FormControl_FormControl && attribute) {
85930
+ if (control && attribute) {
85931
+ //control && control instanceof FormControl && attribute
85863
85932
  control.controlAttr[attribute] = data;
85864
85933
  }
85865
85934
  }
@@ -86498,6 +86567,24 @@ let DvFormvue_type_script_lang_ts_DyForm = class DyForm extends Vue {
86498
86567
  }
86499
86568
 
86500
86569
  this.$emit("complete");
86570
+ this.$nextTick(() => {
86571
+ try {
86572
+ const formView = this.$refs.formView;
86573
+ const cons = formView.getElementsByClassName("lo-control-container");
86574
+ const len = cons.length;
86575
+
86576
+ if (len > 2) {
86577
+ const con1 = cons[len - 1];
86578
+ const con2 = cons[len - 2];
86579
+
86580
+ if (con1.clientWidth === con1.clientWidth && con1.offsetLeft !== con2.offsetLeft) {
86581
+ con1.style.width = "200%";
86582
+ }
86583
+ }
86584
+ } catch (e) {
86585
+ console.error("自动修改表单宽度错误" + e);
86586
+ }
86587
+ });
86501
86588
  }
86502
86589
  }
86503
86590
  /**
@@ -86924,8 +87011,8 @@ DvFormvue_type_script_lang_ts_DyForm = __decorate([Options({
86924
87011
  /* harmony default export */ var DvFormvue_type_script_lang_ts = (DvFormvue_type_script_lang_ts_DyForm);
86925
87012
  // CONCATENATED MODULE: ./src/components/form/DvForm.vue?vue&type=script&lang=ts
86926
87013
 
86927
- // EXTERNAL MODULE: ./src/components/form/DvForm.vue?vue&type=style&index=0&id=570608da&lang=scss&scoped=true
86928
- var DvFormvue_type_style_index_0_id_570608da_lang_scss_scoped_true = __webpack_require__("8774");
87014
+ // EXTERNAL MODULE: ./src/components/form/DvForm.vue?vue&type=style&index=0&id=5311b22e&lang=scss&scoped=true
87015
+ var DvFormvue_type_style_index_0_id_5311b22e_lang_scss_scoped_true = __webpack_require__("9f1a");
86929
87016
 
86930
87017
  // CONCATENATED MODULE: ./src/components/form/DvForm.vue
86931
87018
 
@@ -86935,7 +87022,7 @@ var DvFormvue_type_style_index_0_id_570608da_lang_scss_scoped_true = __webpack_r
86935
87022
 
86936
87023
 
86937
87024
 
86938
- 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"]])
87025
+ 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"]])
86939
87026
 
86940
87027
  /* harmony default export */ var DvForm = (DvForm_exports_);
86941
87028
  // EXTERNAL MODULE: ./node_modules/decimal.js/decimal.js