@panpanzhao/component-ui 1.0.1 → 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 -104
- 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 -4
- 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
|
@@ -95,13 +95,13 @@ module.exports = require("@vue/babel-helper-vue-jsx-merge-props");
|
|
|
95
95
|
/* 1 */
|
|
96
96
|
/***/ (function(module, exports) {
|
|
97
97
|
|
|
98
|
-
module.exports = require("
|
|
98
|
+
module.exports = require("@panpanzhao/component-ui/lib/utils/formula");
|
|
99
99
|
|
|
100
100
|
/***/ }),
|
|
101
101
|
/* 2 */
|
|
102
102
|
/***/ (function(module, exports) {
|
|
103
103
|
|
|
104
|
-
module.exports = require("
|
|
104
|
+
module.exports = require("lodash");
|
|
105
105
|
|
|
106
106
|
/***/ }),
|
|
107
107
|
/* 3 */
|
|
@@ -227,103 +227,103 @@ module.exports = require("element-ui/lib/radio");
|
|
|
227
227
|
/* 23 */
|
|
228
228
|
/***/ (function(module, exports) {
|
|
229
229
|
|
|
230
|
-
module.exports = require("element-ui/lib/
|
|
230
|
+
module.exports = require("element-ui/lib/cascader");
|
|
231
231
|
|
|
232
232
|
/***/ }),
|
|
233
233
|
/* 24 */
|
|
234
234
|
/***/ (function(module, exports) {
|
|
235
235
|
|
|
236
|
-
module.exports = require("element-ui/lib/
|
|
236
|
+
module.exports = require("element-ui/lib/table");
|
|
237
237
|
|
|
238
238
|
/***/ }),
|
|
239
239
|
/* 25 */
|
|
240
240
|
/***/ (function(module, exports) {
|
|
241
241
|
|
|
242
|
-
module.exports = require("element-ui/lib/
|
|
242
|
+
module.exports = require("element-ui/lib/utils/popup");
|
|
243
243
|
|
|
244
244
|
/***/ }),
|
|
245
245
|
/* 26 */
|
|
246
246
|
/***/ (function(module, exports) {
|
|
247
247
|
|
|
248
|
-
module.exports = require("
|
|
248
|
+
module.exports = require("element-ui/lib/mixins/emitter");
|
|
249
249
|
|
|
250
250
|
/***/ }),
|
|
251
251
|
/* 27 */
|
|
252
252
|
/***/ (function(module, exports) {
|
|
253
253
|
|
|
254
|
-
module.exports = require("
|
|
254
|
+
module.exports = require("codemirror");
|
|
255
255
|
|
|
256
256
|
/***/ }),
|
|
257
257
|
/* 28 */
|
|
258
258
|
/***/ (function(module, exports) {
|
|
259
259
|
|
|
260
|
-
module.exports = require("
|
|
260
|
+
module.exports = require("@panpanzhao/component-ui/lib/components/drawer");
|
|
261
261
|
|
|
262
262
|
/***/ }),
|
|
263
263
|
/* 29 */
|
|
264
264
|
/***/ (function(module, exports) {
|
|
265
265
|
|
|
266
|
-
module.exports = require("element-ui/lib/
|
|
266
|
+
module.exports = require("element-ui/lib/link");
|
|
267
267
|
|
|
268
268
|
/***/ }),
|
|
269
269
|
/* 30 */
|
|
270
270
|
/***/ (function(module, exports) {
|
|
271
271
|
|
|
272
|
-
module.exports = require("element-ui/lib/
|
|
272
|
+
module.exports = require("element-ui/lib/input-number");
|
|
273
273
|
|
|
274
274
|
/***/ }),
|
|
275
275
|
/* 31 */
|
|
276
276
|
/***/ (function(module, exports) {
|
|
277
277
|
|
|
278
|
-
module.exports = require("element-ui/lib/
|
|
278
|
+
module.exports = require("element-ui/lib/select");
|
|
279
279
|
|
|
280
280
|
/***/ }),
|
|
281
281
|
/* 32 */
|
|
282
282
|
/***/ (function(module, exports) {
|
|
283
283
|
|
|
284
|
-
module.exports = require("element-ui/lib/option
|
|
284
|
+
module.exports = require("element-ui/lib/option");
|
|
285
285
|
|
|
286
286
|
/***/ }),
|
|
287
287
|
/* 33 */
|
|
288
288
|
/***/ (function(module, exports) {
|
|
289
289
|
|
|
290
|
-
module.exports = require("
|
|
290
|
+
module.exports = require("element-ui/lib/option-group");
|
|
291
291
|
|
|
292
292
|
/***/ }),
|
|
293
293
|
/* 34 */
|
|
294
294
|
/***/ (function(module, exports) {
|
|
295
295
|
|
|
296
|
-
module.exports = require("
|
|
296
|
+
module.exports = require("@panpanzhao/component-ui/lib/components/tree-line");
|
|
297
297
|
|
|
298
298
|
/***/ }),
|
|
299
299
|
/* 35 */
|
|
300
300
|
/***/ (function(module, exports) {
|
|
301
301
|
|
|
302
|
-
module.exports = require("element-ui/lib/radio-
|
|
302
|
+
module.exports = require("element-ui/lib/radio-group");
|
|
303
303
|
|
|
304
304
|
/***/ }),
|
|
305
305
|
/* 36 */
|
|
306
306
|
/***/ (function(module, exports) {
|
|
307
307
|
|
|
308
|
-
module.exports = require("element-ui/lib/
|
|
308
|
+
module.exports = require("element-ui/lib/radio-button");
|
|
309
309
|
|
|
310
310
|
/***/ }),
|
|
311
311
|
/* 37 */
|
|
312
312
|
/***/ (function(module, exports) {
|
|
313
313
|
|
|
314
|
-
module.exports = require("element-ui/lib/checkbox");
|
|
314
|
+
module.exports = require("element-ui/lib/checkbox-group");
|
|
315
315
|
|
|
316
316
|
/***/ }),
|
|
317
317
|
/* 38 */
|
|
318
318
|
/***/ (function(module, exports) {
|
|
319
319
|
|
|
320
|
-
module.exports = require("element-ui/lib/checkbox
|
|
320
|
+
module.exports = require("element-ui/lib/checkbox");
|
|
321
321
|
|
|
322
322
|
/***/ }),
|
|
323
323
|
/* 39 */
|
|
324
324
|
/***/ (function(module, exports) {
|
|
325
325
|
|
|
326
|
-
module.exports = require("element-ui/lib/
|
|
326
|
+
module.exports = require("element-ui/lib/checkbox-button");
|
|
327
327
|
|
|
328
328
|
/***/ }),
|
|
329
329
|
/* 40 */
|
|
@@ -577,10 +577,10 @@ var form_item_ = __webpack_require__(21);
|
|
|
577
577
|
var form_item_default = /*#__PURE__*/__webpack_require__.n(form_item_);
|
|
578
578
|
|
|
579
579
|
// EXTERNAL MODULE: external "@panpanzhao/component-ui/lib/utils/formula"
|
|
580
|
-
var formula_ = __webpack_require__(
|
|
580
|
+
var formula_ = __webpack_require__(1);
|
|
581
581
|
|
|
582
582
|
// EXTERNAL MODULE: external "lodash"
|
|
583
|
-
var external_lodash_ = __webpack_require__(
|
|
583
|
+
var external_lodash_ = __webpack_require__(2);
|
|
584
584
|
|
|
585
585
|
// 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/form.vue?vue&type=script&lang=js
|
|
586
586
|
|
|
@@ -1068,7 +1068,7 @@ InputNumbervue_type_template_id_6c463d52_render._withStripped = true
|
|
|
1068
1068
|
// CONCATENATED MODULE: ./src/components/form/src/item/InputNumber.vue?vue&type=template&id=6c463d52
|
|
1069
1069
|
|
|
1070
1070
|
// EXTERNAL MODULE: external "element-ui/lib/input-number"
|
|
1071
|
-
var input_number_ = __webpack_require__(
|
|
1071
|
+
var input_number_ = __webpack_require__(30);
|
|
1072
1072
|
var input_number_default = /*#__PURE__*/__webpack_require__.n(input_number_);
|
|
1073
1073
|
|
|
1074
1074
|
// 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
|
|
@@ -1111,15 +1111,15 @@ var InputNumber_component = normalizeComponent(
|
|
|
1111
1111
|
|
|
1112
1112
|
/* harmony default export */ var InputNumber = (InputNumber_component.exports);
|
|
1113
1113
|
// EXTERNAL MODULE: external "element-ui/lib/select"
|
|
1114
|
-
var select_ = __webpack_require__(
|
|
1114
|
+
var select_ = __webpack_require__(31);
|
|
1115
1115
|
var select_default = /*#__PURE__*/__webpack_require__.n(select_);
|
|
1116
1116
|
|
|
1117
1117
|
// EXTERNAL MODULE: external "element-ui/lib/option"
|
|
1118
|
-
var option_ = __webpack_require__(
|
|
1118
|
+
var option_ = __webpack_require__(32);
|
|
1119
1119
|
var option_default = /*#__PURE__*/__webpack_require__.n(option_);
|
|
1120
1120
|
|
|
1121
1121
|
// EXTERNAL MODULE: external "element-ui/lib/option-group"
|
|
1122
|
-
var option_group_ = __webpack_require__(
|
|
1122
|
+
var option_group_ = __webpack_require__(33);
|
|
1123
1123
|
var option_group_default = /*#__PURE__*/__webpack_require__.n(option_group_);
|
|
1124
1124
|
|
|
1125
1125
|
// 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
|
|
@@ -1215,7 +1215,7 @@ SelectTreevue_type_template_id_0f44d547_render._withStripped = true
|
|
|
1215
1215
|
// CONCATENATED MODULE: ./src/components/form/src/item/SelectTree.vue?vue&type=template&id=0f44d547
|
|
1216
1216
|
|
|
1217
1217
|
// EXTERNAL MODULE: external "@panpanzhao/component-ui/lib/components/tree-line"
|
|
1218
|
-
var tree_line_ = __webpack_require__(
|
|
1218
|
+
var tree_line_ = __webpack_require__(34);
|
|
1219
1219
|
var tree_line_default = /*#__PURE__*/__webpack_require__.n(tree_line_);
|
|
1220
1220
|
|
|
1221
1221
|
// 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
|
|
@@ -1610,7 +1610,8 @@ var SelectTree_component = normalizeComponent(
|
|
|
1610
1610
|
if (!(this.api && this.api.url && this.request)) {
|
|
1611
1611
|
return false;
|
|
1612
1612
|
}
|
|
1613
|
-
var reqData = Object(
|
|
1613
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
1614
|
+
// let reqData=merge({},this.api.data)
|
|
1614
1615
|
if (typeof this.api.before === "function") {
|
|
1615
1616
|
reqData = this.api.before.call(this, reqData, {
|
|
1616
1617
|
form: this._form,
|
|
@@ -1749,7 +1750,7 @@ var Select_component = normalizeComponent(
|
|
|
1749
1750
|
|
|
1750
1751
|
/* harmony default export */ var Select = (Select_component.exports);
|
|
1751
1752
|
// EXTERNAL MODULE: external "element-ui/lib/radio-group"
|
|
1752
|
-
var radio_group_ = __webpack_require__(
|
|
1753
|
+
var radio_group_ = __webpack_require__(35);
|
|
1753
1754
|
var radio_group_default = /*#__PURE__*/__webpack_require__.n(radio_group_);
|
|
1754
1755
|
|
|
1755
1756
|
// EXTERNAL MODULE: external "element-ui/lib/radio"
|
|
@@ -1757,7 +1758,7 @@ var radio_ = __webpack_require__(22);
|
|
|
1757
1758
|
var radio_default = /*#__PURE__*/__webpack_require__.n(radio_);
|
|
1758
1759
|
|
|
1759
1760
|
// EXTERNAL MODULE: external "element-ui/lib/radio-button"
|
|
1760
|
-
var radio_button_ = __webpack_require__(
|
|
1761
|
+
var radio_button_ = __webpack_require__(36);
|
|
1761
1762
|
var radio_button_default = /*#__PURE__*/__webpack_require__.n(radio_button_);
|
|
1762
1763
|
|
|
1763
1764
|
// 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
|
|
@@ -1868,10 +1869,11 @@ var radio_button_default = /*#__PURE__*/__webpack_require__.n(radio_button_);
|
|
|
1868
1869
|
if (!(this.api && this.api.url && this.request)) {
|
|
1869
1870
|
return false;
|
|
1870
1871
|
}
|
|
1872
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
1871
1873
|
this.request({
|
|
1872
|
-
url: Object(formula_["evaluate"])(this.api.url,
|
|
1874
|
+
url: Object(formula_["evaluate"])(this.api.url, reqData),
|
|
1873
1875
|
method: this.api.method || "GET",
|
|
1874
|
-
data:
|
|
1876
|
+
data: reqData
|
|
1875
1877
|
}).then(function (res) {
|
|
1876
1878
|
if (typeof _this.api.transform === "function") {
|
|
1877
1879
|
_this.apiOptions = _this.api.transform.call(_this, resData);
|
|
@@ -1951,15 +1953,15 @@ var Radio_component = normalizeComponent(
|
|
|
1951
1953
|
|
|
1952
1954
|
/* harmony default export */ var Radio = (Radio_component.exports);
|
|
1953
1955
|
// EXTERNAL MODULE: external "element-ui/lib/checkbox-group"
|
|
1954
|
-
var checkbox_group_ = __webpack_require__(
|
|
1956
|
+
var checkbox_group_ = __webpack_require__(37);
|
|
1955
1957
|
var checkbox_group_default = /*#__PURE__*/__webpack_require__.n(checkbox_group_);
|
|
1956
1958
|
|
|
1957
1959
|
// EXTERNAL MODULE: external "element-ui/lib/checkbox"
|
|
1958
|
-
var checkbox_ = __webpack_require__(
|
|
1960
|
+
var checkbox_ = __webpack_require__(38);
|
|
1959
1961
|
var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
|
|
1960
1962
|
|
|
1961
1963
|
// EXTERNAL MODULE: external "element-ui/lib/checkbox-button"
|
|
1962
|
-
var checkbox_button_ = __webpack_require__(
|
|
1964
|
+
var checkbox_button_ = __webpack_require__(39);
|
|
1963
1965
|
var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button_);
|
|
1964
1966
|
|
|
1965
1967
|
// 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
|
|
@@ -2080,10 +2082,11 @@ var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button
|
|
|
2080
2082
|
if (!(this.api && this.api.url && this.request)) {
|
|
2081
2083
|
return false;
|
|
2082
2084
|
}
|
|
2085
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
2083
2086
|
this.request({
|
|
2084
|
-
url: Object(formula_["evaluate"])(this.api.url,
|
|
2087
|
+
url: Object(formula_["evaluate"])(this.api.url, reqData),
|
|
2085
2088
|
method: this.api.method || "GET",
|
|
2086
|
-
data:
|
|
2089
|
+
data: reqData
|
|
2087
2090
|
}).then(function (res) {
|
|
2088
2091
|
if (typeof _this.api.transform === "function") {
|
|
2089
2092
|
_this.apiOptions = _this.api.transform.call(_this, resData);
|
|
@@ -2247,7 +2250,7 @@ Cascadervue_type_template_id_1306b5bf_render._withStripped = true
|
|
|
2247
2250
|
// CONCATENATED MODULE: ./src/components/form/src/item/Cascader.vue?vue&type=template&id=1306b5bf
|
|
2248
2251
|
|
|
2249
2252
|
// EXTERNAL MODULE: external "element-ui/lib/cascader"
|
|
2250
|
-
var cascader_ = __webpack_require__(
|
|
2253
|
+
var cascader_ = __webpack_require__(23);
|
|
2251
2254
|
var cascader_default = /*#__PURE__*/__webpack_require__.n(cascader_);
|
|
2252
2255
|
|
|
2253
2256
|
// 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
|
|
@@ -2294,6 +2297,384 @@ var Cascader_component = normalizeComponent(
|
|
|
2294
2297
|
)
|
|
2295
2298
|
|
|
2296
2299
|
/* harmony default export */ var Cascader = (Cascader_component.exports);
|
|
2300
|
+
// 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
|
|
2301
|
+
var CascaderAddrvue_type_template_id_12c36b3c_render = function render() {
|
|
2302
|
+
var _vm = this,
|
|
2303
|
+
_c = _vm._self._c
|
|
2304
|
+
return _c(
|
|
2305
|
+
"div",
|
|
2306
|
+
{ staticClass: "cascader-addr", class: { isAddr: _vm.showAddress } },
|
|
2307
|
+
[
|
|
2308
|
+
_c(
|
|
2309
|
+
"div",
|
|
2310
|
+
{ staticClass: "cascader-addr__cascader" },
|
|
2311
|
+
[
|
|
2312
|
+
_c(
|
|
2313
|
+
"el-cascader",
|
|
2314
|
+
_vm._b(
|
|
2315
|
+
{
|
|
2316
|
+
ref: "cascaderRef",
|
|
2317
|
+
on: { change: _vm.cascaderChange },
|
|
2318
|
+
model: {
|
|
2319
|
+
value: _vm.cascaderValue,
|
|
2320
|
+
callback: function ($$v) {
|
|
2321
|
+
_vm.cascaderValue = $$v
|
|
2322
|
+
},
|
|
2323
|
+
expression: "cascaderValue",
|
|
2324
|
+
},
|
|
2325
|
+
},
|
|
2326
|
+
"el-cascader",
|
|
2327
|
+
_vm.cascaderAttrs,
|
|
2328
|
+
false
|
|
2329
|
+
)
|
|
2330
|
+
),
|
|
2331
|
+
],
|
|
2332
|
+
1
|
|
2333
|
+
),
|
|
2334
|
+
_vm.showAddress
|
|
2335
|
+
? _c(
|
|
2336
|
+
"div",
|
|
2337
|
+
{ staticClass: "cascader-addr__input" },
|
|
2338
|
+
[
|
|
2339
|
+
_c(
|
|
2340
|
+
"el-input",
|
|
2341
|
+
_vm._b(
|
|
2342
|
+
{
|
|
2343
|
+
on: { change: _vm.inputChange, clear: _vm.inputChange },
|
|
2344
|
+
model: {
|
|
2345
|
+
value: _vm.inputValue,
|
|
2346
|
+
callback: function ($$v) {
|
|
2347
|
+
_vm.inputValue = $$v
|
|
2348
|
+
},
|
|
2349
|
+
expression: "inputValue",
|
|
2350
|
+
},
|
|
2351
|
+
},
|
|
2352
|
+
"el-input",
|
|
2353
|
+
_vm.inputAttrs,
|
|
2354
|
+
false
|
|
2355
|
+
)
|
|
2356
|
+
),
|
|
2357
|
+
],
|
|
2358
|
+
1
|
|
2359
|
+
)
|
|
2360
|
+
: _vm._e(),
|
|
2361
|
+
]
|
|
2362
|
+
)
|
|
2363
|
+
}
|
|
2364
|
+
var CascaderAddrvue_type_template_id_12c36b3c_staticRenderFns = []
|
|
2365
|
+
CascaderAddrvue_type_template_id_12c36b3c_render._withStripped = true
|
|
2366
|
+
|
|
2367
|
+
|
|
2368
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue?vue&type=template&id=12c36b3c
|
|
2369
|
+
|
|
2370
|
+
// 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
|
|
2371
|
+
|
|
2372
|
+
|
|
2373
|
+
|
|
2374
|
+
/* harmony default export */ var CascaderAddrvue_type_script_lang_js = ({
|
|
2375
|
+
name: "CascaderAddr",
|
|
2376
|
+
components: {
|
|
2377
|
+
elCascader: cascader_default.a,
|
|
2378
|
+
elInput: input_default.a
|
|
2379
|
+
},
|
|
2380
|
+
props: {
|
|
2381
|
+
size: String,
|
|
2382
|
+
value: {
|
|
2383
|
+
type: Object,
|
|
2384
|
+
default: function _default() {
|
|
2385
|
+
return null;
|
|
2386
|
+
}
|
|
2387
|
+
},
|
|
2388
|
+
showAddress: {
|
|
2389
|
+
type: Boolean,
|
|
2390
|
+
default: true
|
|
2391
|
+
},
|
|
2392
|
+
cascader: {
|
|
2393
|
+
type: Object,
|
|
2394
|
+
default: function _default() {
|
|
2395
|
+
return {};
|
|
2396
|
+
}
|
|
2397
|
+
},
|
|
2398
|
+
input: {
|
|
2399
|
+
type: Object,
|
|
2400
|
+
default: function _default() {
|
|
2401
|
+
return {};
|
|
2402
|
+
}
|
|
2403
|
+
},
|
|
2404
|
+
api: {
|
|
2405
|
+
type: Object,
|
|
2406
|
+
default: function _default() {
|
|
2407
|
+
return {};
|
|
2408
|
+
}
|
|
2409
|
+
},
|
|
2410
|
+
dictCode: String,
|
|
2411
|
+
options: {
|
|
2412
|
+
type: Array,
|
|
2413
|
+
default: function _default() {
|
|
2414
|
+
return null;
|
|
2415
|
+
}
|
|
2416
|
+
},
|
|
2417
|
+
optionProps: {
|
|
2418
|
+
type: Object,
|
|
2419
|
+
default: function _default() {
|
|
2420
|
+
return {};
|
|
2421
|
+
}
|
|
2422
|
+
},
|
|
2423
|
+
fieldProps: {
|
|
2424
|
+
type: Object,
|
|
2425
|
+
default: function _default() {
|
|
2426
|
+
return {
|
|
2427
|
+
provinceCode: "provinceCode",
|
|
2428
|
+
provinceName: "provinceName",
|
|
2429
|
+
cityCode: "cityCode",
|
|
2430
|
+
cityName: "cityName",
|
|
2431
|
+
countyCode: "countyCode",
|
|
2432
|
+
countyName: "countyName",
|
|
2433
|
+
address: "address"
|
|
2434
|
+
};
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
},
|
|
2438
|
+
watch: {
|
|
2439
|
+
value: {
|
|
2440
|
+
handler: function handler(val) {
|
|
2441
|
+
this.valueCached['provinceCode'] = val == null ? void 0 : val[this._fieldProps['provinceCode']];
|
|
2442
|
+
this.valueCached['cityCode'] = val == null ? void 0 : val[this._fieldProps['cityCode']];
|
|
2443
|
+
this.valueCached['countyCode'] = val == null ? void 0 : val[this._fieldProps['countyCode']];
|
|
2444
|
+
this.valueCached['provinceName'] = val == null ? void 0 : val[this._fieldProps['provinceName']];
|
|
2445
|
+
this.valueCached['cityName'] = val == null ? void 0 : val[this._fieldProps['cityName']];
|
|
2446
|
+
this.valueCached['countyName'] = val == null ? void 0 : val[this._fieldProps['countyName']];
|
|
2447
|
+
this.valueCached['address'] = val == null ? void 0 : val[this._fieldProps['address']];
|
|
2448
|
+
},
|
|
2449
|
+
deep: true
|
|
2450
|
+
},
|
|
2451
|
+
"_form.formModel.countyCode": function _formFormModelCountyCode(val) {
|
|
2452
|
+
var _this$_form$formModel, _this$_form$formModel2, _this$_form$formModel3, _this$_form$formModel4, _this$_form$formModel5, _this$_form$formModel6, _this$_form$formModel7;
|
|
2453
|
+
this.valueCached['provinceCode'] = (_this$_form$formModel = this._form.formModel) == null ? void 0 : _this$_form$formModel[this._fieldProps['provinceCode']];
|
|
2454
|
+
this.valueCached['cityCode'] = (_this$_form$formModel2 = this._form.formModel) == null ? void 0 : _this$_form$formModel2[this._fieldProps['cityCode']];
|
|
2455
|
+
this.valueCached['countyCode'] = (_this$_form$formModel3 = this._form.formModel) == null ? void 0 : _this$_form$formModel3[this._fieldProps['countyCode']];
|
|
2456
|
+
this.valueCached['provinceName'] = (_this$_form$formModel4 = this._form.formModel) == null ? void 0 : _this$_form$formModel4[this._fieldProps['provinceName']];
|
|
2457
|
+
this.valueCached['cityName'] = (_this$_form$formModel5 = this._form.formModel) == null ? void 0 : _this$_form$formModel5[this._fieldProps['cityName']];
|
|
2458
|
+
this.valueCached['countyName'] = (_this$_form$formModel6 = this._form.formModel) == null ? void 0 : _this$_form$formModel6[this._fieldProps['countyName']];
|
|
2459
|
+
this.valueCached['address'] = (_this$_form$formModel7 = this._form.formModel) == null ? void 0 : _this$_form$formModel7[this._fieldProps['address']];
|
|
2460
|
+
this.$emit("change", this.valueCached);
|
|
2461
|
+
}
|
|
2462
|
+
},
|
|
2463
|
+
data: function data() {
|
|
2464
|
+
return {
|
|
2465
|
+
apiOptions: null,
|
|
2466
|
+
valueCached: {
|
|
2467
|
+
provinceCode: null,
|
|
2468
|
+
provinceName: null,
|
|
2469
|
+
cityCode: null,
|
|
2470
|
+
cityName: null,
|
|
2471
|
+
countyCode: null,
|
|
2472
|
+
countyName: null,
|
|
2473
|
+
address: null
|
|
2474
|
+
}
|
|
2475
|
+
};
|
|
2476
|
+
},
|
|
2477
|
+
computed: {
|
|
2478
|
+
cascaderValue: {
|
|
2479
|
+
get: function get() {
|
|
2480
|
+
var valObj = this.valueCached;
|
|
2481
|
+
if (!valObj) {
|
|
2482
|
+
return [];
|
|
2483
|
+
}
|
|
2484
|
+
var provinceCode = valObj[this._fieldProps['provinceCode']];
|
|
2485
|
+
var cityCode = valObj[this._fieldProps['cityCode']];
|
|
2486
|
+
var countyCode = valObj[this._fieldProps['countyCode']];
|
|
2487
|
+
if (!(provinceCode && cityCode && countyCode)) {
|
|
2488
|
+
return [];
|
|
2489
|
+
}
|
|
2490
|
+
return [provinceCode, cityCode, countyCode];
|
|
2491
|
+
},
|
|
2492
|
+
set: function set(val) {
|
|
2493
|
+
this.cascaderChange(val);
|
|
2494
|
+
}
|
|
2495
|
+
},
|
|
2496
|
+
inputValue: {
|
|
2497
|
+
get: function get() {
|
|
2498
|
+
var valObj = this.valueCached;
|
|
2499
|
+
if (!valObj) {
|
|
2500
|
+
return null;
|
|
2501
|
+
}
|
|
2502
|
+
return valObj[this._fieldProps['address']];
|
|
2503
|
+
},
|
|
2504
|
+
set: function set(val) {
|
|
2505
|
+
this.inputChange(val);
|
|
2506
|
+
}
|
|
2507
|
+
},
|
|
2508
|
+
cascaderAttrs: function cascaderAttrs() {
|
|
2509
|
+
return Object.assign({
|
|
2510
|
+
size: this.size,
|
|
2511
|
+
clearable: true
|
|
2512
|
+
}, this.cascader, {
|
|
2513
|
+
options: this.optionData,
|
|
2514
|
+
props: this._optionProps
|
|
2515
|
+
});
|
|
2516
|
+
},
|
|
2517
|
+
inputAttrs: function inputAttrs() {
|
|
2518
|
+
return Object.assign({
|
|
2519
|
+
size: this.size,
|
|
2520
|
+
clearable: true
|
|
2521
|
+
}, this.input);
|
|
2522
|
+
},
|
|
2523
|
+
request: function request() {
|
|
2524
|
+
return this.api.request || this._form && this._form.request || (this.$COMPONENT || {}).request;
|
|
2525
|
+
},
|
|
2526
|
+
_optionProps: function _optionProps() {
|
|
2527
|
+
return Object.assign({
|
|
2528
|
+
value: "value",
|
|
2529
|
+
label: "label",
|
|
2530
|
+
children: "children"
|
|
2531
|
+
}, this.optionProps);
|
|
2532
|
+
},
|
|
2533
|
+
_fieldProps: function _fieldProps() {
|
|
2534
|
+
return Object.assign({
|
|
2535
|
+
provinceCode: "provinceCode",
|
|
2536
|
+
provinceName: "provinceName",
|
|
2537
|
+
cityCode: "cityCode",
|
|
2538
|
+
cityName: "cityName",
|
|
2539
|
+
countyCode: "countyCode",
|
|
2540
|
+
countyName: "countyName",
|
|
2541
|
+
address: "address"
|
|
2542
|
+
}, this.fieldProps);
|
|
2543
|
+
},
|
|
2544
|
+
dictOption: function dictOption() {
|
|
2545
|
+
if (this.dictCode && this.$COMPONENT.dataSource && this.$COMPONENT.dataSource.dict) {
|
|
2546
|
+
return this.$COMPONENT.dataSource.dict[this.dictCode];
|
|
2547
|
+
}
|
|
2548
|
+
return [];
|
|
2549
|
+
},
|
|
2550
|
+
optionData: function optionData() {
|
|
2551
|
+
var options = this.options || this.apiOptions;
|
|
2552
|
+
return Array.isArray(options) ? options : this.dictOption;
|
|
2553
|
+
},
|
|
2554
|
+
_form: function _form() {
|
|
2555
|
+
var parent = this.$parent;
|
|
2556
|
+
while (parent) {
|
|
2557
|
+
if (parent.$options.componentName !== 'Form') {
|
|
2558
|
+
parent = parent.$parent;
|
|
2559
|
+
} else {
|
|
2560
|
+
return parent;
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
return false;
|
|
2564
|
+
}
|
|
2565
|
+
},
|
|
2566
|
+
created: function created() {
|
|
2567
|
+
var _this$_form;
|
|
2568
|
+
//设置为可响应数据
|
|
2569
|
+
this.initVal(this == null || (_this$_form = this._form) == null ? void 0 : _this$_form.formModel);
|
|
2570
|
+
this.initVal(this.value);
|
|
2571
|
+
debugger;
|
|
2572
|
+
},
|
|
2573
|
+
mounted: function mounted() {
|
|
2574
|
+
this.initApi();
|
|
2575
|
+
},
|
|
2576
|
+
methods: {
|
|
2577
|
+
initVal: function initVal(model) {
|
|
2578
|
+
var provinceCode = this._fieldProps['provinceCode'];
|
|
2579
|
+
var cityCode = this._fieldProps['cityCode'];
|
|
2580
|
+
var countyCode = this._fieldProps['countyCode'];
|
|
2581
|
+
var provinceName = this._fieldProps['provinceName'];
|
|
2582
|
+
var cityName = this._fieldProps['cityName'];
|
|
2583
|
+
var countyName = this._fieldProps['countyName'];
|
|
2584
|
+
var address = this._fieldProps['address'];
|
|
2585
|
+
if (model) {
|
|
2586
|
+
this.$set(model, provinceCode, model[provinceCode]);
|
|
2587
|
+
this.$set(model, cityCode, model[cityCode]);
|
|
2588
|
+
this.$set(model, countyCode, model[countyCode]);
|
|
2589
|
+
this.$set(model, provinceName, model[provinceName]);
|
|
2590
|
+
this.$set(model, cityName, model[cityName]);
|
|
2591
|
+
this.$set(model, countyName, model[countyName]);
|
|
2592
|
+
this.$set(model, address, model[address]);
|
|
2593
|
+
}
|
|
2594
|
+
},
|
|
2595
|
+
initApi: function initApi() {
|
|
2596
|
+
var _this = this;
|
|
2597
|
+
if (!(this.api && this.api.url && this.request)) {
|
|
2598
|
+
return false;
|
|
2599
|
+
}
|
|
2600
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
2601
|
+
if (typeof this.api.before === "function") {
|
|
2602
|
+
reqData = this.api.before.call(this, reqData, {
|
|
2603
|
+
form: this._form,
|
|
2604
|
+
formModel: this._form && this._form.formModel
|
|
2605
|
+
});
|
|
2606
|
+
}
|
|
2607
|
+
this.request({
|
|
2608
|
+
url: Object(formula_["evaluate"])(this.api.url, reqData),
|
|
2609
|
+
method: this.api.method || "GET",
|
|
2610
|
+
headers: this.api.headers,
|
|
2611
|
+
data: reqData
|
|
2612
|
+
}).then(function (res) {
|
|
2613
|
+
if (typeof _this.api.after === "function") {
|
|
2614
|
+
res = _this.api.after.call(_this, res, {
|
|
2615
|
+
form: _this._form,
|
|
2616
|
+
formModel: _this._form && _this._form.formModel
|
|
2617
|
+
});
|
|
2618
|
+
}
|
|
2619
|
+
_this.apiOptions = _this.api.dataPath ? get(res, _this.api.dataPath, []) : res;
|
|
2620
|
+
}).catch(function (error) {
|
|
2621
|
+
_this.apiOptions = null;
|
|
2622
|
+
});
|
|
2623
|
+
},
|
|
2624
|
+
cascaderChange: function cascaderChange(val) {
|
|
2625
|
+
var _nodes$, _this$_form2, _this$_form3;
|
|
2626
|
+
var nodes = this.$refs.cascaderRef.getCheckedNodes();
|
|
2627
|
+
var pathLabels = nodes == null || (_nodes$ = nodes[0]) == null ? void 0 : _nodes$.pathLabels;
|
|
2628
|
+
this.valueCached.provinceCode = val[0];
|
|
2629
|
+
this.valueCached.provinceName = pathLabels == null ? void 0 : pathLabels[0];
|
|
2630
|
+
this.valueCached.cityCode = val[1];
|
|
2631
|
+
this.valueCached.cityName = pathLabels == null ? void 0 : pathLabels[1];
|
|
2632
|
+
this.valueCached.countyCode = val[2];
|
|
2633
|
+
this.valueCached.countyName = pathLabels == null ? void 0 : pathLabels[2];
|
|
2634
|
+
this.valueCached.address = this.valueCached.address || ((_this$_form2 = this._form) == null || (_this$_form2 = _this$_form2.formModel) == null ? void 0 : _this$_form2[this._fieldProps['address']]);
|
|
2635
|
+
this.$emit("change", this.valueCached);
|
|
2636
|
+
if (this != null && (_this$_form3 = this._form) != null && _this$_form3.formModel) {
|
|
2637
|
+
Object.assign(this._form.formModel, this.valueCached);
|
|
2638
|
+
}
|
|
2639
|
+
},
|
|
2640
|
+
inputChange: function inputChange(val) {
|
|
2641
|
+
var _this$_form4, _this$_form5, _this$_form6, _this$_form7, _this$_form8, _this$_form9, _this$_form10;
|
|
2642
|
+
this.valueCached.provinceCode = this.valueCached.provinceCode || ((_this$_form4 = this._form) == null || (_this$_form4 = _this$_form4.formModel) == null ? void 0 : _this$_form4[this._fieldProps['provinceCode']]);
|
|
2643
|
+
this.valueCached.provinceName = this.valueCached.provinceName || ((_this$_form5 = this._form) == null || (_this$_form5 = _this$_form5.formModel) == null ? void 0 : _this$_form5[this._fieldProps['provinceName']]);
|
|
2644
|
+
this.valueCached.cityCode = this.valueCached.cityCode || ((_this$_form6 = this._form) == null || (_this$_form6 = _this$_form6.formModel) == null ? void 0 : _this$_form6[this._fieldProps['cityCode']]);
|
|
2645
|
+
this.valueCached.cityName = this.valueCached.cityName || ((_this$_form7 = this._form) == null || (_this$_form7 = _this$_form7.formModel) == null ? void 0 : _this$_form7[this._fieldProps['cityName']]);
|
|
2646
|
+
this.valueCached.countyCode = this.valueCached.countyCode || ((_this$_form8 = this._form) == null || (_this$_form8 = _this$_form8.formModel) == null ? void 0 : _this$_form8[this._fieldProps['countyCode']]);
|
|
2647
|
+
this.valueCached.countyName = this.valueCached.provinceCode || ((_this$_form9 = this._form) == null || (_this$_form9 = _this$_form9.formModel) == null ? void 0 : _this$_form9[this._fieldProps['countyName']]);
|
|
2648
|
+
this.valueCached.address = val;
|
|
2649
|
+
this.$emit("change", this.valueCached);
|
|
2650
|
+
if (this != null && (_this$_form10 = this._form) != null && _this$_form10.formModel) {
|
|
2651
|
+
this._form.formModel[this._fieldProps['address']] = val;
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
});
|
|
2656
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue?vue&type=script&lang=js
|
|
2657
|
+
/* harmony default export */ var item_CascaderAddrvue_type_script_lang_js = (CascaderAddrvue_type_script_lang_js);
|
|
2658
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue
|
|
2659
|
+
|
|
2660
|
+
|
|
2661
|
+
|
|
2662
|
+
|
|
2663
|
+
|
|
2664
|
+
/* normalize component */
|
|
2665
|
+
|
|
2666
|
+
var CascaderAddr_component = normalizeComponent(
|
|
2667
|
+
item_CascaderAddrvue_type_script_lang_js,
|
|
2668
|
+
CascaderAddrvue_type_template_id_12c36b3c_render,
|
|
2669
|
+
CascaderAddrvue_type_template_id_12c36b3c_staticRenderFns,
|
|
2670
|
+
false,
|
|
2671
|
+
null,
|
|
2672
|
+
null,
|
|
2673
|
+
null
|
|
2674
|
+
|
|
2675
|
+
)
|
|
2676
|
+
|
|
2677
|
+
/* harmony default export */ var CascaderAddr = (CascaderAddr_component.exports);
|
|
2297
2678
|
// EXTERNAL MODULE: external "element-ui/lib/date-picker"
|
|
2298
2679
|
var date_picker_ = __webpack_require__(40);
|
|
2299
2680
|
var date_picker_default = /*#__PURE__*/__webpack_require__.n(date_picker_);
|
|
@@ -3104,11 +3485,13 @@ var upload_default = /*#__PURE__*/__webpack_require__.n(upload_);
|
|
|
3104
3485
|
|
|
3105
3486
|
|
|
3106
3487
|
|
|
3488
|
+
|
|
3107
3489
|
/* harmony default export */ var form_input = ({
|
|
3108
3490
|
name: "FormInput",
|
|
3109
3491
|
inheritAttrs: false,
|
|
3110
3492
|
components: {
|
|
3111
3493
|
Cascader: Cascader,
|
|
3494
|
+
CascaderAddr: CascaderAddr,
|
|
3112
3495
|
Slider: slider_default.a,
|
|
3113
3496
|
Transfer: transfer_default.a,
|
|
3114
3497
|
Switchs: switch_default.a,
|
|
@@ -4585,7 +4968,7 @@ form_dialog_src.install = function (Vue) {
|
|
|
4585
4968
|
};
|
|
4586
4969
|
/* harmony default export */ var form_dialog = (form_dialog_src);
|
|
4587
4970
|
// EXTERNAL MODULE: external "@panpanzhao/component-ui/lib/components/drawer"
|
|
4588
|
-
var drawer_ = __webpack_require__(
|
|
4971
|
+
var drawer_ = __webpack_require__(28);
|
|
4589
4972
|
var drawer_default = /*#__PURE__*/__webpack_require__.n(drawer_);
|
|
4590
4973
|
|
|
4591
4974
|
// 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-drawer/src/index.vue?vue&type=script&lang=js
|
|
@@ -5523,8 +5906,8 @@ form_view_dialog_src.install = function (Vue) {
|
|
|
5523
5906
|
Vue.component(form_view_dialog_src.name, form_view_dialog_src);
|
|
5524
5907
|
};
|
|
5525
5908
|
/* harmony default export */ var form_view_dialog = (form_view_dialog_src);
|
|
5526
|
-
// 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/table/src/table.vue?vue&type=template&id=
|
|
5527
|
-
var
|
|
5909
|
+
// 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/table/src/table.vue?vue&type=template&id=31feda6c
|
|
5910
|
+
var tablevue_type_template_id_31feda6c_render = function render() {
|
|
5528
5911
|
var _vm = this,
|
|
5529
5912
|
_c = _vm._self._c
|
|
5530
5913
|
return _c("div", { staticClass: "table" }, [
|
|
@@ -5585,31 +5968,124 @@ var tablevue_type_template_id_1a5269fa_render = function render() {
|
|
|
5585
5968
|
1
|
|
5586
5969
|
),
|
|
5587
5970
|
_vm.pagination
|
|
5588
|
-
? _c(
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5971
|
+
? _c("div", { staticClass: "table__pagination" }, [
|
|
5972
|
+
_c(
|
|
5973
|
+
"div",
|
|
5974
|
+
[
|
|
5975
|
+
_c(
|
|
5976
|
+
"el-pagination",
|
|
5977
|
+
_vm._g(
|
|
5978
|
+
_vm._b({}, "el-pagination", _vm.paginationProps, false),
|
|
5979
|
+
_vm.paginationListeners
|
|
5980
|
+
)
|
|
5981
|
+
),
|
|
5982
|
+
],
|
|
5983
|
+
1
|
|
5984
|
+
),
|
|
5985
|
+
_vm.columnsKey
|
|
5986
|
+
? _c(
|
|
5987
|
+
"div",
|
|
5988
|
+
[
|
|
5989
|
+
_c("el-popover", { attrs: { placement: "top" } }, [
|
|
5990
|
+
_c("div", { staticClass: "table-setting" }, [
|
|
5991
|
+
_c(
|
|
5992
|
+
"div",
|
|
5993
|
+
{ staticClass: "table-setting__title" },
|
|
5994
|
+
[
|
|
5995
|
+
_c("el-input", {
|
|
5996
|
+
attrs: { size: "small", placeholder: "请输入列名" },
|
|
5997
|
+
model: {
|
|
5998
|
+
value: _vm.columnKey,
|
|
5999
|
+
callback: function ($$v) {
|
|
6000
|
+
_vm.columnKey = $$v
|
|
6001
|
+
},
|
|
6002
|
+
expression: "columnKey",
|
|
6003
|
+
},
|
|
6004
|
+
}),
|
|
6005
|
+
],
|
|
6006
|
+
1
|
|
6007
|
+
),
|
|
6008
|
+
_c(
|
|
6009
|
+
"div",
|
|
6010
|
+
{ staticClass: "table-setting__body" },
|
|
6011
|
+
_vm._l(_vm.columnsSetting, function (item) {
|
|
6012
|
+
return _c(
|
|
6013
|
+
"div",
|
|
6014
|
+
{ key: item.prop, staticClass: "item" },
|
|
6015
|
+
[
|
|
6016
|
+
_c("el-switch", {
|
|
6017
|
+
on: {
|
|
6018
|
+
change: (value) =>
|
|
6019
|
+
_vm.handleSetting(value, item),
|
|
6020
|
+
},
|
|
6021
|
+
model: {
|
|
6022
|
+
value: item.disable,
|
|
6023
|
+
callback: function ($$v) {
|
|
6024
|
+
_vm.$set(item, "disable", $$v)
|
|
6025
|
+
},
|
|
6026
|
+
expression: "item.disable",
|
|
6027
|
+
},
|
|
6028
|
+
}),
|
|
6029
|
+
_c("span", { staticClass: "item-label" }, [
|
|
6030
|
+
_vm._v(_vm._s(item.label)),
|
|
6031
|
+
]),
|
|
6032
|
+
],
|
|
6033
|
+
1
|
|
6034
|
+
)
|
|
6035
|
+
}),
|
|
6036
|
+
0
|
|
6037
|
+
),
|
|
6038
|
+
_c(
|
|
6039
|
+
"div",
|
|
6040
|
+
{
|
|
6041
|
+
staticStyle: {
|
|
6042
|
+
"text-align": "right",
|
|
6043
|
+
"margin-top": "10px",
|
|
6044
|
+
},
|
|
6045
|
+
},
|
|
6046
|
+
[
|
|
6047
|
+
_c(
|
|
6048
|
+
"el-button",
|
|
6049
|
+
{
|
|
6050
|
+
attrs: { size: "mini" },
|
|
6051
|
+
on: { click: _vm.resetColumn },
|
|
6052
|
+
},
|
|
6053
|
+
[_vm._v("重置")]
|
|
6054
|
+
),
|
|
6055
|
+
_c(
|
|
6056
|
+
"el-button",
|
|
6057
|
+
{
|
|
6058
|
+
attrs: { type: "primary", size: "mini" },
|
|
6059
|
+
on: { click: _vm.saveColumn },
|
|
6060
|
+
},
|
|
6061
|
+
[_vm._v("保存")]
|
|
6062
|
+
),
|
|
6063
|
+
],
|
|
6064
|
+
1
|
|
6065
|
+
),
|
|
6066
|
+
]),
|
|
6067
|
+
_c(
|
|
6068
|
+
"span",
|
|
6069
|
+
{ attrs: { slot: "reference" }, slot: "reference" },
|
|
6070
|
+
[_c("i", { staticClass: "el-icon-s-grid" })]
|
|
6071
|
+
),
|
|
6072
|
+
]),
|
|
6073
|
+
],
|
|
6074
|
+
1
|
|
5597
6075
|
)
|
|
5598
|
-
),
|
|
5599
|
-
|
|
5600
|
-
1
|
|
5601
|
-
)
|
|
6076
|
+
: _vm._e(),
|
|
6077
|
+
])
|
|
5602
6078
|
: _vm._e(),
|
|
5603
6079
|
])
|
|
5604
6080
|
}
|
|
5605
|
-
var
|
|
5606
|
-
|
|
6081
|
+
var tablevue_type_template_id_31feda6c_staticRenderFns = []
|
|
6082
|
+
tablevue_type_template_id_31feda6c_render._withStripped = true
|
|
5607
6083
|
|
|
5608
6084
|
|
|
5609
|
-
// CONCATENATED MODULE: ./src/components/table/src/table.vue?vue&type=template&id=
|
|
6085
|
+
// CONCATENATED MODULE: ./src/components/table/src/table.vue?vue&type=template&id=31feda6c
|
|
5610
6086
|
|
|
5611
6087
|
// EXTERNAL MODULE: external "element-ui/lib/table"
|
|
5612
|
-
var table_ = __webpack_require__(
|
|
6088
|
+
var table_ = __webpack_require__(24);
|
|
5613
6089
|
var table_default = /*#__PURE__*/__webpack_require__.n(table_);
|
|
5614
6090
|
|
|
5615
6091
|
// EXTERNAL MODULE: external "element-ui/lib/table-column"
|
|
@@ -5637,6 +6113,7 @@ var index_ = __webpack_require__(3);
|
|
|
5637
6113
|
|
|
5638
6114
|
|
|
5639
6115
|
|
|
6116
|
+
|
|
5640
6117
|
/* harmony default export */ var tablevue_type_script_lang_js = ({
|
|
5641
6118
|
name: "Table",
|
|
5642
6119
|
componentName: "Table",
|
|
@@ -5741,6 +6218,7 @@ var index_ = __webpack_require__(3);
|
|
|
5741
6218
|
}
|
|
5742
6219
|
},
|
|
5743
6220
|
dataSource: Object,
|
|
6221
|
+
columnsKey: String,
|
|
5744
6222
|
columns: {
|
|
5745
6223
|
type: Array,
|
|
5746
6224
|
default: function _default() {
|
|
@@ -5779,7 +6257,9 @@ var index_ = __webpack_require__(3);
|
|
|
5779
6257
|
remoteData: null,
|
|
5780
6258
|
currentPage: 1,
|
|
5781
6259
|
pageSize: 10,
|
|
5782
|
-
total: 0
|
|
6260
|
+
total: 0,
|
|
6261
|
+
columnKey: null,
|
|
6262
|
+
columnMap: {}
|
|
5783
6263
|
};
|
|
5784
6264
|
},
|
|
5785
6265
|
watch: {
|
|
@@ -5789,13 +6269,34 @@ var index_ = __webpack_require__(3);
|
|
|
5789
6269
|
}
|
|
5790
6270
|
},
|
|
5791
6271
|
computed: {
|
|
5792
|
-
|
|
6272
|
+
columnsSetting: function columnsSetting() {
|
|
5793
6273
|
var _this2 = this;
|
|
6274
|
+
var columns = this.columns.reduce(function (pre, cur) {
|
|
6275
|
+
if (["Sequence", "Selection", "Operate"].indexOf(cur.control) > -1) {
|
|
6276
|
+
return pre;
|
|
6277
|
+
}
|
|
6278
|
+
if (_this2.columnKey && cur.label && cur.label.indexOf(_this2.columnKey) === -1) {
|
|
6279
|
+
return pre;
|
|
6280
|
+
}
|
|
6281
|
+
pre.push({
|
|
6282
|
+
prop: cur.prop,
|
|
6283
|
+
label: cur.label,
|
|
6284
|
+
disable: _this2.columnMap[cur.prop] === false ? false : true
|
|
6285
|
+
});
|
|
6286
|
+
return pre;
|
|
6287
|
+
}, []);
|
|
6288
|
+
return columns;
|
|
6289
|
+
},
|
|
6290
|
+
filterColumns: function filterColumns() {
|
|
6291
|
+
var _this3 = this;
|
|
5794
6292
|
return this.columns.filter(function (item) {
|
|
6293
|
+
if (_this3.columnMap[item.prop] === false) {
|
|
6294
|
+
return false;
|
|
6295
|
+
}
|
|
5795
6296
|
if (item.show === false) {
|
|
5796
6297
|
return false;
|
|
5797
6298
|
}
|
|
5798
|
-
if (typeof item.show === "function" && !item.show.call(
|
|
6299
|
+
if (typeof item.show === "function" && !item.show.call(_this3, {
|
|
5799
6300
|
item: item
|
|
5800
6301
|
})) {
|
|
5801
6302
|
return false;
|
|
@@ -5829,32 +6330,32 @@ var index_ = __webpack_require__(3);
|
|
|
5829
6330
|
});
|
|
5830
6331
|
},
|
|
5831
6332
|
tableListeners: function tableListeners() {
|
|
5832
|
-
var
|
|
6333
|
+
var _this4 = this;
|
|
5833
6334
|
return Object.assign({}, this.$listeners, this.on, {
|
|
5834
6335
|
"row-click": function rowClick(row) {
|
|
5835
|
-
var selectColumns =
|
|
6336
|
+
var selectColumns = _this4.columns.filter(function (item) {
|
|
5836
6337
|
return item.control === "Selection";
|
|
5837
6338
|
});
|
|
5838
6339
|
if (selectColumns && selectColumns.length > 0) {
|
|
5839
6340
|
var selectColumn = selectColumns[0];
|
|
5840
6341
|
if (selectColumn.type === "radio") {
|
|
5841
|
-
var key = selectColumn.prop ||
|
|
5842
|
-
|
|
5843
|
-
|
|
6342
|
+
var key = selectColumn.prop || _this4.tableProps.rowKey;
|
|
6343
|
+
_this4.rowId = row[key];
|
|
6344
|
+
_this4.selection = [row];
|
|
5844
6345
|
} else {
|
|
5845
|
-
|
|
6346
|
+
_this4.$refs.table.toggleRowSelection(row); // 点击选中
|
|
5846
6347
|
}
|
|
5847
6348
|
}
|
|
5848
|
-
|
|
5849
|
-
if (typeof
|
|
5850
|
-
|
|
6349
|
+
_this4.$emit("row-click", row);
|
|
6350
|
+
if (typeof _this4.on["row-click"] === "function") {
|
|
6351
|
+
_this4.on["row-click"].call(_this4, row);
|
|
5851
6352
|
}
|
|
5852
6353
|
},
|
|
5853
6354
|
"selection-change": function selectionChange(selection) {
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
if (typeof
|
|
5857
|
-
|
|
6355
|
+
_this4.selection = selection;
|
|
6356
|
+
_this4.$emit("selection-change", selection);
|
|
6357
|
+
if (typeof _this4.on["selection-change"] === "function") {
|
|
6358
|
+
_this4.on["selection-change"].call(_this4, selection);
|
|
5858
6359
|
}
|
|
5859
6360
|
}
|
|
5860
6361
|
});
|
|
@@ -5873,27 +6374,37 @@ var index_ = __webpack_require__(3);
|
|
|
5873
6374
|
});
|
|
5874
6375
|
},
|
|
5875
6376
|
paginationListeners: function paginationListeners() {
|
|
5876
|
-
var
|
|
6377
|
+
var _this5 = this;
|
|
5877
6378
|
return Object.assign({}, this.pagination.on, {
|
|
5878
6379
|
"size-change": function sizeChange(pageSize) {
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
6380
|
+
_this5.$emit("size-change", pageSize);
|
|
6381
|
+
_this5.pageSize = pageSize;
|
|
6382
|
+
_this5.$emit("pageChange", _this5.paginationProps.currentPage, pageSize);
|
|
6383
|
+
_this5.search();
|
|
5883
6384
|
},
|
|
5884
6385
|
"current-change": function currentChange(currentPage) {
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
6386
|
+
_this5.$emit("current-change", currentPage);
|
|
6387
|
+
_this5.currentPage = currentPage;
|
|
6388
|
+
_this5.$emit("pageChange", currentPage, _this5.paginationProps.pageSize);
|
|
6389
|
+
_this5.search();
|
|
5889
6390
|
}
|
|
5890
6391
|
});
|
|
5891
6392
|
}
|
|
5892
6393
|
},
|
|
5893
6394
|
created: function created() {
|
|
6395
|
+
var _this6 = this;
|
|
5894
6396
|
if (this.pagination && this.pagination.pageSize) {
|
|
5895
6397
|
this.pageSize = this.pagination.pageSize;
|
|
5896
6398
|
}
|
|
6399
|
+
if (this.columnsKey) {
|
|
6400
|
+
var columnStorage = JSON.parse(localStorage.getItem("component_columns") || "{}");
|
|
6401
|
+
var columnList = columnStorage && columnStorage[this.columnsKey];
|
|
6402
|
+
if (columnList) {
|
|
6403
|
+
columnList.forEach(function (prop) {
|
|
6404
|
+
_this6.$set(_this6.columnMap, prop, false);
|
|
6405
|
+
});
|
|
6406
|
+
}
|
|
6407
|
+
}
|
|
5897
6408
|
},
|
|
5898
6409
|
mounted: function mounted() {
|
|
5899
6410
|
if (this.hasInit) {
|
|
@@ -5909,11 +6420,11 @@ var index_ = __webpack_require__(3);
|
|
|
5909
6420
|
this.search();
|
|
5910
6421
|
},
|
|
5911
6422
|
search: function search() {
|
|
5912
|
-
var
|
|
6423
|
+
var _this7 = this;
|
|
5913
6424
|
if (!(this.requester && this.api.url)) {
|
|
5914
6425
|
return false;
|
|
5915
6426
|
}
|
|
5916
|
-
var reqData = Object.assign({}, this.api.data);
|
|
6427
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
5917
6428
|
if (this.pagination) {
|
|
5918
6429
|
Object(external_lodash_["set"])(reqData, this.remoteDataProp.currentPage, this.currentPage);
|
|
5919
6430
|
Object(external_lodash_["set"])(reqData, this.remoteDataProp.pageSize, this.pageSize);
|
|
@@ -5931,26 +6442,48 @@ var index_ = __webpack_require__(3);
|
|
|
5931
6442
|
headers: this.api.headers,
|
|
5932
6443
|
data: reqData
|
|
5933
6444
|
}).then(function (res) {
|
|
5934
|
-
if (typeof
|
|
5935
|
-
res =
|
|
6445
|
+
if (typeof _this7.api.after === "function") {
|
|
6446
|
+
res = _this7.api.after.call(_this7, res);
|
|
5936
6447
|
}
|
|
5937
|
-
|
|
5938
|
-
if (
|
|
5939
|
-
|
|
6448
|
+
_this7.remoteData = _this7.remoteDataProp.data ? Object(external_lodash_["get"])(res, _this7.remoteDataProp.data, []) : res;
|
|
6449
|
+
if (_this7.pagination) {
|
|
6450
|
+
_this7.total = Object(external_lodash_["get"])(res, _this7.remoteDataProp.total, 0);
|
|
5940
6451
|
}
|
|
5941
|
-
|
|
5942
|
-
request:
|
|
6452
|
+
_this7.$emit("success", {
|
|
6453
|
+
request: _this7.requester,
|
|
5943
6454
|
reqData: reqData,
|
|
5944
6455
|
resData: res
|
|
5945
6456
|
});
|
|
5946
6457
|
}).catch(function (error) {
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
request:
|
|
6458
|
+
_this7.remoteData = [], _this7.total = 0;
|
|
6459
|
+
_this7.$emit("error", {
|
|
6460
|
+
request: _this7.requester,
|
|
5950
6461
|
reqData: reqData,
|
|
5951
6462
|
resError: error
|
|
5952
6463
|
});
|
|
5953
6464
|
});
|
|
6465
|
+
},
|
|
6466
|
+
resetColumn: function resetColumn() {
|
|
6467
|
+
this.columnMap = {};
|
|
6468
|
+
},
|
|
6469
|
+
saveColumn: function saveColumn() {
|
|
6470
|
+
var _this8 = this;
|
|
6471
|
+
var columnStorage = JSON.parse(localStorage.getItem("component_columns") || "{}");
|
|
6472
|
+
columnStorage[this.columnsKey] = Object.keys(this.columnMap).filter(function (itemKey) {
|
|
6473
|
+
if (_this8.columnMap[itemKey] === false) {
|
|
6474
|
+
return true;
|
|
6475
|
+
}
|
|
6476
|
+
return false;
|
|
6477
|
+
});
|
|
6478
|
+
localStorage.setItem("component_columns", JSON.stringify(columnStorage));
|
|
6479
|
+
message_default()({
|
|
6480
|
+
showClose: true,
|
|
6481
|
+
message: "设置成功",
|
|
6482
|
+
type: "success"
|
|
6483
|
+
});
|
|
6484
|
+
},
|
|
6485
|
+
handleSetting: function handleSetting(value, item) {
|
|
6486
|
+
this.$set(this.columnMap, item.prop, value);
|
|
5954
6487
|
}
|
|
5955
6488
|
}
|
|
5956
6489
|
});
|
|
@@ -5966,8 +6499,8 @@ var index_ = __webpack_require__(3);
|
|
|
5966
6499
|
|
|
5967
6500
|
var table_component = normalizeComponent(
|
|
5968
6501
|
src_tablevue_type_script_lang_js,
|
|
5969
|
-
|
|
5970
|
-
|
|
6502
|
+
tablevue_type_template_id_31feda6c_render,
|
|
6503
|
+
tablevue_type_template_id_31feda6c_staticRenderFns,
|
|
5971
6504
|
false,
|
|
5972
6505
|
null,
|
|
5973
6506
|
null,
|
|
@@ -6433,7 +6966,7 @@ var dropdown_menu_ = __webpack_require__(52);
|
|
|
6433
6966
|
var dropdown_menu_default = /*#__PURE__*/__webpack_require__.n(dropdown_menu_);
|
|
6434
6967
|
|
|
6435
6968
|
// EXTERNAL MODULE: external "element-ui/lib/link"
|
|
6436
|
-
var link_ = __webpack_require__(
|
|
6969
|
+
var link_ = __webpack_require__(29);
|
|
6437
6970
|
var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
6438
6971
|
|
|
6439
6972
|
// 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/table/src/column/operate.vue?vue&type=script&lang=js
|
|
@@ -7234,6 +7767,14 @@ var external_async_validator_default = /*#__PURE__*/__webpack_require__.n(extern
|
|
|
7234
7767
|
triggerConfig: this.inputConfig
|
|
7235
7768
|
}].concat(arg));
|
|
7236
7769
|
}
|
|
7770
|
+
if (this.on && this.on[eventName]) {
|
|
7771
|
+
var _this$on$eventName;
|
|
7772
|
+
(_this$on$eventName = this.on[eventName]).call.apply(_this$on$eventName, [this, {
|
|
7773
|
+
trigger: this.row,
|
|
7774
|
+
triggerForm: this.rowData,
|
|
7775
|
+
triggerConfig: this.inputConfig
|
|
7776
|
+
}].concat(arg));
|
|
7777
|
+
}
|
|
7237
7778
|
//联动配置事件
|
|
7238
7779
|
var itemEvent = this.actionEventMap[eventName];
|
|
7239
7780
|
if (!itemEvent) {
|
|
@@ -8607,7 +9148,7 @@ crud_src.install = function (Vue) {
|
|
|
8607
9148
|
};
|
|
8608
9149
|
/* harmony default export */ var crud = (crud_src);
|
|
8609
9150
|
// EXTERNAL MODULE: external "codemirror"
|
|
8610
|
-
var external_codemirror_ = __webpack_require__(
|
|
9151
|
+
var external_codemirror_ = __webpack_require__(27);
|
|
8611
9152
|
var external_codemirror_default = /*#__PURE__*/__webpack_require__.n(external_codemirror_);
|
|
8612
9153
|
|
|
8613
9154
|
// EXTERNAL MODULE: external "codemirror/mode/javascript/javascript"
|
|
@@ -11226,7 +11767,7 @@ srcvue_type_template_id_cfc57478_render._withStripped = true
|
|
|
11226
11767
|
// CONCATENATED MODULE: ./src/components/dialog/src/index.vue?vue&type=template&id=cfc57478
|
|
11227
11768
|
|
|
11228
11769
|
// EXTERNAL MODULE: external "element-ui/lib/utils/popup"
|
|
11229
|
-
var popup_ = __webpack_require__(
|
|
11770
|
+
var popup_ = __webpack_require__(25);
|
|
11230
11771
|
var popup_default = /*#__PURE__*/__webpack_require__.n(popup_);
|
|
11231
11772
|
|
|
11232
11773
|
// EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
|
|
@@ -11234,7 +11775,7 @@ var migrating_ = __webpack_require__(59);
|
|
|
11234
11775
|
var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
|
|
11235
11776
|
|
|
11236
11777
|
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
|
11237
|
-
var emitter_ = __webpack_require__(
|
|
11778
|
+
var emitter_ = __webpack_require__(26);
|
|
11238
11779
|
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
11239
11780
|
|
|
11240
11781
|
// 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/dialog/src/index.vue?vue&type=script&lang=js
|
|
@@ -11786,7 +12327,6 @@ function getComConfig(h) {
|
|
|
11786
12327
|
}
|
|
11787
12328
|
},
|
|
11788
12329
|
render: function render(createElement) {
|
|
11789
|
-
debugger;
|
|
11790
12330
|
var $createElement = h || createElement;
|
|
11791
12331
|
// 自定义整行节点label区域
|
|
11792
12332
|
var scopeSlotDefault = this.getScopedSlot('default');
|
|
@@ -11898,7 +12438,6 @@ function getComConfig(h) {
|
|
|
11898
12438
|
};
|
|
11899
12439
|
}
|
|
11900
12440
|
function getElementLabelLine(h) {
|
|
11901
|
-
debugger;
|
|
11902
12441
|
var conf = getComConfig(h);
|
|
11903
12442
|
if (h) {
|
|
11904
12443
|
conf.methods.getScopedSlot = function getScopedSlot(slotName) {
|
|
@@ -11930,6 +12469,257 @@ tree_line_src.install = function (Vue) {
|
|
|
11930
12469
|
Vue.component(tree_line_src.name, tree_line_src);
|
|
11931
12470
|
};
|
|
11932
12471
|
/* harmony default export */ var tree_line = (tree_line_src);
|
|
12472
|
+
// 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/timeline/src/index.vue?vue&type=template&id=34b55949
|
|
12473
|
+
var srcvue_type_template_id_34b55949_render = function render() {
|
|
12474
|
+
var _vm = this,
|
|
12475
|
+
_c = _vm._self._c
|
|
12476
|
+
return _c(
|
|
12477
|
+
"ul",
|
|
12478
|
+
{
|
|
12479
|
+
staticClass: "el-timeline timeline",
|
|
12480
|
+
class: { "is-reverse": _vm.reverse },
|
|
12481
|
+
style: { marginLeft: _vm.leftWidth },
|
|
12482
|
+
},
|
|
12483
|
+
_vm._l(_vm.itemDatas, function (item, index) {
|
|
12484
|
+
return _c(
|
|
12485
|
+
"TimeItem",
|
|
12486
|
+
_vm._b(
|
|
12487
|
+
{ key: index, attrs: { data: item } },
|
|
12488
|
+
"TimeItem",
|
|
12489
|
+
_vm.layout,
|
|
12490
|
+
false
|
|
12491
|
+
)
|
|
12492
|
+
)
|
|
12493
|
+
}),
|
|
12494
|
+
1
|
|
12495
|
+
)
|
|
12496
|
+
}
|
|
12497
|
+
var srcvue_type_template_id_34b55949_staticRenderFns = []
|
|
12498
|
+
srcvue_type_template_id_34b55949_render._withStripped = true
|
|
12499
|
+
|
|
12500
|
+
|
|
12501
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/index.vue?vue&type=template&id=34b55949
|
|
12502
|
+
|
|
12503
|
+
// 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/timeline/src/time-item.vue?vue&type=template&id=5871346c
|
|
12504
|
+
var time_itemvue_type_template_id_5871346c_render = function render() {
|
|
12505
|
+
var _vm = this,
|
|
12506
|
+
_c = _vm._self._c
|
|
12507
|
+
return _c("li", { staticClass: "el-timeline-item" }, [
|
|
12508
|
+
_c("div", { staticClass: "el-timeline-item__tail" }),
|
|
12509
|
+
!_vm.$slots.dot
|
|
12510
|
+
? _c(
|
|
12511
|
+
"div",
|
|
12512
|
+
{
|
|
12513
|
+
staticClass: "el-timeline-item__node",
|
|
12514
|
+
class: [
|
|
12515
|
+
`el-timeline-item__node--${_vm.size || ""}`,
|
|
12516
|
+
`el-timeline-item__node--${_vm.type || ""}`,
|
|
12517
|
+
],
|
|
12518
|
+
style: {
|
|
12519
|
+
backgroundColor: _vm.color,
|
|
12520
|
+
},
|
|
12521
|
+
},
|
|
12522
|
+
[
|
|
12523
|
+
_vm.icon
|
|
12524
|
+
? _c("i", {
|
|
12525
|
+
staticClass: "el-timeline-item__icon",
|
|
12526
|
+
class: _vm.icon,
|
|
12527
|
+
})
|
|
12528
|
+
: _vm._e(),
|
|
12529
|
+
]
|
|
12530
|
+
)
|
|
12531
|
+
: _vm._e(),
|
|
12532
|
+
_vm.$slots.dot
|
|
12533
|
+
? _c("div", { staticClass: "el-timeline-item__dot" }, [_vm._t("dot")], 2)
|
|
12534
|
+
: _vm._e(),
|
|
12535
|
+
_c("div", { staticClass: "el-timeline-item__wrapper" }, [
|
|
12536
|
+
!_vm.hideTimestamp && _vm.placement === "top"
|
|
12537
|
+
? _c("div", { staticClass: "el-timeline-item__timestamp is-top" }, [
|
|
12538
|
+
_vm._v("\n " + _vm._s(_vm.timestamp) + "\n "),
|
|
12539
|
+
])
|
|
12540
|
+
: _vm._e(),
|
|
12541
|
+
!_vm.hideTimestamp && _vm.placement === "left"
|
|
12542
|
+
? _c(
|
|
12543
|
+
"div",
|
|
12544
|
+
{
|
|
12545
|
+
staticClass: "el-timeline-item__timestamp is-left",
|
|
12546
|
+
style: { left: "28px" },
|
|
12547
|
+
},
|
|
12548
|
+
[_vm._v("\n " + _vm._s(_vm.timestamp) + "\n ")]
|
|
12549
|
+
)
|
|
12550
|
+
: _vm._e(),
|
|
12551
|
+
_c(
|
|
12552
|
+
"div",
|
|
12553
|
+
{ staticClass: "el-timeline-item__content" },
|
|
12554
|
+
[
|
|
12555
|
+
_vm._t("default", function () {
|
|
12556
|
+
return [
|
|
12557
|
+
_c("FormView", _vm._b({}, "FormView", _vm.formLayout, false)),
|
|
12558
|
+
]
|
|
12559
|
+
}),
|
|
12560
|
+
],
|
|
12561
|
+
2
|
|
12562
|
+
),
|
|
12563
|
+
!_vm.hideTimestamp && _vm.placement === "bottom"
|
|
12564
|
+
? _c("div", { staticClass: "el-timeline-item__timestamp is-bottom" }, [
|
|
12565
|
+
_vm._v("\n " + _vm._s(_vm.timestamp) + "\n "),
|
|
12566
|
+
])
|
|
12567
|
+
: _vm._e(),
|
|
12568
|
+
]),
|
|
12569
|
+
])
|
|
12570
|
+
}
|
|
12571
|
+
var time_itemvue_type_template_id_5871346c_staticRenderFns = []
|
|
12572
|
+
time_itemvue_type_template_id_5871346c_render._withStripped = true
|
|
12573
|
+
|
|
12574
|
+
|
|
12575
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/time-item.vue?vue&type=template&id=5871346c
|
|
12576
|
+
|
|
12577
|
+
// 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/timeline/src/time-item.vue?vue&type=script&lang=js
|
|
12578
|
+
|
|
12579
|
+
/* harmony default export */ var time_itemvue_type_script_lang_js = ({
|
|
12580
|
+
name: 'TimeItem',
|
|
12581
|
+
components: {
|
|
12582
|
+
FormView: form_view
|
|
12583
|
+
},
|
|
12584
|
+
props: {
|
|
12585
|
+
timestamp: String,
|
|
12586
|
+
leftWidth: {
|
|
12587
|
+
type: String,
|
|
12588
|
+
default: '200px'
|
|
12589
|
+
},
|
|
12590
|
+
hideTimestamp: {
|
|
12591
|
+
type: Boolean,
|
|
12592
|
+
default: false
|
|
12593
|
+
},
|
|
12594
|
+
placement: {
|
|
12595
|
+
type: String,
|
|
12596
|
+
default: 'bottom'
|
|
12597
|
+
},
|
|
12598
|
+
type: String,
|
|
12599
|
+
color: String,
|
|
12600
|
+
size: {
|
|
12601
|
+
type: String,
|
|
12602
|
+
default: 'normal'
|
|
12603
|
+
},
|
|
12604
|
+
icon: String,
|
|
12605
|
+
labelWidth: String,
|
|
12606
|
+
labelPosition: String,
|
|
12607
|
+
formItems: {
|
|
12608
|
+
type: Array,
|
|
12609
|
+
default: function _default() {
|
|
12610
|
+
return [];
|
|
12611
|
+
}
|
|
12612
|
+
},
|
|
12613
|
+
data: {
|
|
12614
|
+
type: Object,
|
|
12615
|
+
default: function _default() {
|
|
12616
|
+
return {};
|
|
12617
|
+
}
|
|
12618
|
+
}
|
|
12619
|
+
},
|
|
12620
|
+
computed: {
|
|
12621
|
+
itemDatas: function itemDatas() {
|
|
12622
|
+
return this.reverse ? this.items.data() : this.data;
|
|
12623
|
+
},
|
|
12624
|
+
formLayout: function formLayout() {
|
|
12625
|
+
return Object.assign({}, this.$attrs, {
|
|
12626
|
+
labelWidth: this.labelWidth,
|
|
12627
|
+
labelPosition: this.labelPosition,
|
|
12628
|
+
formModel: this.data,
|
|
12629
|
+
formItems: this.formItems
|
|
12630
|
+
});
|
|
12631
|
+
}
|
|
12632
|
+
}
|
|
12633
|
+
});
|
|
12634
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/time-item.vue?vue&type=script&lang=js
|
|
12635
|
+
/* harmony default export */ var src_time_itemvue_type_script_lang_js = (time_itemvue_type_script_lang_js);
|
|
12636
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/time-item.vue
|
|
12637
|
+
|
|
12638
|
+
|
|
12639
|
+
|
|
12640
|
+
|
|
12641
|
+
|
|
12642
|
+
/* normalize component */
|
|
12643
|
+
|
|
12644
|
+
var time_item_component = normalizeComponent(
|
|
12645
|
+
src_time_itemvue_type_script_lang_js,
|
|
12646
|
+
time_itemvue_type_template_id_5871346c_render,
|
|
12647
|
+
time_itemvue_type_template_id_5871346c_staticRenderFns,
|
|
12648
|
+
false,
|
|
12649
|
+
null,
|
|
12650
|
+
null,
|
|
12651
|
+
null
|
|
12652
|
+
|
|
12653
|
+
)
|
|
12654
|
+
|
|
12655
|
+
/* harmony default export */ var time_item = (time_item_component.exports);
|
|
12656
|
+
// 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/timeline/src/index.vue?vue&type=script&lang=js
|
|
12657
|
+
|
|
12658
|
+
/* harmony default export */ var timeline_srcvue_type_script_lang_js = ({
|
|
12659
|
+
name: "Timeline",
|
|
12660
|
+
components: {
|
|
12661
|
+
TimeItem: time_item
|
|
12662
|
+
},
|
|
12663
|
+
props: {
|
|
12664
|
+
reverse: {
|
|
12665
|
+
type: Boolean,
|
|
12666
|
+
default: false
|
|
12667
|
+
},
|
|
12668
|
+
type: {
|
|
12669
|
+
type: String,
|
|
12670
|
+
default: "table"
|
|
12671
|
+
},
|
|
12672
|
+
leftWidth: {
|
|
12673
|
+
type: String,
|
|
12674
|
+
default: "200px"
|
|
12675
|
+
},
|
|
12676
|
+
data: {
|
|
12677
|
+
type: Array,
|
|
12678
|
+
default: function _default() {
|
|
12679
|
+
return [];
|
|
12680
|
+
}
|
|
12681
|
+
},
|
|
12682
|
+
layout: {
|
|
12683
|
+
type: Object,
|
|
12684
|
+
default: function _default() {}
|
|
12685
|
+
}
|
|
12686
|
+
},
|
|
12687
|
+
computed: {
|
|
12688
|
+
itemDatas: function itemDatas() {
|
|
12689
|
+
return this.reverse ? this.items.data() : this.data;
|
|
12690
|
+
}
|
|
12691
|
+
}
|
|
12692
|
+
});
|
|
12693
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/index.vue?vue&type=script&lang=js
|
|
12694
|
+
/* harmony default export */ var components_timeline_srcvue_type_script_lang_js = (timeline_srcvue_type_script_lang_js);
|
|
12695
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/index.vue
|
|
12696
|
+
|
|
12697
|
+
|
|
12698
|
+
|
|
12699
|
+
|
|
12700
|
+
|
|
12701
|
+
/* normalize component */
|
|
12702
|
+
|
|
12703
|
+
var timeline_src_component = normalizeComponent(
|
|
12704
|
+
components_timeline_srcvue_type_script_lang_js,
|
|
12705
|
+
srcvue_type_template_id_34b55949_render,
|
|
12706
|
+
srcvue_type_template_id_34b55949_staticRenderFns,
|
|
12707
|
+
false,
|
|
12708
|
+
null,
|
|
12709
|
+
null,
|
|
12710
|
+
null
|
|
12711
|
+
|
|
12712
|
+
)
|
|
12713
|
+
|
|
12714
|
+
/* harmony default export */ var timeline_src = (timeline_src_component.exports);
|
|
12715
|
+
// CONCATENATED MODULE: ./src/components/timeline/index.js
|
|
12716
|
+
|
|
12717
|
+
|
|
12718
|
+
/* istanbul ignore next */
|
|
12719
|
+
timeline_src.install = function (Vue) {
|
|
12720
|
+
Vue.component(timeline_src.name, timeline_src);
|
|
12721
|
+
};
|
|
12722
|
+
/* harmony default export */ var timeline = (timeline_src);
|
|
11933
12723
|
// CONCATENATED MODULE: ./src/index.js
|
|
11934
12724
|
|
|
11935
12725
|
|
|
@@ -11950,10 +12740,11 @@ tree_line_src.install = function (Vue) {
|
|
|
11950
12740
|
|
|
11951
12741
|
|
|
11952
12742
|
|
|
12743
|
+
|
|
11953
12744
|
|
|
11954
12745
|
|
|
11955
12746
|
var API = index_;
|
|
11956
|
-
var components = [components_form, components_form_input, components_form_item, form_query, form_group, form_dialog, form_drawer, form_view, form_view_group, form_view_dialog, components_table, components_table_column, table_search, table_editable, table_operate, crud, formula, dialog, drawer, tree_line];
|
|
12747
|
+
var components = [components_form, components_form_input, components_form_item, form_query, form_group, form_dialog, form_drawer, form_view, form_view_group, form_view_dialog, components_table, components_table_column, table_search, table_editable, table_operate, crud, formula, dialog, drawer, tree_line, timeline];
|
|
11957
12748
|
var install = function install(Vue, opts) {
|
|
11958
12749
|
if (opts === void 0) {
|
|
11959
12750
|
opts = {};
|
|
@@ -11995,7 +12786,8 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
11995
12786
|
Formula: formula,
|
|
11996
12787
|
Dialog: dialog,
|
|
11997
12788
|
Drawer: drawer,
|
|
11998
|
-
TreeLine: tree_line
|
|
12789
|
+
TreeLine: tree_line,
|
|
12790
|
+
Timeline: timeline
|
|
11999
12791
|
});
|
|
12000
12792
|
|
|
12001
12793
|
/***/ })
|