@panpanzhao/component-ui 1.25.205 → 1.25.313
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/lib/component-ui.common.js +10288 -9841
- package/lib/components/crud.js +5 -5
- package/lib/components/form-dialog.js +4 -4
- package/lib/components/form-drawer.js +2 -2
- package/lib/components/form-group.js +3 -3
- package/lib/components/form-input.js +1392 -1392
- package/lib/components/form-query.js +13 -13
- package/lib/components/form-view-dialog.js +3 -3
- package/lib/components/form.js +3 -3
- package/lib/components/table-operate.js +5 -5
- package/lib/index.js +1 -1
- package/lib/styles/component-ui.css +1 -1
- package/lib/styles/form.css +1 -1
- package/lib/styles/index.css +1 -1
- package/package.json +1 -1
|
@@ -367,76 +367,106 @@ function checkFile(data, _ref3) {
|
|
|
367
367
|
/* 40 */
|
|
368
368
|
/***/ (function(module, exports) {
|
|
369
369
|
|
|
370
|
-
module.exports = require("element-ui/lib/
|
|
370
|
+
module.exports = require("element-ui/lib/slider");
|
|
371
371
|
|
|
372
372
|
/***/ }),
|
|
373
373
|
/* 41 */
|
|
374
374
|
/***/ (function(module, exports) {
|
|
375
375
|
|
|
376
|
-
module.exports = require("element-ui/lib/
|
|
376
|
+
module.exports = require("element-ui/lib/switch");
|
|
377
377
|
|
|
378
378
|
/***/ }),
|
|
379
379
|
/* 42 */
|
|
380
380
|
/***/ (function(module, exports) {
|
|
381
381
|
|
|
382
|
-
module.exports = require("element-ui/lib/
|
|
382
|
+
module.exports = require("element-ui/lib/time-picker");
|
|
383
383
|
|
|
384
384
|
/***/ }),
|
|
385
385
|
/* 43 */
|
|
386
386
|
/***/ (function(module, exports) {
|
|
387
387
|
|
|
388
|
-
module.exports = require("element-ui/lib/
|
|
388
|
+
module.exports = require("element-ui/lib/transfer");
|
|
389
389
|
|
|
390
390
|
/***/ }),
|
|
391
391
|
/* 44 */
|
|
392
392
|
/***/ (function(module, exports) {
|
|
393
393
|
|
|
394
|
-
module.exports = require("
|
|
394
|
+
module.exports = require("element-ui/lib/upload");
|
|
395
395
|
|
|
396
396
|
/***/ }),
|
|
397
397
|
/* 45 */
|
|
398
398
|
/***/ (function(module, exports) {
|
|
399
399
|
|
|
400
|
-
module.exports = require("element-ui/lib/
|
|
400
|
+
module.exports = require("element-ui/lib/checkbox-group");
|
|
401
401
|
|
|
402
402
|
/***/ }),
|
|
403
403
|
/* 46 */
|
|
404
404
|
/***/ (function(module, exports) {
|
|
405
405
|
|
|
406
|
-
module.exports = require("element-ui/lib/
|
|
406
|
+
module.exports = require("element-ui/lib/checkbox");
|
|
407
407
|
|
|
408
408
|
/***/ }),
|
|
409
409
|
/* 47 */
|
|
410
410
|
/***/ (function(module, exports) {
|
|
411
411
|
|
|
412
|
-
module.exports = require("element-ui/lib/checkbox-
|
|
412
|
+
module.exports = require("element-ui/lib/checkbox-button");
|
|
413
413
|
|
|
414
414
|
/***/ }),
|
|
415
415
|
/* 48 */
|
|
416
416
|
/***/ (function(module, exports) {
|
|
417
417
|
|
|
418
|
-
module.exports = require("element-ui/lib/
|
|
418
|
+
module.exports = require("element-ui/lib/date-picker");
|
|
419
419
|
|
|
420
420
|
/***/ }),
|
|
421
421
|
/* 49 */
|
|
422
422
|
/***/ (function(module, exports) {
|
|
423
423
|
|
|
424
|
-
module.exports = require("element-ui/lib/
|
|
424
|
+
module.exports = require("element-ui/lib/input-number");
|
|
425
425
|
|
|
426
426
|
/***/ }),
|
|
427
427
|
/* 50 */
|
|
428
428
|
/***/ (function(module, exports) {
|
|
429
429
|
|
|
430
|
-
module.exports = require("element-ui/lib/
|
|
430
|
+
module.exports = require("element-ui/lib/radio-group");
|
|
431
431
|
|
|
432
432
|
/***/ }),
|
|
433
433
|
/* 51 */
|
|
434
|
+
/***/ (function(module, exports) {
|
|
435
|
+
|
|
436
|
+
module.exports = require("element-ui/lib/radio-button");
|
|
437
|
+
|
|
438
|
+
/***/ }),
|
|
439
|
+
/* 52 */
|
|
440
|
+
/***/ (function(module, exports) {
|
|
441
|
+
|
|
442
|
+
module.exports = require("element-ui/lib/select");
|
|
443
|
+
|
|
444
|
+
/***/ }),
|
|
445
|
+
/* 53 */
|
|
446
|
+
/***/ (function(module, exports) {
|
|
447
|
+
|
|
448
|
+
module.exports = require("element-ui/lib/option");
|
|
449
|
+
|
|
450
|
+
/***/ }),
|
|
451
|
+
/* 54 */
|
|
452
|
+
/***/ (function(module, exports) {
|
|
453
|
+
|
|
454
|
+
module.exports = require("element-ui/lib/option-group");
|
|
455
|
+
|
|
456
|
+
/***/ }),
|
|
457
|
+
/* 55 */
|
|
458
|
+
/***/ (function(module, exports) {
|
|
459
|
+
|
|
460
|
+
module.exports = require("@panpanzhao/component-ui/lib/components/tree-line");
|
|
461
|
+
|
|
462
|
+
/***/ }),
|
|
463
|
+
/* 56 */
|
|
434
464
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
435
465
|
|
|
436
466
|
"use strict";
|
|
437
467
|
/* WEBPACK VAR INJECTION */(function(__webpack__worker__0) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LargeUpload; });
|
|
438
468
|
/* harmony import */ var _remote_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36);
|
|
439
|
-
/* harmony import */ var js_md5__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
469
|
+
/* harmony import */ var js_md5__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(57);
|
|
440
470
|
/* harmony import */ var js_md5__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(js_md5__WEBPACK_IMPORTED_MODULE_1__);
|
|
441
471
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
442
472
|
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -925,41 +955,11 @@ function _uploadSignleFile2() {
|
|
|
925
955
|
|
|
926
956
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(70)))
|
|
927
957
|
|
|
928
|
-
/***/ }),
|
|
929
|
-
/* 52 */
|
|
930
|
-
/***/ (function(module, exports) {
|
|
931
|
-
|
|
932
|
-
module.exports = require("js-md5");
|
|
933
|
-
|
|
934
|
-
/***/ }),
|
|
935
|
-
/* 53 */
|
|
936
|
-
/***/ (function(module, exports) {
|
|
937
|
-
|
|
938
|
-
module.exports = require("element-ui/lib/switch");
|
|
939
|
-
|
|
940
|
-
/***/ }),
|
|
941
|
-
/* 54 */
|
|
942
|
-
/***/ (function(module, exports) {
|
|
943
|
-
|
|
944
|
-
module.exports = require("element-ui/lib/slider");
|
|
945
|
-
|
|
946
|
-
/***/ }),
|
|
947
|
-
/* 55 */
|
|
948
|
-
/***/ (function(module, exports) {
|
|
949
|
-
|
|
950
|
-
module.exports = require("element-ui/lib/transfer");
|
|
951
|
-
|
|
952
|
-
/***/ }),
|
|
953
|
-
/* 56 */
|
|
954
|
-
/***/ (function(module, exports) {
|
|
955
|
-
|
|
956
|
-
module.exports = require("element-ui/lib/time-picker");
|
|
957
|
-
|
|
958
958
|
/***/ }),
|
|
959
959
|
/* 57 */
|
|
960
960
|
/***/ (function(module, exports) {
|
|
961
961
|
|
|
962
|
-
module.exports = require("
|
|
962
|
+
module.exports = require("js-md5");
|
|
963
963
|
|
|
964
964
|
/***/ }),
|
|
965
965
|
/* 58 */,
|
|
@@ -995,51 +995,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
995
995
|
var babel_helper_vue_jsx_merge_props_ = __webpack_require__(0);
|
|
996
996
|
var babel_helper_vue_jsx_merge_props_default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props_);
|
|
997
997
|
|
|
998
|
-
//
|
|
999
|
-
var
|
|
998
|
+
// EXTERNAL MODULE: external "element-ui/lib/slider"
|
|
999
|
+
var slider_ = __webpack_require__(40);
|
|
1000
|
+
var slider_default = /*#__PURE__*/__webpack_require__.n(slider_);
|
|
1001
|
+
|
|
1002
|
+
// EXTERNAL MODULE: external "element-ui/lib/switch"
|
|
1003
|
+
var switch_ = __webpack_require__(41);
|
|
1004
|
+
var switch_default = /*#__PURE__*/__webpack_require__.n(switch_);
|
|
1005
|
+
|
|
1006
|
+
// EXTERNAL MODULE: external "element-ui/lib/time-picker"
|
|
1007
|
+
var time_picker_ = __webpack_require__(42);
|
|
1008
|
+
var time_picker_default = /*#__PURE__*/__webpack_require__.n(time_picker_);
|
|
1009
|
+
|
|
1010
|
+
// EXTERNAL MODULE: external "element-ui/lib/transfer"
|
|
1011
|
+
var transfer_ = __webpack_require__(43);
|
|
1012
|
+
var transfer_default = /*#__PURE__*/__webpack_require__.n(transfer_);
|
|
1013
|
+
|
|
1014
|
+
// EXTERNAL MODULE: external "element-ui/lib/upload"
|
|
1015
|
+
var upload_ = __webpack_require__(44);
|
|
1016
|
+
var upload_default = /*#__PURE__*/__webpack_require__.n(upload_);
|
|
1017
|
+
|
|
1018
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/Cascader.vue?vue&type=template&id=2270d279
|
|
1019
|
+
var Cascadervue_type_template_id_2270d279_render = function render() {
|
|
1000
1020
|
var _vm = this,
|
|
1001
1021
|
_c = _vm._self._c
|
|
1002
1022
|
return _c(
|
|
1003
|
-
"el-
|
|
1023
|
+
"el-cascader",
|
|
1004
1024
|
_vm._g(
|
|
1005
1025
|
_vm._b(
|
|
1006
|
-
{
|
|
1007
|
-
|
|
1008
|
-
[
|
|
1009
|
-
{
|
|
1010
|
-
key: "prefix",
|
|
1011
|
-
fn: function () {
|
|
1012
|
-
return [_vm._t("prefix")]
|
|
1013
|
-
},
|
|
1014
|
-
proxy: true,
|
|
1015
|
-
},
|
|
1016
|
-
{
|
|
1017
|
-
key: "suffix",
|
|
1018
|
-
fn: function () {
|
|
1019
|
-
return [_vm._t("suffix")]
|
|
1020
|
-
},
|
|
1021
|
-
proxy: true,
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
key: "prepend",
|
|
1025
|
-
fn: function () {
|
|
1026
|
-
return [_vm._t("prepend")]
|
|
1027
|
-
},
|
|
1028
|
-
proxy: true,
|
|
1029
|
-
},
|
|
1030
|
-
{
|
|
1031
|
-
key: "append",
|
|
1032
|
-
fn: function () {
|
|
1033
|
-
return [_vm._t("append")]
|
|
1034
|
-
},
|
|
1035
|
-
proxy: true,
|
|
1036
|
-
},
|
|
1037
|
-
],
|
|
1038
|
-
null,
|
|
1039
|
-
true
|
|
1040
|
-
),
|
|
1041
|
-
},
|
|
1042
|
-
"el-input",
|
|
1026
|
+
{ attrs: { options: _vm.optionData } },
|
|
1027
|
+
"el-cascader",
|
|
1043
1028
|
_vm.attrs,
|
|
1044
1029
|
false
|
|
1045
1030
|
),
|
|
@@ -1048,140 +1033,129 @@ var Inputvue_type_template_id_74fa485e_render = function render() {
|
|
|
1048
1033
|
)
|
|
1049
1034
|
}
|
|
1050
1035
|
var staticRenderFns = []
|
|
1051
|
-
|
|
1036
|
+
Cascadervue_type_template_id_2270d279_render._withStripped = true
|
|
1052
1037
|
|
|
1053
1038
|
|
|
1054
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/
|
|
1039
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Cascader.vue?vue&type=template&id=2270d279
|
|
1055
1040
|
|
|
1056
|
-
// EXTERNAL MODULE: external "
|
|
1057
|
-
var
|
|
1058
|
-
var input_default = /*#__PURE__*/__webpack_require__.n(input_);
|
|
1041
|
+
// EXTERNAL MODULE: external "@panpanzhao/component-ui/lib/utils/formula"
|
|
1042
|
+
var formula_ = __webpack_require__(3);
|
|
1059
1043
|
|
|
1060
|
-
//
|
|
1044
|
+
// EXTERNAL MODULE: external "element-ui/lib/cascader"
|
|
1045
|
+
var cascader_ = __webpack_require__(35);
|
|
1046
|
+
var cascader_default = /*#__PURE__*/__webpack_require__.n(cascader_);
|
|
1061
1047
|
|
|
1062
|
-
|
|
1063
|
-
|
|
1048
|
+
// EXTERNAL MODULE: external "lodash"
|
|
1049
|
+
var external_lodash_ = __webpack_require__(2);
|
|
1050
|
+
|
|
1051
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/Cascader.vue?vue&type=script&lang=js
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
/* harmony default export */ var Cascadervue_type_script_lang_js = ({
|
|
1056
|
+
name: "Cascader",
|
|
1064
1057
|
components: {
|
|
1065
|
-
|
|
1058
|
+
elCascader: cascader_default.a
|
|
1059
|
+
},
|
|
1060
|
+
props: {
|
|
1061
|
+
size: String,
|
|
1062
|
+
dictCode: String,
|
|
1063
|
+
api: {
|
|
1064
|
+
type: Object,
|
|
1065
|
+
default: function _default() {
|
|
1066
|
+
return null;
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
apiOpen: {
|
|
1070
|
+
type: Boolean,
|
|
1071
|
+
default: function _default() {
|
|
1072
|
+
return true;
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
1075
|
+
options: {
|
|
1076
|
+
type: Array,
|
|
1077
|
+
default: function _default() {
|
|
1078
|
+
return null;
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1066
1081
|
},
|
|
1067
|
-
props: {},
|
|
1068
1082
|
computed: {
|
|
1069
1083
|
attrs: function attrs() {
|
|
1070
|
-
return Object.assign({
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1084
|
+
return Object.assign({}, this.$attrs);
|
|
1085
|
+
},
|
|
1086
|
+
dictOption: function dictOption() {
|
|
1087
|
+
if (this.dictCode && this.$COMPONENT.dataSource && this.$COMPONENT.dataSource.dict) {
|
|
1088
|
+
return this.$COMPONENT.dataSource.dict[this.dictCode];
|
|
1089
|
+
}
|
|
1090
|
+
return [];
|
|
1091
|
+
},
|
|
1092
|
+
optionData: function optionData() {
|
|
1093
|
+
return this.options || this.apiOptions || this.dictOption;
|
|
1094
|
+
},
|
|
1095
|
+
_form: function _form() {
|
|
1096
|
+
var parent = this.$parent;
|
|
1097
|
+
while (parent) {
|
|
1098
|
+
if (parent.$options.componentName !== 'Form') {
|
|
1099
|
+
parent = parent.$parent;
|
|
1100
|
+
} else {
|
|
1101
|
+
return parent;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
return false;
|
|
1105
|
+
},
|
|
1106
|
+
request: function request() {
|
|
1107
|
+
return this.api.request || this._form && this._form.request || (this.$COMPONENT || {}).request;
|
|
1075
1108
|
}
|
|
1076
|
-
}
|
|
1077
|
-
});
|
|
1078
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/Input.vue?vue&type=script&lang=js
|
|
1079
|
-
/* harmony default export */ var item_Inputvue_type_script_lang_js = (Inputvue_type_script_lang_js);
|
|
1080
|
-
// EXTERNAL MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1081
|
-
var componentNormalizer = __webpack_require__(1);
|
|
1082
|
-
|
|
1083
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/Input.vue
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
/* normalize component */
|
|
1090
|
-
|
|
1091
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
1092
|
-
item_Inputvue_type_script_lang_js,
|
|
1093
|
-
Inputvue_type_template_id_74fa485e_render,
|
|
1094
|
-
staticRenderFns,
|
|
1095
|
-
false,
|
|
1096
|
-
null,
|
|
1097
|
-
null,
|
|
1098
|
-
null
|
|
1099
|
-
|
|
1100
|
-
)
|
|
1101
|
-
|
|
1102
|
-
/* harmony default export */ var Input = (component.exports);
|
|
1103
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/InputNumber.vue?vue&type=template&id=6c463d52
|
|
1104
|
-
var InputNumbervue_type_template_id_6c463d52_render = function render() {
|
|
1105
|
-
var _vm = this,
|
|
1106
|
-
_c = _vm._self._c
|
|
1107
|
-
return _c(
|
|
1108
|
-
"el-input-number",
|
|
1109
|
-
_vm._g(
|
|
1110
|
-
_vm._b(
|
|
1111
|
-
{
|
|
1112
|
-
scopedSlots: _vm._u(
|
|
1113
|
-
[
|
|
1114
|
-
{
|
|
1115
|
-
key: "prefix",
|
|
1116
|
-
fn: function () {
|
|
1117
|
-
return [_vm._t("prefix")]
|
|
1118
|
-
},
|
|
1119
|
-
proxy: true,
|
|
1120
|
-
},
|
|
1121
|
-
{
|
|
1122
|
-
key: "suffix",
|
|
1123
|
-
fn: function () {
|
|
1124
|
-
return [_vm._t("suffix")]
|
|
1125
|
-
},
|
|
1126
|
-
proxy: true,
|
|
1127
|
-
},
|
|
1128
|
-
{
|
|
1129
|
-
key: "prepend",
|
|
1130
|
-
fn: function () {
|
|
1131
|
-
return [_vm._t("prepend")]
|
|
1132
|
-
},
|
|
1133
|
-
proxy: true,
|
|
1134
|
-
},
|
|
1135
|
-
{
|
|
1136
|
-
key: "append",
|
|
1137
|
-
fn: function () {
|
|
1138
|
-
return [_vm._t("append")]
|
|
1139
|
-
},
|
|
1140
|
-
proxy: true,
|
|
1141
|
-
},
|
|
1142
|
-
],
|
|
1143
|
-
null,
|
|
1144
|
-
true
|
|
1145
|
-
),
|
|
1146
|
-
},
|
|
1147
|
-
"el-input-number",
|
|
1148
|
-
_vm.attrs,
|
|
1149
|
-
false
|
|
1150
|
-
),
|
|
1151
|
-
_vm.$listeners
|
|
1152
|
-
)
|
|
1153
|
-
)
|
|
1154
|
-
}
|
|
1155
|
-
var InputNumbervue_type_template_id_6c463d52_staticRenderFns = []
|
|
1156
|
-
InputNumbervue_type_template_id_6c463d52_render._withStripped = true
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/InputNumber.vue?vue&type=template&id=6c463d52
|
|
1160
|
-
|
|
1161
|
-
// EXTERNAL MODULE: external "element-ui/lib/input-number"
|
|
1162
|
-
var input_number_ = __webpack_require__(40);
|
|
1163
|
-
var input_number_default = /*#__PURE__*/__webpack_require__.n(input_number_);
|
|
1164
|
-
|
|
1165
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/InputNumber.vue?vue&type=script&lang=js
|
|
1166
|
-
|
|
1167
|
-
/* harmony default export */ var InputNumbervue_type_script_lang_js = ({
|
|
1168
|
-
name: "InputNumber",
|
|
1169
|
-
components: {
|
|
1170
|
-
elInputNumber: input_number_default.a
|
|
1171
1109
|
},
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1110
|
+
data: function data() {
|
|
1111
|
+
return {
|
|
1112
|
+
apiOptions: null
|
|
1113
|
+
};
|
|
1114
|
+
},
|
|
1115
|
+
mounted: function mounted() {
|
|
1116
|
+
if (this.apiOpen) {
|
|
1117
|
+
this.initApi();
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
methods: {
|
|
1121
|
+
initApi: function initApi() {
|
|
1122
|
+
var _this = this;
|
|
1123
|
+
if (!(this.api && this.api.url && this.request)) {
|
|
1124
|
+
return false;
|
|
1125
|
+
}
|
|
1126
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
1127
|
+
// let reqData=merge({},this.api.data)
|
|
1128
|
+
if (typeof this.api.before === "function") {
|
|
1129
|
+
reqData = this.api.before.call(this, reqData, {
|
|
1130
|
+
form: this._form,
|
|
1131
|
+
formModel: this._form && this._form.formModel
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
this.request({
|
|
1135
|
+
url: Object(formula_["evaluate"])(this.api.url, reqData),
|
|
1136
|
+
method: this.api.method || "GET",
|
|
1137
|
+
headers: this.api.headers,
|
|
1138
|
+
data: reqData
|
|
1139
|
+
}).then(function (res) {
|
|
1140
|
+
if (typeof _this.api.after === "function") {
|
|
1141
|
+
res = _this.api.after.call(_this, res, {
|
|
1142
|
+
form: _this._form,
|
|
1143
|
+
formModel: _this._form && _this._form.formModel
|
|
1144
|
+
});
|
|
1145
|
+
}
|
|
1146
|
+
_this.apiOptions = _this.api.dataPath ? Object(external_lodash_["get"])(res, _this.api.dataPath, []) : res;
|
|
1147
|
+
}).catch(function (error) {
|
|
1148
|
+
_this.apiOptions = null;
|
|
1149
|
+
});
|
|
1179
1150
|
}
|
|
1180
1151
|
}
|
|
1181
1152
|
});
|
|
1182
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/
|
|
1183
|
-
/* harmony default export */ var
|
|
1184
|
-
//
|
|
1153
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Cascader.vue?vue&type=script&lang=js
|
|
1154
|
+
/* harmony default export */ var item_Cascadervue_type_script_lang_js = (Cascadervue_type_script_lang_js);
|
|
1155
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1156
|
+
var componentNormalizer = __webpack_require__(1);
|
|
1157
|
+
|
|
1158
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Cascader.vue
|
|
1185
1159
|
|
|
1186
1160
|
|
|
1187
1161
|
|
|
@@ -1189,10 +1163,10 @@ var input_number_default = /*#__PURE__*/__webpack_require__.n(input_number_);
|
|
|
1189
1163
|
|
|
1190
1164
|
/* normalize component */
|
|
1191
1165
|
|
|
1192
|
-
var
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1166
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
1167
|
+
item_Cascadervue_type_script_lang_js,
|
|
1168
|
+
Cascadervue_type_template_id_2270d279_render,
|
|
1169
|
+
staticRenderFns,
|
|
1196
1170
|
false,
|
|
1197
1171
|
null,
|
|
1198
1172
|
null,
|
|
@@ -1200,361 +1174,388 @@ var InputNumber_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1200
1174
|
|
|
1201
1175
|
)
|
|
1202
1176
|
|
|
1203
|
-
/* harmony default export */ var
|
|
1204
|
-
//
|
|
1205
|
-
var
|
|
1206
|
-
var select_default = /*#__PURE__*/__webpack_require__.n(select_);
|
|
1207
|
-
|
|
1208
|
-
// EXTERNAL MODULE: external "element-ui/lib/option"
|
|
1209
|
-
var option_ = __webpack_require__(42);
|
|
1210
|
-
var option_default = /*#__PURE__*/__webpack_require__.n(option_);
|
|
1211
|
-
|
|
1212
|
-
// EXTERNAL MODULE: external "element-ui/lib/option-group"
|
|
1213
|
-
var option_group_ = __webpack_require__(43);
|
|
1214
|
-
var option_group_default = /*#__PURE__*/__webpack_require__.n(option_group_);
|
|
1215
|
-
|
|
1216
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/SelectTree.vue?vue&type=template&id=0f44d547
|
|
1217
|
-
var SelectTreevue_type_template_id_0f44d547_render = function render() {
|
|
1177
|
+
/* harmony default export */ var Cascader = (component.exports);
|
|
1178
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/CascaderAddr.vue?vue&type=template&id=df02c66e
|
|
1179
|
+
var CascaderAddrvue_type_template_id_df02c66e_render = function render() {
|
|
1218
1180
|
var _vm = this,
|
|
1219
1181
|
_c = _vm._self._c
|
|
1220
1182
|
return _c(
|
|
1221
1183
|
"div",
|
|
1222
|
-
{ staticClass: "
|
|
1184
|
+
{ staticClass: "cascader-addr", class: { isAddr: _vm.showAddress } },
|
|
1223
1185
|
[
|
|
1224
1186
|
_c(
|
|
1225
|
-
"
|
|
1226
|
-
|
|
1227
|
-
_vm._b(
|
|
1228
|
-
{
|
|
1229
|
-
ref: "select",
|
|
1230
|
-
model: {
|
|
1231
|
-
value: _vm.selectedData,
|
|
1232
|
-
callback: function ($$v) {
|
|
1233
|
-
_vm.selectedData = $$v
|
|
1234
|
-
},
|
|
1235
|
-
expression: "selectedData",
|
|
1236
|
-
},
|
|
1237
|
-
},
|
|
1238
|
-
"el-select",
|
|
1239
|
-
_vm.selectAttrs,
|
|
1240
|
-
false
|
|
1241
|
-
),
|
|
1242
|
-
_vm.selectEvent
|
|
1243
|
-
),
|
|
1187
|
+
"div",
|
|
1188
|
+
{ staticClass: "cascader-addr__cascader" },
|
|
1244
1189
|
[
|
|
1245
1190
|
_c(
|
|
1246
|
-
"el-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1191
|
+
"el-cascader",
|
|
1192
|
+
_vm._b(
|
|
1193
|
+
{
|
|
1194
|
+
ref: "cascaderRef",
|
|
1195
|
+
on: { change: _vm.cascaderChange },
|
|
1196
|
+
model: {
|
|
1197
|
+
value: _vm.cascaderValue,
|
|
1198
|
+
callback: function ($$v) {
|
|
1199
|
+
_vm.cascaderValue = $$v
|
|
1200
|
+
},
|
|
1201
|
+
expression: "cascaderValue",
|
|
1202
|
+
},
|
|
1252
1203
|
},
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
? _c(
|
|
1258
|
-
"el-tree",
|
|
1259
|
-
_vm._g(
|
|
1260
|
-
_vm._b(
|
|
1261
|
-
{
|
|
1262
|
-
ref: "tree",
|
|
1263
|
-
attrs: { "filter-node-method": _vm.filterTree },
|
|
1264
|
-
on: {
|
|
1265
|
-
"node-click": _vm.handleNodeClick,
|
|
1266
|
-
"check-change": _vm.handleCheckChange,
|
|
1267
|
-
},
|
|
1268
|
-
scopedSlots: _vm._u(
|
|
1269
|
-
[
|
|
1270
|
-
{
|
|
1271
|
-
key: "default",
|
|
1272
|
-
fn: function ({ node }) {
|
|
1273
|
-
return [
|
|
1274
|
-
_c("TreeLine", { attrs: { node: node } }),
|
|
1275
|
-
]
|
|
1276
|
-
},
|
|
1277
|
-
},
|
|
1278
|
-
],
|
|
1279
|
-
null,
|
|
1280
|
-
false,
|
|
1281
|
-
2976651565
|
|
1282
|
-
),
|
|
1283
|
-
},
|
|
1284
|
-
"el-tree",
|
|
1285
|
-
_vm.treeAttrs,
|
|
1286
|
-
false
|
|
1287
|
-
),
|
|
1288
|
-
_vm.$listeners
|
|
1289
|
-
)
|
|
1290
|
-
)
|
|
1291
|
-
: _c("p", [_vm._v("无数据")]),
|
|
1292
|
-
],
|
|
1293
|
-
1
|
|
1204
|
+
"el-cascader",
|
|
1205
|
+
_vm.cascaderAttrs,
|
|
1206
|
+
false
|
|
1207
|
+
)
|
|
1294
1208
|
),
|
|
1295
1209
|
],
|
|
1296
1210
|
1
|
|
1297
1211
|
),
|
|
1298
|
-
|
|
1299
|
-
|
|
1212
|
+
_vm.showAddress
|
|
1213
|
+
? _c(
|
|
1214
|
+
"div",
|
|
1215
|
+
{ staticClass: "cascader-addr__input" },
|
|
1216
|
+
[
|
|
1217
|
+
_c(
|
|
1218
|
+
"el-input",
|
|
1219
|
+
_vm._b(
|
|
1220
|
+
{
|
|
1221
|
+
on: { change: _vm.inputChange, clear: _vm.inputChange },
|
|
1222
|
+
model: {
|
|
1223
|
+
value: _vm.inputValue,
|
|
1224
|
+
callback: function ($$v) {
|
|
1225
|
+
_vm.inputValue = $$v
|
|
1226
|
+
},
|
|
1227
|
+
expression: "inputValue",
|
|
1228
|
+
},
|
|
1229
|
+
},
|
|
1230
|
+
"el-input",
|
|
1231
|
+
_vm.inputAttrs,
|
|
1232
|
+
false
|
|
1233
|
+
)
|
|
1234
|
+
),
|
|
1235
|
+
],
|
|
1236
|
+
1
|
|
1237
|
+
)
|
|
1238
|
+
: _vm._e(),
|
|
1239
|
+
]
|
|
1300
1240
|
)
|
|
1301
1241
|
}
|
|
1302
|
-
var
|
|
1303
|
-
|
|
1304
|
-
|
|
1242
|
+
var CascaderAddrvue_type_template_id_df02c66e_staticRenderFns = []
|
|
1243
|
+
CascaderAddrvue_type_template_id_df02c66e_render._withStripped = true
|
|
1305
1244
|
|
|
1306
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/SelectTree.vue?vue&type=template&id=0f44d547
|
|
1307
1245
|
|
|
1308
|
-
//
|
|
1309
|
-
var tree_line_ = __webpack_require__(44);
|
|
1310
|
-
var tree_line_default = /*#__PURE__*/__webpack_require__.n(tree_line_);
|
|
1246
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue?vue&type=template&id=df02c66e
|
|
1311
1247
|
|
|
1312
|
-
//
|
|
1248
|
+
// EXTERNAL MODULE: external "element-ui/lib/input"
|
|
1249
|
+
var input_ = __webpack_require__(24);
|
|
1250
|
+
var input_default = /*#__PURE__*/__webpack_require__.n(input_);
|
|
1313
1251
|
|
|
1314
|
-
|
|
1315
|
-
|
|
1252
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/CascaderAddr.vue?vue&type=script&lang=js
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
/* harmony default export */ var CascaderAddrvue_type_script_lang_js = ({
|
|
1257
|
+
name: "CascaderAddr",
|
|
1316
1258
|
components: {
|
|
1317
|
-
|
|
1259
|
+
elCascader: cascader_default.a,
|
|
1260
|
+
elInput: input_default.a
|
|
1318
1261
|
},
|
|
1319
1262
|
props: {
|
|
1263
|
+
size: String,
|
|
1320
1264
|
value: {
|
|
1321
|
-
type:
|
|
1265
|
+
type: Object,
|
|
1266
|
+
default: function _default() {
|
|
1267
|
+
return null;
|
|
1268
|
+
}
|
|
1322
1269
|
},
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1270
|
+
showAddress: {
|
|
1271
|
+
type: Boolean,
|
|
1272
|
+
default: true
|
|
1273
|
+
},
|
|
1274
|
+
cascader: {
|
|
1275
|
+
type: Object,
|
|
1326
1276
|
default: function _default() {
|
|
1327
|
-
return
|
|
1277
|
+
return {};
|
|
1328
1278
|
}
|
|
1329
1279
|
},
|
|
1330
|
-
|
|
1280
|
+
input: {
|
|
1331
1281
|
type: Object,
|
|
1332
1282
|
default: function _default() {
|
|
1333
|
-
return {
|
|
1334
|
-
value: "value",
|
|
1335
|
-
label: "label",
|
|
1336
|
-
children: "children"
|
|
1337
|
-
};
|
|
1283
|
+
return {};
|
|
1338
1284
|
}
|
|
1339
1285
|
},
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
type: Boolean,
|
|
1286
|
+
api: {
|
|
1287
|
+
type: Object,
|
|
1343
1288
|
default: function _default() {
|
|
1344
|
-
return
|
|
1289
|
+
return {};
|
|
1345
1290
|
}
|
|
1346
1291
|
},
|
|
1347
|
-
|
|
1348
|
-
|
|
1292
|
+
dictCode: String,
|
|
1293
|
+
options: {
|
|
1294
|
+
type: Array,
|
|
1349
1295
|
default: function _default() {
|
|
1350
|
-
return
|
|
1296
|
+
return null;
|
|
1351
1297
|
}
|
|
1352
1298
|
},
|
|
1353
|
-
|
|
1299
|
+
optionProps: {
|
|
1354
1300
|
type: Object,
|
|
1355
1301
|
default: function _default() {
|
|
1356
1302
|
return {};
|
|
1357
1303
|
}
|
|
1304
|
+
},
|
|
1305
|
+
fieldProps: {
|
|
1306
|
+
type: Object,
|
|
1307
|
+
default: function _default() {
|
|
1308
|
+
return {
|
|
1309
|
+
provinceCode: "provinceCode",
|
|
1310
|
+
provinceName: "provinceName",
|
|
1311
|
+
cityCode: "cityCode",
|
|
1312
|
+
cityName: "cityName",
|
|
1313
|
+
countyCode: "countyCode",
|
|
1314
|
+
countyName: "countyName",
|
|
1315
|
+
address: "address"
|
|
1316
|
+
};
|
|
1317
|
+
}
|
|
1358
1318
|
}
|
|
1359
1319
|
},
|
|
1360
|
-
data: function data() {
|
|
1361
|
-
return {
|
|
1362
|
-
selectedData: this.multiple ? [] : null,
|
|
1363
|
-
// 选中的name
|
|
1364
|
-
checkedKeys: [],
|
|
1365
|
-
//选中的id
|
|
1366
|
-
checkedData: [] //选中的信息
|
|
1367
|
-
};
|
|
1368
|
-
},
|
|
1369
1320
|
watch: {
|
|
1370
|
-
value:
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1321
|
+
value: {
|
|
1322
|
+
handler: function handler(val) {
|
|
1323
|
+
var _this$_form;
|
|
1324
|
+
var provinceCodeVal = val == null ? void 0 : val[this._fieldProps['provinceCode']];
|
|
1325
|
+
var cityCodeVal = val == null ? void 0 : val[this._fieldProps['cityCode']];
|
|
1326
|
+
var countyCodeVal = val == null ? void 0 : val[this._fieldProps['countyCode']];
|
|
1327
|
+
var provinceNameVal = val == null ? void 0 : val[this._fieldProps['provinceName']];
|
|
1328
|
+
var cityNameVal = val == null ? void 0 : val[this._fieldProps['cityName']];
|
|
1329
|
+
var countyNameVal = val == null ? void 0 : val[this._fieldProps['countyName']];
|
|
1330
|
+
var addressVal = val == null ? void 0 : val[this._fieldProps['address']];
|
|
1331
|
+
this.valueCached['provinceCode'] = provinceCodeVal;
|
|
1332
|
+
this.valueCached['cityCode'] = cityCodeVal;
|
|
1333
|
+
this.valueCached['countyCode'] = countyCodeVal;
|
|
1334
|
+
this.valueCached['provinceName'] = provinceNameVal;
|
|
1335
|
+
this.valueCached['cityName'] = cityNameVal;
|
|
1336
|
+
this.valueCached['countyName'] = countyNameVal;
|
|
1337
|
+
this.valueCached['address'] = addressVal;
|
|
1338
|
+
if ((_this$_form = this._form) != null && _this$_form.formModel) {
|
|
1339
|
+
this._form.formModel[this._fieldProps['provinceCode']] = provinceCodeVal;
|
|
1340
|
+
this._form.formModel[this._fieldProps['cityCode']] = cityCodeVal;
|
|
1341
|
+
this._form.formModel[this._fieldProps['countyCode']] = countyCodeVal;
|
|
1342
|
+
this._form.formModel[this._fieldProps['provinceName']] = provinceNameVal;
|
|
1343
|
+
this._form.formModel[this._fieldProps['cityName']] = cityNameVal;
|
|
1344
|
+
this._form.formModel[this._fieldProps['countyName']] = countyNameVal;
|
|
1345
|
+
this._form.formModel[this._fieldProps['address']] = addressVal;
|
|
1375
1346
|
}
|
|
1376
|
-
this.selectedData = null;
|
|
1377
|
-
return;
|
|
1378
|
-
}
|
|
1379
|
-
this.initData();
|
|
1380
|
-
},
|
|
1381
|
-
options: {
|
|
1382
|
-
handler: function handler() {
|
|
1383
|
-
var _this = this;
|
|
1384
|
-
this.$nextTick(function () {
|
|
1385
|
-
_this.initData();
|
|
1386
|
-
});
|
|
1387
1347
|
},
|
|
1388
1348
|
deep: true
|
|
1389
|
-
}
|
|
1390
|
-
},
|
|
1391
|
-
computed: {
|
|
1392
|
-
selectAttrs: function selectAttrs() {
|
|
1393
|
-
return Object.assign({
|
|
1394
|
-
clearable: true
|
|
1395
|
-
}, this.$attrs, {
|
|
1396
|
-
multiple: this.multiple,
|
|
1397
|
-
filterable: this.filterable,
|
|
1398
|
-
filterMethod: this.filterMethod
|
|
1399
|
-
});
|
|
1400
|
-
},
|
|
1401
|
-
selectEvent: function selectEvent() {
|
|
1402
|
-
return Object.assign({}, this.$listeners, {
|
|
1403
|
-
change: this.handleChange,
|
|
1404
|
-
input: this.handleInput,
|
|
1405
|
-
"visible-change": this.handleVisibleChange,
|
|
1406
|
-
clear: this.handleClear,
|
|
1407
|
-
"remove-tag": this.removeTag
|
|
1408
|
-
});
|
|
1409
1349
|
},
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
nodeKey: this.optionProps.value,
|
|
1421
|
-
defaultExpandedKeys: this.checkedKeys,
|
|
1422
|
-
defaultCheckedKeys: this.checkedKeys,
|
|
1423
|
-
emptyText: "无匹配数据"
|
|
1424
|
-
});
|
|
1350
|
+
"_form.formModel.countyCode": function _formFormModelCountyCode(val) {
|
|
1351
|
+
var _this$_form$formModel, _this$_form$formModel2, _this$_form$formModel3, _this$_form$formModel4, _this$_form$formModel5, _this$_form$formModel6, _this$_form$formModel7;
|
|
1352
|
+
this.valueCached['provinceCode'] = (_this$_form$formModel = this._form.formModel) == null ? void 0 : _this$_form$formModel[this._fieldProps['provinceCode']];
|
|
1353
|
+
this.valueCached['cityCode'] = (_this$_form$formModel2 = this._form.formModel) == null ? void 0 : _this$_form$formModel2[this._fieldProps['cityCode']];
|
|
1354
|
+
this.valueCached['countyCode'] = (_this$_form$formModel3 = this._form.formModel) == null ? void 0 : _this$_form$formModel3[this._fieldProps['countyCode']];
|
|
1355
|
+
this.valueCached['provinceName'] = (_this$_form$formModel4 = this._form.formModel) == null ? void 0 : _this$_form$formModel4[this._fieldProps['provinceName']];
|
|
1356
|
+
this.valueCached['cityName'] = (_this$_form$formModel5 = this._form.formModel) == null ? void 0 : _this$_form$formModel5[this._fieldProps['cityName']];
|
|
1357
|
+
this.valueCached['countyName'] = (_this$_form$formModel6 = this._form.formModel) == null ? void 0 : _this$_form$formModel6[this._fieldProps['countyName']];
|
|
1358
|
+
this.valueCached['address'] = (_this$_form$formModel7 = this._form.formModel) == null ? void 0 : _this$_form$formModel7[this._fieldProps['address']];
|
|
1359
|
+
this.$emit("change", this.valueCached);
|
|
1425
1360
|
}
|
|
1426
1361
|
},
|
|
1427
|
-
|
|
1428
|
-
|
|
1362
|
+
data: function data() {
|
|
1363
|
+
return {
|
|
1364
|
+
apiOptions: null,
|
|
1365
|
+
valueCached: {
|
|
1366
|
+
provinceCode: null,
|
|
1367
|
+
provinceName: null,
|
|
1368
|
+
cityCode: null,
|
|
1369
|
+
cityName: null,
|
|
1370
|
+
countyCode: null,
|
|
1371
|
+
countyName: null,
|
|
1372
|
+
address: null
|
|
1373
|
+
}
|
|
1374
|
+
};
|
|
1429
1375
|
},
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
if (
|
|
1435
|
-
|
|
1436
|
-
|
|
1376
|
+
computed: {
|
|
1377
|
+
cascaderValue: {
|
|
1378
|
+
get: function get() {
|
|
1379
|
+
var valObj = this.valueCached;
|
|
1380
|
+
if (!valObj) {
|
|
1381
|
+
return [];
|
|
1382
|
+
}
|
|
1383
|
+
var provinceCode = valObj[this._fieldProps['provinceCode']];
|
|
1384
|
+
var cityCode = valObj[this._fieldProps['cityCode']];
|
|
1385
|
+
var countyCode = valObj[this._fieldProps['countyCode']];
|
|
1386
|
+
if (!(provinceCode && cityCode && countyCode)) {
|
|
1387
|
+
return [];
|
|
1437
1388
|
}
|
|
1389
|
+
return [provinceCode, cityCode, countyCode];
|
|
1390
|
+
},
|
|
1391
|
+
set: function set(val) {
|
|
1392
|
+
this.cascaderChange(val);
|
|
1438
1393
|
}
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1394
|
+
},
|
|
1395
|
+
inputValue: {
|
|
1396
|
+
get: function get() {
|
|
1397
|
+
var valObj = this.valueCached;
|
|
1398
|
+
if (!valObj) {
|
|
1399
|
+
return null;
|
|
1444
1400
|
}
|
|
1401
|
+
return valObj[this._fieldProps['address']];
|
|
1402
|
+
},
|
|
1403
|
+
set: function set(val) {
|
|
1404
|
+
this.inputChange(val);
|
|
1445
1405
|
}
|
|
1446
1406
|
},
|
|
1447
|
-
|
|
1448
|
-
|
|
1407
|
+
cascaderAttrs: function cascaderAttrs() {
|
|
1408
|
+
return Object.assign({
|
|
1409
|
+
size: this.size,
|
|
1410
|
+
clearable: true
|
|
1411
|
+
}, this.cascader, {
|
|
1412
|
+
options: this.optionData,
|
|
1413
|
+
props: this._optionProps
|
|
1414
|
+
});
|
|
1449
1415
|
},
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1416
|
+
inputAttrs: function inputAttrs() {
|
|
1417
|
+
return Object.assign({
|
|
1418
|
+
size: this.size,
|
|
1419
|
+
clearable: true
|
|
1420
|
+
}, this.input);
|
|
1453
1421
|
},
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
this.selectedData = value.filter(function (itemVal) {
|
|
1457
|
-
return itemVal !== "";
|
|
1458
|
-
});
|
|
1459
|
-
}
|
|
1422
|
+
request: function request() {
|
|
1423
|
+
return this.api.request || this._form && this._form.request || (this.$COMPONENT || {}).request;
|
|
1460
1424
|
},
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
if (Array.isArray(value) && Array.isArray(this.checkedData) && this.checkedData.length > 0) {
|
|
1468
|
-
var removeDatas = this.checkedData.filter(function (item) {
|
|
1469
|
-
return value.indexOf(item[_this2.optionProps.label]) === -1;
|
|
1470
|
-
});
|
|
1471
|
-
removeDatas.forEach(function (item) {
|
|
1472
|
-
_this2.$refs.tree.setChecked(item);
|
|
1473
|
-
});
|
|
1474
|
-
}
|
|
1475
|
-
},
|
|
1476
|
-
handleClear: function handleClear() {
|
|
1477
|
-
this.$refs.tree.setCheckedKeys([]);
|
|
1478
|
-
if (!this.multiple) {
|
|
1479
|
-
this.$refs.tree.setCurrentKey(null);
|
|
1480
|
-
this.checkedData = null;
|
|
1481
|
-
this.emitChange();
|
|
1482
|
-
}
|
|
1483
|
-
this.$emit("clear");
|
|
1425
|
+
_optionProps: function _optionProps() {
|
|
1426
|
+
return Object.assign({
|
|
1427
|
+
value: "value",
|
|
1428
|
+
label: "label",
|
|
1429
|
+
children: "children"
|
|
1430
|
+
}, this.optionProps);
|
|
1484
1431
|
},
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1432
|
+
_fieldProps: function _fieldProps() {
|
|
1433
|
+
return Object.assign({
|
|
1434
|
+
provinceCode: "provinceCode",
|
|
1435
|
+
provinceName: "provinceName",
|
|
1436
|
+
cityCode: "cityCode",
|
|
1437
|
+
cityName: "cityName",
|
|
1438
|
+
countyCode: "countyCode",
|
|
1439
|
+
countyName: "countyName",
|
|
1440
|
+
address: "address"
|
|
1441
|
+
}, this.fieldProps);
|
|
1490
1442
|
},
|
|
1491
|
-
|
|
1492
|
-
if (this.
|
|
1493
|
-
this.$
|
|
1494
|
-
this.$emit("change", this.checkedKeys, this.checkedData);
|
|
1495
|
-
return false;
|
|
1443
|
+
dictOption: function dictOption() {
|
|
1444
|
+
if (this.dictCode && this.$COMPONENT.dataSource && this.$COMPONENT.dataSource.dict) {
|
|
1445
|
+
return this.$COMPONENT.dataSource.dict[this.dictCode];
|
|
1496
1446
|
}
|
|
1497
|
-
|
|
1498
|
-
this.$emit("change", this.checkedData && this.checkedData[this.optionProps.value], this.checkedData);
|
|
1499
|
-
},
|
|
1500
|
-
setSingleData: function setSingleData(data) {
|
|
1501
|
-
var currentData = data || this.$refs.tree.getCurrentNode();
|
|
1502
|
-
this.checkedData = currentData;
|
|
1503
|
-
this.selectedData = currentData && currentData[this.optionProps.label];
|
|
1447
|
+
return [];
|
|
1504
1448
|
},
|
|
1505
|
-
|
|
1506
|
-
var
|
|
1507
|
-
|
|
1508
|
-
this.checkedData = checkedNodes.map(function (item) {
|
|
1509
|
-
var node = _this3.$refs.tree.getNode(item);
|
|
1510
|
-
return node && node.data;
|
|
1511
|
-
});
|
|
1512
|
-
this.selectedData = this.checkedData.map(function (item) {
|
|
1513
|
-
return item && item[_this3.optionProps.label];
|
|
1514
|
-
});
|
|
1449
|
+
optionData: function optionData() {
|
|
1450
|
+
var options = this.options || this.apiOptions;
|
|
1451
|
+
return Array.isArray(options) ? options : this.dictOption;
|
|
1515
1452
|
},
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1453
|
+
_form: function _form() {
|
|
1454
|
+
var parent = this.$parent;
|
|
1455
|
+
while (parent) {
|
|
1456
|
+
if (parent.$options.componentName !== 'Form') {
|
|
1457
|
+
parent = parent.$parent;
|
|
1458
|
+
} else {
|
|
1459
|
+
return parent;
|
|
1460
|
+
}
|
|
1520
1461
|
}
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1462
|
+
return false;
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1465
|
+
created: function created() {
|
|
1466
|
+
var _this$_form2;
|
|
1467
|
+
//设置为可响应数据
|
|
1468
|
+
this.initVal(this == null || (_this$_form2 = this._form) == null ? void 0 : _this$_form2.formModel);
|
|
1469
|
+
this.initVal(this.value);
|
|
1470
|
+
},
|
|
1471
|
+
mounted: function mounted() {
|
|
1472
|
+
this.initApi();
|
|
1473
|
+
},
|
|
1474
|
+
methods: {
|
|
1475
|
+
initVal: function initVal(model) {
|
|
1476
|
+
var provinceCode = this._fieldProps['provinceCode'];
|
|
1477
|
+
var cityCode = this._fieldProps['cityCode'];
|
|
1478
|
+
var countyCode = this._fieldProps['countyCode'];
|
|
1479
|
+
var provinceName = this._fieldProps['provinceName'];
|
|
1480
|
+
var cityName = this._fieldProps['cityName'];
|
|
1481
|
+
var countyName = this._fieldProps['countyName'];
|
|
1482
|
+
var address = this._fieldProps['address'];
|
|
1483
|
+
if (model) {
|
|
1484
|
+
this.$set(model, provinceCode, model[provinceCode]);
|
|
1485
|
+
this.$set(model, cityCode, model[cityCode]);
|
|
1486
|
+
this.$set(model, countyCode, model[countyCode]);
|
|
1487
|
+
this.$set(model, provinceName, model[provinceName]);
|
|
1488
|
+
this.$set(model, cityName, model[cityName]);
|
|
1489
|
+
this.$set(model, countyName, model[countyName]);
|
|
1490
|
+
this.$set(model, address, model[address]);
|
|
1525
1491
|
}
|
|
1526
|
-
this.setSingleData(data);
|
|
1527
|
-
this.emitChange();
|
|
1528
|
-
this.$refs.select.handleClose();
|
|
1529
1492
|
},
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
if (!this.
|
|
1493
|
+
initApi: function initApi() {
|
|
1494
|
+
var _this = this;
|
|
1495
|
+
if (!(this.api && this.api.url && this.request)) {
|
|
1533
1496
|
return false;
|
|
1534
1497
|
}
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
if (
|
|
1549
|
-
|
|
1498
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
1499
|
+
if (typeof this.api.before === "function") {
|
|
1500
|
+
reqData = this.api.before.call(this, reqData, {
|
|
1501
|
+
form: this._form,
|
|
1502
|
+
formModel: this._form && this._form.formModel
|
|
1503
|
+
});
|
|
1504
|
+
}
|
|
1505
|
+
this.request({
|
|
1506
|
+
url: Object(formula_["evaluate"])(this.api.url, reqData),
|
|
1507
|
+
method: this.api.method || "GET",
|
|
1508
|
+
headers: this.api.headers,
|
|
1509
|
+
data: reqData
|
|
1510
|
+
}).then(function (res) {
|
|
1511
|
+
if (typeof _this.api.after === "function") {
|
|
1512
|
+
res = _this.api.after.call(_this, res, {
|
|
1513
|
+
form: _this._form,
|
|
1514
|
+
formModel: _this._form && _this._form.formModel
|
|
1515
|
+
});
|
|
1550
1516
|
}
|
|
1517
|
+
_this.apiOptions = _this.api.dataPath ? get(res, _this.api.dataPath, []) : res;
|
|
1518
|
+
}).catch(function (error) {
|
|
1519
|
+
_this.apiOptions = null;
|
|
1551
1520
|
});
|
|
1521
|
+
},
|
|
1522
|
+
cascaderChange: function cascaderChange(val) {
|
|
1523
|
+
var _nodes$, _this$_form3, _this$_form4;
|
|
1524
|
+
var nodes = this.$refs.cascaderRef.getCheckedNodes();
|
|
1525
|
+
var pathLabels = nodes == null || (_nodes$ = nodes[0]) == null ? void 0 : _nodes$.pathLabels;
|
|
1526
|
+
this.valueCached.provinceCode = val[0];
|
|
1527
|
+
this.valueCached.provinceName = pathLabels == null ? void 0 : pathLabels[0];
|
|
1528
|
+
this.valueCached.cityCode = val[1];
|
|
1529
|
+
this.valueCached.cityName = pathLabels == null ? void 0 : pathLabels[1];
|
|
1530
|
+
this.valueCached.countyCode = val[2];
|
|
1531
|
+
this.valueCached.countyName = pathLabels == null ? void 0 : pathLabels[2];
|
|
1532
|
+
this.valueCached.address = this.valueCached.address || ((_this$_form3 = this._form) == null || (_this$_form3 = _this$_form3.formModel) == null ? void 0 : _this$_form3[this._fieldProps['address']]);
|
|
1533
|
+
this.$emit("change", this.valueCached);
|
|
1534
|
+
this.$emit("cascaderChange", val, this.valueCached);
|
|
1535
|
+
if (this != null && (_this$_form4 = this._form) != null && _this$_form4.formModel) {
|
|
1536
|
+
Object.assign(this._form.formModel, this.valueCached);
|
|
1537
|
+
}
|
|
1538
|
+
},
|
|
1539
|
+
inputChange: function inputChange(val) {
|
|
1540
|
+
var _this$_form5, _this$_form6, _this$_form7, _this$_form8, _this$_form9, _this$_form10, _this$_form11;
|
|
1541
|
+
this.valueCached.provinceCode = this.valueCached.provinceCode || ((_this$_form5 = this._form) == null || (_this$_form5 = _this$_form5.formModel) == null ? void 0 : _this$_form5[this._fieldProps['provinceCode']]);
|
|
1542
|
+
this.valueCached.provinceName = this.valueCached.provinceName || ((_this$_form6 = this._form) == null || (_this$_form6 = _this$_form6.formModel) == null ? void 0 : _this$_form6[this._fieldProps['provinceName']]);
|
|
1543
|
+
this.valueCached.cityCode = this.valueCached.cityCode || ((_this$_form7 = this._form) == null || (_this$_form7 = _this$_form7.formModel) == null ? void 0 : _this$_form7[this._fieldProps['cityCode']]);
|
|
1544
|
+
this.valueCached.cityName = this.valueCached.cityName || ((_this$_form8 = this._form) == null || (_this$_form8 = _this$_form8.formModel) == null ? void 0 : _this$_form8[this._fieldProps['cityName']]);
|
|
1545
|
+
this.valueCached.countyCode = this.valueCached.countyCode || ((_this$_form9 = this._form) == null || (_this$_form9 = _this$_form9.formModel) == null ? void 0 : _this$_form9[this._fieldProps['countyCode']]);
|
|
1546
|
+
this.valueCached.countyName = this.valueCached.provinceCode || ((_this$_form10 = this._form) == null || (_this$_form10 = _this$_form10.formModel) == null ? void 0 : _this$_form10[this._fieldProps['countyName']]);
|
|
1547
|
+
this.valueCached.address = val;
|
|
1548
|
+
this.$emit("change", this.valueCached);
|
|
1549
|
+
this.$emit("inputChange", val, this.valueCached);
|
|
1550
|
+
if (this != null && (_this$_form11 = this._form) != null && _this$_form11.formModel) {
|
|
1551
|
+
this._form.formModel[this._fieldProps['address']] = val;
|
|
1552
|
+
}
|
|
1552
1553
|
}
|
|
1553
1554
|
}
|
|
1554
1555
|
});
|
|
1555
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/
|
|
1556
|
-
/* harmony default export */ var
|
|
1557
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/
|
|
1556
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue?vue&type=script&lang=js
|
|
1557
|
+
/* harmony default export */ var item_CascaderAddrvue_type_script_lang_js = (CascaderAddrvue_type_script_lang_js);
|
|
1558
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue
|
|
1558
1559
|
|
|
1559
1560
|
|
|
1560
1561
|
|
|
@@ -1562,10 +1563,10 @@ var tree_line_default = /*#__PURE__*/__webpack_require__.n(tree_line_);
|
|
|
1562
1563
|
|
|
1563
1564
|
/* normalize component */
|
|
1564
1565
|
|
|
1565
|
-
var
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1566
|
+
var CascaderAddr_component = Object(componentNormalizer["a" /* default */])(
|
|
1567
|
+
item_CascaderAddrvue_type_script_lang_js,
|
|
1568
|
+
CascaderAddrvue_type_template_id_df02c66e_render,
|
|
1569
|
+
CascaderAddrvue_type_template_id_df02c66e_staticRenderFns,
|
|
1569
1570
|
false,
|
|
1570
1571
|
null,
|
|
1571
1572
|
null,
|
|
@@ -1573,49 +1574,56 @@ var SelectTree_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1573
1574
|
|
|
1574
1575
|
)
|
|
1575
1576
|
|
|
1576
|
-
/* harmony default export */ var
|
|
1577
|
-
// EXTERNAL MODULE: external "
|
|
1578
|
-
var
|
|
1579
|
-
|
|
1580
|
-
// EXTERNAL MODULE: external "@panpanzhao/component-ui/lib/utils/formula"
|
|
1581
|
-
var formula_ = __webpack_require__(3);
|
|
1577
|
+
/* harmony default export */ var CascaderAddr = (CascaderAddr_component.exports);
|
|
1578
|
+
// EXTERNAL MODULE: external "element-ui/lib/checkbox-group"
|
|
1579
|
+
var checkbox_group_ = __webpack_require__(45);
|
|
1580
|
+
var checkbox_group_default = /*#__PURE__*/__webpack_require__.n(checkbox_group_);
|
|
1582
1581
|
|
|
1583
|
-
//
|
|
1582
|
+
// EXTERNAL MODULE: external "element-ui/lib/checkbox"
|
|
1583
|
+
var checkbox_ = __webpack_require__(46);
|
|
1584
|
+
var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
|
|
1584
1585
|
|
|
1586
|
+
// EXTERNAL MODULE: external "element-ui/lib/checkbox-button"
|
|
1587
|
+
var checkbox_button_ = __webpack_require__(47);
|
|
1588
|
+
var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button_);
|
|
1585
1589
|
|
|
1590
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/Checkbox.vue?vue&type=script&lang=js
|
|
1586
1591
|
|
|
1587
1592
|
|
|
1588
1593
|
|
|
1589
1594
|
|
|
1590
1595
|
|
|
1591
1596
|
|
|
1592
|
-
/* harmony default export */ var
|
|
1593
|
-
name: "
|
|
1597
|
+
/* harmony default export */ var Checkboxvue_type_script_lang_js = ({
|
|
1598
|
+
name: "Checkbox",
|
|
1594
1599
|
components: {
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
SelectTree: SelectTree
|
|
1600
|
+
elCheckboxGroup: checkbox_group_default.a,
|
|
1601
|
+
elCheckbox: checkbox_default.a,
|
|
1602
|
+
elCheckboxButton: checkbox_button_default.a
|
|
1599
1603
|
},
|
|
1600
1604
|
props: {
|
|
1601
|
-
|
|
1605
|
+
size: String,
|
|
1602
1606
|
dictCode: String,
|
|
1607
|
+
border: {
|
|
1608
|
+
type: Boolean,
|
|
1609
|
+
default: function _default() {
|
|
1610
|
+
return false;
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1613
|
+
selectMode: String,
|
|
1614
|
+
valueIsString: Boolean,
|
|
1603
1615
|
options: {
|
|
1604
1616
|
type: Array,
|
|
1605
1617
|
default: function _default() {
|
|
1606
1618
|
return null;
|
|
1607
1619
|
}
|
|
1608
1620
|
},
|
|
1609
|
-
optionRender: Function,
|
|
1610
1621
|
api: {
|
|
1611
1622
|
type: Object,
|
|
1612
1623
|
default: function _default() {
|
|
1613
|
-
return
|
|
1624
|
+
return null;
|
|
1614
1625
|
}
|
|
1615
1626
|
},
|
|
1616
|
-
valueIsString: Boolean,
|
|
1617
|
-
optionBack: Boolean,
|
|
1618
|
-
//事件改变是否返回选中的值
|
|
1619
1627
|
apiOpen: {
|
|
1620
1628
|
type: Boolean,
|
|
1621
1629
|
default: function _default() {
|
|
@@ -1637,17 +1645,15 @@ var formula_ = __webpack_require__(3);
|
|
|
1637
1645
|
computed: {
|
|
1638
1646
|
attrs: function attrs() {
|
|
1639
1647
|
//值处理
|
|
1640
|
-
var _value = this.$attrs.value ? this.$attrs.value :
|
|
1641
|
-
if (this
|
|
1648
|
+
var _value = this.$attrs.value ? this.$attrs.value : [];
|
|
1649
|
+
if (this.valueIsString && this.$attrs.value) {
|
|
1642
1650
|
_value = typeof this.$attrs.value === "string" ? this.$attrs.value.split(",") : this.$attrs.value;
|
|
1643
1651
|
}
|
|
1644
|
-
return Object.assign({
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
}
|
|
1649
|
-
value: _value
|
|
1650
|
-
});
|
|
1652
|
+
return Object.assign({}, this.$attrs, {
|
|
1653
|
+
size: this.size,
|
|
1654
|
+
border: this.border,
|
|
1655
|
+
value: _value
|
|
1656
|
+
});
|
|
1651
1657
|
},
|
|
1652
1658
|
dictOption: function dictOption() {
|
|
1653
1659
|
if (this.dictCode && this.$COMPONENT.dataSource && this.$COMPONENT.dataSource.dict) {
|
|
@@ -1656,8 +1662,7 @@ var formula_ = __webpack_require__(3);
|
|
|
1656
1662
|
return [];
|
|
1657
1663
|
},
|
|
1658
1664
|
optionData: function optionData() {
|
|
1659
|
-
|
|
1660
|
-
return Array.isArray(options) ? options : this.dictOption;
|
|
1665
|
+
return this.options || this.apiOptions || this.dictOption;
|
|
1661
1666
|
},
|
|
1662
1667
|
_form: function _form() {
|
|
1663
1668
|
var parent = this.$parent;
|
|
@@ -1695,103 +1700,59 @@ var formula_ = __webpack_require__(3);
|
|
|
1695
1700
|
}
|
|
1696
1701
|
},
|
|
1697
1702
|
methods: {
|
|
1698
|
-
transformOption: function transformOption(item) {
|
|
1699
|
-
item.value = item[this._optionProps.value];
|
|
1700
|
-
item.label = item[this._optionProps.label];
|
|
1701
|
-
if (item[this._optionProps.children]) {
|
|
1702
|
-
item.children = this.transformOption(item[this._optionProps.children]);
|
|
1703
|
-
}
|
|
1704
|
-
return item;
|
|
1705
|
-
},
|
|
1706
1703
|
initApi: function initApi() {
|
|
1707
1704
|
var _this = this;
|
|
1708
1705
|
if (!(this.api && this.api.url && this.request)) {
|
|
1709
1706
|
return false;
|
|
1710
1707
|
}
|
|
1711
1708
|
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
1712
|
-
// let reqData=merge({},this.api.data)
|
|
1713
|
-
if (typeof this.api.before === "function") {
|
|
1714
|
-
reqData = this.api.before.call(this, reqData, {
|
|
1715
|
-
form: this._form,
|
|
1716
|
-
formModel: this._form && this._form.formModel
|
|
1717
|
-
});
|
|
1718
|
-
}
|
|
1719
1709
|
this.request({
|
|
1720
1710
|
url: Object(formula_["evaluate"])(this.api.url, reqData),
|
|
1721
1711
|
method: this.api.method || "GET",
|
|
1722
|
-
headers: this.api.headers,
|
|
1723
1712
|
data: reqData
|
|
1724
1713
|
}).then(function (res) {
|
|
1725
|
-
if (typeof _this.api.
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
formModel: _this._form && _this._form.formModel
|
|
1729
|
-
});
|
|
1714
|
+
if (typeof _this.api.transform === "function") {
|
|
1715
|
+
_this.apiOptions = _this.api.transform.call(_this, resData);
|
|
1716
|
+
return false;
|
|
1730
1717
|
}
|
|
1731
1718
|
_this.apiOptions = _this.api.dataPath ? Object(external_lodash_["get"])(res, _this.api.dataPath, []) : res;
|
|
1732
1719
|
}).catch(function (error) {
|
|
1733
1720
|
_this.apiOptions = null;
|
|
1734
1721
|
});
|
|
1735
1722
|
},
|
|
1736
|
-
|
|
1723
|
+
renderButton: function renderButton(h, scoped) {
|
|
1737
1724
|
var _this2 = this;
|
|
1738
1725
|
return this.optionData.map(function (item) {
|
|
1739
|
-
return h("el-
|
|
1726
|
+
return h("el-checkbox-button", {
|
|
1740
1727
|
"key": item[_this2._optionProps.value],
|
|
1741
1728
|
"attrs": {
|
|
1742
|
-
"label": item[_this2._optionProps.
|
|
1729
|
+
"label": item[_this2._optionProps.value],
|
|
1730
|
+
"disabled": item[_this2._optionProps.disabled]
|
|
1743
1731
|
}
|
|
1744
|
-
}, [item[_this2._optionProps.
|
|
1745
|
-
return h("el-option", {
|
|
1746
|
-
"key": itemOpt[_this2._optionProps.value],
|
|
1747
|
-
"attrs": {
|
|
1748
|
-
"value": itemOpt[_this2._optionProps.value],
|
|
1749
|
-
"label": itemOpt[_this2._optionProps.label],
|
|
1750
|
-
"disabled": itemOpt.disabled
|
|
1751
|
-
}
|
|
1752
|
-
}, [_this2.optionRender ? _this2.optionRender.call(_this2, h, itemOpt, {
|
|
1753
|
-
form: _this2._form,
|
|
1754
|
-
formModel: _this2._form && _this2._form.formModel
|
|
1755
|
-
}) : null]);
|
|
1756
|
-
})]);
|
|
1732
|
+
}, [item[_this2._optionProps.label]]);
|
|
1757
1733
|
});
|
|
1758
1734
|
},
|
|
1759
|
-
renderTree: function renderTree(h) {
|
|
1760
|
-
var param = {
|
|
1761
|
-
attrs: Object.assign({}, this.$attrs, {
|
|
1762
|
-
options: this.optionData,
|
|
1763
|
-
optionProps: this._optionProps
|
|
1764
|
-
}),
|
|
1765
|
-
slots: this.$slots,
|
|
1766
|
-
scopedSlots: this.$slots,
|
|
1767
|
-
on: this.$listeners
|
|
1768
|
-
};
|
|
1769
|
-
return h(SelectTree, babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
1770
|
-
},
|
|
1771
1735
|
renderOptions: function renderOptions(h, scoped) {
|
|
1772
1736
|
var _this3 = this;
|
|
1773
|
-
if (this.selectMode === "
|
|
1774
|
-
return this.
|
|
1737
|
+
if (this.selectMode === "button") {
|
|
1738
|
+
return this.renderButton(h, scoped);
|
|
1775
1739
|
}
|
|
1776
|
-
return this.optionData
|
|
1777
|
-
return h("el-
|
|
1778
|
-
"key":
|
|
1740
|
+
return this.optionData.map(function (item) {
|
|
1741
|
+
return h("el-checkbox", {
|
|
1742
|
+
"key": item[_this3._optionProps.value],
|
|
1779
1743
|
"attrs": {
|
|
1780
|
-
"value":
|
|
1781
|
-
"label":
|
|
1744
|
+
"value": item[_this3._optionProps.value],
|
|
1745
|
+
"label": item[_this3._optionProps.value],
|
|
1746
|
+
"disabled": item[_this3._optionProps.disabled],
|
|
1747
|
+
"border": _this3.border,
|
|
1748
|
+
"size": _this3.size
|
|
1782
1749
|
}
|
|
1783
|
-
}, [_this3.
|
|
1784
|
-
form: _this3._form,
|
|
1785
|
-
formModel: _this3._form && _this3._form.formModel
|
|
1786
|
-
}) : null]);
|
|
1750
|
+
}, [item[_this3._optionProps.label]]);
|
|
1787
1751
|
});
|
|
1788
1752
|
}
|
|
1789
1753
|
},
|
|
1790
1754
|
render: function render(h) {
|
|
1791
1755
|
var _this4 = this;
|
|
1792
|
-
if (this.selectMode === "tree") {
|
|
1793
|
-
return this.renderTree(h);
|
|
1794
|
-
}
|
|
1795
1756
|
var param = {
|
|
1796
1757
|
props: this.attrs,
|
|
1797
1758
|
slots: this.$slots,
|
|
@@ -1802,43 +1763,32 @@ var formula_ = __webpack_require__(3);
|
|
|
1802
1763
|
},
|
|
1803
1764
|
on: Object.assign({}, this.$listeners, {
|
|
1804
1765
|
change: function change(value) {
|
|
1766
|
+
debugger;
|
|
1805
1767
|
var _value = value;
|
|
1806
|
-
if (_this4
|
|
1768
|
+
if (_this4.valueIsString) {
|
|
1807
1769
|
_value = value.toString();
|
|
1808
1770
|
}
|
|
1809
|
-
|
|
1810
|
-
if (_this4.optionBack) {
|
|
1811
|
-
if (_this4.$attrs.multiple) {
|
|
1812
|
-
selectOption = value && value.length > 0 ? _this4.optionData.filter(function (item) {
|
|
1813
|
-
return value.indexOf(item[_this4._optionProps.value]) > -1;
|
|
1814
|
-
}) : [];
|
|
1815
|
-
} else {
|
|
1816
|
-
selectOption = value ? _this4.optionData.filter(function (item) {
|
|
1817
|
-
return item[_this4._optionProps.value] === value;
|
|
1818
|
-
}) : [];
|
|
1819
|
-
}
|
|
1820
|
-
}
|
|
1821
|
-
_this4.$emit("change", _value, selectOption);
|
|
1771
|
+
_this4.$emit("change", _value);
|
|
1822
1772
|
}
|
|
1823
1773
|
})
|
|
1824
1774
|
};
|
|
1825
|
-
return h("el-
|
|
1775
|
+
return h("el-checkbox-group", babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
1826
1776
|
}
|
|
1827
1777
|
});
|
|
1828
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/
|
|
1829
|
-
/* harmony default export */ var
|
|
1830
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/
|
|
1831
|
-
var
|
|
1778
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Checkbox.vue?vue&type=script&lang=js
|
|
1779
|
+
/* harmony default export */ var item_Checkboxvue_type_script_lang_js = (Checkboxvue_type_script_lang_js);
|
|
1780
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Checkbox.vue
|
|
1781
|
+
var Checkbox_render, Checkbox_staticRenderFns
|
|
1832
1782
|
|
|
1833
1783
|
|
|
1834
1784
|
|
|
1835
1785
|
|
|
1836
1786
|
/* normalize component */
|
|
1837
1787
|
|
|
1838
|
-
var
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1788
|
+
var Checkbox_component = Object(componentNormalizer["a" /* default */])(
|
|
1789
|
+
item_Checkboxvue_type_script_lang_js,
|
|
1790
|
+
Checkbox_render,
|
|
1791
|
+
Checkbox_staticRenderFns,
|
|
1842
1792
|
false,
|
|
1843
1793
|
null,
|
|
1844
1794
|
null,
|
|
@@ -1846,202 +1796,102 @@ var Select_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1846
1796
|
|
|
1847
1797
|
)
|
|
1848
1798
|
|
|
1849
|
-
/* harmony default export */ var
|
|
1850
|
-
// EXTERNAL MODULE: external "element-ui/lib/
|
|
1851
|
-
var
|
|
1852
|
-
var
|
|
1853
|
-
|
|
1854
|
-
// EXTERNAL MODULE: external "element-ui/lib/radio"
|
|
1855
|
-
var radio_ = __webpack_require__(31);
|
|
1856
|
-
var radio_default = /*#__PURE__*/__webpack_require__.n(radio_);
|
|
1857
|
-
|
|
1858
|
-
// EXTERNAL MODULE: external "element-ui/lib/radio-button"
|
|
1859
|
-
var radio_button_ = __webpack_require__(46);
|
|
1860
|
-
var radio_button_default = /*#__PURE__*/__webpack_require__.n(radio_button_);
|
|
1861
|
-
|
|
1862
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/Radio.vue?vue&type=script&lang=js
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1799
|
+
/* harmony default export */ var Checkbox = (Checkbox_component.exports);
|
|
1800
|
+
// EXTERNAL MODULE: external "element-ui/lib/date-picker"
|
|
1801
|
+
var date_picker_ = __webpack_require__(48);
|
|
1802
|
+
var date_picker_default = /*#__PURE__*/__webpack_require__.n(date_picker_);
|
|
1866
1803
|
|
|
1804
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/DatePicker.vue?vue&type=script&lang=js
|
|
1867
1805
|
|
|
1868
1806
|
|
|
1869
|
-
/* harmony default export */ var
|
|
1870
|
-
name: "
|
|
1807
|
+
/* harmony default export */ var DatePickervue_type_script_lang_js = ({
|
|
1808
|
+
name: "DatePicker",
|
|
1871
1809
|
components: {
|
|
1872
|
-
|
|
1873
|
-
elRadio: radio_default.a,
|
|
1874
|
-
elRadioButton: radio_button_default.a
|
|
1810
|
+
elDatePicker: date_picker_default.a
|
|
1875
1811
|
},
|
|
1876
1812
|
props: {
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
border: {
|
|
1880
|
-
type: Boolean,
|
|
1881
|
-
default: function _default() {
|
|
1882
|
-
return false;
|
|
1883
|
-
}
|
|
1884
|
-
},
|
|
1885
|
-
selectMode: String,
|
|
1886
|
-
options: {
|
|
1887
|
-
type: Array,
|
|
1888
|
-
default: function _default() {
|
|
1889
|
-
return null;
|
|
1890
|
-
}
|
|
1891
|
-
},
|
|
1892
|
-
api: {
|
|
1893
|
-
type: Object,
|
|
1894
|
-
default: function _default() {
|
|
1895
|
-
return null;
|
|
1896
|
-
}
|
|
1897
|
-
},
|
|
1898
|
-
apiOpen: {
|
|
1899
|
-
type: Boolean,
|
|
1900
|
-
default: function _default() {
|
|
1901
|
-
return true;
|
|
1902
|
-
}
|
|
1813
|
+
value: {
|
|
1814
|
+
type: [String, Number, Array]
|
|
1903
1815
|
},
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1816
|
+
startProp: String,
|
|
1817
|
+
endProp: String
|
|
1818
|
+
},
|
|
1819
|
+
watch: {
|
|
1820
|
+
value: function value(val) {
|
|
1821
|
+
if (["monthrange", "daterange", "datetimerange"].indexOf(this.$attrs.type) > -1 && this.startProp && this.endProp && this._form && !val) {
|
|
1822
|
+
this._form.formModel[this.startProp] = null;
|
|
1823
|
+
this._form.formModel[this.endProp] = null;
|
|
1912
1824
|
}
|
|
1913
1825
|
}
|
|
1914
1826
|
},
|
|
1915
|
-
data: function data() {
|
|
1916
|
-
return {
|
|
1917
|
-
apiOptions: null
|
|
1918
|
-
};
|
|
1919
|
-
},
|
|
1920
1827
|
computed: {
|
|
1921
1828
|
attrs: function attrs() {
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1829
|
+
//值处理
|
|
1830
|
+
var _value = this.value;
|
|
1831
|
+
if (["monthrange", "daterange", "datetimerange"].indexOf(this.$attrs.type) > -1 && this.startProp && this.endProp && this._form && !_value) {
|
|
1832
|
+
var startPropValue = this._form.formModel[this.startProp];
|
|
1833
|
+
var endPropValue = this._form.formModel[this.endProp];
|
|
1834
|
+
if (startPropValue && endPropValue) {
|
|
1835
|
+
_value = [startPropValue, endPropValue];
|
|
1836
|
+
}
|
|
1930
1837
|
}
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1838
|
+
var res = Object.assign({
|
|
1839
|
+
clearable: true,
|
|
1840
|
+
placeholder: "请选择",
|
|
1841
|
+
valueFormat: "timestamp"
|
|
1842
|
+
}, this.$attrs, {
|
|
1843
|
+
value: _value
|
|
1844
|
+
});
|
|
1845
|
+
return res;
|
|
1935
1846
|
},
|
|
1936
1847
|
_form: function _form() {
|
|
1937
1848
|
var parent = this.$parent;
|
|
1938
1849
|
while (parent) {
|
|
1939
|
-
if (parent.$options.componentName !== 'Form') {
|
|
1850
|
+
if (parent.$options.componentName !== 'Form' && parent.$options.componentName !== 'FormQuery') {
|
|
1940
1851
|
parent = parent.$parent;
|
|
1941
1852
|
} else {
|
|
1942
1853
|
return parent;
|
|
1943
1854
|
}
|
|
1944
1855
|
}
|
|
1945
1856
|
return false;
|
|
1946
|
-
},
|
|
1947
|
-
request: function request() {
|
|
1948
|
-
return this.api.request || this._form && this._form.request || (this.$COMPONENT || {}).request;
|
|
1949
|
-
}
|
|
1950
|
-
},
|
|
1951
|
-
watch: {
|
|
1952
|
-
api: {
|
|
1953
|
-
handler: function handler() {
|
|
1954
|
-
this.initApi();
|
|
1955
|
-
},
|
|
1956
|
-
deep: true
|
|
1957
|
-
}
|
|
1958
|
-
},
|
|
1959
|
-
mounted: function mounted() {
|
|
1960
|
-
if (this.apiOpen) {
|
|
1961
|
-
this.initApi();
|
|
1962
|
-
}
|
|
1963
|
-
},
|
|
1964
|
-
methods: {
|
|
1965
|
-
initApi: function initApi() {
|
|
1966
|
-
var _this = this;
|
|
1967
|
-
if (!(this.api && this.api.url && this.request)) {
|
|
1968
|
-
return false;
|
|
1969
|
-
}
|
|
1970
|
-
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
1971
|
-
this.request({
|
|
1972
|
-
url: Object(formula_["evaluate"])(this.api.url, reqData),
|
|
1973
|
-
method: this.api.method || "GET",
|
|
1974
|
-
data: reqData
|
|
1975
|
-
}).then(function (res) {
|
|
1976
|
-
if (typeof _this.api.transform === "function") {
|
|
1977
|
-
_this.apiOptions = _this.api.transform.call(_this, resData);
|
|
1978
|
-
return false;
|
|
1979
|
-
}
|
|
1980
|
-
_this.apiOptions = _this.api.dataPath ? Object(external_lodash_["get"])(res, _this.api.dataPath, []) : res;
|
|
1981
|
-
}).catch(function (error) {
|
|
1982
|
-
_this.apiOptions = null;
|
|
1983
|
-
});
|
|
1984
|
-
},
|
|
1985
|
-
renderButton: function renderButton(h, scoped) {
|
|
1986
|
-
var _this2 = this;
|
|
1987
|
-
return this.optionData.map(function (item) {
|
|
1988
|
-
return h("el-radio-button", {
|
|
1989
|
-
"key": item[_this2.optionProps.value],
|
|
1990
|
-
"attrs": {
|
|
1991
|
-
"label": item[_this2.optionProps.value],
|
|
1992
|
-
"disabled": item[_this2.optionProps.disabled]
|
|
1993
|
-
}
|
|
1994
|
-
}, [item[_this2.optionProps.label]]);
|
|
1995
|
-
});
|
|
1996
|
-
},
|
|
1997
|
-
renderOptions: function renderOptions(h, scoped) {
|
|
1998
|
-
var _this3 = this;
|
|
1999
|
-
if (this.selectMode === "button") {
|
|
2000
|
-
return this.renderButton(h, scoped);
|
|
2001
|
-
}
|
|
2002
|
-
return this.optionData.map(function (item) {
|
|
2003
|
-
return h("el-radio", {
|
|
2004
|
-
"key": item[_this3.optionProps.value],
|
|
2005
|
-
"attrs": {
|
|
2006
|
-
"value": item[_this3.optionProps.value],
|
|
2007
|
-
"label": item[_this3.optionProps.value],
|
|
2008
|
-
"disabled": item[_this3.optionProps.disabled],
|
|
2009
|
-
"border": _this3.border,
|
|
2010
|
-
"size": _this3.size
|
|
2011
|
-
}
|
|
2012
|
-
}, [item[_this3.optionProps.label]]);
|
|
2013
|
-
});
|
|
2014
1857
|
}
|
|
2015
1858
|
},
|
|
2016
1859
|
render: function render(h) {
|
|
2017
|
-
var
|
|
1860
|
+
var _this = this;
|
|
2018
1861
|
var param = {
|
|
2019
1862
|
props: this.attrs,
|
|
2020
1863
|
slots: this.$slots,
|
|
2021
|
-
scopedSlots:
|
|
2022
|
-
|
|
2023
|
-
|
|
1864
|
+
scopedSlots: this.$scopedSlots,
|
|
1865
|
+
on: Object.assign({}, this.$listeners, {
|
|
1866
|
+
change: function change(value) {
|
|
1867
|
+
if (["monthrange", "daterange", "datetimerange"].indexOf(_this.$attrs.type) > -1 && _this.startProp && _this.endProp && _this._form) {
|
|
1868
|
+
var formModel = _this._form.formModel;
|
|
1869
|
+
if (formModel) {
|
|
1870
|
+
_this.$set(formModel, _this.startProp, value && value[0]);
|
|
1871
|
+
_this.$set(formModel, _this.endProp, value && value[1]);
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
_this.$emit("change", value);
|
|
2024
1875
|
}
|
|
2025
|
-
}
|
|
2026
|
-
on: this.$listeners
|
|
1876
|
+
})
|
|
2027
1877
|
};
|
|
2028
|
-
return h("el-
|
|
1878
|
+
return h("el-date-picker", babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
2029
1879
|
}
|
|
2030
1880
|
});
|
|
2031
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/
|
|
2032
|
-
/* harmony default export */ var
|
|
2033
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/
|
|
2034
|
-
var
|
|
1881
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/DatePicker.vue?vue&type=script&lang=js
|
|
1882
|
+
/* harmony default export */ var item_DatePickervue_type_script_lang_js = (DatePickervue_type_script_lang_js);
|
|
1883
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/DatePicker.vue
|
|
1884
|
+
var DatePicker_render, DatePicker_staticRenderFns
|
|
2035
1885
|
|
|
2036
1886
|
|
|
2037
1887
|
|
|
2038
1888
|
|
|
2039
1889
|
/* normalize component */
|
|
2040
1890
|
|
|
2041
|
-
var
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
1891
|
+
var DatePicker_component = Object(componentNormalizer["a" /* default */])(
|
|
1892
|
+
item_DatePickervue_type_script_lang_js,
|
|
1893
|
+
DatePicker_render,
|
|
1894
|
+
DatePicker_staticRenderFns,
|
|
2045
1895
|
false,
|
|
2046
1896
|
null,
|
|
2047
1897
|
null,
|
|
@@ -2049,44 +1899,294 @@ var Radio_component = Object(componentNormalizer["a" /* default */])(
|
|
|
2049
1899
|
|
|
2050
1900
|
)
|
|
2051
1901
|
|
|
2052
|
-
/* harmony default export */ var
|
|
2053
|
-
//
|
|
2054
|
-
var
|
|
2055
|
-
var
|
|
1902
|
+
/* harmony default export */ var DatePicker = (DatePicker_component.exports);
|
|
1903
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/Input.vue?vue&type=template&id=74fa485e
|
|
1904
|
+
var Inputvue_type_template_id_74fa485e_render = function render() {
|
|
1905
|
+
var _vm = this,
|
|
1906
|
+
_c = _vm._self._c
|
|
1907
|
+
return _c(
|
|
1908
|
+
"el-input",
|
|
1909
|
+
_vm._g(
|
|
1910
|
+
_vm._b(
|
|
1911
|
+
{
|
|
1912
|
+
scopedSlots: _vm._u(
|
|
1913
|
+
[
|
|
1914
|
+
{
|
|
1915
|
+
key: "prefix",
|
|
1916
|
+
fn: function () {
|
|
1917
|
+
return [_vm._t("prefix")]
|
|
1918
|
+
},
|
|
1919
|
+
proxy: true,
|
|
1920
|
+
},
|
|
1921
|
+
{
|
|
1922
|
+
key: "suffix",
|
|
1923
|
+
fn: function () {
|
|
1924
|
+
return [_vm._t("suffix")]
|
|
1925
|
+
},
|
|
1926
|
+
proxy: true,
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
key: "prepend",
|
|
1930
|
+
fn: function () {
|
|
1931
|
+
return [_vm._t("prepend")]
|
|
1932
|
+
},
|
|
1933
|
+
proxy: true,
|
|
1934
|
+
},
|
|
1935
|
+
{
|
|
1936
|
+
key: "append",
|
|
1937
|
+
fn: function () {
|
|
1938
|
+
return [_vm._t("append")]
|
|
1939
|
+
},
|
|
1940
|
+
proxy: true,
|
|
1941
|
+
},
|
|
1942
|
+
],
|
|
1943
|
+
null,
|
|
1944
|
+
true
|
|
1945
|
+
),
|
|
1946
|
+
},
|
|
1947
|
+
"el-input",
|
|
1948
|
+
_vm.attrs,
|
|
1949
|
+
false
|
|
1950
|
+
),
|
|
1951
|
+
_vm.$listeners
|
|
1952
|
+
)
|
|
1953
|
+
)
|
|
1954
|
+
}
|
|
1955
|
+
var Inputvue_type_template_id_74fa485e_staticRenderFns = []
|
|
1956
|
+
Inputvue_type_template_id_74fa485e_render._withStripped = true
|
|
2056
1957
|
|
|
2057
|
-
// EXTERNAL MODULE: external "element-ui/lib/checkbox"
|
|
2058
|
-
var checkbox_ = __webpack_require__(48);
|
|
2059
|
-
var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
|
|
2060
1958
|
|
|
2061
|
-
//
|
|
2062
|
-
var checkbox_button_ = __webpack_require__(49);
|
|
2063
|
-
var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button_);
|
|
1959
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Input.vue?vue&type=template&id=74fa485e
|
|
2064
1960
|
|
|
2065
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/
|
|
1961
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/Input.vue?vue&type=script&lang=js
|
|
1962
|
+
|
|
1963
|
+
/* harmony default export */ var Inputvue_type_script_lang_js = ({
|
|
1964
|
+
name: "Input",
|
|
1965
|
+
components: {
|
|
1966
|
+
elInput: input_default.a
|
|
1967
|
+
},
|
|
1968
|
+
props: {},
|
|
1969
|
+
computed: {
|
|
1970
|
+
attrs: function attrs() {
|
|
1971
|
+
return Object.assign({
|
|
1972
|
+
clearable: true,
|
|
1973
|
+
placeholder: "请输入",
|
|
1974
|
+
maxlength: 30
|
|
1975
|
+
}, this.$attrs);
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
});
|
|
1979
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Input.vue?vue&type=script&lang=js
|
|
1980
|
+
/* harmony default export */ var item_Inputvue_type_script_lang_js = (Inputvue_type_script_lang_js);
|
|
1981
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Input.vue
|
|
2066
1982
|
|
|
2067
1983
|
|
|
2068
1984
|
|
|
2069
1985
|
|
|
2070
1986
|
|
|
1987
|
+
/* normalize component */
|
|
2071
1988
|
|
|
2072
|
-
|
|
2073
|
-
|
|
1989
|
+
var Input_component = Object(componentNormalizer["a" /* default */])(
|
|
1990
|
+
item_Inputvue_type_script_lang_js,
|
|
1991
|
+
Inputvue_type_template_id_74fa485e_render,
|
|
1992
|
+
Inputvue_type_template_id_74fa485e_staticRenderFns,
|
|
1993
|
+
false,
|
|
1994
|
+
null,
|
|
1995
|
+
null,
|
|
1996
|
+
null
|
|
1997
|
+
|
|
1998
|
+
)
|
|
1999
|
+
|
|
2000
|
+
/* harmony default export */ var Input = (Input_component.exports);
|
|
2001
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/InputNumber.vue?vue&type=template&id=6c463d52
|
|
2002
|
+
var InputNumbervue_type_template_id_6c463d52_render = function render() {
|
|
2003
|
+
var _vm = this,
|
|
2004
|
+
_c = _vm._self._c
|
|
2005
|
+
return _c(
|
|
2006
|
+
"el-input-number",
|
|
2007
|
+
_vm._g(
|
|
2008
|
+
_vm._b(
|
|
2009
|
+
{
|
|
2010
|
+
scopedSlots: _vm._u(
|
|
2011
|
+
[
|
|
2012
|
+
{
|
|
2013
|
+
key: "prefix",
|
|
2014
|
+
fn: function () {
|
|
2015
|
+
return [_vm._t("prefix")]
|
|
2016
|
+
},
|
|
2017
|
+
proxy: true,
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
key: "suffix",
|
|
2021
|
+
fn: function () {
|
|
2022
|
+
return [_vm._t("suffix")]
|
|
2023
|
+
},
|
|
2024
|
+
proxy: true,
|
|
2025
|
+
},
|
|
2026
|
+
{
|
|
2027
|
+
key: "prepend",
|
|
2028
|
+
fn: function () {
|
|
2029
|
+
return [_vm._t("prepend")]
|
|
2030
|
+
},
|
|
2031
|
+
proxy: true,
|
|
2032
|
+
},
|
|
2033
|
+
{
|
|
2034
|
+
key: "append",
|
|
2035
|
+
fn: function () {
|
|
2036
|
+
return [_vm._t("append")]
|
|
2037
|
+
},
|
|
2038
|
+
proxy: true,
|
|
2039
|
+
},
|
|
2040
|
+
],
|
|
2041
|
+
null,
|
|
2042
|
+
true
|
|
2043
|
+
),
|
|
2044
|
+
},
|
|
2045
|
+
"el-input-number",
|
|
2046
|
+
_vm.attrs,
|
|
2047
|
+
false
|
|
2048
|
+
),
|
|
2049
|
+
_vm.$listeners
|
|
2050
|
+
)
|
|
2051
|
+
)
|
|
2052
|
+
}
|
|
2053
|
+
var InputNumbervue_type_template_id_6c463d52_staticRenderFns = []
|
|
2054
|
+
InputNumbervue_type_template_id_6c463d52_render._withStripped = true
|
|
2055
|
+
|
|
2056
|
+
|
|
2057
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/InputNumber.vue?vue&type=template&id=6c463d52
|
|
2058
|
+
|
|
2059
|
+
// EXTERNAL MODULE: external "element-ui/lib/input-number"
|
|
2060
|
+
var input_number_ = __webpack_require__(49);
|
|
2061
|
+
var input_number_default = /*#__PURE__*/__webpack_require__.n(input_number_);
|
|
2062
|
+
|
|
2063
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/InputNumber.vue?vue&type=script&lang=js
|
|
2064
|
+
|
|
2065
|
+
/* harmony default export */ var InputNumbervue_type_script_lang_js = ({
|
|
2066
|
+
name: "InputNumber",
|
|
2074
2067
|
components: {
|
|
2075
|
-
|
|
2076
|
-
elCheckbox: checkbox_default.a,
|
|
2077
|
-
elCheckboxButton: checkbox_button_default.a
|
|
2068
|
+
elInputNumber: input_number_default.a
|
|
2078
2069
|
},
|
|
2079
|
-
props: {
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2070
|
+
props: {},
|
|
2071
|
+
computed: {
|
|
2072
|
+
attrs: function attrs() {
|
|
2073
|
+
return Object.assign({
|
|
2074
|
+
clearable: true,
|
|
2075
|
+
placeholder: "请输入"
|
|
2076
|
+
}, this.$attrs);
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
});
|
|
2080
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/InputNumber.vue?vue&type=script&lang=js
|
|
2081
|
+
/* harmony default export */ var item_InputNumbervue_type_script_lang_js = (InputNumbervue_type_script_lang_js);
|
|
2082
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/InputNumber.vue
|
|
2083
|
+
|
|
2084
|
+
|
|
2085
|
+
|
|
2086
|
+
|
|
2087
|
+
|
|
2088
|
+
/* normalize component */
|
|
2089
|
+
|
|
2090
|
+
var InputNumber_component = Object(componentNormalizer["a" /* default */])(
|
|
2091
|
+
item_InputNumbervue_type_script_lang_js,
|
|
2092
|
+
InputNumbervue_type_template_id_6c463d52_render,
|
|
2093
|
+
InputNumbervue_type_template_id_6c463d52_staticRenderFns,
|
|
2094
|
+
false,
|
|
2095
|
+
null,
|
|
2096
|
+
null,
|
|
2097
|
+
null
|
|
2098
|
+
|
|
2099
|
+
)
|
|
2100
|
+
|
|
2101
|
+
/* harmony default export */ var InputNumber = (InputNumber_component.exports);
|
|
2102
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/InputText.vue?vue&type=template&id=2a53dc99
|
|
2103
|
+
var InputTextvue_type_template_id_2a53dc99_render = function render() {
|
|
2104
|
+
var _vm = this,
|
|
2105
|
+
_c = _vm._self._c
|
|
2106
|
+
return _c("div", [_vm._v(_vm._s(_vm.value))])
|
|
2107
|
+
}
|
|
2108
|
+
var InputTextvue_type_template_id_2a53dc99_staticRenderFns = []
|
|
2109
|
+
InputTextvue_type_template_id_2a53dc99_render._withStripped = true
|
|
2110
|
+
|
|
2111
|
+
|
|
2112
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/InputText.vue?vue&type=template&id=2a53dc99
|
|
2113
|
+
|
|
2114
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/InputText.vue?vue&type=script&lang=js
|
|
2115
|
+
|
|
2116
|
+
/* harmony default export */ var InputTextvue_type_script_lang_js = ({
|
|
2117
|
+
name: "InputText",
|
|
2118
|
+
components: {
|
|
2119
|
+
elInput: input_default.a
|
|
2120
|
+
},
|
|
2121
|
+
props: {
|
|
2122
|
+
value: {
|
|
2123
|
+
type: [String, Number, Array]
|
|
2124
|
+
}
|
|
2125
|
+
},
|
|
2126
|
+
computed: {
|
|
2127
|
+
attrs: function attrs() {
|
|
2128
|
+
return Object.assign({}, this.$attrs);
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
});
|
|
2132
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/InputText.vue?vue&type=script&lang=js
|
|
2133
|
+
/* harmony default export */ var item_InputTextvue_type_script_lang_js = (InputTextvue_type_script_lang_js);
|
|
2134
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/InputText.vue
|
|
2135
|
+
|
|
2136
|
+
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
|
|
2140
|
+
/* normalize component */
|
|
2141
|
+
|
|
2142
|
+
var InputText_component = Object(componentNormalizer["a" /* default */])(
|
|
2143
|
+
item_InputTextvue_type_script_lang_js,
|
|
2144
|
+
InputTextvue_type_template_id_2a53dc99_render,
|
|
2145
|
+
InputTextvue_type_template_id_2a53dc99_staticRenderFns,
|
|
2146
|
+
false,
|
|
2147
|
+
null,
|
|
2148
|
+
null,
|
|
2149
|
+
null
|
|
2150
|
+
|
|
2151
|
+
)
|
|
2152
|
+
|
|
2153
|
+
/* harmony default export */ var InputText = (InputText_component.exports);
|
|
2154
|
+
// EXTERNAL MODULE: external "element-ui/lib/radio-group"
|
|
2155
|
+
var radio_group_ = __webpack_require__(50);
|
|
2156
|
+
var radio_group_default = /*#__PURE__*/__webpack_require__.n(radio_group_);
|
|
2157
|
+
|
|
2158
|
+
// EXTERNAL MODULE: external "element-ui/lib/radio"
|
|
2159
|
+
var radio_ = __webpack_require__(31);
|
|
2160
|
+
var radio_default = /*#__PURE__*/__webpack_require__.n(radio_);
|
|
2161
|
+
|
|
2162
|
+
// EXTERNAL MODULE: external "element-ui/lib/radio-button"
|
|
2163
|
+
var radio_button_ = __webpack_require__(51);
|
|
2164
|
+
var radio_button_default = /*#__PURE__*/__webpack_require__.n(radio_button_);
|
|
2165
|
+
|
|
2166
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/Radio.vue?vue&type=script&lang=js
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
|
|
2170
|
+
|
|
2171
|
+
|
|
2172
|
+
|
|
2173
|
+
/* harmony default export */ var Radiovue_type_script_lang_js = ({
|
|
2174
|
+
name: "Radio",
|
|
2175
|
+
components: {
|
|
2176
|
+
elRadioGroup: radio_group_default.a,
|
|
2177
|
+
elRadio: radio_default.a,
|
|
2178
|
+
elRadioButton: radio_button_default.a
|
|
2179
|
+
},
|
|
2180
|
+
props: {
|
|
2181
|
+
size: String,
|
|
2182
|
+
dictCode: String,
|
|
2183
|
+
border: {
|
|
2184
|
+
type: Boolean,
|
|
2185
|
+
default: function _default() {
|
|
2186
|
+
return false;
|
|
2187
|
+
}
|
|
2188
|
+
},
|
|
2189
|
+
selectMode: String,
|
|
2090
2190
|
options: {
|
|
2091
2191
|
type: Array,
|
|
2092
2192
|
default: function _default() {
|
|
@@ -2108,7 +2208,11 @@ var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button
|
|
|
2108
2208
|
optionProps: {
|
|
2109
2209
|
type: Object,
|
|
2110
2210
|
default: function _default() {
|
|
2111
|
-
return {
|
|
2211
|
+
return {
|
|
2212
|
+
value: "value",
|
|
2213
|
+
label: "label",
|
|
2214
|
+
name: "name"
|
|
2215
|
+
};
|
|
2112
2216
|
}
|
|
2113
2217
|
}
|
|
2114
2218
|
},
|
|
@@ -2119,15 +2223,9 @@ var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button
|
|
|
2119
2223
|
},
|
|
2120
2224
|
computed: {
|
|
2121
2225
|
attrs: function attrs() {
|
|
2122
|
-
//值处理
|
|
2123
|
-
var _value = this.$attrs.value ? this.$attrs.value : [];
|
|
2124
|
-
if (this.valueIsString && this.$attrs.value) {
|
|
2125
|
-
_value = typeof this.$attrs.value === "string" ? this.$attrs.value.split(",") : this.$attrs.value;
|
|
2126
|
-
}
|
|
2127
2226
|
return Object.assign({}, this.$attrs, {
|
|
2128
2227
|
size: this.size,
|
|
2129
|
-
border: this.border
|
|
2130
|
-
value: _value
|
|
2228
|
+
border: this.border
|
|
2131
2229
|
});
|
|
2132
2230
|
},
|
|
2133
2231
|
dictOption: function dictOption() {
|
|
@@ -2150,13 +2248,6 @@ var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button
|
|
|
2150
2248
|
}
|
|
2151
2249
|
return false;
|
|
2152
2250
|
},
|
|
2153
|
-
_optionProps: function _optionProps() {
|
|
2154
|
-
return Object.assign({
|
|
2155
|
-
value: "value",
|
|
2156
|
-
label: "label",
|
|
2157
|
-
children: "children"
|
|
2158
|
-
}, this.optionProps);
|
|
2159
|
-
},
|
|
2160
2251
|
request: function request() {
|
|
2161
2252
|
return this.api.request || this._form && this._form.request || (this.$COMPONENT || {}).request;
|
|
2162
2253
|
}
|
|
@@ -2198,13 +2289,13 @@ var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button
|
|
|
2198
2289
|
renderButton: function renderButton(h, scoped) {
|
|
2199
2290
|
var _this2 = this;
|
|
2200
2291
|
return this.optionData.map(function (item) {
|
|
2201
|
-
return h("el-
|
|
2202
|
-
"key": item[_this2.
|
|
2292
|
+
return h("el-radio-button", {
|
|
2293
|
+
"key": item[_this2.optionProps.value],
|
|
2203
2294
|
"attrs": {
|
|
2204
|
-
"label": item[_this2.
|
|
2205
|
-
"disabled": item[_this2.
|
|
2295
|
+
"label": item[_this2.optionProps.value],
|
|
2296
|
+
"disabled": item[_this2.optionProps.disabled]
|
|
2206
2297
|
}
|
|
2207
|
-
}, [item[_this2.
|
|
2298
|
+
}, [item[_this2.optionProps.label]]);
|
|
2208
2299
|
});
|
|
2209
2300
|
},
|
|
2210
2301
|
renderOptions: function renderOptions(h, scoped) {
|
|
@@ -2213,16 +2304,16 @@ var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button
|
|
|
2213
2304
|
return this.renderButton(h, scoped);
|
|
2214
2305
|
}
|
|
2215
2306
|
return this.optionData.map(function (item) {
|
|
2216
|
-
return h("el-
|
|
2217
|
-
"key": item[_this3.
|
|
2307
|
+
return h("el-radio", {
|
|
2308
|
+
"key": item[_this3.optionProps.value],
|
|
2218
2309
|
"attrs": {
|
|
2219
|
-
"value": item[_this3.
|
|
2220
|
-
"label": item[_this3.
|
|
2221
|
-
"disabled": item[_this3.
|
|
2310
|
+
"value": item[_this3.optionProps.value],
|
|
2311
|
+
"label": item[_this3.optionProps.value],
|
|
2312
|
+
"disabled": item[_this3.optionProps.disabled],
|
|
2222
2313
|
"border": _this3.border,
|
|
2223
2314
|
"size": _this3.size
|
|
2224
2315
|
}
|
|
2225
|
-
}, [item[_this3.
|
|
2316
|
+
}, [item[_this3.optionProps.label]]);
|
|
2226
2317
|
});
|
|
2227
2318
|
}
|
|
2228
2319
|
},
|
|
@@ -2236,34 +2327,25 @@ var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button
|
|
|
2236
2327
|
return _this4.renderOptions(h, scoped);
|
|
2237
2328
|
}
|
|
2238
2329
|
},
|
|
2239
|
-
on:
|
|
2240
|
-
change: function change(value) {
|
|
2241
|
-
debugger;
|
|
2242
|
-
var _value = value;
|
|
2243
|
-
if (_this4.valueIsString) {
|
|
2244
|
-
_value = value.toString();
|
|
2245
|
-
}
|
|
2246
|
-
_this4.$emit("change", _value);
|
|
2247
|
-
}
|
|
2248
|
-
})
|
|
2330
|
+
on: this.$listeners
|
|
2249
2331
|
};
|
|
2250
|
-
return h("el-
|
|
2332
|
+
return h("el-radio-group", babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
2251
2333
|
}
|
|
2252
2334
|
});
|
|
2253
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/
|
|
2254
|
-
/* harmony default export */ var
|
|
2255
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/
|
|
2256
|
-
var
|
|
2335
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Radio.vue?vue&type=script&lang=js
|
|
2336
|
+
/* harmony default export */ var item_Radiovue_type_script_lang_js = (Radiovue_type_script_lang_js);
|
|
2337
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Radio.vue
|
|
2338
|
+
var Radio_render, Radio_staticRenderFns
|
|
2257
2339
|
|
|
2258
2340
|
|
|
2259
2341
|
|
|
2260
2342
|
|
|
2261
2343
|
/* normalize component */
|
|
2262
2344
|
|
|
2263
|
-
var
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2345
|
+
var Radio_component = Object(componentNormalizer["a" /* default */])(
|
|
2346
|
+
item_Radiovue_type_script_lang_js,
|
|
2347
|
+
Radio_render,
|
|
2348
|
+
Radio_staticRenderFns,
|
|
2267
2349
|
false,
|
|
2268
2350
|
null,
|
|
2269
2351
|
null,
|
|
@@ -2271,325 +2353,420 @@ var Checkbox_component = Object(componentNormalizer["a" /* default */])(
|
|
|
2271
2353
|
|
|
2272
2354
|
)
|
|
2273
2355
|
|
|
2274
|
-
/* harmony default export */ var
|
|
2275
|
-
//
|
|
2276
|
-
var
|
|
2277
|
-
|
|
2278
|
-
_c = _vm._self._c
|
|
2279
|
-
return _c("div", [_vm._v(_vm._s(_vm.value))])
|
|
2280
|
-
}
|
|
2281
|
-
var InputTextvue_type_template_id_2a53dc99_staticRenderFns = []
|
|
2282
|
-
InputTextvue_type_template_id_2a53dc99_render._withStripped = true
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/InputText.vue?vue&type=template&id=2a53dc99
|
|
2286
|
-
|
|
2287
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/InputText.vue?vue&type=script&lang=js
|
|
2288
|
-
|
|
2289
|
-
/* harmony default export */ var InputTextvue_type_script_lang_js = ({
|
|
2290
|
-
name: "InputText",
|
|
2291
|
-
components: {
|
|
2292
|
-
elInput: input_default.a
|
|
2293
|
-
},
|
|
2294
|
-
props: {
|
|
2295
|
-
value: {
|
|
2296
|
-
type: [String, Number, Array]
|
|
2297
|
-
}
|
|
2298
|
-
},
|
|
2299
|
-
computed: {
|
|
2300
|
-
attrs: function attrs() {
|
|
2301
|
-
return Object.assign({}, this.$attrs);
|
|
2302
|
-
}
|
|
2303
|
-
}
|
|
2304
|
-
});
|
|
2305
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/InputText.vue?vue&type=script&lang=js
|
|
2306
|
-
/* harmony default export */ var item_InputTextvue_type_script_lang_js = (InputTextvue_type_script_lang_js);
|
|
2307
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/InputText.vue
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2356
|
+
/* harmony default export */ var Radio = (Radio_component.exports);
|
|
2357
|
+
// EXTERNAL MODULE: external "element-ui/lib/select"
|
|
2358
|
+
var select_ = __webpack_require__(52);
|
|
2359
|
+
var select_default = /*#__PURE__*/__webpack_require__.n(select_);
|
|
2312
2360
|
|
|
2313
|
-
|
|
2361
|
+
// EXTERNAL MODULE: external "element-ui/lib/option"
|
|
2362
|
+
var option_ = __webpack_require__(53);
|
|
2363
|
+
var option_default = /*#__PURE__*/__webpack_require__.n(option_);
|
|
2314
2364
|
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
InputTextvue_type_template_id_2a53dc99_staticRenderFns,
|
|
2319
|
-
false,
|
|
2320
|
-
null,
|
|
2321
|
-
null,
|
|
2322
|
-
null
|
|
2323
|
-
|
|
2324
|
-
)
|
|
2365
|
+
// EXTERNAL MODULE: external "element-ui/lib/option-group"
|
|
2366
|
+
var option_group_ = __webpack_require__(54);
|
|
2367
|
+
var option_group_default = /*#__PURE__*/__webpack_require__.n(option_group_);
|
|
2325
2368
|
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
var Cascadervue_type_template_id_2270d279_render = function render() {
|
|
2369
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/SelectTree.vue?vue&type=template&id=0f44d547
|
|
2370
|
+
var SelectTreevue_type_template_id_0f44d547_render = function render() {
|
|
2329
2371
|
var _vm = this,
|
|
2330
2372
|
_c = _vm._self._c
|
|
2331
2373
|
return _c(
|
|
2332
|
-
"
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
"el-
|
|
2337
|
-
_vm.
|
|
2338
|
-
|
|
2374
|
+
"div",
|
|
2375
|
+
{ staticClass: "select-tree" },
|
|
2376
|
+
[
|
|
2377
|
+
_c(
|
|
2378
|
+
"el-select",
|
|
2379
|
+
_vm._g(
|
|
2380
|
+
_vm._b(
|
|
2381
|
+
{
|
|
2382
|
+
ref: "select",
|
|
2383
|
+
model: {
|
|
2384
|
+
value: _vm.selectedData,
|
|
2385
|
+
callback: function ($$v) {
|
|
2386
|
+
_vm.selectedData = $$v
|
|
2387
|
+
},
|
|
2388
|
+
expression: "selectedData",
|
|
2389
|
+
},
|
|
2390
|
+
},
|
|
2391
|
+
"el-select",
|
|
2392
|
+
_vm.selectAttrs,
|
|
2393
|
+
false
|
|
2394
|
+
),
|
|
2395
|
+
_vm.selectEvent
|
|
2396
|
+
),
|
|
2397
|
+
[
|
|
2398
|
+
_c(
|
|
2399
|
+
"el-option",
|
|
2400
|
+
{
|
|
2401
|
+
staticClass: "select-tree-option",
|
|
2402
|
+
class: {
|
|
2403
|
+
"select-tree-option__empty":
|
|
2404
|
+
!_vm.options || _vm.options.length === 0,
|
|
2405
|
+
},
|
|
2406
|
+
attrs: { value: "" },
|
|
2407
|
+
},
|
|
2408
|
+
[
|
|
2409
|
+
_vm.options && _vm.options.length > 0
|
|
2410
|
+
? _c(
|
|
2411
|
+
"el-tree",
|
|
2412
|
+
_vm._g(
|
|
2413
|
+
_vm._b(
|
|
2414
|
+
{
|
|
2415
|
+
ref: "tree",
|
|
2416
|
+
attrs: { "filter-node-method": _vm.filterTree },
|
|
2417
|
+
on: {
|
|
2418
|
+
"node-click": _vm.handleNodeClick,
|
|
2419
|
+
"check-change": _vm.handleCheckChange,
|
|
2420
|
+
},
|
|
2421
|
+
scopedSlots: _vm._u(
|
|
2422
|
+
[
|
|
2423
|
+
{
|
|
2424
|
+
key: "default",
|
|
2425
|
+
fn: function ({ node }) {
|
|
2426
|
+
return [
|
|
2427
|
+
_c("TreeLine", { attrs: { node: node } }),
|
|
2428
|
+
]
|
|
2429
|
+
},
|
|
2430
|
+
},
|
|
2431
|
+
],
|
|
2432
|
+
null,
|
|
2433
|
+
false,
|
|
2434
|
+
2976651565
|
|
2435
|
+
),
|
|
2436
|
+
},
|
|
2437
|
+
"el-tree",
|
|
2438
|
+
_vm.treeAttrs,
|
|
2439
|
+
false
|
|
2440
|
+
),
|
|
2441
|
+
_vm.$listeners
|
|
2442
|
+
)
|
|
2443
|
+
)
|
|
2444
|
+
: _c("p", [_vm._v("无数据")]),
|
|
2445
|
+
],
|
|
2446
|
+
1
|
|
2447
|
+
),
|
|
2448
|
+
],
|
|
2449
|
+
1
|
|
2339
2450
|
),
|
|
2340
|
-
|
|
2341
|
-
|
|
2451
|
+
],
|
|
2452
|
+
1
|
|
2342
2453
|
)
|
|
2343
2454
|
}
|
|
2344
|
-
var
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/Cascader.vue?vue&type=template&id=2270d279
|
|
2455
|
+
var SelectTreevue_type_template_id_0f44d547_staticRenderFns = []
|
|
2456
|
+
SelectTreevue_type_template_id_0f44d547_render._withStripped = true
|
|
2349
2457
|
|
|
2350
|
-
// EXTERNAL MODULE: external "element-ui/lib/cascader"
|
|
2351
|
-
var cascader_ = __webpack_require__(35);
|
|
2352
|
-
var cascader_default = /*#__PURE__*/__webpack_require__.n(cascader_);
|
|
2353
2458
|
|
|
2354
|
-
// CONCATENATED MODULE: ./
|
|
2459
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/SelectTree.vue?vue&type=template&id=0f44d547
|
|
2355
2460
|
|
|
2461
|
+
// EXTERNAL MODULE: external "@panpanzhao/component-ui/lib/components/tree-line"
|
|
2462
|
+
var tree_line_ = __webpack_require__(55);
|
|
2463
|
+
var tree_line_default = /*#__PURE__*/__webpack_require__.n(tree_line_);
|
|
2356
2464
|
|
|
2465
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/SelectTree.vue?vue&type=script&lang=js
|
|
2357
2466
|
|
|
2358
|
-
/* harmony default export */ var
|
|
2359
|
-
name: "
|
|
2467
|
+
/* harmony default export */ var SelectTreevue_type_script_lang_js = ({
|
|
2468
|
+
name: "SelectTree",
|
|
2360
2469
|
components: {
|
|
2361
|
-
|
|
2470
|
+
TreeLine: tree_line_default.a
|
|
2362
2471
|
},
|
|
2363
2472
|
props: {
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2473
|
+
value: {
|
|
2474
|
+
type: [String, Number, Array]
|
|
2475
|
+
},
|
|
2476
|
+
// 树结构数据
|
|
2477
|
+
options: {
|
|
2478
|
+
type: Array,
|
|
2368
2479
|
default: function _default() {
|
|
2369
|
-
return
|
|
2480
|
+
return [];
|
|
2370
2481
|
}
|
|
2371
2482
|
},
|
|
2372
|
-
|
|
2373
|
-
type:
|
|
2483
|
+
optionProps: {
|
|
2484
|
+
type: Object,
|
|
2374
2485
|
default: function _default() {
|
|
2375
|
-
return
|
|
2486
|
+
return {
|
|
2487
|
+
value: "value",
|
|
2488
|
+
label: "label",
|
|
2489
|
+
children: "children"
|
|
2490
|
+
};
|
|
2376
2491
|
}
|
|
2377
2492
|
},
|
|
2378
|
-
|
|
2379
|
-
|
|
2493
|
+
// 配置是否可多选
|
|
2494
|
+
multiple: {
|
|
2495
|
+
type: Boolean,
|
|
2380
2496
|
default: function _default() {
|
|
2381
|
-
return
|
|
2497
|
+
return false;
|
|
2382
2498
|
}
|
|
2383
|
-
}
|
|
2384
|
-
},
|
|
2385
|
-
computed: {
|
|
2386
|
-
attrs: function attrs() {
|
|
2387
|
-
return Object.assign({}, this.$attrs);
|
|
2388
2499
|
},
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2500
|
+
filterable: {
|
|
2501
|
+
type: Boolean,
|
|
2502
|
+
default: function _default() {
|
|
2503
|
+
return false;
|
|
2392
2504
|
}
|
|
2393
|
-
return [];
|
|
2394
|
-
},
|
|
2395
|
-
optionData: function optionData() {
|
|
2396
|
-
return this.options || this.apiOptions || this.dictOption;
|
|
2397
2505
|
},
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
parent = parent.$parent;
|
|
2403
|
-
} else {
|
|
2404
|
-
return parent;
|
|
2405
|
-
}
|
|
2506
|
+
tree: {
|
|
2507
|
+
type: Object,
|
|
2508
|
+
default: function _default() {
|
|
2509
|
+
return {};
|
|
2406
2510
|
}
|
|
2407
|
-
return false;
|
|
2408
|
-
},
|
|
2409
|
-
request: function request() {
|
|
2410
|
-
return this.api.request || this._form && this._form.request || (this.$COMPONENT || {}).request;
|
|
2411
2511
|
}
|
|
2412
2512
|
},
|
|
2413
2513
|
data: function data() {
|
|
2414
2514
|
return {
|
|
2415
|
-
|
|
2515
|
+
selectedData: this.multiple ? [] : null,
|
|
2516
|
+
// 选中的name
|
|
2517
|
+
checkedKeys: [],
|
|
2518
|
+
//选中的id
|
|
2519
|
+
checkedData: [] //选中的信息
|
|
2416
2520
|
};
|
|
2417
2521
|
},
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2522
|
+
watch: {
|
|
2523
|
+
value: function value(val) {
|
|
2524
|
+
if (!val) {
|
|
2525
|
+
if (this.$refs.tree) {
|
|
2526
|
+
this.$refs.tree.setCurrentKey(null);
|
|
2527
|
+
this.$refs.tree.setCheckedKeys([]);
|
|
2528
|
+
}
|
|
2529
|
+
this.selectedData = null;
|
|
2530
|
+
return;
|
|
2531
|
+
}
|
|
2532
|
+
this.initData();
|
|
2533
|
+
},
|
|
2534
|
+
options: {
|
|
2535
|
+
handler: function handler() {
|
|
2536
|
+
var _this = this;
|
|
2537
|
+
this.$nextTick(function () {
|
|
2538
|
+
_this.initData();
|
|
2539
|
+
});
|
|
2540
|
+
},
|
|
2541
|
+
deep: true
|
|
2542
|
+
}
|
|
2543
|
+
},
|
|
2544
|
+
computed: {
|
|
2545
|
+
selectAttrs: function selectAttrs() {
|
|
2546
|
+
return Object.assign({
|
|
2547
|
+
clearable: true
|
|
2548
|
+
}, this.$attrs, {
|
|
2549
|
+
multiple: this.multiple,
|
|
2550
|
+
filterable: this.filterable,
|
|
2551
|
+
filterMethod: this.filterMethod
|
|
2552
|
+
});
|
|
2553
|
+
},
|
|
2554
|
+
selectEvent: function selectEvent() {
|
|
2555
|
+
return Object.assign({}, this.$listeners, {
|
|
2556
|
+
change: this.handleChange,
|
|
2557
|
+
input: this.handleInput,
|
|
2558
|
+
"visible-change": this.handleVisibleChange,
|
|
2559
|
+
clear: this.handleClear,
|
|
2560
|
+
"remove-tag": this.removeTag
|
|
2561
|
+
});
|
|
2562
|
+
},
|
|
2563
|
+
treeAttrs: function treeAttrs() {
|
|
2564
|
+
return Object.assign({
|
|
2565
|
+
expandOnClickNode: false,
|
|
2566
|
+
highlightCurrent: true,
|
|
2567
|
+
checkOnClickNode: true,
|
|
2568
|
+
checkStrictly: false //设置true,可以通过输入框的删除按钮删除主节点
|
|
2569
|
+
}, this.tree, {
|
|
2570
|
+
showCheckbox: this.multiple,
|
|
2571
|
+
data: this.options,
|
|
2572
|
+
props: this.optionProps,
|
|
2573
|
+
nodeKey: this.optionProps.value,
|
|
2574
|
+
defaultExpandedKeys: this.checkedKeys,
|
|
2575
|
+
defaultCheckedKeys: this.checkedKeys,
|
|
2576
|
+
emptyText: "无匹配数据"
|
|
2577
|
+
});
|
|
2421
2578
|
}
|
|
2422
2579
|
},
|
|
2580
|
+
mounted: function mounted() {
|
|
2581
|
+
this.initData();
|
|
2582
|
+
},
|
|
2423
2583
|
methods: {
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2584
|
+
initData: function initData() {
|
|
2585
|
+
if (this.multiple && Array.isArray(this.value)) {
|
|
2586
|
+
this.checkedKeys = this.value;
|
|
2587
|
+
if (this.$refs.tree) {
|
|
2588
|
+
this.$refs.tree.setCheckedKeys(this.value);
|
|
2589
|
+
this.setMultipleData();
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
if (this.value !== null && !this.multiple) {
|
|
2593
|
+
this.checkedKeys = [this.value];
|
|
2594
|
+
if (this.$refs.tree) {
|
|
2595
|
+
this.$refs.tree.setCurrentKey(this.value);
|
|
2596
|
+
this.setSingleData();
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
},
|
|
2600
|
+
filterMethod: function filterMethod(val) {
|
|
2601
|
+
this.$refs.tree && this.$refs.tree.filter(val);
|
|
2602
|
+
},
|
|
2603
|
+
filterTree: function filterTree(value, data) {
|
|
2604
|
+
if (!value) return true;
|
|
2605
|
+
return data[this.optionProps.label].indexOf(value) !== -1;
|
|
2606
|
+
},
|
|
2607
|
+
handleChange: function handleChange(value) {
|
|
2608
|
+
if (Array.isArray(value)) {
|
|
2609
|
+
this.selectedData = value.filter(function (itemVal) {
|
|
2610
|
+
return itemVal !== "";
|
|
2611
|
+
});
|
|
2612
|
+
}
|
|
2613
|
+
},
|
|
2614
|
+
handleInput: function handleInput(value) {
|
|
2615
|
+
var _this2 = this;
|
|
2616
|
+
if (!this.multiple) {
|
|
2427
2617
|
return false;
|
|
2428
2618
|
}
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2619
|
+
//删除处理
|
|
2620
|
+
if (Array.isArray(value) && Array.isArray(this.checkedData) && this.checkedData.length > 0) {
|
|
2621
|
+
var removeDatas = this.checkedData.filter(function (item) {
|
|
2622
|
+
return value.indexOf(item[_this2.optionProps.label]) === -1;
|
|
2623
|
+
});
|
|
2624
|
+
removeDatas.forEach(function (item) {
|
|
2625
|
+
_this2.$refs.tree.setChecked(item);
|
|
2435
2626
|
});
|
|
2436
2627
|
}
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
}
|
|
2451
|
-
|
|
2628
|
+
},
|
|
2629
|
+
handleClear: function handleClear() {
|
|
2630
|
+
this.$refs.tree.setCheckedKeys([]);
|
|
2631
|
+
if (!this.multiple) {
|
|
2632
|
+
this.$refs.tree.setCurrentKey(null);
|
|
2633
|
+
this.checkedData = null;
|
|
2634
|
+
this.emitChange();
|
|
2635
|
+
}
|
|
2636
|
+
this.$emit("clear");
|
|
2637
|
+
},
|
|
2638
|
+
handleVisibleChange: function handleVisibleChange(flag) {
|
|
2639
|
+
if (this.selectAttrs.filterable && flag && this.$refs.tree) {
|
|
2640
|
+
this.$refs.tree.filter();
|
|
2641
|
+
}
|
|
2642
|
+
this.$emit("visible-change", flag);
|
|
2643
|
+
},
|
|
2644
|
+
emitChange: function emitChange() {
|
|
2645
|
+
if (this.multiple) {
|
|
2646
|
+
this.$emit("input", this.checkedKeys, this.checkedData);
|
|
2647
|
+
this.$emit("change", this.checkedKeys, this.checkedData);
|
|
2648
|
+
return false;
|
|
2649
|
+
}
|
|
2650
|
+
this.$emit("input", this.checkedData && this.checkedData[this.optionProps.value], this.checkedData);
|
|
2651
|
+
this.$emit("change", this.checkedData && this.checkedData[this.optionProps.value], this.checkedData);
|
|
2652
|
+
},
|
|
2653
|
+
setSingleData: function setSingleData(data) {
|
|
2654
|
+
var currentData = data || this.$refs.tree.getCurrentNode();
|
|
2655
|
+
this.checkedData = currentData;
|
|
2656
|
+
this.selectedData = currentData && currentData[this.optionProps.label];
|
|
2657
|
+
},
|
|
2658
|
+
setMultipleData: function setMultipleData() {
|
|
2659
|
+
var _this3 = this;
|
|
2660
|
+
var checkedNodes = this.$refs.tree.getCheckedNodes();
|
|
2661
|
+
this.checkedData = checkedNodes.map(function (item) {
|
|
2662
|
+
var node = _this3.$refs.tree.getNode(item);
|
|
2663
|
+
return node && node.data;
|
|
2452
2664
|
});
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
});
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
//
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
[
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
_vm.cascaderValue = $$v
|
|
2500
|
-
},
|
|
2501
|
-
expression: "cascaderValue",
|
|
2502
|
-
},
|
|
2503
|
-
},
|
|
2504
|
-
"el-cascader",
|
|
2505
|
-
_vm.cascaderAttrs,
|
|
2506
|
-
false
|
|
2507
|
-
)
|
|
2508
|
-
),
|
|
2509
|
-
],
|
|
2510
|
-
1
|
|
2511
|
-
),
|
|
2512
|
-
_vm.showAddress
|
|
2513
|
-
? _c(
|
|
2514
|
-
"div",
|
|
2515
|
-
{ staticClass: "cascader-addr__input" },
|
|
2516
|
-
[
|
|
2517
|
-
_c(
|
|
2518
|
-
"el-input",
|
|
2519
|
-
_vm._b(
|
|
2520
|
-
{
|
|
2521
|
-
on: { change: _vm.inputChange, clear: _vm.inputChange },
|
|
2522
|
-
model: {
|
|
2523
|
-
value: _vm.inputValue,
|
|
2524
|
-
callback: function ($$v) {
|
|
2525
|
-
_vm.inputValue = $$v
|
|
2526
|
-
},
|
|
2527
|
-
expression: "inputValue",
|
|
2528
|
-
},
|
|
2529
|
-
},
|
|
2530
|
-
"el-input",
|
|
2531
|
-
_vm.inputAttrs,
|
|
2532
|
-
false
|
|
2533
|
-
)
|
|
2534
|
-
),
|
|
2535
|
-
],
|
|
2536
|
-
1
|
|
2537
|
-
)
|
|
2538
|
-
: _vm._e(),
|
|
2539
|
-
]
|
|
2540
|
-
)
|
|
2541
|
-
}
|
|
2542
|
-
var CascaderAddrvue_type_template_id_df02c66e_staticRenderFns = []
|
|
2543
|
-
CascaderAddrvue_type_template_id_df02c66e_render._withStripped = true
|
|
2665
|
+
this.selectedData = this.checkedData.map(function (item) {
|
|
2666
|
+
return item && item[_this3.optionProps.label];
|
|
2667
|
+
});
|
|
2668
|
+
},
|
|
2669
|
+
// 节点被点击时的回调,返回被点击的节点数据
|
|
2670
|
+
handleNodeClick: function handleNodeClick(data, node) {
|
|
2671
|
+
if (this.multiple) {
|
|
2672
|
+
return false;
|
|
2673
|
+
}
|
|
2674
|
+
if (data.disabled) {
|
|
2675
|
+
this.$refs.tree.setCurrentKey(this.value || null);
|
|
2676
|
+
console.warn("该节点数据disabled为true,不能选择");
|
|
2677
|
+
return false;
|
|
2678
|
+
}
|
|
2679
|
+
this.setSingleData(data);
|
|
2680
|
+
this.emitChange();
|
|
2681
|
+
this.$refs.select.handleClose();
|
|
2682
|
+
},
|
|
2683
|
+
// 节点选中状态发生变化时的回调
|
|
2684
|
+
handleCheckChange: function handleCheckChange() {
|
|
2685
|
+
if (!this.multiple) {
|
|
2686
|
+
return false;
|
|
2687
|
+
}
|
|
2688
|
+
this.checkedKeys = this.$refs.tree.getCheckedKeys().filter(function (item) {
|
|
2689
|
+
return item !== null;
|
|
2690
|
+
}); // 所有被选中的节点的 key 所组成的数组数据
|
|
2691
|
+
this.setMultipleData();
|
|
2692
|
+
this.emitChange();
|
|
2693
|
+
},
|
|
2694
|
+
removeTag: function removeTag(label) {
|
|
2695
|
+
var _this4 = this;
|
|
2696
|
+
var datas = this.checkedData.filter(function (item) {
|
|
2697
|
+
return item[_this4.optionProps.label] === label;
|
|
2698
|
+
});
|
|
2699
|
+
datas.forEach(function (item) {
|
|
2700
|
+
_this4.$refs.tree.setChecked(item);
|
|
2701
|
+
if (item[_this4.optionProps.children] && !_this4.treeAttrs.checkStrictly) {
|
|
2702
|
+
console.warn("设置checkStrictly为ture,才能删除");
|
|
2703
|
+
}
|
|
2704
|
+
});
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
});
|
|
2708
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/SelectTree.vue?vue&type=script&lang=js
|
|
2709
|
+
/* harmony default export */ var item_SelectTreevue_type_script_lang_js = (SelectTreevue_type_script_lang_js);
|
|
2710
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/SelectTree.vue
|
|
2544
2711
|
|
|
2545
2712
|
|
|
2546
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue?vue&type=template&id=df02c66e
|
|
2547
2713
|
|
|
2548
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/CascaderAddr.vue?vue&type=script&lang=js
|
|
2549
2714
|
|
|
2550
2715
|
|
|
2716
|
+
/* normalize component */
|
|
2551
2717
|
|
|
2552
|
-
|
|
2553
|
-
|
|
2718
|
+
var SelectTree_component = Object(componentNormalizer["a" /* default */])(
|
|
2719
|
+
item_SelectTreevue_type_script_lang_js,
|
|
2720
|
+
SelectTreevue_type_template_id_0f44d547_render,
|
|
2721
|
+
SelectTreevue_type_template_id_0f44d547_staticRenderFns,
|
|
2722
|
+
false,
|
|
2723
|
+
null,
|
|
2724
|
+
null,
|
|
2725
|
+
null
|
|
2726
|
+
|
|
2727
|
+
)
|
|
2728
|
+
|
|
2729
|
+
/* harmony default export */ var SelectTree = (SelectTree_component.exports);
|
|
2730
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/Select.vue?vue&type=script&lang=js
|
|
2731
|
+
|
|
2732
|
+
|
|
2733
|
+
|
|
2734
|
+
|
|
2735
|
+
|
|
2736
|
+
|
|
2737
|
+
|
|
2738
|
+
|
|
2739
|
+
/* harmony default export */ var Selectvue_type_script_lang_js = ({
|
|
2740
|
+
name: "Select",
|
|
2554
2741
|
components: {
|
|
2555
|
-
|
|
2556
|
-
|
|
2742
|
+
elSelect: select_default.a,
|
|
2743
|
+
elOptionGroup: option_group_default.a,
|
|
2744
|
+
elOption: option_default.a,
|
|
2745
|
+
SelectTree: SelectTree
|
|
2557
2746
|
},
|
|
2558
2747
|
props: {
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2748
|
+
selectMode: String,
|
|
2749
|
+
dictCode: String,
|
|
2750
|
+
options: {
|
|
2751
|
+
type: Array,
|
|
2562
2752
|
default: function _default() {
|
|
2563
2753
|
return null;
|
|
2564
2754
|
}
|
|
2565
2755
|
},
|
|
2566
|
-
|
|
2567
|
-
type: Boolean,
|
|
2568
|
-
default: true
|
|
2569
|
-
},
|
|
2570
|
-
cascader: {
|
|
2571
|
-
type: Object,
|
|
2572
|
-
default: function _default() {
|
|
2573
|
-
return {};
|
|
2574
|
-
}
|
|
2575
|
-
},
|
|
2576
|
-
input: {
|
|
2577
|
-
type: Object,
|
|
2578
|
-
default: function _default() {
|
|
2579
|
-
return {};
|
|
2580
|
-
}
|
|
2581
|
-
},
|
|
2756
|
+
optionRender: Function,
|
|
2582
2757
|
api: {
|
|
2583
2758
|
type: Object,
|
|
2584
2759
|
default: function _default() {
|
|
2585
2760
|
return {};
|
|
2586
2761
|
}
|
|
2587
2762
|
},
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2763
|
+
valueIsString: Boolean,
|
|
2764
|
+
optionBack: Boolean,
|
|
2765
|
+
//事件改变是否返回选中的值
|
|
2766
|
+
apiOpen: {
|
|
2767
|
+
type: Boolean,
|
|
2591
2768
|
default: function _default() {
|
|
2592
|
-
return
|
|
2769
|
+
return true;
|
|
2593
2770
|
}
|
|
2594
2771
|
},
|
|
2595
2772
|
optionProps: {
|
|
@@ -2597,145 +2774,28 @@ CascaderAddrvue_type_template_id_df02c66e_render._withStripped = true
|
|
|
2597
2774
|
default: function _default() {
|
|
2598
2775
|
return {};
|
|
2599
2776
|
}
|
|
2600
|
-
},
|
|
2601
|
-
fieldProps: {
|
|
2602
|
-
type: Object,
|
|
2603
|
-
default: function _default() {
|
|
2604
|
-
return {
|
|
2605
|
-
provinceCode: "provinceCode",
|
|
2606
|
-
provinceName: "provinceName",
|
|
2607
|
-
cityCode: "cityCode",
|
|
2608
|
-
cityName: "cityName",
|
|
2609
|
-
countyCode: "countyCode",
|
|
2610
|
-
countyName: "countyName",
|
|
2611
|
-
address: "address"
|
|
2612
|
-
};
|
|
2613
|
-
}
|
|
2614
|
-
}
|
|
2615
|
-
},
|
|
2616
|
-
watch: {
|
|
2617
|
-
value: {
|
|
2618
|
-
handler: function handler(val) {
|
|
2619
|
-
var _this$_form;
|
|
2620
|
-
var provinceCodeVal = val == null ? void 0 : val[this._fieldProps['provinceCode']];
|
|
2621
|
-
var cityCodeVal = val == null ? void 0 : val[this._fieldProps['cityCode']];
|
|
2622
|
-
var countyCodeVal = val == null ? void 0 : val[this._fieldProps['countyCode']];
|
|
2623
|
-
var provinceNameVal = val == null ? void 0 : val[this._fieldProps['provinceName']];
|
|
2624
|
-
var cityNameVal = val == null ? void 0 : val[this._fieldProps['cityName']];
|
|
2625
|
-
var countyNameVal = val == null ? void 0 : val[this._fieldProps['countyName']];
|
|
2626
|
-
var addressVal = val == null ? void 0 : val[this._fieldProps['address']];
|
|
2627
|
-
this.valueCached['provinceCode'] = provinceCodeVal;
|
|
2628
|
-
this.valueCached['cityCode'] = cityCodeVal;
|
|
2629
|
-
this.valueCached['countyCode'] = countyCodeVal;
|
|
2630
|
-
this.valueCached['provinceName'] = provinceNameVal;
|
|
2631
|
-
this.valueCached['cityName'] = cityNameVal;
|
|
2632
|
-
this.valueCached['countyName'] = countyNameVal;
|
|
2633
|
-
this.valueCached['address'] = addressVal;
|
|
2634
|
-
if ((_this$_form = this._form) != null && _this$_form.formModel) {
|
|
2635
|
-
this._form.formModel[this._fieldProps['provinceCode']] = provinceCodeVal;
|
|
2636
|
-
this._form.formModel[this._fieldProps['cityCode']] = cityCodeVal;
|
|
2637
|
-
this._form.formModel[this._fieldProps['countyCode']] = countyCodeVal;
|
|
2638
|
-
this._form.formModel[this._fieldProps['provinceName']] = provinceNameVal;
|
|
2639
|
-
this._form.formModel[this._fieldProps['cityName']] = cityNameVal;
|
|
2640
|
-
this._form.formModel[this._fieldProps['countyName']] = countyNameVal;
|
|
2641
|
-
this._form.formModel[this._fieldProps['address']] = addressVal;
|
|
2642
|
-
}
|
|
2643
|
-
},
|
|
2644
|
-
deep: true
|
|
2645
|
-
},
|
|
2646
|
-
"_form.formModel.countyCode": function _formFormModelCountyCode(val) {
|
|
2647
|
-
var _this$_form$formModel, _this$_form$formModel2, _this$_form$formModel3, _this$_form$formModel4, _this$_form$formModel5, _this$_form$formModel6, _this$_form$formModel7;
|
|
2648
|
-
this.valueCached['provinceCode'] = (_this$_form$formModel = this._form.formModel) == null ? void 0 : _this$_form$formModel[this._fieldProps['provinceCode']];
|
|
2649
|
-
this.valueCached['cityCode'] = (_this$_form$formModel2 = this._form.formModel) == null ? void 0 : _this$_form$formModel2[this._fieldProps['cityCode']];
|
|
2650
|
-
this.valueCached['countyCode'] = (_this$_form$formModel3 = this._form.formModel) == null ? void 0 : _this$_form$formModel3[this._fieldProps['countyCode']];
|
|
2651
|
-
this.valueCached['provinceName'] = (_this$_form$formModel4 = this._form.formModel) == null ? void 0 : _this$_form$formModel4[this._fieldProps['provinceName']];
|
|
2652
|
-
this.valueCached['cityName'] = (_this$_form$formModel5 = this._form.formModel) == null ? void 0 : _this$_form$formModel5[this._fieldProps['cityName']];
|
|
2653
|
-
this.valueCached['countyName'] = (_this$_form$formModel6 = this._form.formModel) == null ? void 0 : _this$_form$formModel6[this._fieldProps['countyName']];
|
|
2654
|
-
this.valueCached['address'] = (_this$_form$formModel7 = this._form.formModel) == null ? void 0 : _this$_form$formModel7[this._fieldProps['address']];
|
|
2655
|
-
this.$emit("change", this.valueCached);
|
|
2656
2777
|
}
|
|
2657
2778
|
},
|
|
2658
2779
|
data: function data() {
|
|
2659
2780
|
return {
|
|
2660
|
-
apiOptions: null
|
|
2661
|
-
valueCached: {
|
|
2662
|
-
provinceCode: null,
|
|
2663
|
-
provinceName: null,
|
|
2664
|
-
cityCode: null,
|
|
2665
|
-
cityName: null,
|
|
2666
|
-
countyCode: null,
|
|
2667
|
-
countyName: null,
|
|
2668
|
-
address: null
|
|
2669
|
-
}
|
|
2781
|
+
apiOptions: null
|
|
2670
2782
|
};
|
|
2671
2783
|
},
|
|
2672
2784
|
computed: {
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
}
|
|
2679
|
-
var provinceCode = valObj[this._fieldProps['provinceCode']];
|
|
2680
|
-
var cityCode = valObj[this._fieldProps['cityCode']];
|
|
2681
|
-
var countyCode = valObj[this._fieldProps['countyCode']];
|
|
2682
|
-
if (!(provinceCode && cityCode && countyCode)) {
|
|
2683
|
-
return [];
|
|
2684
|
-
}
|
|
2685
|
-
return [provinceCode, cityCode, countyCode];
|
|
2686
|
-
},
|
|
2687
|
-
set: function set(val) {
|
|
2688
|
-
this.cascaderChange(val);
|
|
2689
|
-
}
|
|
2690
|
-
},
|
|
2691
|
-
inputValue: {
|
|
2692
|
-
get: function get() {
|
|
2693
|
-
var valObj = this.valueCached;
|
|
2694
|
-
if (!valObj) {
|
|
2695
|
-
return null;
|
|
2696
|
-
}
|
|
2697
|
-
return valObj[this._fieldProps['address']];
|
|
2698
|
-
},
|
|
2699
|
-
set: function set(val) {
|
|
2700
|
-
this.inputChange(val);
|
|
2785
|
+
attrs: function attrs() {
|
|
2786
|
+
//值处理
|
|
2787
|
+
var _value = this.$attrs.value ? this.$attrs.value : this.$attrs.multiple ? [] : null;
|
|
2788
|
+
if (this.$attrs.multiple && this.valueIsString && this.$attrs.value) {
|
|
2789
|
+
_value = typeof this.$attrs.value === "string" ? this.$attrs.value.split(",") : this.$attrs.value;
|
|
2701
2790
|
}
|
|
2702
|
-
},
|
|
2703
|
-
cascaderAttrs: function cascaderAttrs() {
|
|
2704
2791
|
return Object.assign({
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2792
|
+
clearable: true,
|
|
2793
|
+
filterable: true,
|
|
2794
|
+
placeholder: "请选择"
|
|
2795
|
+
}, this.$attrs, {
|
|
2796
|
+
value: _value
|
|
2710
2797
|
});
|
|
2711
2798
|
},
|
|
2712
|
-
inputAttrs: function inputAttrs() {
|
|
2713
|
-
return Object.assign({
|
|
2714
|
-
size: this.size,
|
|
2715
|
-
clearable: true
|
|
2716
|
-
}, this.input);
|
|
2717
|
-
},
|
|
2718
|
-
request: function request() {
|
|
2719
|
-
return this.api.request || this._form && this._form.request || (this.$COMPONENT || {}).request;
|
|
2720
|
-
},
|
|
2721
|
-
_optionProps: function _optionProps() {
|
|
2722
|
-
return Object.assign({
|
|
2723
|
-
value: "value",
|
|
2724
|
-
label: "label",
|
|
2725
|
-
children: "children"
|
|
2726
|
-
}, this.optionProps);
|
|
2727
|
-
},
|
|
2728
|
-
_fieldProps: function _fieldProps() {
|
|
2729
|
-
return Object.assign({
|
|
2730
|
-
provinceCode: "provinceCode",
|
|
2731
|
-
provinceName: "provinceName",
|
|
2732
|
-
cityCode: "cityCode",
|
|
2733
|
-
cityName: "cityName",
|
|
2734
|
-
countyCode: "countyCode",
|
|
2735
|
-
countyName: "countyName",
|
|
2736
|
-
address: "address"
|
|
2737
|
-
}, this.fieldProps);
|
|
2738
|
-
},
|
|
2739
2799
|
dictOption: function dictOption() {
|
|
2740
2800
|
if (this.dictCode && this.$COMPONENT.dataSource && this.$COMPONENT.dataSource.dict) {
|
|
2741
2801
|
return this.$COMPONENT.dataSource.dict[this.dictCode];
|
|
@@ -2756,35 +2816,39 @@ CascaderAddrvue_type_template_id_df02c66e_render._withStripped = true
|
|
|
2756
2816
|
}
|
|
2757
2817
|
}
|
|
2758
2818
|
return false;
|
|
2819
|
+
},
|
|
2820
|
+
_optionProps: function _optionProps() {
|
|
2821
|
+
return Object.assign({
|
|
2822
|
+
value: "value",
|
|
2823
|
+
label: "label",
|
|
2824
|
+
children: "children"
|
|
2825
|
+
}, this.optionProps);
|
|
2826
|
+
},
|
|
2827
|
+
request: function request() {
|
|
2828
|
+
return this.api.request || this._form && this._form.request || (this.$COMPONENT || {}).request;
|
|
2759
2829
|
}
|
|
2760
2830
|
},
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2831
|
+
watch: {
|
|
2832
|
+
api: {
|
|
2833
|
+
handler: function handler() {
|
|
2834
|
+
this.initApi();
|
|
2835
|
+
},
|
|
2836
|
+
deep: true
|
|
2837
|
+
}
|
|
2766
2838
|
},
|
|
2767
2839
|
mounted: function mounted() {
|
|
2768
|
-
this.
|
|
2840
|
+
if (this.apiOpen) {
|
|
2841
|
+
this.initApi();
|
|
2842
|
+
}
|
|
2769
2843
|
},
|
|
2770
2844
|
methods: {
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
var cityName = this._fieldProps['cityName'];
|
|
2777
|
-
var countyName = this._fieldProps['countyName'];
|
|
2778
|
-
var address = this._fieldProps['address'];
|
|
2779
|
-
if (model) {
|
|
2780
|
-
this.$set(model, provinceCode, model[provinceCode]);
|
|
2781
|
-
this.$set(model, cityCode, model[cityCode]);
|
|
2782
|
-
this.$set(model, countyCode, model[countyCode]);
|
|
2783
|
-
this.$set(model, provinceName, model[provinceName]);
|
|
2784
|
-
this.$set(model, cityName, model[cityName]);
|
|
2785
|
-
this.$set(model, countyName, model[countyName]);
|
|
2786
|
-
this.$set(model, address, model[address]);
|
|
2845
|
+
transformOption: function transformOption(item) {
|
|
2846
|
+
item.value = item[this._optionProps.value];
|
|
2847
|
+
item.label = item[this._optionProps.label];
|
|
2848
|
+
if (item[this._optionProps.children]) {
|
|
2849
|
+
item.children = this.transformOption(item[this._optionProps.children]);
|
|
2787
2850
|
}
|
|
2851
|
+
return item;
|
|
2788
2852
|
},
|
|
2789
2853
|
initApi: function initApi() {
|
|
2790
2854
|
var _this = this;
|
|
@@ -2792,6 +2856,7 @@ CascaderAddrvue_type_template_id_df02c66e_render._withStripped = true
|
|
|
2792
2856
|
return false;
|
|
2793
2857
|
}
|
|
2794
2858
|
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
2859
|
+
// let reqData=merge({},this.api.data)
|
|
2795
2860
|
if (typeof this.api.before === "function") {
|
|
2796
2861
|
reqData = this.api.before.call(this, reqData, {
|
|
2797
2862
|
form: this._form,
|
|
@@ -2810,162 +2875,117 @@ CascaderAddrvue_type_template_id_df02c66e_render._withStripped = true
|
|
|
2810
2875
|
formModel: _this._form && _this._form.formModel
|
|
2811
2876
|
});
|
|
2812
2877
|
}
|
|
2813
|
-
_this.apiOptions = _this.api.dataPath ? get(res, _this.api.dataPath, []) : res;
|
|
2878
|
+
_this.apiOptions = _this.api.dataPath ? Object(external_lodash_["get"])(res, _this.api.dataPath, []) : res;
|
|
2814
2879
|
}).catch(function (error) {
|
|
2815
2880
|
_this.apiOptions = null;
|
|
2816
2881
|
});
|
|
2817
2882
|
},
|
|
2818
|
-
|
|
2819
|
-
var
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2883
|
+
renderGroup: function renderGroup(h, scoped) {
|
|
2884
|
+
var _this2 = this;
|
|
2885
|
+
return this.optionData.map(function (item) {
|
|
2886
|
+
return h("el-option-group", {
|
|
2887
|
+
"key": item[_this2._optionProps.value],
|
|
2888
|
+
"attrs": {
|
|
2889
|
+
"label": item[_this2._optionProps.label]
|
|
2890
|
+
}
|
|
2891
|
+
}, [item[_this2._optionProps.children] && item[_this2._optionProps.children].map(function (itemOpt) {
|
|
2892
|
+
return h("el-option", {
|
|
2893
|
+
"key": itemOpt[_this2._optionProps.value],
|
|
2894
|
+
"attrs": {
|
|
2895
|
+
"value": itemOpt[_this2._optionProps.value],
|
|
2896
|
+
"label": itemOpt[_this2._optionProps.label],
|
|
2897
|
+
"disabled": itemOpt.disabled
|
|
2898
|
+
}
|
|
2899
|
+
}, [_this2.optionRender ? _this2.optionRender.call(_this2, h, itemOpt, {
|
|
2900
|
+
form: _this2._form,
|
|
2901
|
+
formModel: _this2._form && _this2._form.formModel
|
|
2902
|
+
}) : null]);
|
|
2903
|
+
})]);
|
|
2904
|
+
});
|
|
2834
2905
|
},
|
|
2835
|
-
|
|
2836
|
-
var
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
if (this != null && (_this$_form11 = this._form) != null && _this$_form11.formModel) {
|
|
2847
|
-
this._form.formModel[this._fieldProps['address']] = val;
|
|
2848
|
-
}
|
|
2849
|
-
}
|
|
2850
|
-
}
|
|
2851
|
-
});
|
|
2852
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue?vue&type=script&lang=js
|
|
2853
|
-
/* harmony default export */ var item_CascaderAddrvue_type_script_lang_js = (CascaderAddrvue_type_script_lang_js);
|
|
2854
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
/* normalize component */
|
|
2861
|
-
|
|
2862
|
-
var CascaderAddr_component = Object(componentNormalizer["a" /* default */])(
|
|
2863
|
-
item_CascaderAddrvue_type_script_lang_js,
|
|
2864
|
-
CascaderAddrvue_type_template_id_df02c66e_render,
|
|
2865
|
-
CascaderAddrvue_type_template_id_df02c66e_staticRenderFns,
|
|
2866
|
-
false,
|
|
2867
|
-
null,
|
|
2868
|
-
null,
|
|
2869
|
-
null
|
|
2870
|
-
|
|
2871
|
-
)
|
|
2872
|
-
|
|
2873
|
-
/* harmony default export */ var CascaderAddr = (CascaderAddr_component.exports);
|
|
2874
|
-
// EXTERNAL MODULE: external "element-ui/lib/date-picker"
|
|
2875
|
-
var date_picker_ = __webpack_require__(50);
|
|
2876
|
-
var date_picker_default = /*#__PURE__*/__webpack_require__.n(date_picker_);
|
|
2877
|
-
|
|
2878
|
-
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/DatePicker.vue?vue&type=script&lang=js
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
/* harmony default export */ var DatePickervue_type_script_lang_js = ({
|
|
2882
|
-
name: "DatePicker",
|
|
2883
|
-
components: {
|
|
2884
|
-
elDatePicker: date_picker_default.a
|
|
2885
|
-
},
|
|
2886
|
-
props: {
|
|
2887
|
-
value: {
|
|
2888
|
-
type: [String, Number, Array]
|
|
2906
|
+
renderTree: function renderTree(h) {
|
|
2907
|
+
var param = {
|
|
2908
|
+
attrs: Object.assign({}, this.$attrs, {
|
|
2909
|
+
options: this.optionData,
|
|
2910
|
+
optionProps: this._optionProps
|
|
2911
|
+
}),
|
|
2912
|
+
slots: this.$slots,
|
|
2913
|
+
scopedSlots: this.$slots,
|
|
2914
|
+
on: this.$listeners
|
|
2915
|
+
};
|
|
2916
|
+
return h(SelectTree, babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
2889
2917
|
},
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
value: function value(val) {
|
|
2895
|
-
if (["monthrange", "daterange", "datetimerange"].indexOf(this.$attrs.type) > -1 && this.startProp && this.endProp && this._form && !val) {
|
|
2896
|
-
this._form.formModel[this.startProp] = null;
|
|
2897
|
-
this._form.formModel[this.endProp] = null;
|
|
2898
|
-
}
|
|
2899
|
-
}
|
|
2900
|
-
},
|
|
2901
|
-
computed: {
|
|
2902
|
-
attrs: function attrs() {
|
|
2903
|
-
//值处理
|
|
2904
|
-
var _value = this.value;
|
|
2905
|
-
if (["monthrange", "daterange", "datetimerange"].indexOf(this.$attrs.type) > -1 && this.startProp && this.endProp && this._form && !_value) {
|
|
2906
|
-
var startPropValue = this._form.formModel[this.startProp];
|
|
2907
|
-
var endPropValue = this._form.formModel[this.endProp];
|
|
2908
|
-
if (startPropValue && endPropValue) {
|
|
2909
|
-
_value = [startPropValue, endPropValue];
|
|
2910
|
-
}
|
|
2918
|
+
renderOptions: function renderOptions(h, scoped) {
|
|
2919
|
+
var _this3 = this;
|
|
2920
|
+
if (this.selectMode === "group") {
|
|
2921
|
+
return this.renderGroup(h, scoped);
|
|
2911
2922
|
}
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2923
|
+
return this.optionData && this.optionData.map(function (itemOpt) {
|
|
2924
|
+
return h("el-option", {
|
|
2925
|
+
"key": itemOpt[_this3._optionProps.value],
|
|
2926
|
+
"attrs": {
|
|
2927
|
+
"value": itemOpt[_this3._optionProps.value],
|
|
2928
|
+
"label": itemOpt[_this3._optionProps.label]
|
|
2929
|
+
}
|
|
2930
|
+
}, [_this3.optionRender ? _this3.optionRender.call(_this3, h, itemOpt, {
|
|
2931
|
+
form: _this3._form,
|
|
2932
|
+
formModel: _this3._form && _this3._form.formModel
|
|
2933
|
+
}) : null]);
|
|
2918
2934
|
});
|
|
2919
|
-
return res;
|
|
2920
|
-
},
|
|
2921
|
-
_form: function _form() {
|
|
2922
|
-
var parent = this.$parent;
|
|
2923
|
-
while (parent) {
|
|
2924
|
-
if (parent.$options.componentName !== 'Form' && parent.$options.componentName !== 'FormQuery') {
|
|
2925
|
-
parent = parent.$parent;
|
|
2926
|
-
} else {
|
|
2927
|
-
return parent;
|
|
2928
|
-
}
|
|
2929
|
-
}
|
|
2930
|
-
return false;
|
|
2931
2935
|
}
|
|
2932
2936
|
},
|
|
2933
2937
|
render: function render(h) {
|
|
2934
|
-
var
|
|
2938
|
+
var _this4 = this;
|
|
2939
|
+
if (this.selectMode === "tree") {
|
|
2940
|
+
return this.renderTree(h);
|
|
2941
|
+
}
|
|
2935
2942
|
var param = {
|
|
2936
2943
|
props: this.attrs,
|
|
2937
2944
|
slots: this.$slots,
|
|
2938
|
-
scopedSlots:
|
|
2945
|
+
scopedSlots: {
|
|
2946
|
+
default: function _default(scoped) {
|
|
2947
|
+
return _this4.renderOptions(h, scoped);
|
|
2948
|
+
}
|
|
2949
|
+
},
|
|
2939
2950
|
on: Object.assign({}, this.$listeners, {
|
|
2940
2951
|
change: function change(value) {
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2952
|
+
var _value = value;
|
|
2953
|
+
if (_this4.$attrs.multiple && _this4.valueIsString) {
|
|
2954
|
+
_value = value.toString();
|
|
2955
|
+
}
|
|
2956
|
+
var selectOption = [];
|
|
2957
|
+
if (_this4.optionBack) {
|
|
2958
|
+
if (_this4.$attrs.multiple) {
|
|
2959
|
+
selectOption = value && value.length > 0 ? _this4.optionData.filter(function (item) {
|
|
2960
|
+
return value.indexOf(item[_this4._optionProps.value]) > -1;
|
|
2961
|
+
}) : [];
|
|
2962
|
+
} else {
|
|
2963
|
+
selectOption = value ? _this4.optionData.filter(function (item) {
|
|
2964
|
+
return item[_this4._optionProps.value] === value;
|
|
2965
|
+
}) : [];
|
|
2946
2966
|
}
|
|
2947
2967
|
}
|
|
2948
|
-
|
|
2968
|
+
_this4.$emit("change", _value, selectOption);
|
|
2949
2969
|
}
|
|
2950
2970
|
})
|
|
2951
2971
|
};
|
|
2952
|
-
return h("el-
|
|
2972
|
+
return h("el-select", babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
2953
2973
|
}
|
|
2954
2974
|
});
|
|
2955
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/
|
|
2956
|
-
/* harmony default export */ var
|
|
2957
|
-
// CONCATENATED MODULE: ./src/components/form/src/item/
|
|
2958
|
-
var
|
|
2975
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Select.vue?vue&type=script&lang=js
|
|
2976
|
+
/* harmony default export */ var item_Selectvue_type_script_lang_js = (Selectvue_type_script_lang_js);
|
|
2977
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Select.vue
|
|
2978
|
+
var Select_render, Select_staticRenderFns
|
|
2959
2979
|
|
|
2960
2980
|
|
|
2961
2981
|
|
|
2962
2982
|
|
|
2963
2983
|
/* normalize component */
|
|
2964
2984
|
|
|
2965
|
-
var
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2985
|
+
var Select_component = Object(componentNormalizer["a" /* default */])(
|
|
2986
|
+
item_Selectvue_type_script_lang_js,
|
|
2987
|
+
Select_render,
|
|
2988
|
+
Select_staticRenderFns,
|
|
2969
2989
|
false,
|
|
2970
2990
|
null,
|
|
2971
2991
|
null,
|
|
@@ -2973,7 +2993,7 @@ var DatePicker_component = Object(componentNormalizer["a" /* default */])(
|
|
|
2973
2993
|
|
|
2974
2994
|
)
|
|
2975
2995
|
|
|
2976
|
-
/* harmony default export */ var
|
|
2996
|
+
/* harmony default export */ var Select = (Select_component.exports);
|
|
2977
2997
|
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/upload-process/index.vue?vue&type=template&id=b7318202
|
|
2978
2998
|
var upload_processvue_type_template_id_b7318202_render = function render() {
|
|
2979
2999
|
var _vm = this,
|
|
@@ -3290,7 +3310,7 @@ var message_box_ = __webpack_require__(26);
|
|
|
3290
3310
|
var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box_);
|
|
3291
3311
|
|
|
3292
3312
|
// EXTERNAL MODULE: ./src/components/form/src/item/upload-process/large-upload/index.js
|
|
3293
|
-
var large_upload = __webpack_require__(
|
|
3313
|
+
var large_upload = __webpack_require__(56);
|
|
3294
3314
|
|
|
3295
3315
|
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/upload-process/index.vue?vue&type=script&lang=js
|
|
3296
3316
|
|
|
@@ -3798,26 +3818,6 @@ var upload_process_component = Object(componentNormalizer["a" /* default */])(
|
|
|
3798
3818
|
)
|
|
3799
3819
|
|
|
3800
3820
|
/* harmony default export */ var upload_process = (upload_process_component.exports);
|
|
3801
|
-
// EXTERNAL MODULE: external "element-ui/lib/switch"
|
|
3802
|
-
var switch_ = __webpack_require__(53);
|
|
3803
|
-
var switch_default = /*#__PURE__*/__webpack_require__.n(switch_);
|
|
3804
|
-
|
|
3805
|
-
// EXTERNAL MODULE: external "element-ui/lib/slider"
|
|
3806
|
-
var slider_ = __webpack_require__(54);
|
|
3807
|
-
var slider_default = /*#__PURE__*/__webpack_require__.n(slider_);
|
|
3808
|
-
|
|
3809
|
-
// EXTERNAL MODULE: external "element-ui/lib/transfer"
|
|
3810
|
-
var transfer_ = __webpack_require__(55);
|
|
3811
|
-
var transfer_default = /*#__PURE__*/__webpack_require__.n(transfer_);
|
|
3812
|
-
|
|
3813
|
-
// EXTERNAL MODULE: external "element-ui/lib/time-picker"
|
|
3814
|
-
var time_picker_ = __webpack_require__(56);
|
|
3815
|
-
var time_picker_default = /*#__PURE__*/__webpack_require__.n(time_picker_);
|
|
3816
|
-
|
|
3817
|
-
// EXTERNAL MODULE: external "element-ui/lib/upload"
|
|
3818
|
-
var upload_ = __webpack_require__(57);
|
|
3819
|
-
var upload_default = /*#__PURE__*/__webpack_require__.n(upload_);
|
|
3820
|
-
|
|
3821
3821
|
// CONCATENATED MODULE: ./src/components/form/src/form-input.js
|
|
3822
3822
|
|
|
3823
3823
|
|