@tripup-company/element-ui-extended 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/element-ui-extended.common.js +1514 -172
- package/dist/element-ui-extended.common.js.map +1 -1
- package/dist/element-ui-extended.css +1 -0
- package/dist/element-ui-extended.umd.js +1518 -176
- package/dist/element-ui-extended.umd.js.map +1 -1
- package/dist/element-ui-extended.umd.min.js +1 -1
- package/dist/element-ui-extended.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/App.vue +2 -7
- package/src/components/CreateForm/index.vue +97 -0
- package/src/components/EditableField/index.vue +185 -0
- package/src/components/NewField/index.vue +132 -0
- package/src/components/PartColumn/EditColumn.vue +95 -0
- package/src/components/PartColumn/NewColumn.vue +101 -0
- package/src/components/PartForm/index.vue +36 -0
- package/src/components/UpdateForm/index.vue +137 -0
- package/src/components/Test/index.vue +0 -22
|
@@ -1155,6 +1155,18 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
1155
1155
|
module.exports = {};
|
|
1156
1156
|
|
|
1157
1157
|
|
|
1158
|
+
/***/ }),
|
|
1159
|
+
|
|
1160
|
+
/***/ "408a":
|
|
1161
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1162
|
+
|
|
1163
|
+
var uncurryThis = __webpack_require__("e330");
|
|
1164
|
+
|
|
1165
|
+
// `thisNumberValue` abstract operation
|
|
1166
|
+
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
1167
|
+
module.exports = uncurryThis(1.0.valueOf);
|
|
1168
|
+
|
|
1169
|
+
|
|
1158
1170
|
/***/ }),
|
|
1159
1171
|
|
|
1160
1172
|
/***/ "428f":
|
|
@@ -1561,6 +1573,54 @@ module.exports = function (argument) {
|
|
|
1561
1573
|
};
|
|
1562
1574
|
|
|
1563
1575
|
|
|
1576
|
+
/***/ }),
|
|
1577
|
+
|
|
1578
|
+
/***/ "5899":
|
|
1579
|
+
/***/ (function(module, exports) {
|
|
1580
|
+
|
|
1581
|
+
// a string of all valid unicode whitespaces
|
|
1582
|
+
module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
1583
|
+
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
/***/ }),
|
|
1587
|
+
|
|
1588
|
+
/***/ "58a8":
|
|
1589
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1590
|
+
|
|
1591
|
+
var uncurryThis = __webpack_require__("e330");
|
|
1592
|
+
var requireObjectCoercible = __webpack_require__("1d80");
|
|
1593
|
+
var toString = __webpack_require__("577e");
|
|
1594
|
+
var whitespaces = __webpack_require__("5899");
|
|
1595
|
+
|
|
1596
|
+
var replace = uncurryThis(''.replace);
|
|
1597
|
+
var whitespace = '[' + whitespaces + ']';
|
|
1598
|
+
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
1599
|
+
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
1600
|
+
|
|
1601
|
+
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
1602
|
+
var createMethod = function (TYPE) {
|
|
1603
|
+
return function ($this) {
|
|
1604
|
+
var string = toString(requireObjectCoercible($this));
|
|
1605
|
+
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
1606
|
+
if (TYPE & 2) string = replace(string, rtrim, '');
|
|
1607
|
+
return string;
|
|
1608
|
+
};
|
|
1609
|
+
};
|
|
1610
|
+
|
|
1611
|
+
module.exports = {
|
|
1612
|
+
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
1613
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
1614
|
+
start: createMethod(1),
|
|
1615
|
+
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
1616
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
1617
|
+
end: createMethod(2),
|
|
1618
|
+
// `String.prototype.trim` method
|
|
1619
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1620
|
+
trim: createMethod(3)
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1623
|
+
|
|
1564
1624
|
/***/ }),
|
|
1565
1625
|
|
|
1566
1626
|
/***/ "5926":
|
|
@@ -1997,6 +2057,31 @@ function _typeof(obj) {
|
|
|
1997
2057
|
module.exports = _typeof;
|
|
1998
2058
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
1999
2059
|
|
|
2060
|
+
/***/ }),
|
|
2061
|
+
|
|
2062
|
+
/***/ "7156":
|
|
2063
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2064
|
+
|
|
2065
|
+
var isCallable = __webpack_require__("1626");
|
|
2066
|
+
var isObject = __webpack_require__("861d");
|
|
2067
|
+
var setPrototypeOf = __webpack_require__("d2bb");
|
|
2068
|
+
|
|
2069
|
+
// makes subclassing work correct for wrapped built-ins
|
|
2070
|
+
module.exports = function ($this, dummy, Wrapper) {
|
|
2071
|
+
var NewTarget, NewTargetPrototype;
|
|
2072
|
+
if (
|
|
2073
|
+
// it can work only with native `setPrototypeOf`
|
|
2074
|
+
setPrototypeOf &&
|
|
2075
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
2076
|
+
isCallable(NewTarget = dummy.constructor) &&
|
|
2077
|
+
NewTarget !== Wrapper &&
|
|
2078
|
+
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
|
2079
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
2080
|
+
) setPrototypeOf($this, NewTargetPrototype);
|
|
2081
|
+
return $this;
|
|
2082
|
+
};
|
|
2083
|
+
|
|
2084
|
+
|
|
2000
2085
|
/***/ }),
|
|
2001
2086
|
|
|
2002
2087
|
/***/ "7418":
|
|
@@ -2161,6 +2246,35 @@ module.exports = Object.create || function create(O, Properties) {
|
|
|
2161
2246
|
};
|
|
2162
2247
|
|
|
2163
2248
|
|
|
2249
|
+
/***/ }),
|
|
2250
|
+
|
|
2251
|
+
/***/ "7db0":
|
|
2252
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2253
|
+
|
|
2254
|
+
"use strict";
|
|
2255
|
+
|
|
2256
|
+
var $ = __webpack_require__("23e7");
|
|
2257
|
+
var $find = __webpack_require__("b727").find;
|
|
2258
|
+
var addToUnscopables = __webpack_require__("44d2");
|
|
2259
|
+
|
|
2260
|
+
var FIND = 'find';
|
|
2261
|
+
var SKIPS_HOLES = true;
|
|
2262
|
+
|
|
2263
|
+
// Shouldn't skip holes
|
|
2264
|
+
if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
|
2265
|
+
|
|
2266
|
+
// `Array.prototype.find` method
|
|
2267
|
+
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
2268
|
+
$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
2269
|
+
find: function find(callbackfn /* , that = undefined */) {
|
|
2270
|
+
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
2271
|
+
}
|
|
2272
|
+
});
|
|
2273
|
+
|
|
2274
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2275
|
+
addToUnscopables(FIND);
|
|
2276
|
+
|
|
2277
|
+
|
|
2164
2278
|
/***/ }),
|
|
2165
2279
|
|
|
2166
2280
|
/***/ "7dd0":
|
|
@@ -2495,6 +2609,20 @@ if (!isCallable(store.inspectSource)) {
|
|
|
2495
2609
|
module.exports = store.inspectSource;
|
|
2496
2610
|
|
|
2497
2611
|
|
|
2612
|
+
/***/ }),
|
|
2613
|
+
|
|
2614
|
+
/***/ "8b00":
|
|
2615
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2616
|
+
|
|
2617
|
+
// extracted by mini-css-extract-plugin
|
|
2618
|
+
|
|
2619
|
+
/***/ }),
|
|
2620
|
+
|
|
2621
|
+
/***/ "8bbf":
|
|
2622
|
+
/***/ (function(module, exports) {
|
|
2623
|
+
|
|
2624
|
+
module.exports = require("vue");
|
|
2625
|
+
|
|
2498
2626
|
/***/ }),
|
|
2499
2627
|
|
|
2500
2628
|
/***/ "90e3":
|
|
@@ -3985,6 +4113,102 @@ module.exports = function (METHOD_NAME, argument) {
|
|
|
3985
4113
|
};
|
|
3986
4114
|
|
|
3987
4115
|
|
|
4116
|
+
/***/ }),
|
|
4117
|
+
|
|
4118
|
+
/***/ "a9e3":
|
|
4119
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4120
|
+
|
|
4121
|
+
"use strict";
|
|
4122
|
+
|
|
4123
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
4124
|
+
var global = __webpack_require__("da84");
|
|
4125
|
+
var uncurryThis = __webpack_require__("e330");
|
|
4126
|
+
var isForced = __webpack_require__("94ca");
|
|
4127
|
+
var redefine = __webpack_require__("6eeb");
|
|
4128
|
+
var hasOwn = __webpack_require__("1a2d");
|
|
4129
|
+
var inheritIfRequired = __webpack_require__("7156");
|
|
4130
|
+
var isPrototypeOf = __webpack_require__("3a9b");
|
|
4131
|
+
var isSymbol = __webpack_require__("d9b5");
|
|
4132
|
+
var toPrimitive = __webpack_require__("c04e");
|
|
4133
|
+
var fails = __webpack_require__("d039");
|
|
4134
|
+
var getOwnPropertyNames = __webpack_require__("241c").f;
|
|
4135
|
+
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
|
4136
|
+
var defineProperty = __webpack_require__("9bf2").f;
|
|
4137
|
+
var thisNumberValue = __webpack_require__("408a");
|
|
4138
|
+
var trim = __webpack_require__("58a8").trim;
|
|
4139
|
+
|
|
4140
|
+
var NUMBER = 'Number';
|
|
4141
|
+
var NativeNumber = global[NUMBER];
|
|
4142
|
+
var NumberPrototype = NativeNumber.prototype;
|
|
4143
|
+
var TypeError = global.TypeError;
|
|
4144
|
+
var arraySlice = uncurryThis(''.slice);
|
|
4145
|
+
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
4146
|
+
|
|
4147
|
+
// `ToNumeric` abstract operation
|
|
4148
|
+
// https://tc39.es/ecma262/#sec-tonumeric
|
|
4149
|
+
var toNumeric = function (value) {
|
|
4150
|
+
var primValue = toPrimitive(value, 'number');
|
|
4151
|
+
return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
|
|
4152
|
+
};
|
|
4153
|
+
|
|
4154
|
+
// `ToNumber` abstract operation
|
|
4155
|
+
// https://tc39.es/ecma262/#sec-tonumber
|
|
4156
|
+
var toNumber = function (argument) {
|
|
4157
|
+
var it = toPrimitive(argument, 'number');
|
|
4158
|
+
var first, third, radix, maxCode, digits, length, index, code;
|
|
4159
|
+
if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');
|
|
4160
|
+
if (typeof it == 'string' && it.length > 2) {
|
|
4161
|
+
it = trim(it);
|
|
4162
|
+
first = charCodeAt(it, 0);
|
|
4163
|
+
if (first === 43 || first === 45) {
|
|
4164
|
+
third = charCodeAt(it, 2);
|
|
4165
|
+
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
|
|
4166
|
+
} else if (first === 48) {
|
|
4167
|
+
switch (charCodeAt(it, 1)) {
|
|
4168
|
+
case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
|
|
4169
|
+
case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
|
|
4170
|
+
default: return +it;
|
|
4171
|
+
}
|
|
4172
|
+
digits = arraySlice(it, 2);
|
|
4173
|
+
length = digits.length;
|
|
4174
|
+
for (index = 0; index < length; index++) {
|
|
4175
|
+
code = charCodeAt(digits, index);
|
|
4176
|
+
// parseInt parses a string to a first unavailable symbol
|
|
4177
|
+
// but ToNumber should return NaN if a string contains unavailable symbols
|
|
4178
|
+
if (code < 48 || code > maxCode) return NaN;
|
|
4179
|
+
} return parseInt(digits, radix);
|
|
4180
|
+
}
|
|
4181
|
+
} return +it;
|
|
4182
|
+
};
|
|
4183
|
+
|
|
4184
|
+
// `Number` constructor
|
|
4185
|
+
// https://tc39.es/ecma262/#sec-number-constructor
|
|
4186
|
+
if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
|
|
4187
|
+
var NumberWrapper = function Number(value) {
|
|
4188
|
+
var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
|
|
4189
|
+
var dummy = this;
|
|
4190
|
+
// check on 1..constructor(foo) case
|
|
4191
|
+
return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
|
|
4192
|
+
? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
|
|
4193
|
+
};
|
|
4194
|
+
for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
|
|
4195
|
+
// ES3:
|
|
4196
|
+
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
|
|
4197
|
+
// ES2015 (in case, if modules with ES2015 Number statics required before):
|
|
4198
|
+
'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
|
|
4199
|
+
// ESNext
|
|
4200
|
+
'fromString,range'
|
|
4201
|
+
).split(','), j = 0, key; keys.length > j; j++) {
|
|
4202
|
+
if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) {
|
|
4203
|
+
defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
|
|
4204
|
+
}
|
|
4205
|
+
}
|
|
4206
|
+
NumberWrapper.prototype = NumberPrototype;
|
|
4207
|
+
NumberPrototype.constructor = NumberWrapper;
|
|
4208
|
+
redefine(global, NUMBER, NumberWrapper);
|
|
4209
|
+
}
|
|
4210
|
+
|
|
4211
|
+
|
|
3988
4212
|
/***/ }),
|
|
3989
4213
|
|
|
3990
4214
|
/***/ "ac1f":
|
|
@@ -4396,6 +4620,17 @@ module.exports = function (input, pref) {
|
|
|
4396
4620
|
module.exports = false;
|
|
4397
4621
|
|
|
4398
4622
|
|
|
4623
|
+
/***/ }),
|
|
4624
|
+
|
|
4625
|
+
/***/ "c50b":
|
|
4626
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4627
|
+
|
|
4628
|
+
"use strict";
|
|
4629
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_EditColumn_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("8b00");
|
|
4630
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_EditColumn_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_EditColumn_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
4631
|
+
/* unused harmony reexport * */
|
|
4632
|
+
|
|
4633
|
+
|
|
4399
4634
|
/***/ }),
|
|
4400
4635
|
|
|
4401
4636
|
/***/ "c65b":
|
|
@@ -5770,8 +6005,13 @@ setToStringTag(global.Reflect, 'Reflect', true);
|
|
|
5770
6005
|
__webpack_require__.r(__webpack_exports__);
|
|
5771
6006
|
|
|
5772
6007
|
// EXPORTS
|
|
5773
|
-
__webpack_require__.d(__webpack_exports__, "Test", function() { return /* reexport */ Test; });
|
|
5774
6008
|
__webpack_require__.d(__webpack_exports__, "GenericTable", function() { return /* reexport */ GenericTable; });
|
|
6009
|
+
__webpack_require__.d(__webpack_exports__, "CreateForm", function() { return /* reexport */ CreateForm; });
|
|
6010
|
+
__webpack_require__.d(__webpack_exports__, "EditableField", function() { return /* reexport */ EditableField; });
|
|
6011
|
+
__webpack_require__.d(__webpack_exports__, "NewField", function() { return /* reexport */ NewField; });
|
|
6012
|
+
__webpack_require__.d(__webpack_exports__, "UpdateForm", function() { return /* reexport */ UpdateForm; });
|
|
6013
|
+
__webpack_require__.d(__webpack_exports__, "EditColumn", function() { return /* reexport */ EditColumn; });
|
|
6014
|
+
__webpack_require__.d(__webpack_exports__, "NewColumn", function() { return /* reexport */ NewColumn; });
|
|
5775
6015
|
|
|
5776
6016
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
5777
6017
|
// This file is imported into lib/wc client bundles.
|
|
@@ -5797,171 +6037,9 @@ if (typeof window !== 'undefined') {
|
|
|
5797
6037
|
// Indicate to webpack that this file can be concatenated
|
|
5798
6038
|
/* harmony default export */ var setPublicPath = (null);
|
|
5799
6039
|
|
|
5800
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"43ff4c05-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Test/index.vue?vue&type=template&id=16447ee5&scoped=true&
|
|
5801
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v(" Hi "+_vm._s(_vm.model.name)+" ")])}
|
|
5802
|
-
var staticRenderFns = []
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
// CONCATENATED MODULE: ./src/components/Test/index.vue?vue&type=template&id=16447ee5&scoped=true&
|
|
5806
|
-
|
|
5807
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
5808
|
-
function _classCallCheck(instance, Constructor) {
|
|
5809
|
-
if (!(instance instanceof Constructor)) {
|
|
5810
|
-
throw new TypeError("Cannot call a class as a function");
|
|
5811
|
-
}
|
|
5812
|
-
}
|
|
5813
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
5814
|
-
var es_function_name = __webpack_require__("b0c0");
|
|
5815
|
-
|
|
5816
|
-
// CONCATENATED MODULE: ./src/types/article.ts
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
var article_Article = function Article() {
|
|
5820
|
-
_classCallCheck(this, Article);
|
|
5821
|
-
|
|
5822
|
-
this.name = "article";
|
|
5823
|
-
};
|
|
5824
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Test/index.vue?vue&type=script&lang=js&
|
|
5825
|
-
//
|
|
5826
|
-
//
|
|
5827
|
-
//
|
|
5828
|
-
//
|
|
5829
|
-
//
|
|
5830
|
-
//
|
|
5831
|
-
|
|
5832
|
-
/* harmony default export */ var Testvue_type_script_lang_js_ = ({
|
|
5833
|
-
name: "Test",
|
|
5834
|
-
data: function data() {
|
|
5835
|
-
return {
|
|
5836
|
-
model: new article_Article()
|
|
5837
|
-
};
|
|
5838
|
-
}
|
|
5839
|
-
});
|
|
5840
|
-
// CONCATENATED MODULE: ./src/components/Test/index.vue?vue&type=script&lang=js&
|
|
5841
|
-
/* harmony default export */ var components_Testvue_type_script_lang_js_ = (Testvue_type_script_lang_js_);
|
|
5842
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
5843
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
5844
|
-
|
|
5845
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
5846
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
5847
|
-
// be included in the final webpack user bundle.
|
|
5848
|
-
|
|
5849
|
-
function normalizeComponent (
|
|
5850
|
-
scriptExports,
|
|
5851
|
-
render,
|
|
5852
|
-
staticRenderFns,
|
|
5853
|
-
functionalTemplate,
|
|
5854
|
-
injectStyles,
|
|
5855
|
-
scopeId,
|
|
5856
|
-
moduleIdentifier, /* server only */
|
|
5857
|
-
shadowMode /* vue-cli only */
|
|
5858
|
-
) {
|
|
5859
|
-
// Vue.extend constructor export interop
|
|
5860
|
-
var options = typeof scriptExports === 'function'
|
|
5861
|
-
? scriptExports.options
|
|
5862
|
-
: scriptExports
|
|
5863
|
-
|
|
5864
|
-
// render functions
|
|
5865
|
-
if (render) {
|
|
5866
|
-
options.render = render
|
|
5867
|
-
options.staticRenderFns = staticRenderFns
|
|
5868
|
-
options._compiled = true
|
|
5869
|
-
}
|
|
5870
|
-
|
|
5871
|
-
// functional template
|
|
5872
|
-
if (functionalTemplate) {
|
|
5873
|
-
options.functional = true
|
|
5874
|
-
}
|
|
5875
|
-
|
|
5876
|
-
// scopedId
|
|
5877
|
-
if (scopeId) {
|
|
5878
|
-
options._scopeId = 'data-v-' + scopeId
|
|
5879
|
-
}
|
|
5880
|
-
|
|
5881
|
-
var hook
|
|
5882
|
-
if (moduleIdentifier) { // server build
|
|
5883
|
-
hook = function (context) {
|
|
5884
|
-
// 2.3 injection
|
|
5885
|
-
context =
|
|
5886
|
-
context || // cached call
|
|
5887
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
5888
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
5889
|
-
// 2.2 with runInNewContext: true
|
|
5890
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
5891
|
-
context = __VUE_SSR_CONTEXT__
|
|
5892
|
-
}
|
|
5893
|
-
// inject component styles
|
|
5894
|
-
if (injectStyles) {
|
|
5895
|
-
injectStyles.call(this, context)
|
|
5896
|
-
}
|
|
5897
|
-
// register component module identifier for async chunk inferrence
|
|
5898
|
-
if (context && context._registeredComponents) {
|
|
5899
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
5900
|
-
}
|
|
5901
|
-
}
|
|
5902
|
-
// used by ssr in case component is cached and beforeCreate
|
|
5903
|
-
// never gets called
|
|
5904
|
-
options._ssrRegister = hook
|
|
5905
|
-
} else if (injectStyles) {
|
|
5906
|
-
hook = shadowMode
|
|
5907
|
-
? function () {
|
|
5908
|
-
injectStyles.call(
|
|
5909
|
-
this,
|
|
5910
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
5911
|
-
)
|
|
5912
|
-
}
|
|
5913
|
-
: injectStyles
|
|
5914
|
-
}
|
|
5915
|
-
|
|
5916
|
-
if (hook) {
|
|
5917
|
-
if (options.functional) {
|
|
5918
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
5919
|
-
// go through the normalizer
|
|
5920
|
-
options._injectStyles = hook
|
|
5921
|
-
// register for functional component in vue file
|
|
5922
|
-
var originalRender = options.render
|
|
5923
|
-
options.render = function renderWithStyleInjection (h, context) {
|
|
5924
|
-
hook.call(context)
|
|
5925
|
-
return originalRender(h, context)
|
|
5926
|
-
}
|
|
5927
|
-
} else {
|
|
5928
|
-
// inject component registration as beforeCreate hook
|
|
5929
|
-
var existing = options.beforeCreate
|
|
5930
|
-
options.beforeCreate = existing
|
|
5931
|
-
? [].concat(existing, hook)
|
|
5932
|
-
: [hook]
|
|
5933
|
-
}
|
|
5934
|
-
}
|
|
5935
|
-
|
|
5936
|
-
return {
|
|
5937
|
-
exports: scriptExports,
|
|
5938
|
-
options: options
|
|
5939
|
-
}
|
|
5940
|
-
}
|
|
5941
|
-
|
|
5942
|
-
// CONCATENATED MODULE: ./src/components/Test/index.vue
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
/* normalize component */
|
|
5949
|
-
|
|
5950
|
-
var component = normalizeComponent(
|
|
5951
|
-
components_Testvue_type_script_lang_js_,
|
|
5952
|
-
render,
|
|
5953
|
-
staticRenderFns,
|
|
5954
|
-
false,
|
|
5955
|
-
null,
|
|
5956
|
-
"16447ee5",
|
|
5957
|
-
null
|
|
5958
|
-
|
|
5959
|
-
)
|
|
5960
|
-
|
|
5961
|
-
/* harmony default export */ var Test = (component.exports);
|
|
5962
6040
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"43ff4c05-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/GenericTable/index.vue?vue&type=template&id=43420de9&scoped=true&
|
|
5963
|
-
var
|
|
5964
|
-
var
|
|
6041
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"generic-table"},[_vm._t("default",function(){return [(_vm.showTopFilter)?_c('el-row',{attrs:{"gutter":20}},[_c('generic-top-filter',{ref:"genericTopFilter"})],1):_vm._e(),_c('el-row',{attrs:{"gutter":20}},[_c('el-col',{attrs:{"span":18}},[_c('generic-rows'),_c('el-row',[_c('el-col',[_c('generic-paginator')],1)],1)],1),_c('el-col',{attrs:{"span":6}},[_c('generic-filter',{ref:"genericFilter"})],1)],1)]})],2)}
|
|
6042
|
+
var staticRenderFns = []
|
|
5965
6043
|
|
|
5966
6044
|
|
|
5967
6045
|
// CONCATENATED MODULE: ./src/components/GenericTable/index.vue?vue&type=template&id=43420de9&scoped=true&
|
|
@@ -6109,8 +6187,11 @@ var web_dom_collections_iterator = __webpack_require__("ddb0");
|
|
|
6109
6187
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
6110
6188
|
var es_array_slice = __webpack_require__("fb6a");
|
|
6111
6189
|
|
|
6112
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.
|
|
6113
|
-
var
|
|
6190
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
6191
|
+
var es_function_name = __webpack_require__("b0c0");
|
|
6192
|
+
|
|
6193
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
6194
|
+
var es_array_from = __webpack_require__("a630");
|
|
6114
6195
|
|
|
6115
6196
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
6116
6197
|
var es_regexp_exec = __webpack_require__("ac1f");
|
|
@@ -6265,6 +6346,106 @@ var GenericPaginatorvue_type_template_id_63b76916_scoped_true_staticRenderFns =
|
|
|
6265
6346
|
});
|
|
6266
6347
|
// CONCATENATED MODULE: ./src/components/GenericTable/GenericPaginator.vue?vue&type=script&lang=js&
|
|
6267
6348
|
/* harmony default export */ var GenericTable_GenericPaginatorvue_type_script_lang_js_ = (GenericPaginatorvue_type_script_lang_js_);
|
|
6349
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
6350
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
6351
|
+
|
|
6352
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
6353
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
6354
|
+
// be included in the final webpack user bundle.
|
|
6355
|
+
|
|
6356
|
+
function normalizeComponent (
|
|
6357
|
+
scriptExports,
|
|
6358
|
+
render,
|
|
6359
|
+
staticRenderFns,
|
|
6360
|
+
functionalTemplate,
|
|
6361
|
+
injectStyles,
|
|
6362
|
+
scopeId,
|
|
6363
|
+
moduleIdentifier, /* server only */
|
|
6364
|
+
shadowMode /* vue-cli only */
|
|
6365
|
+
) {
|
|
6366
|
+
// Vue.extend constructor export interop
|
|
6367
|
+
var options = typeof scriptExports === 'function'
|
|
6368
|
+
? scriptExports.options
|
|
6369
|
+
: scriptExports
|
|
6370
|
+
|
|
6371
|
+
// render functions
|
|
6372
|
+
if (render) {
|
|
6373
|
+
options.render = render
|
|
6374
|
+
options.staticRenderFns = staticRenderFns
|
|
6375
|
+
options._compiled = true
|
|
6376
|
+
}
|
|
6377
|
+
|
|
6378
|
+
// functional template
|
|
6379
|
+
if (functionalTemplate) {
|
|
6380
|
+
options.functional = true
|
|
6381
|
+
}
|
|
6382
|
+
|
|
6383
|
+
// scopedId
|
|
6384
|
+
if (scopeId) {
|
|
6385
|
+
options._scopeId = 'data-v-' + scopeId
|
|
6386
|
+
}
|
|
6387
|
+
|
|
6388
|
+
var hook
|
|
6389
|
+
if (moduleIdentifier) { // server build
|
|
6390
|
+
hook = function (context) {
|
|
6391
|
+
// 2.3 injection
|
|
6392
|
+
context =
|
|
6393
|
+
context || // cached call
|
|
6394
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
6395
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
6396
|
+
// 2.2 with runInNewContext: true
|
|
6397
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
6398
|
+
context = __VUE_SSR_CONTEXT__
|
|
6399
|
+
}
|
|
6400
|
+
// inject component styles
|
|
6401
|
+
if (injectStyles) {
|
|
6402
|
+
injectStyles.call(this, context)
|
|
6403
|
+
}
|
|
6404
|
+
// register component module identifier for async chunk inferrence
|
|
6405
|
+
if (context && context._registeredComponents) {
|
|
6406
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
6407
|
+
}
|
|
6408
|
+
}
|
|
6409
|
+
// used by ssr in case component is cached and beforeCreate
|
|
6410
|
+
// never gets called
|
|
6411
|
+
options._ssrRegister = hook
|
|
6412
|
+
} else if (injectStyles) {
|
|
6413
|
+
hook = shadowMode
|
|
6414
|
+
? function () {
|
|
6415
|
+
injectStyles.call(
|
|
6416
|
+
this,
|
|
6417
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
6418
|
+
)
|
|
6419
|
+
}
|
|
6420
|
+
: injectStyles
|
|
6421
|
+
}
|
|
6422
|
+
|
|
6423
|
+
if (hook) {
|
|
6424
|
+
if (options.functional) {
|
|
6425
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
6426
|
+
// go through the normalizer
|
|
6427
|
+
options._injectStyles = hook
|
|
6428
|
+
// register for functional component in vue file
|
|
6429
|
+
var originalRender = options.render
|
|
6430
|
+
options.render = function renderWithStyleInjection (h, context) {
|
|
6431
|
+
hook.call(context)
|
|
6432
|
+
return originalRender(h, context)
|
|
6433
|
+
}
|
|
6434
|
+
} else {
|
|
6435
|
+
// inject component registration as beforeCreate hook
|
|
6436
|
+
var existing = options.beforeCreate
|
|
6437
|
+
options.beforeCreate = existing
|
|
6438
|
+
? [].concat(existing, hook)
|
|
6439
|
+
: [hook]
|
|
6440
|
+
}
|
|
6441
|
+
}
|
|
6442
|
+
|
|
6443
|
+
return {
|
|
6444
|
+
exports: scriptExports,
|
|
6445
|
+
options: options
|
|
6446
|
+
}
|
|
6447
|
+
}
|
|
6448
|
+
|
|
6268
6449
|
// CONCATENATED MODULE: ./src/components/GenericTable/GenericPaginator.vue
|
|
6269
6450
|
|
|
6270
6451
|
|
|
@@ -6273,7 +6454,7 @@ var GenericPaginatorvue_type_template_id_63b76916_scoped_true_staticRenderFns =
|
|
|
6273
6454
|
|
|
6274
6455
|
/* normalize component */
|
|
6275
6456
|
|
|
6276
|
-
var
|
|
6457
|
+
var component = normalizeComponent(
|
|
6277
6458
|
GenericTable_GenericPaginatorvue_type_script_lang_js_,
|
|
6278
6459
|
GenericPaginatorvue_type_template_id_63b76916_scoped_true_render,
|
|
6279
6460
|
GenericPaginatorvue_type_template_id_63b76916_scoped_true_staticRenderFns,
|
|
@@ -6284,7 +6465,7 @@ var GenericPaginator_component = normalizeComponent(
|
|
|
6284
6465
|
|
|
6285
6466
|
)
|
|
6286
6467
|
|
|
6287
|
-
/* harmony default export */ var GenericPaginator = (
|
|
6468
|
+
/* harmony default export */ var GenericPaginator = (component.exports);
|
|
6288
6469
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"43ff4c05-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/GenericTable/GenericFilter.vue?vue&type=template&id=86acd82e&
|
|
6289
6470
|
var GenericFiltervue_type_template_id_86acd82e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',[_vm._l((_vm.data.filters),function(column){return _c('filter-row',{key:column.name,attrs:{"column":column,"search":_vm.search[column.name]}})}),_c('el-button',{on:{"click":_vm.applyFilter}},[_vm._v("Filter")]),_c('el-button',{on:{"click":_vm.resetFilter}},[_vm._v("Reset filter")])],2)}
|
|
6290
6471
|
var GenericFiltervue_type_template_id_86acd82e_staticRenderFns = []
|
|
@@ -6434,6 +6615,12 @@ var FilterRow_component = normalizeComponent(
|
|
|
6434
6615
|
)
|
|
6435
6616
|
|
|
6436
6617
|
/* harmony default export */ var FilterRow = (FilterRow_component.exports);
|
|
6618
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
6619
|
+
function _classCallCheck(instance, Constructor) {
|
|
6620
|
+
if (!(instance instanceof Constructor)) {
|
|
6621
|
+
throw new TypeError("Cannot call a class as a function");
|
|
6622
|
+
}
|
|
6623
|
+
}
|
|
6437
6624
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
6438
6625
|
function _defineProperties(target, props) {
|
|
6439
6626
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -7655,8 +7842,8 @@ var list_query_service_ListQueryService = /*#__PURE__*/function () {
|
|
|
7655
7842
|
|
|
7656
7843
|
var GenericTable_component = normalizeComponent(
|
|
7657
7844
|
components_GenericTablevue_type_script_lang_js_,
|
|
7658
|
-
|
|
7659
|
-
|
|
7845
|
+
render,
|
|
7846
|
+
staticRenderFns,
|
|
7660
7847
|
false,
|
|
7661
7848
|
null,
|
|
7662
7849
|
"43420de9",
|
|
@@ -7665,7 +7852,1162 @@ var GenericTable_component = normalizeComponent(
|
|
|
7665
7852
|
)
|
|
7666
7853
|
|
|
7667
7854
|
/* harmony default export */ var GenericTable = (GenericTable_component.exports);
|
|
7668
|
-
// CONCATENATED MODULE: ./src/index.
|
|
7855
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"43ff4c05-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CreateForm/index.vue?vue&type=template&id=3a62da0d&
|
|
7856
|
+
var CreateFormvue_type_template_id_3a62da0d_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',{ref:"form",staticClass:"m-w-1200",attrs:{"rules":_vm.config.rules,"model":_vm.formLocal,"label-position":"left","label-width":"140px"}},[_c('el-card',{attrs:{"shadow":"always"}},[_c('div',{staticClass:"clearfix",attrs:{"slot":"header"},slot:"header"},[_c('el-row',{attrs:{"type":"flex","justify":"space-between"}},[_c('el-col',{staticClass:"flex align-center justify-start",attrs:{"span":6}},[_c('h3',{staticClass:"m-b-0"},[_vm._v("New "+_vm._s(_vm.formLocal.object))])]),_c('el-col',{staticClass:"flex align-center justify-end",attrs:{"span":6}},[_c('el-button',{staticClass:"fr",attrs:{"type":"success"},on:{"click":_vm.saveForm}},[_vm._v("Save")])],1)],1)],1),_c('el-row',{attrs:{"gutter":20}},[_c('el-col',{attrs:{"xl":_vm.colResolutionLg.xl,"lg":_vm.colResolutionLg.lg,"md":_vm.colResolutionLg.md,"sm":_vm.colResolutionLg.sm,"xs":_vm.colResolutionLg.xs}},[_c('new-column',{attrs:{"data":_vm.formLocal,"fields":_vm.config.formFields,"errors":_vm.errors}})],1)],1)],1)],1)}
|
|
7857
|
+
var CreateFormvue_type_template_id_3a62da0d_staticRenderFns = []
|
|
7858
|
+
|
|
7859
|
+
|
|
7860
|
+
// CONCATENATED MODULE: ./src/components/CreateForm/index.vue?vue&type=template&id=3a62da0d&
|
|
7861
|
+
|
|
7862
|
+
// CONCATENATED MODULE: ./src/services/resolutions.js
|
|
7863
|
+
var resolutions = {
|
|
7864
|
+
quarterResolution: {
|
|
7865
|
+
xl: 6,
|
|
7866
|
+
lg: 6,
|
|
7867
|
+
md: 6,
|
|
7868
|
+
sm: 6,
|
|
7869
|
+
xs: 6
|
|
7870
|
+
},
|
|
7871
|
+
halfResolution: {
|
|
7872
|
+
xl: 12,
|
|
7873
|
+
lg: 12,
|
|
7874
|
+
md: 12,
|
|
7875
|
+
sm: 12,
|
|
7876
|
+
xs: 12
|
|
7877
|
+
},
|
|
7878
|
+
fullFromSm: {
|
|
7879
|
+
xl: 12,
|
|
7880
|
+
lg: 12,
|
|
7881
|
+
md: 12,
|
|
7882
|
+
sm: 24,
|
|
7883
|
+
xs: 24
|
|
7884
|
+
},
|
|
7885
|
+
fullFromLg: {
|
|
7886
|
+
xl: 12,
|
|
7887
|
+
lg: 24,
|
|
7888
|
+
md: 24,
|
|
7889
|
+
sm: 24,
|
|
7890
|
+
xs: 24
|
|
7891
|
+
},
|
|
7892
|
+
fullResolution: {
|
|
7893
|
+
xl: 24,
|
|
7894
|
+
lg: 24,
|
|
7895
|
+
md: 24,
|
|
7896
|
+
sm: 24,
|
|
7897
|
+
xs: 24
|
|
7898
|
+
}
|
|
7899
|
+
};
|
|
7900
|
+
function getResolution(size) {
|
|
7901
|
+
return resolutions[size];
|
|
7902
|
+
}
|
|
7903
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"43ff4c05-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PartColumn/NewColumn.vue?vue&type=template&id=05207afe&
|
|
7904
|
+
var NewColumnvue_type_template_id_05207afe_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-col',{staticClass:"p-r-5 p-l-5",attrs:{"xl":_vm.colResolution.lg,"lg":_vm.colResolution.lg,"md":_vm.colResolution.md,"sm":_vm.colResolution.sm,"xs":_vm.colResolution.xs}},[_vm._l((_vm.fields),function(field){return [_c('el-col',{key:field.prop,staticClass:"p-r-5 p-l-5",attrs:{"xl":_vm.fieldResolution(field, 'xl'),"lg":_vm.fieldResolution(field, 'lg'),"md":_vm.fieldResolution(field, 'md'),"sm":_vm.fieldResolution(field, 'sm'),"xs":_vm.fieldResolution(field, 'xs')}},[_c('el-form-item',{attrs:{"prop":_vm.propPrefix + field.prop,"label":field.label,"error":_vm.errors[field.prop] ? _vm.errors[field.prop][0] : ''}},[_c('new-field',{attrs:{"type":field.selectList ? 'select' : (field.type? field.type :'input'),"select-list":field.selectList ? field.selectList : [],"select-multiple":field.selectMultiple,"select-key":field.selectList ? (field.selectKey ? field.selectKey : 'value' ) : '',"select-label":field.selectList ? (field.selectLabel ? field.selectLabel : 'name' ) : '',"select-value":field.selectList ? (field.selectValue ? field.selectValue : 'value' ) : '',"field":field.prop,"precision":field.precision ? field.precision : 0,"remote-method":field.remoteMethod ? field.remoteMethod : null,"filterable":field.filterable ? field.filterable : null},on:{"editable:save":_vm.updateValue},model:{value:(_vm.dataModel[field.prop]),callback:function ($$v) {_vm.$set(_vm.dataModel, field.prop, $$v)},expression:"dataModel[field.prop]"}})],1)],1)]})],2)}
|
|
7905
|
+
var NewColumnvue_type_template_id_05207afe_staticRenderFns = []
|
|
7906
|
+
|
|
7907
|
+
|
|
7908
|
+
// CONCATENATED MODULE: ./src/components/PartColumn/NewColumn.vue?vue&type=template&id=05207afe&
|
|
7909
|
+
|
|
7910
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
7911
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
7912
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
7913
|
+
|
|
7914
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"43ff4c05-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/NewField/index.vue?vue&type=template&id=03167641&
|
|
7915
|
+
var NewFieldvue_type_template_id_03167641_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"editable-cell"},[_c('div',{staticClass:"editable-cell__editor"},[_vm._t("default",function(){return [_c('el-col',{attrs:{"span":24}},[(_vm.type === 'checkbox')?_c('el-checkbox',{model:{value:(_vm.dataModel),callback:function ($$v) {_vm.dataModel=$$v},expression:"dataModel"}}):(_vm.type === 'select')?_c('el-select',{staticClass:"w-100",attrs:{"filterable":_vm.filterable,"loading":_vm.loading,"remote":_vm.remote,"remote-method":_vm.remoteMethodHandler,"span":24,"clearable":"","placeholder":"Select","multiple":_vm.selectMultiple},model:{value:(_vm.dataModel),callback:function ($$v) {_vm.dataModel=$$v},expression:"dataModel"}},_vm._l((_vm.selectListLocal),function(item){return _c('el-option',{key:item[_vm.selectKey],attrs:{"label":item[_vm.selectLabel],"value":item[_vm.selectValue]}})}),1):(_vm.type === 'date-picker')?_c('el-date-picker',{staticClass:"w-100",attrs:{"format":"dd.MM.yyyy","value-format":"yyyy-MM-dd","type":"date","placeholder":"Pick a day"},model:{value:(_vm.dataModel),callback:function ($$v) {_vm.dataModel=$$v},expression:"dataModel"}}):(_vm.type === 'number')?_c('el-input-number',{staticClass:"w-100",attrs:{"step":_vm.step,"precision":_vm.precision},model:{value:(_vm.dataModel),callback:function ($$v) {_vm.dataModel=$$v},expression:"dataModel"}}):_c('el-input',{staticClass:"editable-cell__input",attrs:{"type":_vm.type,"placeholder":_vm.placeholder},model:{value:(_vm.dataModel),callback:function ($$v) {_vm.dataModel=$$v},expression:"dataModel"}})],1)]})],2)])}
|
|
7916
|
+
var NewFieldvue_type_template_id_03167641_staticRenderFns = []
|
|
7917
|
+
|
|
7918
|
+
|
|
7919
|
+
// CONCATENATED MODULE: ./src/components/NewField/index.vue?vue&type=template&id=03167641&
|
|
7920
|
+
|
|
7921
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
7922
|
+
var es_number_constructor = __webpack_require__("a9e3");
|
|
7923
|
+
|
|
7924
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/NewField/index.vue?vue&type=script&lang=js&
|
|
7925
|
+
|
|
7926
|
+
|
|
7927
|
+
|
|
7928
|
+
//
|
|
7929
|
+
//
|
|
7930
|
+
//
|
|
7931
|
+
//
|
|
7932
|
+
//
|
|
7933
|
+
//
|
|
7934
|
+
//
|
|
7935
|
+
//
|
|
7936
|
+
//
|
|
7937
|
+
//
|
|
7938
|
+
//
|
|
7939
|
+
//
|
|
7940
|
+
//
|
|
7941
|
+
//
|
|
7942
|
+
//
|
|
7943
|
+
//
|
|
7944
|
+
//
|
|
7945
|
+
//
|
|
7946
|
+
//
|
|
7947
|
+
//
|
|
7948
|
+
//
|
|
7949
|
+
//
|
|
7950
|
+
//
|
|
7951
|
+
//
|
|
7952
|
+
//
|
|
7953
|
+
//
|
|
7954
|
+
//
|
|
7955
|
+
//
|
|
7956
|
+
//
|
|
7957
|
+
/* harmony default export */ var NewFieldvue_type_script_lang_js_ = ({
|
|
7958
|
+
name: 'NewField',
|
|
7959
|
+
props: {
|
|
7960
|
+
field: {
|
|
7961
|
+
type: [String, Boolean],
|
|
7962
|
+
default: ''
|
|
7963
|
+
},
|
|
7964
|
+
filterable: {
|
|
7965
|
+
type: Boolean,
|
|
7966
|
+
default: false
|
|
7967
|
+
},
|
|
7968
|
+
value: {
|
|
7969
|
+
type: [String, Boolean, Date, Number, Array],
|
|
7970
|
+
default: ''
|
|
7971
|
+
},
|
|
7972
|
+
type: {
|
|
7973
|
+
type: String,
|
|
7974
|
+
default: 'input'
|
|
7975
|
+
},
|
|
7976
|
+
placeholder: {
|
|
7977
|
+
type: String,
|
|
7978
|
+
default: ''
|
|
7979
|
+
},
|
|
7980
|
+
selectList: {
|
|
7981
|
+
type: Array,
|
|
7982
|
+
default: function _default() {
|
|
7983
|
+
return [];
|
|
7984
|
+
}
|
|
7985
|
+
},
|
|
7986
|
+
selectMultiple: {
|
|
7987
|
+
type: Boolean,
|
|
7988
|
+
default: false
|
|
7989
|
+
},
|
|
7990
|
+
selectKey: {
|
|
7991
|
+
type: String,
|
|
7992
|
+
default: ''
|
|
7993
|
+
},
|
|
7994
|
+
selectLabel: {
|
|
7995
|
+
type: String,
|
|
7996
|
+
default: ''
|
|
7997
|
+
},
|
|
7998
|
+
selectValue: {
|
|
7999
|
+
type: String,
|
|
8000
|
+
default: ''
|
|
8001
|
+
},
|
|
8002
|
+
precision: {
|
|
8003
|
+
type: Number,
|
|
8004
|
+
default: 0
|
|
8005
|
+
},
|
|
8006
|
+
step: {
|
|
8007
|
+
type: Number,
|
|
8008
|
+
default: 1
|
|
8009
|
+
},
|
|
8010
|
+
remoteMethod: {
|
|
8011
|
+
type: Object,
|
|
8012
|
+
default: null
|
|
8013
|
+
}
|
|
8014
|
+
},
|
|
8015
|
+
data: function data() {
|
|
8016
|
+
return {
|
|
8017
|
+
loading: false,
|
|
8018
|
+
selectListLocal: [],
|
|
8019
|
+
dataModel: window._.cloneDeep(this.value)
|
|
8020
|
+
};
|
|
8021
|
+
},
|
|
8022
|
+
computed: {
|
|
8023
|
+
remote: {
|
|
8024
|
+
get: function get() {
|
|
8025
|
+
return this.remoteMethod !== null;
|
|
8026
|
+
}
|
|
8027
|
+
},
|
|
8028
|
+
remoteMethodHandler: {
|
|
8029
|
+
get: function get() {
|
|
8030
|
+
if (this.remoteMethod !== null) {
|
|
8031
|
+
return this.remoteCall;
|
|
8032
|
+
}
|
|
8033
|
+
|
|
8034
|
+
return null;
|
|
8035
|
+
}
|
|
8036
|
+
}
|
|
8037
|
+
},
|
|
8038
|
+
watch: {
|
|
8039
|
+
dataModel: function dataModel() {
|
|
8040
|
+
this.$emit('editable:save', {
|
|
8041
|
+
'field': this.field,
|
|
8042
|
+
'value': this.dataModel
|
|
8043
|
+
});
|
|
8044
|
+
},
|
|
8045
|
+
value: function value() {
|
|
8046
|
+
this.dataModel = this._.cloneDeep(this.value);
|
|
8047
|
+
}
|
|
8048
|
+
},
|
|
8049
|
+
mounted: function mounted() {
|
|
8050
|
+
this.selectListLocal = this.selectList;
|
|
8051
|
+
},
|
|
8052
|
+
methods: {
|
|
8053
|
+
remoteCall: function remoteCall(query) {
|
|
8054
|
+
var _this = this;
|
|
8055
|
+
|
|
8056
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
8057
|
+
var response;
|
|
8058
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
8059
|
+
while (1) {
|
|
8060
|
+
switch (_context.prev = _context.next) {
|
|
8061
|
+
case 0:
|
|
8062
|
+
_this.loading = true;
|
|
8063
|
+
_context.next = 3;
|
|
8064
|
+
return _this.remoteMethod.all({
|
|
8065
|
+
search: _this.selectLabel + ':' + query,
|
|
8066
|
+
searchFields: _this.selectLabel + ':like'
|
|
8067
|
+
});
|
|
8068
|
+
|
|
8069
|
+
case 3:
|
|
8070
|
+
response = _context.sent;
|
|
8071
|
+
_this.selectListLocal = response.data;
|
|
8072
|
+
_this.loading = false;
|
|
8073
|
+
|
|
8074
|
+
case 6:
|
|
8075
|
+
case "end":
|
|
8076
|
+
return _context.stop();
|
|
8077
|
+
}
|
|
8078
|
+
}
|
|
8079
|
+
}, _callee);
|
|
8080
|
+
}))();
|
|
8081
|
+
}
|
|
8082
|
+
}
|
|
8083
|
+
});
|
|
8084
|
+
// CONCATENATED MODULE: ./src/components/NewField/index.vue?vue&type=script&lang=js&
|
|
8085
|
+
/* harmony default export */ var components_NewFieldvue_type_script_lang_js_ = (NewFieldvue_type_script_lang_js_);
|
|
8086
|
+
// CONCATENATED MODULE: ./src/components/NewField/index.vue
|
|
8087
|
+
|
|
8088
|
+
|
|
8089
|
+
|
|
8090
|
+
|
|
8091
|
+
|
|
8092
|
+
/* normalize component */
|
|
8093
|
+
|
|
8094
|
+
var NewField_component = normalizeComponent(
|
|
8095
|
+
components_NewFieldvue_type_script_lang_js_,
|
|
8096
|
+
NewFieldvue_type_template_id_03167641_render,
|
|
8097
|
+
NewFieldvue_type_template_id_03167641_staticRenderFns,
|
|
8098
|
+
false,
|
|
8099
|
+
null,
|
|
8100
|
+
null,
|
|
8101
|
+
null
|
|
8102
|
+
|
|
8103
|
+
)
|
|
8104
|
+
|
|
8105
|
+
/* harmony default export */ var NewField = (NewField_component.exports);
|
|
8106
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PartColumn/NewColumn.vue?vue&type=script&lang=js&
|
|
8107
|
+
//
|
|
8108
|
+
//
|
|
8109
|
+
//
|
|
8110
|
+
//
|
|
8111
|
+
//
|
|
8112
|
+
//
|
|
8113
|
+
//
|
|
8114
|
+
//
|
|
8115
|
+
//
|
|
8116
|
+
//
|
|
8117
|
+
//
|
|
8118
|
+
//
|
|
8119
|
+
//
|
|
8120
|
+
//
|
|
8121
|
+
//
|
|
8122
|
+
//
|
|
8123
|
+
//
|
|
8124
|
+
//
|
|
8125
|
+
//
|
|
8126
|
+
//
|
|
8127
|
+
//
|
|
8128
|
+
//
|
|
8129
|
+
//
|
|
8130
|
+
//
|
|
8131
|
+
//
|
|
8132
|
+
//
|
|
8133
|
+
//
|
|
8134
|
+
//
|
|
8135
|
+
//
|
|
8136
|
+
//
|
|
8137
|
+
//
|
|
8138
|
+
//
|
|
8139
|
+
//
|
|
8140
|
+
|
|
8141
|
+
|
|
8142
|
+
|
|
8143
|
+
/* harmony default export */ var NewColumnvue_type_script_lang_js_ = ({
|
|
8144
|
+
name: 'PartColumnNew',
|
|
8145
|
+
components: {
|
|
8146
|
+
NewField: NewField
|
|
8147
|
+
},
|
|
8148
|
+
props: {
|
|
8149
|
+
colResolution: {
|
|
8150
|
+
type: Object,
|
|
8151
|
+
default: function _default() {
|
|
8152
|
+
return getResolution('fullResolution');
|
|
8153
|
+
}
|
|
8154
|
+
},
|
|
8155
|
+
colInnerResolution: {
|
|
8156
|
+
type: Object,
|
|
8157
|
+
default: function _default() {
|
|
8158
|
+
return getResolution('fullResolution');
|
|
8159
|
+
}
|
|
8160
|
+
},
|
|
8161
|
+
propPrefix: {
|
|
8162
|
+
type: String,
|
|
8163
|
+
default: ''
|
|
8164
|
+
},
|
|
8165
|
+
columnName: {
|
|
8166
|
+
type: String,
|
|
8167
|
+
default: ''
|
|
8168
|
+
},
|
|
8169
|
+
fields: {
|
|
8170
|
+
type: Array,
|
|
8171
|
+
default: function _default() {
|
|
8172
|
+
return [];
|
|
8173
|
+
}
|
|
8174
|
+
},
|
|
8175
|
+
data: {
|
|
8176
|
+
type: Object,
|
|
8177
|
+
default: function _default() {
|
|
8178
|
+
return {};
|
|
8179
|
+
}
|
|
8180
|
+
},
|
|
8181
|
+
errors: {
|
|
8182
|
+
type: Object,
|
|
8183
|
+
default: function _default() {
|
|
8184
|
+
return {};
|
|
8185
|
+
}
|
|
8186
|
+
}
|
|
8187
|
+
},
|
|
8188
|
+
data: function data() {
|
|
8189
|
+
return {
|
|
8190
|
+
dataModel: window._.cloneDeep(this.data)
|
|
8191
|
+
};
|
|
8192
|
+
},
|
|
8193
|
+
watch: {
|
|
8194
|
+
data: function data() {
|
|
8195
|
+
this.dataModel = window._.cloneDeep(this.data);
|
|
8196
|
+
}
|
|
8197
|
+
},
|
|
8198
|
+
methods: {
|
|
8199
|
+
fieldResolution: function fieldResolution(field, size) {
|
|
8200
|
+
return field.colResolution ? field.colResolution[size] : this.colInnerResolution[size];
|
|
8201
|
+
},
|
|
8202
|
+
updateValue: function updateValue(newValue) {
|
|
8203
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.set(this.data, newValue.field, newValue.value);
|
|
8204
|
+
this.$emit('save', {
|
|
8205
|
+
'field': newValue.field,
|
|
8206
|
+
'value': newValue.value
|
|
8207
|
+
});
|
|
8208
|
+
}
|
|
8209
|
+
}
|
|
8210
|
+
});
|
|
8211
|
+
// CONCATENATED MODULE: ./src/components/PartColumn/NewColumn.vue?vue&type=script&lang=js&
|
|
8212
|
+
/* harmony default export */ var PartColumn_NewColumnvue_type_script_lang_js_ = (NewColumnvue_type_script_lang_js_);
|
|
8213
|
+
// CONCATENATED MODULE: ./src/components/PartColumn/NewColumn.vue
|
|
8214
|
+
|
|
8215
|
+
|
|
8216
|
+
|
|
8217
|
+
|
|
8218
|
+
|
|
8219
|
+
/* normalize component */
|
|
8220
|
+
|
|
8221
|
+
var NewColumn_component = normalizeComponent(
|
|
8222
|
+
PartColumn_NewColumnvue_type_script_lang_js_,
|
|
8223
|
+
NewColumnvue_type_template_id_05207afe_render,
|
|
8224
|
+
NewColumnvue_type_template_id_05207afe_staticRenderFns,
|
|
8225
|
+
false,
|
|
8226
|
+
null,
|
|
8227
|
+
null,
|
|
8228
|
+
null
|
|
8229
|
+
|
|
8230
|
+
)
|
|
8231
|
+
|
|
8232
|
+
/* harmony default export */ var NewColumn = (NewColumn_component.exports);
|
|
8233
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CreateForm/index.vue?vue&type=script&lang=js&
|
|
8234
|
+
//
|
|
8235
|
+
//
|
|
8236
|
+
//
|
|
8237
|
+
//
|
|
8238
|
+
//
|
|
8239
|
+
//
|
|
8240
|
+
//
|
|
8241
|
+
//
|
|
8242
|
+
//
|
|
8243
|
+
//
|
|
8244
|
+
//
|
|
8245
|
+
//
|
|
8246
|
+
//
|
|
8247
|
+
//
|
|
8248
|
+
//
|
|
8249
|
+
//
|
|
8250
|
+
//
|
|
8251
|
+
//
|
|
8252
|
+
//
|
|
8253
|
+
//
|
|
8254
|
+
//
|
|
8255
|
+
//
|
|
8256
|
+
//
|
|
8257
|
+
//
|
|
8258
|
+
//
|
|
8259
|
+
//
|
|
8260
|
+
//
|
|
8261
|
+
//
|
|
8262
|
+
//
|
|
8263
|
+
//
|
|
8264
|
+
//
|
|
8265
|
+
//
|
|
8266
|
+
//
|
|
8267
|
+
//
|
|
8268
|
+
//
|
|
8269
|
+
//
|
|
8270
|
+
//
|
|
8271
|
+
//
|
|
8272
|
+
//
|
|
8273
|
+
//
|
|
8274
|
+
//
|
|
8275
|
+
|
|
8276
|
+
|
|
8277
|
+
|
|
8278
|
+
/* harmony default export */ var CreateFormvue_type_script_lang_js_ = ({
|
|
8279
|
+
name: "CreateForm",
|
|
8280
|
+
components: {
|
|
8281
|
+
NewColumn: NewColumn
|
|
8282
|
+
},
|
|
8283
|
+
props: {
|
|
8284
|
+
form: {
|
|
8285
|
+
type: Object,
|
|
8286
|
+
default: function _default() {
|
|
8287
|
+
return new base_model_BaseModel();
|
|
8288
|
+
}
|
|
8289
|
+
},
|
|
8290
|
+
errors: {
|
|
8291
|
+
type: Object,
|
|
8292
|
+
default: function _default() {}
|
|
8293
|
+
},
|
|
8294
|
+
config: {
|
|
8295
|
+
type: Object,
|
|
8296
|
+
default: function _default() {
|
|
8297
|
+
return {
|
|
8298
|
+
rules: null
|
|
8299
|
+
};
|
|
8300
|
+
}
|
|
8301
|
+
}
|
|
8302
|
+
},
|
|
8303
|
+
data: function data() {
|
|
8304
|
+
return {
|
|
8305
|
+
colResolutionLg: getResolution("fullResolution")
|
|
8306
|
+
};
|
|
8307
|
+
},
|
|
8308
|
+
computed: {
|
|
8309
|
+
formLocal: {
|
|
8310
|
+
get: function get() {
|
|
8311
|
+
return this.form;
|
|
8312
|
+
},
|
|
8313
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8314
|
+
set: function set(value) {
|
|
8315
|
+
this.$emit("create:form", this.form);
|
|
8316
|
+
}
|
|
8317
|
+
}
|
|
8318
|
+
},
|
|
8319
|
+
methods: {
|
|
8320
|
+
saveForm: function saveForm() {
|
|
8321
|
+
var _this = this;
|
|
8322
|
+
|
|
8323
|
+
this.$refs["form"].validate(function (valid) {
|
|
8324
|
+
if (!valid) {
|
|
8325
|
+
_this.$message.error("Fill all required fields");
|
|
8326
|
+
|
|
8327
|
+
return false;
|
|
8328
|
+
}
|
|
8329
|
+
|
|
8330
|
+
_this.$emit("save", _this.form);
|
|
8331
|
+
});
|
|
8332
|
+
}
|
|
8333
|
+
}
|
|
8334
|
+
});
|
|
8335
|
+
// CONCATENATED MODULE: ./src/components/CreateForm/index.vue?vue&type=script&lang=js&
|
|
8336
|
+
/* harmony default export */ var components_CreateFormvue_type_script_lang_js_ = (CreateFormvue_type_script_lang_js_);
|
|
8337
|
+
// CONCATENATED MODULE: ./src/components/CreateForm/index.vue
|
|
8338
|
+
|
|
8339
|
+
|
|
8340
|
+
|
|
8341
|
+
|
|
8342
|
+
|
|
8343
|
+
/* normalize component */
|
|
8344
|
+
|
|
8345
|
+
var CreateForm_component = normalizeComponent(
|
|
8346
|
+
components_CreateFormvue_type_script_lang_js_,
|
|
8347
|
+
CreateFormvue_type_template_id_3a62da0d_render,
|
|
8348
|
+
CreateFormvue_type_template_id_3a62da0d_staticRenderFns,
|
|
8349
|
+
false,
|
|
8350
|
+
null,
|
|
8351
|
+
null,
|
|
8352
|
+
null
|
|
8353
|
+
|
|
8354
|
+
)
|
|
8355
|
+
|
|
8356
|
+
/* harmony default export */ var CreateForm = (CreateForm_component.exports);
|
|
8357
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"43ff4c05-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/EditableField/index.vue?vue&type=template&id=6a2ea373&
|
|
8358
|
+
var EditableFieldvue_type_template_id_6a2ea373_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"editable-cell"},[(!_vm.isEditMode)?_c('div',{staticClass:"editable-cell__text"},[_vm._t("default",function(){return [_c('el-col',{attrs:{"span":23}},[(_vm.value && ['input', 'textarea', 'number'].includes(_vm.type))?_c('div',{domProps:{"innerHTML":_vm._s(_vm.value)}}):(_vm.type === 'checkbox')?_c('el-checkbox',{attrs:{"disabled":""},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}}):(_vm.type === 'date-picker')?_c('el-date-picker',{staticClass:"w-100 el-date-transparent",attrs:{"type":"date","format":"dd.MM.yyyy","value-format":"yyyy-MM-dd","disabled":"","placeholder":"Pick a day"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}}):(_vm.isSelectValue)?_c('div',{domProps:{"innerHTML":_vm._s(_vm.createList())}}):_c('div',[_vm._v(" "+_vm._s(_vm.placeholder ? _vm.placeholder : '-'))])],1),_c('el-col',{attrs:{"span":1}},[_c('el-button',{staticClass:"edit-icon pull-right",attrs:{"icon":"el-icon-edit","circle":"","type":"primary","size":"mini"},on:{"click":_vm.handleDoubleClick}})],1)]})],2):_vm._e(),(_vm.isEditMode)?_c('div',{staticClass:"editable-cell__editor"},[(_vm.type === 'checkbox')?_c('el-checkbox',{model:{value:(_vm.model),callback:function ($$v) {_vm.model=$$v},expression:"model"}}):(_vm.type === 'number')?_c('el-input-number',{staticClass:"w-70",attrs:{"precision":_vm.precision},model:{value:(_vm.model),callback:function ($$v) {_vm.model=$$v},expression:"model"}}):(_vm.type === 'select')?_c('el-select',{staticClass:"w-100",attrs:{"span":24,"clearable":"","filterable":_vm.filterable,"remote":_vm.remote,"remote-method":_vm.remoteMethodHandler,"placeholder":"Select","multiple":_vm.selectMultiple},model:{value:(_vm.model),callback:function ($$v) {_vm.model=$$v},expression:"model"}},_vm._l((_vm.selectListLocal),function(item){return _c('el-option',{key:item[_vm.selectKey],attrs:{"label":item[_vm.selectLabel],"value":item[_vm.selectValue]}})}),1):(_vm.type === 'date-picker')?_c('el-date-picker',{staticClass:"w-100",attrs:{"format":"dd.MM.yyyy","value-format":"yyyy-MM-dd","type":"date","placeholder":"Pick a day"},model:{value:(_vm.model),callback:function ($$v) {_vm.model=$$v},expression:"model"}}):_c('el-input',{staticClass:"editable-cell__input",attrs:{"rows":3,"type":_vm.type,"placeholder":_vm.placeholder},model:{value:(_vm.model),callback:function ($$v) {_vm.model=$$v},expression:"model"}}),_c('el-button-group',{staticClass:"editable-cell__actions"},[(_vm.isEditMode)?_c('el-button',{attrs:{"type":"success","size":"mini","icon":"el-icon-check"},on:{"click":_vm.handleSave}}):_vm._e(),(_vm.isEditMode)?_c('el-button',{attrs:{"type":"warning","size":"mini","icon":"el-icon-close"},on:{"click":_vm.handleClose}}):_vm._e()],1)],1):_vm._e()])}
|
|
8359
|
+
var EditableFieldvue_type_template_id_6a2ea373_staticRenderFns = []
|
|
8360
|
+
|
|
8361
|
+
|
|
8362
|
+
// CONCATENATED MODULE: ./src/components/EditableField/index.vue?vue&type=template&id=6a2ea373&
|
|
8363
|
+
|
|
8364
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
8365
|
+
var es_array_find = __webpack_require__("7db0");
|
|
8366
|
+
|
|
8367
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/EditableField/index.vue?vue&type=script&lang=js&
|
|
8368
|
+
|
|
8369
|
+
|
|
8370
|
+
|
|
8371
|
+
|
|
8372
|
+
|
|
8373
|
+
|
|
8374
|
+
|
|
8375
|
+
//
|
|
8376
|
+
//
|
|
8377
|
+
//
|
|
8378
|
+
//
|
|
8379
|
+
//
|
|
8380
|
+
//
|
|
8381
|
+
//
|
|
8382
|
+
//
|
|
8383
|
+
//
|
|
8384
|
+
//
|
|
8385
|
+
//
|
|
8386
|
+
//
|
|
8387
|
+
//
|
|
8388
|
+
//
|
|
8389
|
+
//
|
|
8390
|
+
//
|
|
8391
|
+
//
|
|
8392
|
+
//
|
|
8393
|
+
//
|
|
8394
|
+
//
|
|
8395
|
+
//
|
|
8396
|
+
//
|
|
8397
|
+
//
|
|
8398
|
+
//
|
|
8399
|
+
//
|
|
8400
|
+
//
|
|
8401
|
+
//
|
|
8402
|
+
//
|
|
8403
|
+
//
|
|
8404
|
+
//
|
|
8405
|
+
//
|
|
8406
|
+
//
|
|
8407
|
+
//
|
|
8408
|
+
//
|
|
8409
|
+
//
|
|
8410
|
+
//
|
|
8411
|
+
//
|
|
8412
|
+
//
|
|
8413
|
+
//
|
|
8414
|
+
//
|
|
8415
|
+
//
|
|
8416
|
+
//
|
|
8417
|
+
//
|
|
8418
|
+
//
|
|
8419
|
+
//
|
|
8420
|
+
//
|
|
8421
|
+
//
|
|
8422
|
+
//
|
|
8423
|
+
//
|
|
8424
|
+
//
|
|
8425
|
+
//
|
|
8426
|
+
//
|
|
8427
|
+
//
|
|
8428
|
+
//
|
|
8429
|
+
/* harmony default export */ var EditableFieldvue_type_script_lang_js_ = ({
|
|
8430
|
+
name: 'EditableField',
|
|
8431
|
+
model: {
|
|
8432
|
+
props: 'value',
|
|
8433
|
+
event: 'input'
|
|
8434
|
+
},
|
|
8435
|
+
props: {
|
|
8436
|
+
field: {
|
|
8437
|
+
type: [String, Boolean],
|
|
8438
|
+
default: ''
|
|
8439
|
+
},
|
|
8440
|
+
value: {
|
|
8441
|
+
type: [String, Boolean, Date, Number, Array],
|
|
8442
|
+
default: ''
|
|
8443
|
+
},
|
|
8444
|
+
filterable: {
|
|
8445
|
+
type: Boolean,
|
|
8446
|
+
default: false
|
|
8447
|
+
},
|
|
8448
|
+
type: {
|
|
8449
|
+
type: String,
|
|
8450
|
+
default: 'input'
|
|
8451
|
+
},
|
|
8452
|
+
placeholder: {
|
|
8453
|
+
type: String,
|
|
8454
|
+
default: ''
|
|
8455
|
+
},
|
|
8456
|
+
selectList: {
|
|
8457
|
+
type: Array,
|
|
8458
|
+
default: function _default() {
|
|
8459
|
+
return [];
|
|
8460
|
+
}
|
|
8461
|
+
},
|
|
8462
|
+
selectMultiple: {
|
|
8463
|
+
type: Boolean,
|
|
8464
|
+
default: false
|
|
8465
|
+
},
|
|
8466
|
+
selectKey: {
|
|
8467
|
+
type: String,
|
|
8468
|
+
default: ''
|
|
8469
|
+
},
|
|
8470
|
+
selectLabel: {
|
|
8471
|
+
type: String,
|
|
8472
|
+
default: ''
|
|
8473
|
+
},
|
|
8474
|
+
selectValue: {
|
|
8475
|
+
type: String,
|
|
8476
|
+
default: ''
|
|
8477
|
+
},
|
|
8478
|
+
precision: {
|
|
8479
|
+
type: Number,
|
|
8480
|
+
default: 0
|
|
8481
|
+
},
|
|
8482
|
+
step: {
|
|
8483
|
+
type: Number,
|
|
8484
|
+
default: 1
|
|
8485
|
+
},
|
|
8486
|
+
remoteMethod: {
|
|
8487
|
+
type: Object,
|
|
8488
|
+
default: null
|
|
8489
|
+
}
|
|
8490
|
+
},
|
|
8491
|
+
data: function data() {
|
|
8492
|
+
return {
|
|
8493
|
+
isEditMode: false,
|
|
8494
|
+
model: '',
|
|
8495
|
+
selectListLocal: []
|
|
8496
|
+
};
|
|
8497
|
+
},
|
|
8498
|
+
computed: {
|
|
8499
|
+
isSelectValue: {
|
|
8500
|
+
get: function get() {
|
|
8501
|
+
return (this.value || this.value === false) && this.type === 'select';
|
|
8502
|
+
}
|
|
8503
|
+
},
|
|
8504
|
+
remote: {
|
|
8505
|
+
get: function get() {
|
|
8506
|
+
return this.remoteMethod !== null;
|
|
8507
|
+
}
|
|
8508
|
+
},
|
|
8509
|
+
remoteMethodHandler: {
|
|
8510
|
+
get: function get() {
|
|
8511
|
+
if (this.remoteMethod !== null) {
|
|
8512
|
+
return this.remoteCall;
|
|
8513
|
+
}
|
|
8514
|
+
|
|
8515
|
+
return null;
|
|
8516
|
+
}
|
|
8517
|
+
}
|
|
8518
|
+
},
|
|
8519
|
+
mounted: function mounted() {
|
|
8520
|
+
this.selectListLocal = this.selectList;
|
|
8521
|
+
},
|
|
8522
|
+
methods: {
|
|
8523
|
+
createList: function createList() {
|
|
8524
|
+
var _this = this;
|
|
8525
|
+
|
|
8526
|
+
var label = '';
|
|
8527
|
+
|
|
8528
|
+
if (this.selectMultiple) {
|
|
8529
|
+
this.value.forEach(function (element) {
|
|
8530
|
+
label = label + ' ' + _this.selectList.find(function (_ref) {
|
|
8531
|
+
var value = _ref.value;
|
|
8532
|
+
return value === element;
|
|
8533
|
+
}).name;
|
|
8534
|
+
});
|
|
8535
|
+
} else if (this.selectList.length) {
|
|
8536
|
+
label = this.selectList.find(function (x) {
|
|
8537
|
+
return x[_this.selectKey] === _this.value;
|
|
8538
|
+
})[this.selectLabel];
|
|
8539
|
+
} else {
|
|
8540
|
+
label = this.value;
|
|
8541
|
+
}
|
|
8542
|
+
|
|
8543
|
+
return label;
|
|
8544
|
+
},
|
|
8545
|
+
handleDoubleClick: function handleDoubleClick() {
|
|
8546
|
+
this.$emit('editable:open');
|
|
8547
|
+
this.isEditMode = true;
|
|
8548
|
+
this.model = this.value;
|
|
8549
|
+
},
|
|
8550
|
+
handleClose: function handleClose() {
|
|
8551
|
+
this.isEditMode = false;
|
|
8552
|
+
this.$emit('editable:close');
|
|
8553
|
+
},
|
|
8554
|
+
remoteCall: function remoteCall(query) {
|
|
8555
|
+
var _this2 = this;
|
|
8556
|
+
|
|
8557
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
8558
|
+
var response;
|
|
8559
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
8560
|
+
while (1) {
|
|
8561
|
+
switch (_context.prev = _context.next) {
|
|
8562
|
+
case 0:
|
|
8563
|
+
_this2.loading = true;
|
|
8564
|
+
_context.next = 3;
|
|
8565
|
+
return _this2.remoteMethod.all({
|
|
8566
|
+
search: _this2.selectLabel + ':' + query,
|
|
8567
|
+
searchFields: _this2.selectLabel + ':like'
|
|
8568
|
+
});
|
|
8569
|
+
|
|
8570
|
+
case 3:
|
|
8571
|
+
response = _context.sent;
|
|
8572
|
+
_this2.selectListLocal = response.data;
|
|
8573
|
+
_this2.loading = false;
|
|
8574
|
+
|
|
8575
|
+
case 6:
|
|
8576
|
+
case "end":
|
|
8577
|
+
return _context.stop();
|
|
8578
|
+
}
|
|
8579
|
+
}
|
|
8580
|
+
}, _callee);
|
|
8581
|
+
}))();
|
|
8582
|
+
},
|
|
8583
|
+
handleSave: function handleSave() {
|
|
8584
|
+
var _this3 = this;
|
|
8585
|
+
|
|
8586
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
8587
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
8588
|
+
while (1) {
|
|
8589
|
+
switch (_context2.prev = _context2.next) {
|
|
8590
|
+
case 0:
|
|
8591
|
+
_this3.isEditMode = false;
|
|
8592
|
+
|
|
8593
|
+
_this3.$emit('editable:close');
|
|
8594
|
+
|
|
8595
|
+
_this3.$emit('editable:save', {
|
|
8596
|
+
'field': _this3.field,
|
|
8597
|
+
'value': _this3.model
|
|
8598
|
+
});
|
|
8599
|
+
|
|
8600
|
+
_this3.$emit('update:value', {
|
|
8601
|
+
'field': _this3.field,
|
|
8602
|
+
'value': _this3.model
|
|
8603
|
+
});
|
|
8604
|
+
|
|
8605
|
+
case 4:
|
|
8606
|
+
case "end":
|
|
8607
|
+
return _context2.stop();
|
|
8608
|
+
}
|
|
8609
|
+
}
|
|
8610
|
+
}, _callee2);
|
|
8611
|
+
}))();
|
|
8612
|
+
}
|
|
8613
|
+
}
|
|
8614
|
+
});
|
|
8615
|
+
// CONCATENATED MODULE: ./src/components/EditableField/index.vue?vue&type=script&lang=js&
|
|
8616
|
+
/* harmony default export */ var components_EditableFieldvue_type_script_lang_js_ = (EditableFieldvue_type_script_lang_js_);
|
|
8617
|
+
// CONCATENATED MODULE: ./src/components/EditableField/index.vue
|
|
8618
|
+
|
|
8619
|
+
|
|
8620
|
+
|
|
8621
|
+
|
|
8622
|
+
|
|
8623
|
+
/* normalize component */
|
|
8624
|
+
|
|
8625
|
+
var EditableField_component = normalizeComponent(
|
|
8626
|
+
components_EditableFieldvue_type_script_lang_js_,
|
|
8627
|
+
EditableFieldvue_type_template_id_6a2ea373_render,
|
|
8628
|
+
EditableFieldvue_type_template_id_6a2ea373_staticRenderFns,
|
|
8629
|
+
false,
|
|
8630
|
+
null,
|
|
8631
|
+
null,
|
|
8632
|
+
null
|
|
8633
|
+
|
|
8634
|
+
)
|
|
8635
|
+
|
|
8636
|
+
/* harmony default export */ var EditableField = (EditableField_component.exports);
|
|
8637
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"43ff4c05-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/UpdateForm/index.vue?vue&type=template&id=e84e0092&
|
|
8638
|
+
var UpdateFormvue_type_template_id_e84e0092_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',{ref:"form",attrs:{"model":_vm.formLocal,"rules":_vm.config.rules,"label-position":"left","label-width":"140px"}},[_c('el-card',{staticClass:"m-b-20",attrs:{"shadow":"always"}},[_c('div',{staticClass:"clearfix",attrs:{"slot":"header"},slot:"header"},[_c('el-row',{attrs:{"type":"flex","justify":"space-between"}},[_c('el-col',{staticClass:"flex align-center justify-start",attrs:{"span":6}},[_c('h3',{staticClass:"m-b-0"},[_vm._v(_vm._s(_vm.formLocal.object)+" view")])]),_c('el-col',{staticClass:"flex align-center justify-end is-justify-end el-row--flex",attrs:{"span":6}},[_vm._t("actions"),_c('el-button',{staticClass:"delete-icon pull-right",attrs:{"icon":"el-icon-delete","size":"mini"},on:{"click":_vm.deleteModel}})],2)],1)],1),_c('el-row',{attrs:{"gutter":20}},[_c('el-col',{attrs:{"lg":_vm.colResolutionLg.lg,"md":_vm.colResolutionLg.md,"sm":_vm.colResolutionLg.sm,"xl":_vm.colResolutionLg.xl,"xs":_vm.colResolutionLg.xs}},[_c('part-form',[_c('edit-column',{attrs:{"data":_vm.formLocal,"fields":_vm.config.formFields,"errors":_vm.errors},on:{"save":_vm.updateValue}})],1)],1)],1)],1)],1)}
|
|
8639
|
+
var UpdateFormvue_type_template_id_e84e0092_staticRenderFns = []
|
|
8640
|
+
|
|
8641
|
+
|
|
8642
|
+
// CONCATENATED MODULE: ./src/components/UpdateForm/index.vue?vue&type=template&id=e84e0092&
|
|
8643
|
+
|
|
8644
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"43ff4c05-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PartForm/index.vue?vue&type=template&id=40daf6c5&
|
|
8645
|
+
var PartFormvue_type_template_id_40daf6c5_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-row',[_c('div',{staticClass:"part-form"},[(_vm.$slots.header || _vm.header)?_c('div',{staticClass:"part-form__header"},[_vm._t("header",function(){return [_vm._v(_vm._s(_vm.header))]}),_c('el-divider')],2):_vm._e(),_c('div',{staticClass:"part-form__body",style:(_vm.bodyStyle)},[_vm._t("default")],2)])])}
|
|
8646
|
+
var PartFormvue_type_template_id_40daf6c5_staticRenderFns = []
|
|
8647
|
+
|
|
8648
|
+
|
|
8649
|
+
// CONCATENATED MODULE: ./src/components/PartForm/index.vue?vue&type=template&id=40daf6c5&
|
|
8650
|
+
|
|
8651
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PartForm/index.vue?vue&type=script&lang=js&
|
|
8652
|
+
//
|
|
8653
|
+
//
|
|
8654
|
+
//
|
|
8655
|
+
//
|
|
8656
|
+
//
|
|
8657
|
+
//
|
|
8658
|
+
//
|
|
8659
|
+
//
|
|
8660
|
+
//
|
|
8661
|
+
//
|
|
8662
|
+
//
|
|
8663
|
+
//
|
|
8664
|
+
//
|
|
8665
|
+
|
|
8666
|
+
/* harmony default export */ var PartFormvue_type_script_lang_js_ = ({
|
|
8667
|
+
name: 'PartForm',
|
|
8668
|
+
props: {
|
|
8669
|
+
header: {
|
|
8670
|
+
type: String,
|
|
8671
|
+
default: ''
|
|
8672
|
+
},
|
|
8673
|
+
bodyStyle: {
|
|
8674
|
+
type: String,
|
|
8675
|
+
default: ''
|
|
8676
|
+
},
|
|
8677
|
+
rowResolution: {
|
|
8678
|
+
type: Object,
|
|
8679
|
+
default: function _default() {
|
|
8680
|
+
return getResolution('fullFromSm');
|
|
8681
|
+
}
|
|
8682
|
+
}
|
|
8683
|
+
}
|
|
8684
|
+
});
|
|
8685
|
+
// CONCATENATED MODULE: ./src/components/PartForm/index.vue?vue&type=script&lang=js&
|
|
8686
|
+
/* harmony default export */ var components_PartFormvue_type_script_lang_js_ = (PartFormvue_type_script_lang_js_);
|
|
8687
|
+
// CONCATENATED MODULE: ./src/components/PartForm/index.vue
|
|
8688
|
+
|
|
8689
|
+
|
|
8690
|
+
|
|
8691
|
+
|
|
8692
|
+
|
|
8693
|
+
/* normalize component */
|
|
8694
|
+
|
|
8695
|
+
var PartForm_component = normalizeComponent(
|
|
8696
|
+
components_PartFormvue_type_script_lang_js_,
|
|
8697
|
+
PartFormvue_type_template_id_40daf6c5_render,
|
|
8698
|
+
PartFormvue_type_template_id_40daf6c5_staticRenderFns,
|
|
8699
|
+
false,
|
|
8700
|
+
null,
|
|
8701
|
+
null,
|
|
8702
|
+
null
|
|
8703
|
+
|
|
8704
|
+
)
|
|
8705
|
+
|
|
8706
|
+
/* harmony default export */ var PartForm = (PartForm_component.exports);
|
|
8707
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"43ff4c05-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PartColumn/EditColumn.vue?vue&type=template&id=536ae88d&
|
|
8708
|
+
var EditColumnvue_type_template_id_536ae88d_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-col',{staticClass:"p-r-5 p-l-5",attrs:{"xl":_vm.colResolution.lg,"lg":_vm.colResolution.lg,"md":_vm.colResolution.md,"sm":_vm.colResolution.sm,"xs":_vm.colResolution.xs}},[_vm._l((_vm.fields),function(field){return [_c('el-col',{key:field.prop,staticClass:"p-r-5 p-l-5",attrs:{"xl":_vm.fieldResolution(field, 'xl'),"lg":_vm.fieldResolution(field, 'lg'),"md":_vm.fieldResolution(field, 'md'),"sm":_vm.fieldResolution(field, 'sm'),"xs":_vm.fieldResolution(field, 'xs')}},[_c('el-form-item',{attrs:{"prop":_vm.propPrefix + field.prop,"label":field.label,"error":_vm.errors[field.prop] ? _vm.errors[field.prop][0] : ''}},[_c('editable-field',{attrs:{"type":field.selectList ? 'select' : (field.type? field.type :'input'),"select-list":field.selectList ? field.selectList : [],"select-multiple":field.selectMultiple,"select-key":field.selectList ? (field.selectKey ? field.selectKey : 'value' ) : '',"select-label":field.selectList ? (field.selectLabel ? field.selectLabel : 'name' ) : '',"select-value":field.selectList ? (field.selectValue ? field.selectValue : 'value' ) : '',"field":field.prop,"precision":field.precision ? field.precision : 0,"remote-method":field.remoteMethod ? field.remoteMethod : null,"filterable":field.filterable ? field.filterable : null},on:{"editable:save":_vm.updateValue},model:{value:(_vm.data[field.prop]),callback:function ($$v) {_vm.$set(_vm.data, field.prop, $$v)},expression:"data[field.prop]"}})],1)],1)]})],2)}
|
|
8709
|
+
var EditColumnvue_type_template_id_536ae88d_staticRenderFns = []
|
|
8710
|
+
|
|
8711
|
+
|
|
8712
|
+
// CONCATENATED MODULE: ./src/components/PartColumn/EditColumn.vue?vue&type=template&id=536ae88d&
|
|
8713
|
+
|
|
8714
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PartColumn/EditColumn.vue?vue&type=script&lang=js&
|
|
8715
|
+
//
|
|
8716
|
+
//
|
|
8717
|
+
//
|
|
8718
|
+
//
|
|
8719
|
+
//
|
|
8720
|
+
//
|
|
8721
|
+
//
|
|
8722
|
+
//
|
|
8723
|
+
//
|
|
8724
|
+
//
|
|
8725
|
+
//
|
|
8726
|
+
//
|
|
8727
|
+
//
|
|
8728
|
+
//
|
|
8729
|
+
//
|
|
8730
|
+
//
|
|
8731
|
+
//
|
|
8732
|
+
//
|
|
8733
|
+
//
|
|
8734
|
+
//
|
|
8735
|
+
//
|
|
8736
|
+
//
|
|
8737
|
+
//
|
|
8738
|
+
//
|
|
8739
|
+
//
|
|
8740
|
+
//
|
|
8741
|
+
//
|
|
8742
|
+
//
|
|
8743
|
+
//
|
|
8744
|
+
//
|
|
8745
|
+
//
|
|
8746
|
+
//
|
|
8747
|
+
//
|
|
8748
|
+
|
|
8749
|
+
|
|
8750
|
+
|
|
8751
|
+
/* harmony default export */ var EditColumnvue_type_script_lang_js_ = ({
|
|
8752
|
+
name: 'PartColumnEdit',
|
|
8753
|
+
components: {
|
|
8754
|
+
EditableField: EditableField
|
|
8755
|
+
},
|
|
8756
|
+
props: {
|
|
8757
|
+
colResolution: {
|
|
8758
|
+
type: Object,
|
|
8759
|
+
default: function _default() {
|
|
8760
|
+
return getResolution('fullResolution');
|
|
8761
|
+
}
|
|
8762
|
+
},
|
|
8763
|
+
colInnerResolution: {
|
|
8764
|
+
type: Object,
|
|
8765
|
+
default: function _default() {
|
|
8766
|
+
return getResolution('fullResolution');
|
|
8767
|
+
}
|
|
8768
|
+
},
|
|
8769
|
+
columnName: {
|
|
8770
|
+
type: String,
|
|
8771
|
+
default: ''
|
|
8772
|
+
},
|
|
8773
|
+
propPrefix: {
|
|
8774
|
+
type: String,
|
|
8775
|
+
default: ''
|
|
8776
|
+
},
|
|
8777
|
+
fields: {
|
|
8778
|
+
type: Array,
|
|
8779
|
+
default: function _default() {
|
|
8780
|
+
return [];
|
|
8781
|
+
}
|
|
8782
|
+
},
|
|
8783
|
+
data: {
|
|
8784
|
+
type: Object,
|
|
8785
|
+
default: function _default() {}
|
|
8786
|
+
},
|
|
8787
|
+
errors: {
|
|
8788
|
+
type: Object,
|
|
8789
|
+
default: function _default() {
|
|
8790
|
+
return {};
|
|
8791
|
+
}
|
|
8792
|
+
}
|
|
8793
|
+
},
|
|
8794
|
+
methods: {
|
|
8795
|
+
fieldResolution: function fieldResolution(field, size) {
|
|
8796
|
+
return field.colResolution ? field.colResolution[size] : this.colInnerResolution[size];
|
|
8797
|
+
},
|
|
8798
|
+
updateValue: function updateValue(newValue) {
|
|
8799
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.set(this.data, newValue.field, newValue.value);
|
|
8800
|
+
this.$emit('save', {
|
|
8801
|
+
field: newValue.field,
|
|
8802
|
+
value: newValue.value,
|
|
8803
|
+
prefix: this.propPrefix
|
|
8804
|
+
});
|
|
8805
|
+
}
|
|
8806
|
+
}
|
|
8807
|
+
});
|
|
8808
|
+
// CONCATENATED MODULE: ./src/components/PartColumn/EditColumn.vue?vue&type=script&lang=js&
|
|
8809
|
+
/* harmony default export */ var PartColumn_EditColumnvue_type_script_lang_js_ = (EditColumnvue_type_script_lang_js_);
|
|
8810
|
+
// EXTERNAL MODULE: ./src/components/PartColumn/EditColumn.vue?vue&type=style&index=0&lang=css&
|
|
8811
|
+
var EditColumnvue_type_style_index_0_lang_css_ = __webpack_require__("c50b");
|
|
8812
|
+
|
|
8813
|
+
// CONCATENATED MODULE: ./src/components/PartColumn/EditColumn.vue
|
|
8814
|
+
|
|
8815
|
+
|
|
8816
|
+
|
|
8817
|
+
|
|
8818
|
+
|
|
8819
|
+
|
|
8820
|
+
/* normalize component */
|
|
8821
|
+
|
|
8822
|
+
var EditColumn_component = normalizeComponent(
|
|
8823
|
+
PartColumn_EditColumnvue_type_script_lang_js_,
|
|
8824
|
+
EditColumnvue_type_template_id_536ae88d_render,
|
|
8825
|
+
EditColumnvue_type_template_id_536ae88d_staticRenderFns,
|
|
8826
|
+
false,
|
|
8827
|
+
null,
|
|
8828
|
+
null,
|
|
8829
|
+
null
|
|
8830
|
+
|
|
8831
|
+
)
|
|
8832
|
+
|
|
8833
|
+
/* harmony default export */ var EditColumn = (EditColumn_component.exports);
|
|
8834
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/UpdateForm/index.vue?vue&type=script&lang=js&
|
|
8835
|
+
|
|
8836
|
+
//
|
|
8837
|
+
//
|
|
8838
|
+
//
|
|
8839
|
+
//
|
|
8840
|
+
//
|
|
8841
|
+
//
|
|
8842
|
+
//
|
|
8843
|
+
//
|
|
8844
|
+
//
|
|
8845
|
+
//
|
|
8846
|
+
//
|
|
8847
|
+
//
|
|
8848
|
+
//
|
|
8849
|
+
//
|
|
8850
|
+
//
|
|
8851
|
+
//
|
|
8852
|
+
//
|
|
8853
|
+
//
|
|
8854
|
+
//
|
|
8855
|
+
//
|
|
8856
|
+
//
|
|
8857
|
+
//
|
|
8858
|
+
//
|
|
8859
|
+
//
|
|
8860
|
+
//
|
|
8861
|
+
//
|
|
8862
|
+
//
|
|
8863
|
+
//
|
|
8864
|
+
//
|
|
8865
|
+
//
|
|
8866
|
+
//
|
|
8867
|
+
//
|
|
8868
|
+
//
|
|
8869
|
+
//
|
|
8870
|
+
//
|
|
8871
|
+
//
|
|
8872
|
+
//
|
|
8873
|
+
//
|
|
8874
|
+
//
|
|
8875
|
+
//
|
|
8876
|
+
//
|
|
8877
|
+
//
|
|
8878
|
+
//
|
|
8879
|
+
//
|
|
8880
|
+
//
|
|
8881
|
+
//
|
|
8882
|
+
//
|
|
8883
|
+
|
|
8884
|
+
|
|
8885
|
+
|
|
8886
|
+
|
|
8887
|
+
/* harmony default export */ var UpdateFormvue_type_script_lang_js_ = ({
|
|
8888
|
+
name: 'UpdateForm',
|
|
8889
|
+
components: {
|
|
8890
|
+
PartForm: PartForm,
|
|
8891
|
+
EditColumn: EditColumn
|
|
8892
|
+
},
|
|
8893
|
+
provide: function provide() {
|
|
8894
|
+
var _this = this;
|
|
8895
|
+
|
|
8896
|
+
var data = {};
|
|
8897
|
+
['loading'].forEach(function (key) {
|
|
8898
|
+
Object.defineProperty(data, key, {
|
|
8899
|
+
enumerable: true,
|
|
8900
|
+
get: function get() {
|
|
8901
|
+
return _this[key];
|
|
8902
|
+
}
|
|
8903
|
+
});
|
|
8904
|
+
});
|
|
8905
|
+
return {
|
|
8906
|
+
data: data
|
|
8907
|
+
};
|
|
8908
|
+
},
|
|
8909
|
+
props: {
|
|
8910
|
+
form: {
|
|
8911
|
+
type: Object,
|
|
8912
|
+
default: function _default() {
|
|
8913
|
+
return new base_model_BaseModel();
|
|
8914
|
+
}
|
|
8915
|
+
},
|
|
8916
|
+
config: {
|
|
8917
|
+
type: Object,
|
|
8918
|
+
default: function _default() {
|
|
8919
|
+
return {
|
|
8920
|
+
rules: null
|
|
8921
|
+
};
|
|
8922
|
+
}
|
|
8923
|
+
},
|
|
8924
|
+
errors: {
|
|
8925
|
+
type: Object,
|
|
8926
|
+
default: function _default() {
|
|
8927
|
+
return {};
|
|
8928
|
+
}
|
|
8929
|
+
}
|
|
8930
|
+
},
|
|
8931
|
+
data: function data() {
|
|
8932
|
+
return {
|
|
8933
|
+
colResolutionLg: getResolution('fullResolution')
|
|
8934
|
+
};
|
|
8935
|
+
},
|
|
8936
|
+
computed: {
|
|
8937
|
+
formLocal: {
|
|
8938
|
+
get: function get() {
|
|
8939
|
+
return this.form;
|
|
8940
|
+
},
|
|
8941
|
+
set: function set(value) {
|
|
8942
|
+
this.$emit('update:form', this.form);
|
|
8943
|
+
}
|
|
8944
|
+
}
|
|
8945
|
+
},
|
|
8946
|
+
methods: {
|
|
8947
|
+
updateValue: function updateValue(data) {
|
|
8948
|
+
var _this2 = this;
|
|
8949
|
+
|
|
8950
|
+
this.$refs['form'].validateField(data.field, function (invalid) {
|
|
8951
|
+
if (!invalid) {
|
|
8952
|
+
_this2.$refs['form'].clearValidate();
|
|
8953
|
+
|
|
8954
|
+
_this2.$emit('save:value', data);
|
|
8955
|
+
} else {
|
|
8956
|
+
_this2.$message.error('Validation error');
|
|
8957
|
+
}
|
|
8958
|
+
});
|
|
8959
|
+
},
|
|
8960
|
+
deleteModel: function deleteModel() {
|
|
8961
|
+
var _this3 = this;
|
|
8962
|
+
|
|
8963
|
+
this.$confirm('This will permanently delete data. Continue?', 'Warning', {
|
|
8964
|
+
confirmButtonText: 'OK',
|
|
8965
|
+
cancelButtonText: 'Cancel',
|
|
8966
|
+
type: 'warning'
|
|
8967
|
+
}).then(function () {
|
|
8968
|
+
_this3.$message({
|
|
8969
|
+
type: 'success',
|
|
8970
|
+
message: 'Delete completed'
|
|
8971
|
+
});
|
|
8972
|
+
|
|
8973
|
+
_this3.$emit('delete:model');
|
|
8974
|
+
}).catch(function () {
|
|
8975
|
+
_this3.$message({
|
|
8976
|
+
type: 'info',
|
|
8977
|
+
message: 'Delete canceled'
|
|
8978
|
+
});
|
|
8979
|
+
});
|
|
8980
|
+
}
|
|
8981
|
+
}
|
|
8982
|
+
});
|
|
8983
|
+
// CONCATENATED MODULE: ./src/components/UpdateForm/index.vue?vue&type=script&lang=js&
|
|
8984
|
+
/* harmony default export */ var components_UpdateFormvue_type_script_lang_js_ = (UpdateFormvue_type_script_lang_js_);
|
|
8985
|
+
// CONCATENATED MODULE: ./src/components/UpdateForm/index.vue
|
|
8986
|
+
|
|
8987
|
+
|
|
8988
|
+
|
|
8989
|
+
|
|
8990
|
+
|
|
8991
|
+
/* normalize component */
|
|
8992
|
+
|
|
8993
|
+
var UpdateForm_component = normalizeComponent(
|
|
8994
|
+
components_UpdateFormvue_type_script_lang_js_,
|
|
8995
|
+
UpdateFormvue_type_template_id_e84e0092_render,
|
|
8996
|
+
UpdateFormvue_type_template_id_e84e0092_staticRenderFns,
|
|
8997
|
+
false,
|
|
8998
|
+
null,
|
|
8999
|
+
null,
|
|
9000
|
+
null
|
|
9001
|
+
|
|
9002
|
+
)
|
|
9003
|
+
|
|
9004
|
+
/* harmony default export */ var UpdateForm = (UpdateForm_component.exports);
|
|
9005
|
+
// CONCATENATED MODULE: ./src/index.ts
|
|
9006
|
+
|
|
9007
|
+
|
|
9008
|
+
|
|
9009
|
+
|
|
9010
|
+
|
|
7669
9011
|
|
|
7670
9012
|
|
|
7671
9013
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|