@panpanzhao/component-ui 1.0.2 → 1.24.813
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 +896 -103
- package/lib/components/crud.js +67 -66
- package/lib/components/dialog.js +2 -2
- package/lib/components/drawer.js +2 -2
- package/lib/components/form-dialog.js +25 -25
- package/lib/components/form-drawer.js +35 -35
- package/lib/components/form-group.js +22 -20
- package/lib/components/form-input.js +421 -38
- package/lib/components/form-item.js +2 -2
- package/lib/components/form-query.js +10 -10
- package/lib/components/form-view-dialog.js +39 -39
- package/lib/components/form-view-group.js +35 -35
- package/lib/components/form-view.js +10 -12
- package/lib/components/form.js +9 -8
- package/lib/components/formula.js +20 -20
- package/lib/components/table-column.js +4 -4
- package/lib/components/table-editable.js +10 -2
- package/lib/components/table-operate.js +66 -65
- package/lib/components/table-search.js +2 -2
- package/lib/components/table.js +220 -59
- package/lib/components/timeline.js +675 -0
- package/lib/components/tree-line.js +2 -3
- package/lib/index.js +1 -1
- package/lib/styles/component-ui.css +2 -2
- package/lib/styles/form.css +1 -1
- package/lib/styles/index.css +2 -2
- package/lib/styles/table.css +1 -1
- package/lib/styles/tree-line.css +1 -1
- package/package.json +2 -1
|
@@ -216,17 +216,17 @@ module.exports = require("@panpanzhao/component-ui/lib/utils/formula");
|
|
|
216
216
|
/* 9 */,
|
|
217
217
|
/* 10 */,
|
|
218
218
|
/* 11 */,
|
|
219
|
-
/* 12
|
|
220
|
-
/* 13 */,
|
|
221
|
-
/* 14 */,
|
|
222
|
-
/* 15 */,
|
|
223
|
-
/* 16 */,
|
|
224
|
-
/* 17 */
|
|
219
|
+
/* 12 */
|
|
225
220
|
/***/ (function(module, exports) {
|
|
226
221
|
|
|
227
222
|
module.exports = require("element-ui/lib/message");
|
|
228
223
|
|
|
229
224
|
/***/ }),
|
|
225
|
+
/* 13 */,
|
|
226
|
+
/* 14 */,
|
|
227
|
+
/* 15 */,
|
|
228
|
+
/* 16 */,
|
|
229
|
+
/* 17 */,
|
|
230
230
|
/* 18 */,
|
|
231
231
|
/* 19 */,
|
|
232
232
|
/* 20 */,
|
|
@@ -259,73 +259,73 @@ module.exports = require("element-ui/lib/radio");
|
|
|
259
259
|
/* 32 */,
|
|
260
260
|
/* 33 */,
|
|
261
261
|
/* 34 */,
|
|
262
|
-
/* 35
|
|
263
|
-
/* 36 */,
|
|
264
|
-
/* 37 */,
|
|
265
|
-
/* 38 */
|
|
262
|
+
/* 35 */
|
|
266
263
|
/***/ (function(module, exports) {
|
|
267
264
|
|
|
268
|
-
module.exports = require("element-ui/lib/
|
|
265
|
+
module.exports = require("element-ui/lib/cascader");
|
|
269
266
|
|
|
270
267
|
/***/ }),
|
|
268
|
+
/* 36 */,
|
|
269
|
+
/* 37 */,
|
|
270
|
+
/* 38 */,
|
|
271
271
|
/* 39 */
|
|
272
272
|
/***/ (function(module, exports) {
|
|
273
273
|
|
|
274
|
-
module.exports = require("element-ui/lib/
|
|
274
|
+
module.exports = require("element-ui/lib/input-number");
|
|
275
275
|
|
|
276
276
|
/***/ }),
|
|
277
277
|
/* 40 */
|
|
278
278
|
/***/ (function(module, exports) {
|
|
279
279
|
|
|
280
|
-
module.exports = require("element-ui/lib/
|
|
280
|
+
module.exports = require("element-ui/lib/select");
|
|
281
281
|
|
|
282
282
|
/***/ }),
|
|
283
283
|
/* 41 */
|
|
284
284
|
/***/ (function(module, exports) {
|
|
285
285
|
|
|
286
|
-
module.exports = require("element-ui/lib/option
|
|
286
|
+
module.exports = require("element-ui/lib/option");
|
|
287
287
|
|
|
288
288
|
/***/ }),
|
|
289
289
|
/* 42 */
|
|
290
290
|
/***/ (function(module, exports) {
|
|
291
291
|
|
|
292
|
-
module.exports = require("
|
|
292
|
+
module.exports = require("element-ui/lib/option-group");
|
|
293
293
|
|
|
294
294
|
/***/ }),
|
|
295
295
|
/* 43 */
|
|
296
296
|
/***/ (function(module, exports) {
|
|
297
297
|
|
|
298
|
-
module.exports = require("
|
|
298
|
+
module.exports = require("@panpanzhao/component-ui/lib/components/tree-line");
|
|
299
299
|
|
|
300
300
|
/***/ }),
|
|
301
301
|
/* 44 */
|
|
302
302
|
/***/ (function(module, exports) {
|
|
303
303
|
|
|
304
|
-
module.exports = require("element-ui/lib/radio-
|
|
304
|
+
module.exports = require("element-ui/lib/radio-group");
|
|
305
305
|
|
|
306
306
|
/***/ }),
|
|
307
307
|
/* 45 */
|
|
308
308
|
/***/ (function(module, exports) {
|
|
309
309
|
|
|
310
|
-
module.exports = require("element-ui/lib/
|
|
310
|
+
module.exports = require("element-ui/lib/radio-button");
|
|
311
311
|
|
|
312
312
|
/***/ }),
|
|
313
313
|
/* 46 */
|
|
314
314
|
/***/ (function(module, exports) {
|
|
315
315
|
|
|
316
|
-
module.exports = require("element-ui/lib/checkbox");
|
|
316
|
+
module.exports = require("element-ui/lib/checkbox-group");
|
|
317
317
|
|
|
318
318
|
/***/ }),
|
|
319
319
|
/* 47 */
|
|
320
320
|
/***/ (function(module, exports) {
|
|
321
321
|
|
|
322
|
-
module.exports = require("element-ui/lib/checkbox
|
|
322
|
+
module.exports = require("element-ui/lib/checkbox");
|
|
323
323
|
|
|
324
324
|
/***/ }),
|
|
325
325
|
/* 48 */
|
|
326
326
|
/***/ (function(module, exports) {
|
|
327
327
|
|
|
328
|
-
module.exports = require("element-ui/lib/
|
|
328
|
+
module.exports = require("element-ui/lib/checkbox-button");
|
|
329
329
|
|
|
330
330
|
/***/ }),
|
|
331
331
|
/* 49 */
|
|
@@ -555,7 +555,7 @@ InputNumbervue_type_template_id_6c463d52_render._withStripped = true
|
|
|
555
555
|
// CONCATENATED MODULE: ./src/components/form/src/item/InputNumber.vue?vue&type=template&id=6c463d52
|
|
556
556
|
|
|
557
557
|
// EXTERNAL MODULE: external "element-ui/lib/input-number"
|
|
558
|
-
var input_number_ = __webpack_require__(
|
|
558
|
+
var input_number_ = __webpack_require__(39);
|
|
559
559
|
var input_number_default = /*#__PURE__*/__webpack_require__.n(input_number_);
|
|
560
560
|
|
|
561
561
|
// 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
|
|
@@ -598,15 +598,15 @@ var InputNumber_component = Object(componentNormalizer["a" /* default */])(
|
|
|
598
598
|
|
|
599
599
|
/* harmony default export */ var InputNumber = (InputNumber_component.exports);
|
|
600
600
|
// EXTERNAL MODULE: external "element-ui/lib/select"
|
|
601
|
-
var select_ = __webpack_require__(
|
|
601
|
+
var select_ = __webpack_require__(40);
|
|
602
602
|
var select_default = /*#__PURE__*/__webpack_require__.n(select_);
|
|
603
603
|
|
|
604
604
|
// EXTERNAL MODULE: external "element-ui/lib/option"
|
|
605
|
-
var option_ = __webpack_require__(
|
|
605
|
+
var option_ = __webpack_require__(41);
|
|
606
606
|
var option_default = /*#__PURE__*/__webpack_require__.n(option_);
|
|
607
607
|
|
|
608
608
|
// EXTERNAL MODULE: external "element-ui/lib/option-group"
|
|
609
|
-
var option_group_ = __webpack_require__(
|
|
609
|
+
var option_group_ = __webpack_require__(42);
|
|
610
610
|
var option_group_default = /*#__PURE__*/__webpack_require__.n(option_group_);
|
|
611
611
|
|
|
612
612
|
// 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
|
|
@@ -702,7 +702,7 @@ SelectTreevue_type_template_id_0f44d547_render._withStripped = true
|
|
|
702
702
|
// CONCATENATED MODULE: ./src/components/form/src/item/SelectTree.vue?vue&type=template&id=0f44d547
|
|
703
703
|
|
|
704
704
|
// EXTERNAL MODULE: external "@panpanzhao/component-ui/lib/components/tree-line"
|
|
705
|
-
var tree_line_ = __webpack_require__(
|
|
705
|
+
var tree_line_ = __webpack_require__(43);
|
|
706
706
|
var tree_line_default = /*#__PURE__*/__webpack_require__.n(tree_line_);
|
|
707
707
|
|
|
708
708
|
// 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
|
|
@@ -1103,7 +1103,8 @@ var formula_ = __webpack_require__(3);
|
|
|
1103
1103
|
if (!(this.api && this.api.url && this.request)) {
|
|
1104
1104
|
return false;
|
|
1105
1105
|
}
|
|
1106
|
-
var reqData = Object(
|
|
1106
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
1107
|
+
// let reqData=merge({},this.api.data)
|
|
1107
1108
|
if (typeof this.api.before === "function") {
|
|
1108
1109
|
reqData = this.api.before.call(this, reqData, {
|
|
1109
1110
|
form: this._form,
|
|
@@ -1242,7 +1243,7 @@ var Select_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1242
1243
|
|
|
1243
1244
|
/* harmony default export */ var Select = (Select_component.exports);
|
|
1244
1245
|
// EXTERNAL MODULE: external "element-ui/lib/radio-group"
|
|
1245
|
-
var radio_group_ = __webpack_require__(
|
|
1246
|
+
var radio_group_ = __webpack_require__(44);
|
|
1246
1247
|
var radio_group_default = /*#__PURE__*/__webpack_require__.n(radio_group_);
|
|
1247
1248
|
|
|
1248
1249
|
// EXTERNAL MODULE: external "element-ui/lib/radio"
|
|
@@ -1250,7 +1251,7 @@ var radio_ = __webpack_require__(31);
|
|
|
1250
1251
|
var radio_default = /*#__PURE__*/__webpack_require__.n(radio_);
|
|
1251
1252
|
|
|
1252
1253
|
// EXTERNAL MODULE: external "element-ui/lib/radio-button"
|
|
1253
|
-
var radio_button_ = __webpack_require__(
|
|
1254
|
+
var radio_button_ = __webpack_require__(45);
|
|
1254
1255
|
var radio_button_default = /*#__PURE__*/__webpack_require__.n(radio_button_);
|
|
1255
1256
|
|
|
1256
1257
|
// 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
|
|
@@ -1361,10 +1362,11 @@ var radio_button_default = /*#__PURE__*/__webpack_require__.n(radio_button_);
|
|
|
1361
1362
|
if (!(this.api && this.api.url && this.request)) {
|
|
1362
1363
|
return false;
|
|
1363
1364
|
}
|
|
1365
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
1364
1366
|
this.request({
|
|
1365
|
-
url: Object(formula_["evaluate"])(this.api.url,
|
|
1367
|
+
url: Object(formula_["evaluate"])(this.api.url, reqData),
|
|
1366
1368
|
method: this.api.method || "GET",
|
|
1367
|
-
data:
|
|
1369
|
+
data: reqData
|
|
1368
1370
|
}).then(function (res) {
|
|
1369
1371
|
if (typeof _this.api.transform === "function") {
|
|
1370
1372
|
_this.apiOptions = _this.api.transform.call(_this, resData);
|
|
@@ -1444,15 +1446,15 @@ var Radio_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1444
1446
|
|
|
1445
1447
|
/* harmony default export */ var Radio = (Radio_component.exports);
|
|
1446
1448
|
// EXTERNAL MODULE: external "element-ui/lib/checkbox-group"
|
|
1447
|
-
var checkbox_group_ = __webpack_require__(
|
|
1449
|
+
var checkbox_group_ = __webpack_require__(46);
|
|
1448
1450
|
var checkbox_group_default = /*#__PURE__*/__webpack_require__.n(checkbox_group_);
|
|
1449
1451
|
|
|
1450
1452
|
// EXTERNAL MODULE: external "element-ui/lib/checkbox"
|
|
1451
|
-
var checkbox_ = __webpack_require__(
|
|
1453
|
+
var checkbox_ = __webpack_require__(47);
|
|
1452
1454
|
var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
|
|
1453
1455
|
|
|
1454
1456
|
// EXTERNAL MODULE: external "element-ui/lib/checkbox-button"
|
|
1455
|
-
var checkbox_button_ = __webpack_require__(
|
|
1457
|
+
var checkbox_button_ = __webpack_require__(48);
|
|
1456
1458
|
var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button_);
|
|
1457
1459
|
|
|
1458
1460
|
// 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
|
|
@@ -1573,10 +1575,11 @@ var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button
|
|
|
1573
1575
|
if (!(this.api && this.api.url && this.request)) {
|
|
1574
1576
|
return false;
|
|
1575
1577
|
}
|
|
1578
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
1576
1579
|
this.request({
|
|
1577
|
-
url: Object(formula_["evaluate"])(this.api.url,
|
|
1580
|
+
url: Object(formula_["evaluate"])(this.api.url, reqData),
|
|
1578
1581
|
method: this.api.method || "GET",
|
|
1579
|
-
data:
|
|
1582
|
+
data: reqData
|
|
1580
1583
|
}).then(function (res) {
|
|
1581
1584
|
if (typeof _this.api.transform === "function") {
|
|
1582
1585
|
_this.apiOptions = _this.api.transform.call(_this, resData);
|
|
@@ -1740,7 +1743,7 @@ Cascadervue_type_template_id_1306b5bf_render._withStripped = true
|
|
|
1740
1743
|
// CONCATENATED MODULE: ./src/components/form/src/item/Cascader.vue?vue&type=template&id=1306b5bf
|
|
1741
1744
|
|
|
1742
1745
|
// EXTERNAL MODULE: external "element-ui/lib/cascader"
|
|
1743
|
-
var cascader_ = __webpack_require__(
|
|
1746
|
+
var cascader_ = __webpack_require__(35);
|
|
1744
1747
|
var cascader_default = /*#__PURE__*/__webpack_require__.n(cascader_);
|
|
1745
1748
|
|
|
1746
1749
|
// 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
|
|
@@ -1787,6 +1790,384 @@ var Cascader_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1787
1790
|
)
|
|
1788
1791
|
|
|
1789
1792
|
/* harmony default export */ var Cascader = (Cascader_component.exports);
|
|
1793
|
+
// 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=12c36b3c
|
|
1794
|
+
var CascaderAddrvue_type_template_id_12c36b3c_render = function render() {
|
|
1795
|
+
var _vm = this,
|
|
1796
|
+
_c = _vm._self._c
|
|
1797
|
+
return _c(
|
|
1798
|
+
"div",
|
|
1799
|
+
{ staticClass: "cascader-addr", class: { isAddr: _vm.showAddress } },
|
|
1800
|
+
[
|
|
1801
|
+
_c(
|
|
1802
|
+
"div",
|
|
1803
|
+
{ staticClass: "cascader-addr__cascader" },
|
|
1804
|
+
[
|
|
1805
|
+
_c(
|
|
1806
|
+
"el-cascader",
|
|
1807
|
+
_vm._b(
|
|
1808
|
+
{
|
|
1809
|
+
ref: "cascaderRef",
|
|
1810
|
+
on: { change: _vm.cascaderChange },
|
|
1811
|
+
model: {
|
|
1812
|
+
value: _vm.cascaderValue,
|
|
1813
|
+
callback: function ($$v) {
|
|
1814
|
+
_vm.cascaderValue = $$v
|
|
1815
|
+
},
|
|
1816
|
+
expression: "cascaderValue",
|
|
1817
|
+
},
|
|
1818
|
+
},
|
|
1819
|
+
"el-cascader",
|
|
1820
|
+
_vm.cascaderAttrs,
|
|
1821
|
+
false
|
|
1822
|
+
)
|
|
1823
|
+
),
|
|
1824
|
+
],
|
|
1825
|
+
1
|
|
1826
|
+
),
|
|
1827
|
+
_vm.showAddress
|
|
1828
|
+
? _c(
|
|
1829
|
+
"div",
|
|
1830
|
+
{ staticClass: "cascader-addr__input" },
|
|
1831
|
+
[
|
|
1832
|
+
_c(
|
|
1833
|
+
"el-input",
|
|
1834
|
+
_vm._b(
|
|
1835
|
+
{
|
|
1836
|
+
on: { change: _vm.inputChange, clear: _vm.inputChange },
|
|
1837
|
+
model: {
|
|
1838
|
+
value: _vm.inputValue,
|
|
1839
|
+
callback: function ($$v) {
|
|
1840
|
+
_vm.inputValue = $$v
|
|
1841
|
+
},
|
|
1842
|
+
expression: "inputValue",
|
|
1843
|
+
},
|
|
1844
|
+
},
|
|
1845
|
+
"el-input",
|
|
1846
|
+
_vm.inputAttrs,
|
|
1847
|
+
false
|
|
1848
|
+
)
|
|
1849
|
+
),
|
|
1850
|
+
],
|
|
1851
|
+
1
|
|
1852
|
+
)
|
|
1853
|
+
: _vm._e(),
|
|
1854
|
+
]
|
|
1855
|
+
)
|
|
1856
|
+
}
|
|
1857
|
+
var CascaderAddrvue_type_template_id_12c36b3c_staticRenderFns = []
|
|
1858
|
+
CascaderAddrvue_type_template_id_12c36b3c_render._withStripped = true
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue?vue&type=template&id=12c36b3c
|
|
1862
|
+
|
|
1863
|
+
// 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
|
|
1864
|
+
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
/* harmony default export */ var CascaderAddrvue_type_script_lang_js = ({
|
|
1868
|
+
name: "CascaderAddr",
|
|
1869
|
+
components: {
|
|
1870
|
+
elCascader: cascader_default.a,
|
|
1871
|
+
elInput: input_default.a
|
|
1872
|
+
},
|
|
1873
|
+
props: {
|
|
1874
|
+
size: String,
|
|
1875
|
+
value: {
|
|
1876
|
+
type: Object,
|
|
1877
|
+
default: function _default() {
|
|
1878
|
+
return null;
|
|
1879
|
+
}
|
|
1880
|
+
},
|
|
1881
|
+
showAddress: {
|
|
1882
|
+
type: Boolean,
|
|
1883
|
+
default: true
|
|
1884
|
+
},
|
|
1885
|
+
cascader: {
|
|
1886
|
+
type: Object,
|
|
1887
|
+
default: function _default() {
|
|
1888
|
+
return {};
|
|
1889
|
+
}
|
|
1890
|
+
},
|
|
1891
|
+
input: {
|
|
1892
|
+
type: Object,
|
|
1893
|
+
default: function _default() {
|
|
1894
|
+
return {};
|
|
1895
|
+
}
|
|
1896
|
+
},
|
|
1897
|
+
api: {
|
|
1898
|
+
type: Object,
|
|
1899
|
+
default: function _default() {
|
|
1900
|
+
return {};
|
|
1901
|
+
}
|
|
1902
|
+
},
|
|
1903
|
+
dictCode: String,
|
|
1904
|
+
options: {
|
|
1905
|
+
type: Array,
|
|
1906
|
+
default: function _default() {
|
|
1907
|
+
return null;
|
|
1908
|
+
}
|
|
1909
|
+
},
|
|
1910
|
+
optionProps: {
|
|
1911
|
+
type: Object,
|
|
1912
|
+
default: function _default() {
|
|
1913
|
+
return {};
|
|
1914
|
+
}
|
|
1915
|
+
},
|
|
1916
|
+
fieldProps: {
|
|
1917
|
+
type: Object,
|
|
1918
|
+
default: function _default() {
|
|
1919
|
+
return {
|
|
1920
|
+
provinceCode: "provinceCode",
|
|
1921
|
+
provinceName: "provinceName",
|
|
1922
|
+
cityCode: "cityCode",
|
|
1923
|
+
cityName: "cityName",
|
|
1924
|
+
countyCode: "countyCode",
|
|
1925
|
+
countyName: "countyName",
|
|
1926
|
+
address: "address"
|
|
1927
|
+
};
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
},
|
|
1931
|
+
watch: {
|
|
1932
|
+
value: {
|
|
1933
|
+
handler: function handler(val) {
|
|
1934
|
+
this.valueCached['provinceCode'] = val == null ? void 0 : val[this._fieldProps['provinceCode']];
|
|
1935
|
+
this.valueCached['cityCode'] = val == null ? void 0 : val[this._fieldProps['cityCode']];
|
|
1936
|
+
this.valueCached['countyCode'] = val == null ? void 0 : val[this._fieldProps['countyCode']];
|
|
1937
|
+
this.valueCached['provinceName'] = val == null ? void 0 : val[this._fieldProps['provinceName']];
|
|
1938
|
+
this.valueCached['cityName'] = val == null ? void 0 : val[this._fieldProps['cityName']];
|
|
1939
|
+
this.valueCached['countyName'] = val == null ? void 0 : val[this._fieldProps['countyName']];
|
|
1940
|
+
this.valueCached['address'] = val == null ? void 0 : val[this._fieldProps['address']];
|
|
1941
|
+
},
|
|
1942
|
+
deep: true
|
|
1943
|
+
},
|
|
1944
|
+
"_form.formModel.countyCode": function _formFormModelCountyCode(val) {
|
|
1945
|
+
var _this$_form$formModel, _this$_form$formModel2, _this$_form$formModel3, _this$_form$formModel4, _this$_form$formModel5, _this$_form$formModel6, _this$_form$formModel7;
|
|
1946
|
+
this.valueCached['provinceCode'] = (_this$_form$formModel = this._form.formModel) == null ? void 0 : _this$_form$formModel[this._fieldProps['provinceCode']];
|
|
1947
|
+
this.valueCached['cityCode'] = (_this$_form$formModel2 = this._form.formModel) == null ? void 0 : _this$_form$formModel2[this._fieldProps['cityCode']];
|
|
1948
|
+
this.valueCached['countyCode'] = (_this$_form$formModel3 = this._form.formModel) == null ? void 0 : _this$_form$formModel3[this._fieldProps['countyCode']];
|
|
1949
|
+
this.valueCached['provinceName'] = (_this$_form$formModel4 = this._form.formModel) == null ? void 0 : _this$_form$formModel4[this._fieldProps['provinceName']];
|
|
1950
|
+
this.valueCached['cityName'] = (_this$_form$formModel5 = this._form.formModel) == null ? void 0 : _this$_form$formModel5[this._fieldProps['cityName']];
|
|
1951
|
+
this.valueCached['countyName'] = (_this$_form$formModel6 = this._form.formModel) == null ? void 0 : _this$_form$formModel6[this._fieldProps['countyName']];
|
|
1952
|
+
this.valueCached['address'] = (_this$_form$formModel7 = this._form.formModel) == null ? void 0 : _this$_form$formModel7[this._fieldProps['address']];
|
|
1953
|
+
this.$emit("change", this.valueCached);
|
|
1954
|
+
}
|
|
1955
|
+
},
|
|
1956
|
+
data: function data() {
|
|
1957
|
+
return {
|
|
1958
|
+
apiOptions: null,
|
|
1959
|
+
valueCached: {
|
|
1960
|
+
provinceCode: null,
|
|
1961
|
+
provinceName: null,
|
|
1962
|
+
cityCode: null,
|
|
1963
|
+
cityName: null,
|
|
1964
|
+
countyCode: null,
|
|
1965
|
+
countyName: null,
|
|
1966
|
+
address: null
|
|
1967
|
+
}
|
|
1968
|
+
};
|
|
1969
|
+
},
|
|
1970
|
+
computed: {
|
|
1971
|
+
cascaderValue: {
|
|
1972
|
+
get: function get() {
|
|
1973
|
+
var valObj = this.valueCached;
|
|
1974
|
+
if (!valObj) {
|
|
1975
|
+
return [];
|
|
1976
|
+
}
|
|
1977
|
+
var provinceCode = valObj[this._fieldProps['provinceCode']];
|
|
1978
|
+
var cityCode = valObj[this._fieldProps['cityCode']];
|
|
1979
|
+
var countyCode = valObj[this._fieldProps['countyCode']];
|
|
1980
|
+
if (!(provinceCode && cityCode && countyCode)) {
|
|
1981
|
+
return [];
|
|
1982
|
+
}
|
|
1983
|
+
return [provinceCode, cityCode, countyCode];
|
|
1984
|
+
},
|
|
1985
|
+
set: function set(val) {
|
|
1986
|
+
this.cascaderChange(val);
|
|
1987
|
+
}
|
|
1988
|
+
},
|
|
1989
|
+
inputValue: {
|
|
1990
|
+
get: function get() {
|
|
1991
|
+
var valObj = this.valueCached;
|
|
1992
|
+
if (!valObj) {
|
|
1993
|
+
return null;
|
|
1994
|
+
}
|
|
1995
|
+
return valObj[this._fieldProps['address']];
|
|
1996
|
+
},
|
|
1997
|
+
set: function set(val) {
|
|
1998
|
+
this.inputChange(val);
|
|
1999
|
+
}
|
|
2000
|
+
},
|
|
2001
|
+
cascaderAttrs: function cascaderAttrs() {
|
|
2002
|
+
return Object.assign({
|
|
2003
|
+
size: this.size,
|
|
2004
|
+
clearable: true
|
|
2005
|
+
}, this.cascader, {
|
|
2006
|
+
options: this.optionData,
|
|
2007
|
+
props: this._optionProps
|
|
2008
|
+
});
|
|
2009
|
+
},
|
|
2010
|
+
inputAttrs: function inputAttrs() {
|
|
2011
|
+
return Object.assign({
|
|
2012
|
+
size: this.size,
|
|
2013
|
+
clearable: true
|
|
2014
|
+
}, this.input);
|
|
2015
|
+
},
|
|
2016
|
+
request: function request() {
|
|
2017
|
+
return this.api.request || this._form && this._form.request || (this.$COMPONENT || {}).request;
|
|
2018
|
+
},
|
|
2019
|
+
_optionProps: function _optionProps() {
|
|
2020
|
+
return Object.assign({
|
|
2021
|
+
value: "value",
|
|
2022
|
+
label: "label",
|
|
2023
|
+
children: "children"
|
|
2024
|
+
}, this.optionProps);
|
|
2025
|
+
},
|
|
2026
|
+
_fieldProps: function _fieldProps() {
|
|
2027
|
+
return Object.assign({
|
|
2028
|
+
provinceCode: "provinceCode",
|
|
2029
|
+
provinceName: "provinceName",
|
|
2030
|
+
cityCode: "cityCode",
|
|
2031
|
+
cityName: "cityName",
|
|
2032
|
+
countyCode: "countyCode",
|
|
2033
|
+
countyName: "countyName",
|
|
2034
|
+
address: "address"
|
|
2035
|
+
}, this.fieldProps);
|
|
2036
|
+
},
|
|
2037
|
+
dictOption: function dictOption() {
|
|
2038
|
+
if (this.dictCode && this.$COMPONENT.dataSource && this.$COMPONENT.dataSource.dict) {
|
|
2039
|
+
return this.$COMPONENT.dataSource.dict[this.dictCode];
|
|
2040
|
+
}
|
|
2041
|
+
return [];
|
|
2042
|
+
},
|
|
2043
|
+
optionData: function optionData() {
|
|
2044
|
+
var options = this.options || this.apiOptions;
|
|
2045
|
+
return Array.isArray(options) ? options : this.dictOption;
|
|
2046
|
+
},
|
|
2047
|
+
_form: function _form() {
|
|
2048
|
+
var parent = this.$parent;
|
|
2049
|
+
while (parent) {
|
|
2050
|
+
if (parent.$options.componentName !== 'Form') {
|
|
2051
|
+
parent = parent.$parent;
|
|
2052
|
+
} else {
|
|
2053
|
+
return parent;
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
return false;
|
|
2057
|
+
}
|
|
2058
|
+
},
|
|
2059
|
+
created: function created() {
|
|
2060
|
+
var _this$_form;
|
|
2061
|
+
//设置为可响应数据
|
|
2062
|
+
this.initVal(this == null || (_this$_form = this._form) == null ? void 0 : _this$_form.formModel);
|
|
2063
|
+
this.initVal(this.value);
|
|
2064
|
+
debugger;
|
|
2065
|
+
},
|
|
2066
|
+
mounted: function mounted() {
|
|
2067
|
+
this.initApi();
|
|
2068
|
+
},
|
|
2069
|
+
methods: {
|
|
2070
|
+
initVal: function initVal(model) {
|
|
2071
|
+
var provinceCode = this._fieldProps['provinceCode'];
|
|
2072
|
+
var cityCode = this._fieldProps['cityCode'];
|
|
2073
|
+
var countyCode = this._fieldProps['countyCode'];
|
|
2074
|
+
var provinceName = this._fieldProps['provinceName'];
|
|
2075
|
+
var cityName = this._fieldProps['cityName'];
|
|
2076
|
+
var countyName = this._fieldProps['countyName'];
|
|
2077
|
+
var address = this._fieldProps['address'];
|
|
2078
|
+
if (model) {
|
|
2079
|
+
this.$set(model, provinceCode, model[provinceCode]);
|
|
2080
|
+
this.$set(model, cityCode, model[cityCode]);
|
|
2081
|
+
this.$set(model, countyCode, model[countyCode]);
|
|
2082
|
+
this.$set(model, provinceName, model[provinceName]);
|
|
2083
|
+
this.$set(model, cityName, model[cityName]);
|
|
2084
|
+
this.$set(model, countyName, model[countyName]);
|
|
2085
|
+
this.$set(model, address, model[address]);
|
|
2086
|
+
}
|
|
2087
|
+
},
|
|
2088
|
+
initApi: function initApi() {
|
|
2089
|
+
var _this = this;
|
|
2090
|
+
if (!(this.api && this.api.url && this.request)) {
|
|
2091
|
+
return false;
|
|
2092
|
+
}
|
|
2093
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
2094
|
+
if (typeof this.api.before === "function") {
|
|
2095
|
+
reqData = this.api.before.call(this, reqData, {
|
|
2096
|
+
form: this._form,
|
|
2097
|
+
formModel: this._form && this._form.formModel
|
|
2098
|
+
});
|
|
2099
|
+
}
|
|
2100
|
+
this.request({
|
|
2101
|
+
url: Object(formula_["evaluate"])(this.api.url, reqData),
|
|
2102
|
+
method: this.api.method || "GET",
|
|
2103
|
+
headers: this.api.headers,
|
|
2104
|
+
data: reqData
|
|
2105
|
+
}).then(function (res) {
|
|
2106
|
+
if (typeof _this.api.after === "function") {
|
|
2107
|
+
res = _this.api.after.call(_this, res, {
|
|
2108
|
+
form: _this._form,
|
|
2109
|
+
formModel: _this._form && _this._form.formModel
|
|
2110
|
+
});
|
|
2111
|
+
}
|
|
2112
|
+
_this.apiOptions = _this.api.dataPath ? get(res, _this.api.dataPath, []) : res;
|
|
2113
|
+
}).catch(function (error) {
|
|
2114
|
+
_this.apiOptions = null;
|
|
2115
|
+
});
|
|
2116
|
+
},
|
|
2117
|
+
cascaderChange: function cascaderChange(val) {
|
|
2118
|
+
var _nodes$, _this$_form2, _this$_form3;
|
|
2119
|
+
var nodes = this.$refs.cascaderRef.getCheckedNodes();
|
|
2120
|
+
var pathLabels = nodes == null || (_nodes$ = nodes[0]) == null ? void 0 : _nodes$.pathLabels;
|
|
2121
|
+
this.valueCached.provinceCode = val[0];
|
|
2122
|
+
this.valueCached.provinceName = pathLabels == null ? void 0 : pathLabels[0];
|
|
2123
|
+
this.valueCached.cityCode = val[1];
|
|
2124
|
+
this.valueCached.cityName = pathLabels == null ? void 0 : pathLabels[1];
|
|
2125
|
+
this.valueCached.countyCode = val[2];
|
|
2126
|
+
this.valueCached.countyName = pathLabels == null ? void 0 : pathLabels[2];
|
|
2127
|
+
this.valueCached.address = this.valueCached.address || ((_this$_form2 = this._form) == null || (_this$_form2 = _this$_form2.formModel) == null ? void 0 : _this$_form2[this._fieldProps['address']]);
|
|
2128
|
+
this.$emit("change", this.valueCached);
|
|
2129
|
+
if (this != null && (_this$_form3 = this._form) != null && _this$_form3.formModel) {
|
|
2130
|
+
Object.assign(this._form.formModel, this.valueCached);
|
|
2131
|
+
}
|
|
2132
|
+
},
|
|
2133
|
+
inputChange: function inputChange(val) {
|
|
2134
|
+
var _this$_form4, _this$_form5, _this$_form6, _this$_form7, _this$_form8, _this$_form9, _this$_form10;
|
|
2135
|
+
this.valueCached.provinceCode = this.valueCached.provinceCode || ((_this$_form4 = this._form) == null || (_this$_form4 = _this$_form4.formModel) == null ? void 0 : _this$_form4[this._fieldProps['provinceCode']]);
|
|
2136
|
+
this.valueCached.provinceName = this.valueCached.provinceName || ((_this$_form5 = this._form) == null || (_this$_form5 = _this$_form5.formModel) == null ? void 0 : _this$_form5[this._fieldProps['provinceName']]);
|
|
2137
|
+
this.valueCached.cityCode = this.valueCached.cityCode || ((_this$_form6 = this._form) == null || (_this$_form6 = _this$_form6.formModel) == null ? void 0 : _this$_form6[this._fieldProps['cityCode']]);
|
|
2138
|
+
this.valueCached.cityName = this.valueCached.cityName || ((_this$_form7 = this._form) == null || (_this$_form7 = _this$_form7.formModel) == null ? void 0 : _this$_form7[this._fieldProps['cityName']]);
|
|
2139
|
+
this.valueCached.countyCode = this.valueCached.countyCode || ((_this$_form8 = this._form) == null || (_this$_form8 = _this$_form8.formModel) == null ? void 0 : _this$_form8[this._fieldProps['countyCode']]);
|
|
2140
|
+
this.valueCached.countyName = this.valueCached.provinceCode || ((_this$_form9 = this._form) == null || (_this$_form9 = _this$_form9.formModel) == null ? void 0 : _this$_form9[this._fieldProps['countyName']]);
|
|
2141
|
+
this.valueCached.address = val;
|
|
2142
|
+
this.$emit("change", this.valueCached);
|
|
2143
|
+
if (this != null && (_this$_form10 = this._form) != null && _this$_form10.formModel) {
|
|
2144
|
+
this._form.formModel[this._fieldProps['address']] = val;
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
});
|
|
2149
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue?vue&type=script&lang=js
|
|
2150
|
+
/* harmony default export */ var item_CascaderAddrvue_type_script_lang_js = (CascaderAddrvue_type_script_lang_js);
|
|
2151
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
|
|
2155
|
+
|
|
2156
|
+
|
|
2157
|
+
/* normalize component */
|
|
2158
|
+
|
|
2159
|
+
var CascaderAddr_component = Object(componentNormalizer["a" /* default */])(
|
|
2160
|
+
item_CascaderAddrvue_type_script_lang_js,
|
|
2161
|
+
CascaderAddrvue_type_template_id_12c36b3c_render,
|
|
2162
|
+
CascaderAddrvue_type_template_id_12c36b3c_staticRenderFns,
|
|
2163
|
+
false,
|
|
2164
|
+
null,
|
|
2165
|
+
null,
|
|
2166
|
+
null
|
|
2167
|
+
|
|
2168
|
+
)
|
|
2169
|
+
|
|
2170
|
+
/* harmony default export */ var CascaderAddr = (CascaderAddr_component.exports);
|
|
1790
2171
|
// EXTERNAL MODULE: external "element-ui/lib/date-picker"
|
|
1791
2172
|
var date_picker_ = __webpack_require__(49);
|
|
1792
2173
|
var date_picker_default = /*#__PURE__*/__webpack_require__.n(date_picker_);
|
|
@@ -2163,7 +2544,7 @@ UploadProcessvue_type_template_id_f0c82e34_render._withStripped = true
|
|
|
2163
2544
|
// CONCATENATED MODULE: ./src/components/form/src/item/UploadProcess.vue?vue&type=template&id=f0c82e34
|
|
2164
2545
|
|
|
2165
2546
|
// EXTERNAL MODULE: external "element-ui/lib/message"
|
|
2166
|
-
var message_ = __webpack_require__(
|
|
2547
|
+
var message_ = __webpack_require__(12);
|
|
2167
2548
|
var message_default = /*#__PURE__*/__webpack_require__.n(message_);
|
|
2168
2549
|
|
|
2169
2550
|
// EXTERNAL MODULE: external "element-ui/lib/message-box"
|
|
@@ -2597,11 +2978,13 @@ var upload_default = /*#__PURE__*/__webpack_require__.n(upload_);
|
|
|
2597
2978
|
|
|
2598
2979
|
|
|
2599
2980
|
|
|
2981
|
+
|
|
2600
2982
|
/* harmony default export */ var form_input = ({
|
|
2601
2983
|
name: "FormInput",
|
|
2602
2984
|
inheritAttrs: false,
|
|
2603
2985
|
components: {
|
|
2604
2986
|
Cascader: Cascader,
|
|
2987
|
+
CascaderAddr: CascaderAddr,
|
|
2605
2988
|
Slider: slider_default.a,
|
|
2606
2989
|
Transfer: transfer_default.a,
|
|
2607
2990
|
Switchs: switch_default.a,
|
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 84);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -115,7 +115,7 @@ module.exports = require("element-ui/lib/form-item");
|
|
|
115
115
|
|
|
116
116
|
/***/ }),
|
|
117
117
|
|
|
118
|
-
/***/
|
|
118
|
+
/***/ 84:
|
|
119
119
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
120
120
|
|
|
121
121
|
"use strict";
|