@dhccmobile/vue3-lo-form 0.1.7 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue3-lo-form.common.js +227 -81
- package/dist/vue3-lo-form.common.js.map +1 -1
- package/dist/vue3-lo-form.css +1 -1
- package/dist/vue3-lo-form.umd.js +227 -81
- package/dist/vue3-lo-form.umd.js.map +1 -1
- package/dist/vue3-lo-form.umd.min.js +9 -9
- package/dist/vue3-lo-form.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/App.vue +26 -14
- package/src/components/form/DvForm.vue +1 -1
- package/src/components/form/DvFormLayout.vue +39 -13
- package/src/core/FormApi.ts +44 -20
- package/src/services/date-format.service.ts +74 -0
- package/types/core/FormApi.d.ts +2 -9
- package/types/services/date-format.service.d.ts +21 -0
|
@@ -163,13 +163,6 @@ module.exports = function (obj) {
|
|
|
163
163
|
};
|
|
164
164
|
|
|
165
165
|
|
|
166
|
-
/***/ }),
|
|
167
|
-
|
|
168
|
-
/***/ "0b0d":
|
|
169
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
170
|
-
|
|
171
|
-
// extracted by mini-css-extract-plugin
|
|
172
|
-
|
|
173
166
|
/***/ }),
|
|
174
167
|
|
|
175
168
|
/***/ "0cfb":
|
|
@@ -7066,6 +7059,13 @@ module.exports = function (input, pref) {
|
|
|
7066
7059
|
};
|
|
7067
7060
|
|
|
7068
7061
|
|
|
7062
|
+
/***/ }),
|
|
7063
|
+
|
|
7064
|
+
/***/ "48c9":
|
|
7065
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7066
|
+
|
|
7067
|
+
// extracted by mini-css-extract-plugin
|
|
7068
|
+
|
|
7069
7069
|
/***/ }),
|
|
7070
7070
|
|
|
7071
7071
|
/***/ "4d64":
|
|
@@ -7105,17 +7105,6 @@ module.exports = {
|
|
|
7105
7105
|
};
|
|
7106
7106
|
|
|
7107
7107
|
|
|
7108
|
-
/***/ }),
|
|
7109
|
-
|
|
7110
|
-
/***/ "4d96":
|
|
7111
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7112
|
-
|
|
7113
|
-
"use strict";
|
|
7114
|
-
/* 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_35f94d2f_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("da95");
|
|
7115
|
-
/* 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_35f94d2f_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_35f94d2f_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
7116
|
-
/* unused harmony reexport * */
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
7108
|
/***/ }),
|
|
7120
7109
|
|
|
7121
7110
|
/***/ "50c4":
|
|
@@ -10367,6 +10356,17 @@ module.exports = SPECIAL_DOCUMENT_ALL ? function (it) {
|
|
|
10367
10356
|
/* unused harmony reexport * */
|
|
10368
10357
|
|
|
10369
10358
|
|
|
10359
|
+
/***/ }),
|
|
10360
|
+
|
|
10361
|
+
/***/ "8774":
|
|
10362
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10363
|
+
|
|
10364
|
+
"use strict";
|
|
10365
|
+
/* 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");
|
|
10366
|
+
/* 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__);
|
|
10367
|
+
/* unused harmony reexport * */
|
|
10368
|
+
|
|
10369
|
+
|
|
10370
10370
|
/***/ }),
|
|
10371
10371
|
|
|
10372
10372
|
/***/ "8925":
|
|
@@ -10587,6 +10587,13 @@ const FormFieldClass = {
|
|
|
10587
10587
|
};
|
|
10588
10588
|
|
|
10589
10589
|
|
|
10590
|
+
/***/ }),
|
|
10591
|
+
|
|
10592
|
+
/***/ "9ef9":
|
|
10593
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
10594
|
+
|
|
10595
|
+
// extracted by mini-css-extract-plugin
|
|
10596
|
+
|
|
10590
10597
|
/***/ }),
|
|
10591
10598
|
|
|
10592
10599
|
/***/ "a002":
|
|
@@ -21181,6 +21188,17 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
|
|
|
21181
21188
|
})(this);
|
|
21182
21189
|
|
|
21183
21190
|
|
|
21191
|
+
/***/ }),
|
|
21192
|
+
|
|
21193
|
+
/***/ "d8c0":
|
|
21194
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
21195
|
+
|
|
21196
|
+
"use strict";
|
|
21197
|
+
/* 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_dae521a4_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("48c9");
|
|
21198
|
+
/* 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_dae521a4_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_dae521a4_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
21199
|
+
/* unused harmony reexport * */
|
|
21200
|
+
|
|
21201
|
+
|
|
21184
21202
|
/***/ }),
|
|
21185
21203
|
|
|
21186
21204
|
/***/ "d9b5":
|
|
@@ -21288,13 +21306,6 @@ module.exports =
|
|
|
21288
21306
|
|
|
21289
21307
|
/***/ }),
|
|
21290
21308
|
|
|
21291
|
-
/***/ "da95":
|
|
21292
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
21293
|
-
|
|
21294
|
-
// extracted by mini-css-extract-plugin
|
|
21295
|
-
|
|
21296
|
-
/***/ }),
|
|
21297
|
-
|
|
21298
21309
|
/***/ "dc4a":
|
|
21299
21310
|
/***/ (function(module, exports, __webpack_require__) {
|
|
21300
21311
|
|
|
@@ -24060,17 +24071,6 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
|
|
|
24060
24071
|
})(this);
|
|
24061
24072
|
|
|
24062
24073
|
|
|
24063
|
-
/***/ }),
|
|
24064
|
-
|
|
24065
|
-
/***/ "f5b9":
|
|
24066
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
24067
|
-
|
|
24068
|
-
"use strict";
|
|
24069
|
-
/* 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_32e8e367_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0b0d");
|
|
24070
|
-
/* 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_32e8e367_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_32e8e367_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
24071
|
-
/* unused harmony reexport * */
|
|
24072
|
-
|
|
24073
|
-
|
|
24074
24074
|
/***/ }),
|
|
24075
24075
|
|
|
24076
24076
|
/***/ "f5df":
|
|
@@ -24205,9 +24205,9 @@ 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=
|
|
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
|
|
24209
24209
|
|
|
24210
|
-
function
|
|
24210
|
+
function DvFormvue_type_template_id_570608da_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");
|
|
@@ -24234,6 +24234,7 @@ function DvFormvue_type_template_id_35f94d2f_scoped_true_ts_true_render(_ctx, _c
|
|
|
24234
24234
|
return {
|
|
24235
24235
|
name: propName,
|
|
24236
24236
|
fn: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(slotProps => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, propName, {
|
|
24237
|
+
content: slotProps.content,
|
|
24237
24238
|
control: slotProps.control,
|
|
24238
24239
|
onChange: slotProps.onChange
|
|
24239
24240
|
}, undefined, true)])
|
|
@@ -24241,7 +24242,7 @@ function DvFormvue_type_template_id_35f94d2f_scoped_true_ts_true_render(_ctx, _c
|
|
|
24241
24242
|
})]), 1032, ["control", "customFormats", "index"]);
|
|
24242
24243
|
}), 128))], 2)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
24243
24244
|
}
|
|
24244
|
-
// CONCATENATED MODULE: ./src/components/form/DvForm.vue?vue&type=template&id=
|
|
24245
|
+
// CONCATENATED MODULE: ./src/components/form/DvForm.vue?vue&type=template&id=570608da&scoped=true&ts=true
|
|
24245
24246
|
|
|
24246
24247
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
24247
24248
|
function _defineProperty(obj, key, value) {
|
|
@@ -24478,10 +24479,10 @@ function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
|
24478
24479
|
return value;
|
|
24479
24480
|
}
|
|
24480
24481
|
|
|
24481
|
-
// 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=
|
|
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=dae521a4&scoped=true&ts=true
|
|
24482
24483
|
|
|
24483
24484
|
|
|
24484
|
-
const _withScopeId = n => (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-
|
|
24485
|
+
const _withScopeId = n => (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-dae521a4"), n = n(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])(), n);
|
|
24485
24486
|
|
|
24486
24487
|
const _hoisted_1 = {
|
|
24487
24488
|
class: "lo-control-box"
|
|
@@ -24523,7 +24524,7 @@ const _hoisted_14 = {
|
|
|
24523
24524
|
key: 1,
|
|
24524
24525
|
class: "lo-control-text"
|
|
24525
24526
|
};
|
|
24526
|
-
function
|
|
24527
|
+
function DvFormLayoutvue_type_template_id_dae521a4_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24527
24528
|
const _component_a_tooltip = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("a-tooltip");
|
|
24528
24529
|
|
|
24529
24530
|
const _component_question_circle_outlined = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("question-circle-outlined");
|
|
@@ -24819,6 +24820,7 @@ function DvFormLayoutvue_type_template_id_32e8e367_scoped_true_ts_true_render(_c
|
|
|
24819
24820
|
placeholder: _ctx.controlAttr.placeholder,
|
|
24820
24821
|
onChange: _cache[21] || (_cache[21] = $event => _ctx.onChange(_ctx.control)),
|
|
24821
24822
|
onClick: _cache[22] || (_cache[22] = $event => _ctx.onClick(_ctx.control)),
|
|
24823
|
+
"get-popup-container": _ctx.getPopupContainer,
|
|
24822
24824
|
"filter-option": _ctx.filterOption
|
|
24823
24825
|
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createSlots"])({
|
|
24824
24826
|
dropdownRender: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(({
|
|
@@ -24857,7 +24859,7 @@ function DvFormLayoutvue_type_template_id_32e8e367_scoped_true_ts_true_render(_c
|
|
|
24857
24859
|
}, undefined, true) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], {
|
|
24858
24860
|
key: 1
|
|
24859
24861
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.controlAttr.bindingSuffix), 1)], 64))])
|
|
24860
|
-
} : undefined]), 1032, ["dropdownClassName", "class", "value", "allow-clear", "show-search", "mode", "disabled", "placeholder", "filter-option"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.control.code === _ctx.formFieldType.Radio.code ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_radio_group, {
|
|
24862
|
+
} : undefined]), 1032, ["dropdownClassName", "class", "value", "allow-clear", "show-search", "mode", "disabled", "placeholder", "get-popup-container", "filter-option"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.control.code === _ctx.formFieldType.Radio.code ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_radio_group, {
|
|
24861
24863
|
key: 4,
|
|
24862
24864
|
class: "w-100",
|
|
24863
24865
|
value: _ctx.formControl.value,
|
|
@@ -24907,6 +24909,8 @@ function DvFormLayoutvue_type_template_id_32e8e367_scoped_true_ts_true_render(_c
|
|
|
24907
24909
|
}, null, 8, ["checked", "checked-children", "un-checked-children", "disabled"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.control.code === _ctx.formFieldType.TimePicker.code ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_time_picker, {
|
|
24908
24910
|
key: 7,
|
|
24909
24911
|
class: "w-100",
|
|
24912
|
+
"get-popup-container": _ctx.getPopupContainer,
|
|
24913
|
+
locale: _ctx.locale,
|
|
24910
24914
|
"use12-hours": _ctx.is12Hours,
|
|
24911
24915
|
placeholder: _ctx.controlAttr.placeholder,
|
|
24912
24916
|
disabled: _ctx.controlAttr.isNotEdit,
|
|
@@ -24914,12 +24918,13 @@ function DvFormLayoutvue_type_template_id_32e8e367_scoped_true_ts_true_render(_c
|
|
|
24914
24918
|
"onUpdate:value": _cache[32] || (_cache[32] = $event => _ctx.formControl.value = $event),
|
|
24915
24919
|
onChange: _cache[33] || (_cache[33] = $event => _ctx.onChange(_ctx.control)),
|
|
24916
24920
|
onClick: _cache[34] || (_cache[34] = $event => _ctx.onClick(_ctx.control))
|
|
24917
|
-
}, null, 8, ["use12-hours", "placeholder", "disabled", "value"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.control.code === _ctx.formFieldType.DatePicker.code ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], {
|
|
24921
|
+
}, null, 8, ["get-popup-container", "locale", "use12-hours", "placeholder", "disabled", "value"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.control.code === _ctx.formFieldType.DatePicker.code ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], {
|
|
24918
24922
|
key: 8
|
|
24919
24923
|
}, [_ctx.useMonthPicker ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_month_picker, {
|
|
24920
24924
|
key: 0,
|
|
24921
|
-
locale: _ctx.locale,
|
|
24922
24925
|
class: "w-100",
|
|
24926
|
+
"get-popup-container": _ctx.getPopupContainer,
|
|
24927
|
+
locale: _ctx.locale,
|
|
24923
24928
|
format: _ctx.controlAttr.dateFormat,
|
|
24924
24929
|
placeholder: _ctx.controlAttr.placeholder,
|
|
24925
24930
|
disabled: _ctx.controlAttr.isNotEdit,
|
|
@@ -24927,10 +24932,11 @@ function DvFormLayoutvue_type_template_id_32e8e367_scoped_true_ts_true_render(_c
|
|
|
24927
24932
|
"onUpdate:value": _cache[35] || (_cache[35] = $event => _ctx.formControl.value = $event),
|
|
24928
24933
|
onChange: _cache[36] || (_cache[36] = $event => _ctx.onChange(_ctx.control)),
|
|
24929
24934
|
onClick: _cache[37] || (_cache[37] = $event => _ctx.onClick(_ctx.control))
|
|
24930
|
-
}, null, 8, ["locale", "format", "placeholder", "disabled", "value"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_date_picker, {
|
|
24935
|
+
}, null, 8, ["get-popup-container", "locale", "format", "placeholder", "disabled", "value"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_date_picker, {
|
|
24931
24936
|
key: 1,
|
|
24932
|
-
locale: _ctx.locale,
|
|
24933
24937
|
class: "w-100",
|
|
24938
|
+
"get-popup-container": _ctx.getPopupContainer,
|
|
24939
|
+
locale: _ctx.locale,
|
|
24934
24940
|
showTime: _ctx.showPickerTime(_ctx.controlAttr.dateFormat),
|
|
24935
24941
|
format: _ctx.controlAttr.dateFormat,
|
|
24936
24942
|
placeholder: _ctx.controlAttr.placeholder,
|
|
@@ -24939,7 +24945,7 @@ function DvFormLayoutvue_type_template_id_32e8e367_scoped_true_ts_true_render(_c
|
|
|
24939
24945
|
"onUpdate:value": _cache[38] || (_cache[38] = $event => _ctx.formControl.value = $event),
|
|
24940
24946
|
onChange: _cache[39] || (_cache[39] = $event => _ctx.onChange(_ctx.control)),
|
|
24941
24947
|
onClick: _cache[40] || (_cache[40] = $event => _ctx.onClick(_ctx.control))
|
|
24942
|
-
}, null, 8, ["locale", "showTime", "format", "placeholder", "disabled", "value"]))], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.control.code === _ctx.formFieldType.Slider.code ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_slider, {
|
|
24948
|
+
}, null, 8, ["get-popup-container", "locale", "showTime", "format", "placeholder", "disabled", "value"]))], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.control.code === _ctx.formFieldType.Slider.code ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_slider, {
|
|
24943
24949
|
key: 9,
|
|
24944
24950
|
value: _ctx.formControl.value,
|
|
24945
24951
|
"onUpdate:value": _cache[41] || (_cache[41] = $event => _ctx.formControl.value = $event),
|
|
@@ -24948,6 +24954,7 @@ function DvFormLayoutvue_type_template_id_32e8e367_scoped_true_ts_true_render(_c
|
|
|
24948
24954
|
onClick: _cache[43] || (_cache[43] = $event => _ctx.onClick(_ctx.control))
|
|
24949
24955
|
}, null, 8, ["value", "disabled"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.control.code === _ctx.formFieldType.Cascader.code ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_cascader, {
|
|
24950
24956
|
key: 10,
|
|
24957
|
+
"get-popup-container": _ctx.getPopupContainer,
|
|
24951
24958
|
placeholder: _ctx.controlAttr.placeholder,
|
|
24952
24959
|
"show-search": _ctx.controlAttr.isSearchable ? {
|
|
24953
24960
|
cascaderFilter: _ctx.cascaderFilter
|
|
@@ -24958,8 +24965,9 @@ function DvFormLayoutvue_type_template_id_32e8e367_scoped_true_ts_true_render(_c
|
|
|
24958
24965
|
"onUpdate:value": _cache[44] || (_cache[44] = $event => _ctx.formControl.value = $event),
|
|
24959
24966
|
onChange: _cache[45] || (_cache[45] = $event => _ctx.onChange(_ctx.control)),
|
|
24960
24967
|
onClick: _cache[46] || (_cache[46] = $event => _ctx.onClick(_ctx.control))
|
|
24961
|
-
}, null, 8, ["placeholder", "show-search", "disabled", "options", "value"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.control.code === _ctx.formFieldType.TreeSelect.code ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_tree_select, {
|
|
24968
|
+
}, null, 8, ["get-popup-container", "placeholder", "show-search", "disabled", "options", "value"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.control.code === _ctx.formFieldType.TreeSelect.code ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_tree_select, {
|
|
24962
24969
|
key: 11,
|
|
24970
|
+
"get-popup-container": _ctx.getPopupContainer,
|
|
24963
24971
|
value: _ctx.formControl.value,
|
|
24964
24972
|
"onUpdate:value": _cache[47] || (_cache[47] = $event => _ctx.formControl.value = $event),
|
|
24965
24973
|
"show-search": _ctx.controlAttr.isSearchable,
|
|
@@ -24974,7 +24982,7 @@ function DvFormLayoutvue_type_template_id_32e8e367_scoped_true_ts_true_render(_c
|
|
|
24974
24982
|
onChange: _cache[48] || (_cache[48] = $event => _ctx.onChange(_ctx.control)),
|
|
24975
24983
|
onClick: _cache[49] || (_cache[49] = $event => _ctx.onClick(_ctx.control)),
|
|
24976
24984
|
"tree-default-expand-all": ""
|
|
24977
|
-
}, null, 8, ["value", "show-search", "disabled", "placeholder", "tree-data"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.control.code === _ctx.formFieldType.Rate.code ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_rate, {
|
|
24985
|
+
}, null, 8, ["get-popup-container", "value", "show-search", "disabled", "placeholder", "tree-data"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.control.code === _ctx.formFieldType.Rate.code ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_rate, {
|
|
24978
24986
|
key: 12,
|
|
24979
24987
|
value: _ctx.formControl.value,
|
|
24980
24988
|
"onUpdate:value": _cache[50] || (_cache[50] = $event => _ctx.formControl.value = $event),
|
|
@@ -25000,12 +25008,13 @@ function DvFormLayoutvue_type_template_id_32e8e367_scoped_true_ts_true_render(_c
|
|
|
25000
25008
|
key: 14,
|
|
25001
25009
|
control: _ctx.control,
|
|
25002
25010
|
onChange: _ctx.onChange
|
|
25003
|
-
}, undefined, true) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64)) :
|
|
25004
|
-
key: 1
|
|
25005
|
-
|
|
25011
|
+
}, undefined, true) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, 'read:' + _ctx.control.formControl.key, {
|
|
25012
|
+
key: 1,
|
|
25013
|
+
content: _ctx.formatData
|
|
25014
|
+
}, () => [_ctx.controlAttr.textFold ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_stretch_text, {
|
|
25006
25015
|
key: 0,
|
|
25007
25016
|
content: _ctx.formatData
|
|
25008
|
-
}, null, 8, ["content"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_14, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.formatData), 1))],
|
|
25017
|
+
}, null, 8, ["content"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createElementBlock"])("div", _hoisted_14, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.formatData), 1))], true)]),
|
|
25009
25018
|
_: 3
|
|
25010
25019
|
}, 8, ["labelCol", "wrapperCol", "colon", "labelAlign", "required", "validate-status", "help", "class"])])], 4)) : _ctx.control.type === _ctx.formFieldClass.Layout.code && _ctx.control.code === _ctx.formFieldType.Empty.code ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_a_form, {
|
|
25011
25020
|
key: 1,
|
|
@@ -25033,9 +25042,11 @@ function DvFormLayoutvue_type_template_id_32e8e367_scoped_true_ts_true_render(_c
|
|
|
25033
25042
|
return {
|
|
25034
25043
|
name: scopedPropName,
|
|
25035
25044
|
fn: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(({
|
|
25045
|
+
content,
|
|
25036
25046
|
control,
|
|
25037
25047
|
onChange
|
|
25038
25048
|
}) => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, scopedPropName, {
|
|
25049
|
+
content: content,
|
|
25039
25050
|
control: control,
|
|
25040
25051
|
onChange: onChange
|
|
25041
25052
|
}, undefined, true)])
|
|
@@ -25070,9 +25081,11 @@ function DvFormLayoutvue_type_template_id_32e8e367_scoped_true_ts_true_render(_c
|
|
|
25070
25081
|
return {
|
|
25071
25082
|
name: scopedPropName,
|
|
25072
25083
|
fn: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withCtx"])(({
|
|
25084
|
+
content,
|
|
25073
25085
|
control,
|
|
25074
25086
|
onChange
|
|
25075
25087
|
}) => [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, scopedPropName, {
|
|
25088
|
+
content: content,
|
|
25076
25089
|
control: control,
|
|
25077
25090
|
onChange: onChange
|
|
25078
25091
|
}, undefined, true)])
|
|
@@ -25082,7 +25095,7 @@ function DvFormLayoutvue_type_template_id_32e8e367_scoped_true_ts_true_render(_c
|
|
|
25082
25095
|
_: 3
|
|
25083
25096
|
}, 8, ["class", "layout", "style"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true);
|
|
25084
25097
|
}
|
|
25085
|
-
// CONCATENATED MODULE: ./src/components/form/DvFormLayout.vue?vue&type=template&id=
|
|
25098
|
+
// CONCATENATED MODULE: ./src/components/form/DvFormLayout.vue?vue&type=template&id=dae521a4&scoped=true&ts=true
|
|
25086
25099
|
|
|
25087
25100
|
// CONCATENATED MODULE: ./node_modules/vue-class-component/dist/vue-class-component.esm-bundler.js
|
|
25088
25101
|
/**
|
|
@@ -84592,6 +84605,16 @@ let DvFormLayoutvue_type_script_lang_ts_DvFormLayout = class DvFormLayout extend
|
|
|
84592
84605
|
handleMoneyUnitMenuClick(e) {
|
|
84593
84606
|
this.defaultMoneyUnit = this.moneyUnits.find(item => item.code === e.key);
|
|
84594
84607
|
}
|
|
84608
|
+
/**
|
|
84609
|
+
* @description: 将下拉弹层渲染节点固定在触发器的父元素中
|
|
84610
|
+
* @author ZPFly
|
|
84611
|
+
* @date 2022/8/31 11:30
|
|
84612
|
+
*/
|
|
84613
|
+
|
|
84614
|
+
|
|
84615
|
+
getPopupContainer(triggerNode) {
|
|
84616
|
+
return triggerNode.parentNode;
|
|
84617
|
+
}
|
|
84595
84618
|
/**
|
|
84596
84619
|
* @description: 输入事件处理
|
|
84597
84620
|
* @author ChenRui
|
|
@@ -84769,8 +84792,8 @@ DvFormLayoutvue_type_script_lang_ts_DvFormLayout = __decorate([Options({
|
|
|
84769
84792
|
/* harmony default export */ var DvFormLayoutvue_type_script_lang_ts = (DvFormLayoutvue_type_script_lang_ts_DvFormLayout);
|
|
84770
84793
|
// CONCATENATED MODULE: ./src/components/form/DvFormLayout.vue?vue&type=script&lang=ts
|
|
84771
84794
|
|
|
84772
|
-
// EXTERNAL MODULE: ./src/components/form/DvFormLayout.vue?vue&type=style&index=0&id=
|
|
84773
|
-
var
|
|
84795
|
+
// EXTERNAL MODULE: ./src/components/form/DvFormLayout.vue?vue&type=style&index=0&id=dae521a4&lang=scss&scoped=true
|
|
84796
|
+
var DvFormLayoutvue_type_style_index_0_id_dae521a4_lang_scss_scoped_true = __webpack_require__("d8c0");
|
|
84774
84797
|
|
|
84775
84798
|
// CONCATENATED MODULE: ./src/components/form/DvFormLayout.vue
|
|
84776
84799
|
|
|
@@ -84780,9 +84803,98 @@ var DvFormLayoutvue_type_style_index_0_id_32e8e367_lang_scss_scoped_true = __web
|
|
|
84780
84803
|
|
|
84781
84804
|
|
|
84782
84805
|
|
|
84783
|
-
const DvFormLayout_exports_ = /*#__PURE__*/exportHelper_default()(DvFormLayoutvue_type_script_lang_ts, [['render',
|
|
84806
|
+
const DvFormLayout_exports_ = /*#__PURE__*/exportHelper_default()(DvFormLayoutvue_type_script_lang_ts, [['render',DvFormLayoutvue_type_template_id_dae521a4_scoped_true_ts_true_render],['__scopeId',"data-v-dae521a4"]])
|
|
84784
84807
|
|
|
84785
84808
|
/* harmony default export */ var form_DvFormLayout = (DvFormLayout_exports_);
|
|
84809
|
+
// CONCATENATED MODULE: ./src/services/date-format.service.ts
|
|
84810
|
+
|
|
84811
|
+
|
|
84812
|
+
/* eslint-disable */
|
|
84813
|
+
class DateFormatService {
|
|
84814
|
+
/**
|
|
84815
|
+
* 日期时间格式自定义
|
|
84816
|
+
* @param {number|string} value 日期时间值时间戳或时间格式
|
|
84817
|
+
* @param {string} format 输出的时间格式
|
|
84818
|
+
* @returns {string} 定义好的时间格式
|
|
84819
|
+
*/
|
|
84820
|
+
formatDateTime(value, format = 'YYYY-MM-dd HH:mm:ss') {
|
|
84821
|
+
const reg = /(YY|YYYY|MM|dd|HH|mm|ss|ww|WW)/g;
|
|
84822
|
+
|
|
84823
|
+
if (!value) {
|
|
84824
|
+
return '';
|
|
84825
|
+
}
|
|
84826
|
+
|
|
84827
|
+
if (!reg.test(format)) {
|
|
84828
|
+
throw new Error(`The defined format ${format} is incorrect,Please enter 'YYYY or YY' for year,MM for month, dd for day,ww or WW for week,HH for hours,mm for minutes,ss for seconds.`);
|
|
84829
|
+
}
|
|
84830
|
+
|
|
84831
|
+
if (typeof value === 'string' && value.length === 8) {
|
|
84832
|
+
value = [value.substr(0, 4), value.substr(4, 2), value.substr(6, 2)].join('/');
|
|
84833
|
+
} else if (!isNaN(Number(value))) {
|
|
84834
|
+
value = Number(value);
|
|
84835
|
+
}
|
|
84836
|
+
|
|
84837
|
+
const time = new Date(value);
|
|
84838
|
+
|
|
84839
|
+
if (String(time) === 'Invalid Date') {
|
|
84840
|
+
throw new Error(`Time format unrecognized by ${value}, Please enter time stamp or legal time format.`);
|
|
84841
|
+
}
|
|
84842
|
+
|
|
84843
|
+
const dayMap = ['日', '一', '二', '三', '四', '五', '六'];
|
|
84844
|
+
const year = String(time.getFullYear());
|
|
84845
|
+
const month = time.getMonth() + 1 > 9 ? String(time.getMonth() + 1) : `0${String(time.getMonth() + 1)}`;
|
|
84846
|
+
const date = time.getDate() > 9 ? String(time.getDate()) : `0${String(time.getDate())}`;
|
|
84847
|
+
const day = time.getDay();
|
|
84848
|
+
const week = day !== 0 ? day : '日';
|
|
84849
|
+
const hours = time.getHours() > 9 ? String(time.getHours()) : `0${String(time.getHours())}`;
|
|
84850
|
+
const minutes = time.getMinutes() > 9 ? String(time.getMinutes()) : `0${time.getMinutes()}`;
|
|
84851
|
+
const seconds = time.getSeconds() > 9 ? String(time.getSeconds()) : `0${String(time.getSeconds())}`;
|
|
84852
|
+
let str = '';
|
|
84853
|
+
|
|
84854
|
+
if (/YYYY|YY/g.test(format)) {
|
|
84855
|
+
format.replace(/YYYY|YY/g, (reg, index, value) => {
|
|
84856
|
+
if (reg === 'YY') {
|
|
84857
|
+
str = value.replace('YY', year.slice(2));
|
|
84858
|
+
}
|
|
84859
|
+
|
|
84860
|
+
if (reg === 'YYYY') {
|
|
84861
|
+
str = value.replace('YYYY', year);
|
|
84862
|
+
}
|
|
84863
|
+
|
|
84864
|
+
return str;
|
|
84865
|
+
});
|
|
84866
|
+
} else {
|
|
84867
|
+
str = format;
|
|
84868
|
+
}
|
|
84869
|
+
|
|
84870
|
+
str = str.replace(/MM/g, month);
|
|
84871
|
+
str = str.replace(/dd/g, date);
|
|
84872
|
+
str = str.replace(/HH/g, hours);
|
|
84873
|
+
str = str.replace(/mm/g, minutes);
|
|
84874
|
+
str = str.replace(/ss/g, seconds);
|
|
84875
|
+
str = str.replace(/ww/g, week);
|
|
84876
|
+
str = str.replace(/WW/g, dayMap[day]);
|
|
84877
|
+
return str;
|
|
84878
|
+
}
|
|
84879
|
+
/**
|
|
84880
|
+
* @Description:两个日期大小比较(开始时间 > 结束时间,返回true)
|
|
84881
|
+
* @author LiuBo
|
|
84882
|
+
* @date 2022/7/15
|
|
84883
|
+
* @time 10:43
|
|
84884
|
+
* @param startTime 开始时间 (YYYY-MM-DD)
|
|
84885
|
+
* @param endTime 结束时间 (YYYY-MM-DD)
|
|
84886
|
+
* @modifyLog
|
|
84887
|
+
*/
|
|
84888
|
+
|
|
84889
|
+
|
|
84890
|
+
dateSizeCompare(startTime, endTime) {
|
|
84891
|
+
return new Date(Date.parse(startTime.replace(/-/g, "/"))).getTime() > new Date(Date.parse(endTime.replace(/-/g, "/"))).getTime();
|
|
84892
|
+
}
|
|
84893
|
+
|
|
84894
|
+
}
|
|
84895
|
+
|
|
84896
|
+
const dateFormat = new DateFormatService();
|
|
84897
|
+
|
|
84786
84898
|
// CONCATENATED MODULE: ./src/core/FormApi.ts
|
|
84787
84899
|
|
|
84788
84900
|
|
|
@@ -84796,6 +84908,7 @@ const DvFormLayout_exports_ = /*#__PURE__*/exportHelper_default()(DvFormLayoutvu
|
|
|
84796
84908
|
|
|
84797
84909
|
|
|
84798
84910
|
|
|
84911
|
+
|
|
84799
84912
|
var Attribute;
|
|
84800
84913
|
|
|
84801
84914
|
(function (Attribute) {
|
|
@@ -84868,6 +84981,7 @@ class FormApi_FormApi {
|
|
|
84868
84981
|
// 编辑状态
|
|
84869
84982
|
// 数据格式化模式
|
|
84870
84983
|
// api内部刷新标识
|
|
84984
|
+
//修改前数据
|
|
84871
84985
|
|
|
84872
84986
|
/**
|
|
84873
84987
|
* @description: 获取表单对象
|
|
@@ -84946,7 +85060,7 @@ class FormApi_FormApi {
|
|
|
84946
85060
|
*/
|
|
84947
85061
|
|
|
84948
85062
|
|
|
84949
|
-
setFormData(srcData, isDefault = false, validate = false) {
|
|
85063
|
+
setFormData(srcData, isDefault = false, validate = false, oldVal) {
|
|
84950
85064
|
if (this.dvForm.desForm.formGroup) {
|
|
84951
85065
|
this.setFormDataInner(srcData, isDefault, validate);
|
|
84952
85066
|
} else {
|
|
@@ -84954,6 +85068,8 @@ class FormApi_FormApi {
|
|
|
84954
85068
|
this.setFormDataInner(srcData, isDefault, validate);
|
|
84955
85069
|
});
|
|
84956
85070
|
}
|
|
85071
|
+
|
|
85072
|
+
if (oldVal) this.oldVal = srcData;
|
|
84957
85073
|
}
|
|
84958
85074
|
/**
|
|
84959
85075
|
* @description: 获取控件对象
|
|
@@ -85803,17 +85919,6 @@ class FormApi_FormApi {
|
|
|
85803
85919
|
const uuid = s.join("");
|
|
85804
85920
|
return uuid;
|
|
85805
85921
|
}
|
|
85806
|
-
/**
|
|
85807
|
-
* @Description: 设置旧表单值
|
|
85808
|
-
* @author lzs
|
|
85809
|
-
* @date 2022/9/5
|
|
85810
|
-
* @time 14:51
|
|
85811
|
-
*/
|
|
85812
|
-
|
|
85813
|
-
|
|
85814
|
-
setOldVal(oldVal) {
|
|
85815
|
-
this.oldVal = oldVal;
|
|
85816
|
-
}
|
|
85817
85922
|
/**
|
|
85818
85923
|
* @Description: 对比新旧表单值
|
|
85819
85924
|
* @author lzs
|
|
@@ -85824,21 +85929,61 @@ class FormApi_FormApi {
|
|
|
85824
85929
|
|
|
85825
85930
|
contrast(objectA, objectB) {
|
|
85826
85931
|
const object = {};
|
|
85932
|
+
const fieldInfoArr = [];
|
|
85827
85933
|
|
|
85828
85934
|
if (!objectB || !objectA) {
|
|
85935
|
+
object.changeLog = "必传参数不存在";
|
|
85829
85936
|
return object;
|
|
85830
85937
|
}
|
|
85831
85938
|
|
|
85832
85939
|
for (const key in objectA) {
|
|
85940
|
+
if (!objectA[key] && !objectB[key]) {
|
|
85941
|
+
continue;
|
|
85942
|
+
}
|
|
85943
|
+
|
|
85833
85944
|
if (objectA[key] !== objectB[key]) {
|
|
85834
|
-
|
|
85945
|
+
const oldValue = objectA[key]; // 记录新值
|
|
85946
|
+
|
|
85947
|
+
const newValue = objectB[key]; // 记录旧值
|
|
85948
|
+
|
|
85949
|
+
const fieldInfo = {}; //日志信息
|
|
85950
|
+
|
|
85951
|
+
fieldInfo.field_cd = key; //字段英文
|
|
85952
|
+
|
|
85835
85953
|
const control = this.getControl(key);
|
|
85836
|
-
|
|
85954
|
+
|
|
85955
|
+
if (!control) {
|
|
85956
|
+
continue;
|
|
85957
|
+
}
|
|
85958
|
+
|
|
85837
85959
|
const name = control.controlAttr.formFieldDescribe;
|
|
85838
|
-
|
|
85839
|
-
|
|
85840
|
-
|
|
85841
|
-
|
|
85960
|
+
fieldInfo.field_nm = name; //字段中文
|
|
85961
|
+
|
|
85962
|
+
fieldInfo.field_key = newValue; //当前值
|
|
85963
|
+
|
|
85964
|
+
const newDict = this.translateDictionaries(control, key, objectA[key], name); // 新值描述
|
|
85965
|
+
|
|
85966
|
+
fieldInfo.field_value = newDict; //当前值描述
|
|
85967
|
+
|
|
85968
|
+
fieldInfo.is_change = "1"; //是否变动
|
|
85969
|
+
|
|
85970
|
+
fieldInfo.field_old_key = oldValue; //旧值
|
|
85971
|
+
|
|
85972
|
+
const oldDict = this.translateDictionaries(control, key, objectA[key], name); //旧值描述
|
|
85973
|
+
|
|
85974
|
+
fieldInfo.field_old_value = oldDict; //field_old_value
|
|
85975
|
+
|
|
85976
|
+
object[key] = objectB[key];
|
|
85977
|
+
fieldInfoArr.push(fieldInfo);
|
|
85978
|
+
object.fieldInfoArr = fieldInfoArr;
|
|
85979
|
+
const oldName = objectA[key] ? oldDict : "空";
|
|
85980
|
+
const newName = objectB[key] ? newDict : "空";
|
|
85981
|
+
|
|
85982
|
+
if (control.code !== constants_enum["g" /* FormFieldType */].Custom.code) {
|
|
85983
|
+
//除自定义组件均记录日志
|
|
85984
|
+
object.changeLog = object.changeLog ? object.changeLog + "," : "";
|
|
85985
|
+
object.changeLog = object.changeLog + "修改【" + name + "】" + "由“" + oldName + "”修改为“" + newName + "”";
|
|
85986
|
+
}
|
|
85842
85987
|
}
|
|
85843
85988
|
}
|
|
85844
85989
|
|
|
@@ -85852,8 +85997,8 @@ class FormApi_FormApi {
|
|
|
85852
85997
|
*/
|
|
85853
85998
|
|
|
85854
85999
|
|
|
85855
|
-
translateDictionaries(control, key, value) {
|
|
85856
|
-
let str =
|
|
86000
|
+
translateDictionaries(control, key, value, name) {
|
|
86001
|
+
let str = name;
|
|
85857
86002
|
|
|
85858
86003
|
switch (control.code) {
|
|
85859
86004
|
case constants_enum["g" /* FormFieldType */].Input.code:
|
|
@@ -85912,6 +86057,7 @@ class FormApi_FormApi {
|
|
|
85912
86057
|
break;
|
|
85913
86058
|
|
|
85914
86059
|
case constants_enum["g" /* FormFieldType */].DatePicker.code:
|
|
86060
|
+
str = dateFormat.formatDateTime(value, "YYYY-MM-dd");
|
|
85915
86061
|
break;
|
|
85916
86062
|
|
|
85917
86063
|
case constants_enum["g" /* FormFieldType */].Cascader.code:
|
|
@@ -86560,8 +86706,8 @@ DvFormvue_type_script_lang_ts_DyForm = __decorate([Options({
|
|
|
86560
86706
|
/* harmony default export */ var DvFormvue_type_script_lang_ts = (DvFormvue_type_script_lang_ts_DyForm);
|
|
86561
86707
|
// CONCATENATED MODULE: ./src/components/form/DvForm.vue?vue&type=script&lang=ts
|
|
86562
86708
|
|
|
86563
|
-
// EXTERNAL MODULE: ./src/components/form/DvForm.vue?vue&type=style&index=0&id=
|
|
86564
|
-
var
|
|
86709
|
+
// EXTERNAL MODULE: ./src/components/form/DvForm.vue?vue&type=style&index=0&id=570608da&lang=scss&scoped=true
|
|
86710
|
+
var DvFormvue_type_style_index_0_id_570608da_lang_scss_scoped_true = __webpack_require__("8774");
|
|
86565
86711
|
|
|
86566
86712
|
// CONCATENATED MODULE: ./src/components/form/DvForm.vue
|
|
86567
86713
|
|
|
@@ -86571,7 +86717,7 @@ var DvFormvue_type_style_index_0_id_35f94d2f_lang_scss_scoped_true = __webpack_r
|
|
|
86571
86717
|
|
|
86572
86718
|
|
|
86573
86719
|
|
|
86574
|
-
const DvForm_exports_ = /*#__PURE__*/exportHelper_default()(DvFormvue_type_script_lang_ts, [['render',
|
|
86720
|
+
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"]])
|
|
86575
86721
|
|
|
86576
86722
|
/* harmony default export */ var DvForm = (DvForm_exports_);
|
|
86577
86723
|
// EXTERNAL MODULE: ./node_modules/decimal.js/decimal.js
|