@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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory();
|
|
3
|
+
module.exports = factory(require("vue"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
5
|
define([], factory);
|
|
6
6
|
else if(typeof exports === 'object')
|
|
7
|
-
exports["element-ui-extended"] = factory();
|
|
7
|
+
exports["element-ui-extended"] = factory(require("vue"));
|
|
8
8
|
else
|
|
9
|
-
root["element-ui-extended"] = factory();
|
|
10
|
-
})((typeof self !== 'undefined' ? self : this), function() {
|
|
9
|
+
root["element-ui-extended"] = factory(root["Vue"]);
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {
|
|
11
11
|
return /******/ (function(modules) { // webpackBootstrap
|
|
12
12
|
/******/ // The module cache
|
|
13
13
|
/******/ var installedModules = {};
|
|
@@ -1164,6 +1164,18 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
1164
1164
|
module.exports = {};
|
|
1165
1165
|
|
|
1166
1166
|
|
|
1167
|
+
/***/ }),
|
|
1168
|
+
|
|
1169
|
+
/***/ "408a":
|
|
1170
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1171
|
+
|
|
1172
|
+
var uncurryThis = __webpack_require__("e330");
|
|
1173
|
+
|
|
1174
|
+
// `thisNumberValue` abstract operation
|
|
1175
|
+
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
1176
|
+
module.exports = uncurryThis(1.0.valueOf);
|
|
1177
|
+
|
|
1178
|
+
|
|
1167
1179
|
/***/ }),
|
|
1168
1180
|
|
|
1169
1181
|
/***/ "428f":
|
|
@@ -1570,6 +1582,54 @@ module.exports = function (argument) {
|
|
|
1570
1582
|
};
|
|
1571
1583
|
|
|
1572
1584
|
|
|
1585
|
+
/***/ }),
|
|
1586
|
+
|
|
1587
|
+
/***/ "5899":
|
|
1588
|
+
/***/ (function(module, exports) {
|
|
1589
|
+
|
|
1590
|
+
// a string of all valid unicode whitespaces
|
|
1591
|
+
module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
1592
|
+
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
1593
|
+
|
|
1594
|
+
|
|
1595
|
+
/***/ }),
|
|
1596
|
+
|
|
1597
|
+
/***/ "58a8":
|
|
1598
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1599
|
+
|
|
1600
|
+
var uncurryThis = __webpack_require__("e330");
|
|
1601
|
+
var requireObjectCoercible = __webpack_require__("1d80");
|
|
1602
|
+
var toString = __webpack_require__("577e");
|
|
1603
|
+
var whitespaces = __webpack_require__("5899");
|
|
1604
|
+
|
|
1605
|
+
var replace = uncurryThis(''.replace);
|
|
1606
|
+
var whitespace = '[' + whitespaces + ']';
|
|
1607
|
+
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
1608
|
+
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
1609
|
+
|
|
1610
|
+
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
1611
|
+
var createMethod = function (TYPE) {
|
|
1612
|
+
return function ($this) {
|
|
1613
|
+
var string = toString(requireObjectCoercible($this));
|
|
1614
|
+
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
1615
|
+
if (TYPE & 2) string = replace(string, rtrim, '');
|
|
1616
|
+
return string;
|
|
1617
|
+
};
|
|
1618
|
+
};
|
|
1619
|
+
|
|
1620
|
+
module.exports = {
|
|
1621
|
+
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
1622
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
1623
|
+
start: createMethod(1),
|
|
1624
|
+
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
1625
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
1626
|
+
end: createMethod(2),
|
|
1627
|
+
// `String.prototype.trim` method
|
|
1628
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1629
|
+
trim: createMethod(3)
|
|
1630
|
+
};
|
|
1631
|
+
|
|
1632
|
+
|
|
1573
1633
|
/***/ }),
|
|
1574
1634
|
|
|
1575
1635
|
/***/ "5926":
|
|
@@ -2006,6 +2066,31 @@ function _typeof(obj) {
|
|
|
2006
2066
|
module.exports = _typeof;
|
|
2007
2067
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
2008
2068
|
|
|
2069
|
+
/***/ }),
|
|
2070
|
+
|
|
2071
|
+
/***/ "7156":
|
|
2072
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2073
|
+
|
|
2074
|
+
var isCallable = __webpack_require__("1626");
|
|
2075
|
+
var isObject = __webpack_require__("861d");
|
|
2076
|
+
var setPrototypeOf = __webpack_require__("d2bb");
|
|
2077
|
+
|
|
2078
|
+
// makes subclassing work correct for wrapped built-ins
|
|
2079
|
+
module.exports = function ($this, dummy, Wrapper) {
|
|
2080
|
+
var NewTarget, NewTargetPrototype;
|
|
2081
|
+
if (
|
|
2082
|
+
// it can work only with native `setPrototypeOf`
|
|
2083
|
+
setPrototypeOf &&
|
|
2084
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
2085
|
+
isCallable(NewTarget = dummy.constructor) &&
|
|
2086
|
+
NewTarget !== Wrapper &&
|
|
2087
|
+
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
|
2088
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
2089
|
+
) setPrototypeOf($this, NewTargetPrototype);
|
|
2090
|
+
return $this;
|
|
2091
|
+
};
|
|
2092
|
+
|
|
2093
|
+
|
|
2009
2094
|
/***/ }),
|
|
2010
2095
|
|
|
2011
2096
|
/***/ "7418":
|
|
@@ -2170,6 +2255,35 @@ module.exports = Object.create || function create(O, Properties) {
|
|
|
2170
2255
|
};
|
|
2171
2256
|
|
|
2172
2257
|
|
|
2258
|
+
/***/ }),
|
|
2259
|
+
|
|
2260
|
+
/***/ "7db0":
|
|
2261
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2262
|
+
|
|
2263
|
+
"use strict";
|
|
2264
|
+
|
|
2265
|
+
var $ = __webpack_require__("23e7");
|
|
2266
|
+
var $find = __webpack_require__("b727").find;
|
|
2267
|
+
var addToUnscopables = __webpack_require__("44d2");
|
|
2268
|
+
|
|
2269
|
+
var FIND = 'find';
|
|
2270
|
+
var SKIPS_HOLES = true;
|
|
2271
|
+
|
|
2272
|
+
// Shouldn't skip holes
|
|
2273
|
+
if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
|
2274
|
+
|
|
2275
|
+
// `Array.prototype.find` method
|
|
2276
|
+
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
2277
|
+
$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
2278
|
+
find: function find(callbackfn /* , that = undefined */) {
|
|
2279
|
+
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
2280
|
+
}
|
|
2281
|
+
});
|
|
2282
|
+
|
|
2283
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2284
|
+
addToUnscopables(FIND);
|
|
2285
|
+
|
|
2286
|
+
|
|
2173
2287
|
/***/ }),
|
|
2174
2288
|
|
|
2175
2289
|
/***/ "7dd0":
|
|
@@ -2504,6 +2618,20 @@ if (!isCallable(store.inspectSource)) {
|
|
|
2504
2618
|
module.exports = store.inspectSource;
|
|
2505
2619
|
|
|
2506
2620
|
|
|
2621
|
+
/***/ }),
|
|
2622
|
+
|
|
2623
|
+
/***/ "8b00":
|
|
2624
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2625
|
+
|
|
2626
|
+
// extracted by mini-css-extract-plugin
|
|
2627
|
+
|
|
2628
|
+
/***/ }),
|
|
2629
|
+
|
|
2630
|
+
/***/ "8bbf":
|
|
2631
|
+
/***/ (function(module, exports) {
|
|
2632
|
+
|
|
2633
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;
|
|
2634
|
+
|
|
2507
2635
|
/***/ }),
|
|
2508
2636
|
|
|
2509
2637
|
/***/ "90e3":
|
|
@@ -3994,6 +4122,102 @@ module.exports = function (METHOD_NAME, argument) {
|
|
|
3994
4122
|
};
|
|
3995
4123
|
|
|
3996
4124
|
|
|
4125
|
+
/***/ }),
|
|
4126
|
+
|
|
4127
|
+
/***/ "a9e3":
|
|
4128
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4129
|
+
|
|
4130
|
+
"use strict";
|
|
4131
|
+
|
|
4132
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
4133
|
+
var global = __webpack_require__("da84");
|
|
4134
|
+
var uncurryThis = __webpack_require__("e330");
|
|
4135
|
+
var isForced = __webpack_require__("94ca");
|
|
4136
|
+
var redefine = __webpack_require__("6eeb");
|
|
4137
|
+
var hasOwn = __webpack_require__("1a2d");
|
|
4138
|
+
var inheritIfRequired = __webpack_require__("7156");
|
|
4139
|
+
var isPrototypeOf = __webpack_require__("3a9b");
|
|
4140
|
+
var isSymbol = __webpack_require__("d9b5");
|
|
4141
|
+
var toPrimitive = __webpack_require__("c04e");
|
|
4142
|
+
var fails = __webpack_require__("d039");
|
|
4143
|
+
var getOwnPropertyNames = __webpack_require__("241c").f;
|
|
4144
|
+
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
|
4145
|
+
var defineProperty = __webpack_require__("9bf2").f;
|
|
4146
|
+
var thisNumberValue = __webpack_require__("408a");
|
|
4147
|
+
var trim = __webpack_require__("58a8").trim;
|
|
4148
|
+
|
|
4149
|
+
var NUMBER = 'Number';
|
|
4150
|
+
var NativeNumber = global[NUMBER];
|
|
4151
|
+
var NumberPrototype = NativeNumber.prototype;
|
|
4152
|
+
var TypeError = global.TypeError;
|
|
4153
|
+
var arraySlice = uncurryThis(''.slice);
|
|
4154
|
+
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
4155
|
+
|
|
4156
|
+
// `ToNumeric` abstract operation
|
|
4157
|
+
// https://tc39.es/ecma262/#sec-tonumeric
|
|
4158
|
+
var toNumeric = function (value) {
|
|
4159
|
+
var primValue = toPrimitive(value, 'number');
|
|
4160
|
+
return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
|
|
4161
|
+
};
|
|
4162
|
+
|
|
4163
|
+
// `ToNumber` abstract operation
|
|
4164
|
+
// https://tc39.es/ecma262/#sec-tonumber
|
|
4165
|
+
var toNumber = function (argument) {
|
|
4166
|
+
var it = toPrimitive(argument, 'number');
|
|
4167
|
+
var first, third, radix, maxCode, digits, length, index, code;
|
|
4168
|
+
if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');
|
|
4169
|
+
if (typeof it == 'string' && it.length > 2) {
|
|
4170
|
+
it = trim(it);
|
|
4171
|
+
first = charCodeAt(it, 0);
|
|
4172
|
+
if (first === 43 || first === 45) {
|
|
4173
|
+
third = charCodeAt(it, 2);
|
|
4174
|
+
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
|
|
4175
|
+
} else if (first === 48) {
|
|
4176
|
+
switch (charCodeAt(it, 1)) {
|
|
4177
|
+
case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
|
|
4178
|
+
case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
|
|
4179
|
+
default: return +it;
|
|
4180
|
+
}
|
|
4181
|
+
digits = arraySlice(it, 2);
|
|
4182
|
+
length = digits.length;
|
|
4183
|
+
for (index = 0; index < length; index++) {
|
|
4184
|
+
code = charCodeAt(digits, index);
|
|
4185
|
+
// parseInt parses a string to a first unavailable symbol
|
|
4186
|
+
// but ToNumber should return NaN if a string contains unavailable symbols
|
|
4187
|
+
if (code < 48 || code > maxCode) return NaN;
|
|
4188
|
+
} return parseInt(digits, radix);
|
|
4189
|
+
}
|
|
4190
|
+
} return +it;
|
|
4191
|
+
};
|
|
4192
|
+
|
|
4193
|
+
// `Number` constructor
|
|
4194
|
+
// https://tc39.es/ecma262/#sec-number-constructor
|
|
4195
|
+
if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
|
|
4196
|
+
var NumberWrapper = function Number(value) {
|
|
4197
|
+
var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
|
|
4198
|
+
var dummy = this;
|
|
4199
|
+
// check on 1..constructor(foo) case
|
|
4200
|
+
return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
|
|
4201
|
+
? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
|
|
4202
|
+
};
|
|
4203
|
+
for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
|
|
4204
|
+
// ES3:
|
|
4205
|
+
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
|
|
4206
|
+
// ES2015 (in case, if modules with ES2015 Number statics required before):
|
|
4207
|
+
'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
|
|
4208
|
+
// ESNext
|
|
4209
|
+
'fromString,range'
|
|
4210
|
+
).split(','), j = 0, key; keys.length > j; j++) {
|
|
4211
|
+
if (hasOwn(NativeNumber, key = keys[j]) && !hasOwn(NumberWrapper, key)) {
|
|
4212
|
+
defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
|
|
4213
|
+
}
|
|
4214
|
+
}
|
|
4215
|
+
NumberWrapper.prototype = NumberPrototype;
|
|
4216
|
+
NumberPrototype.constructor = NumberWrapper;
|
|
4217
|
+
redefine(global, NUMBER, NumberWrapper);
|
|
4218
|
+
}
|
|
4219
|
+
|
|
4220
|
+
|
|
3997
4221
|
/***/ }),
|
|
3998
4222
|
|
|
3999
4223
|
/***/ "ac1f":
|
|
@@ -4405,6 +4629,17 @@ module.exports = function (input, pref) {
|
|
|
4405
4629
|
module.exports = false;
|
|
4406
4630
|
|
|
4407
4631
|
|
|
4632
|
+
/***/ }),
|
|
4633
|
+
|
|
4634
|
+
/***/ "c50b":
|
|
4635
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4636
|
+
|
|
4637
|
+
"use strict";
|
|
4638
|
+
/* 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");
|
|
4639
|
+
/* 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__);
|
|
4640
|
+
/* unused harmony reexport * */
|
|
4641
|
+
|
|
4642
|
+
|
|
4408
4643
|
/***/ }),
|
|
4409
4644
|
|
|
4410
4645
|
/***/ "c65b":
|
|
@@ -5779,8 +6014,13 @@ setToStringTag(global.Reflect, 'Reflect', true);
|
|
|
5779
6014
|
__webpack_require__.r(__webpack_exports__);
|
|
5780
6015
|
|
|
5781
6016
|
// EXPORTS
|
|
5782
|
-
__webpack_require__.d(__webpack_exports__, "Test", function() { return /* reexport */ Test; });
|
|
5783
6017
|
__webpack_require__.d(__webpack_exports__, "GenericTable", function() { return /* reexport */ GenericTable; });
|
|
6018
|
+
__webpack_require__.d(__webpack_exports__, "CreateForm", function() { return /* reexport */ CreateForm; });
|
|
6019
|
+
__webpack_require__.d(__webpack_exports__, "EditableField", function() { return /* reexport */ EditableField; });
|
|
6020
|
+
__webpack_require__.d(__webpack_exports__, "NewField", function() { return /* reexport */ NewField; });
|
|
6021
|
+
__webpack_require__.d(__webpack_exports__, "UpdateForm", function() { return /* reexport */ UpdateForm; });
|
|
6022
|
+
__webpack_require__.d(__webpack_exports__, "EditColumn", function() { return /* reexport */ EditColumn; });
|
|
6023
|
+
__webpack_require__.d(__webpack_exports__, "NewColumn", function() { return /* reexport */ NewColumn; });
|
|
5784
6024
|
|
|
5785
6025
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
5786
6026
|
// This file is imported into lib/wc client bundles.
|
|
@@ -5806,171 +6046,9 @@ if (typeof window !== 'undefined') {
|
|
|
5806
6046
|
// Indicate to webpack that this file can be concatenated
|
|
5807
6047
|
/* harmony default export */ var setPublicPath = (null);
|
|
5808
6048
|
|
|
5809
|
-
// 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&
|
|
5810
|
-
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)+" ")])}
|
|
5811
|
-
var staticRenderFns = []
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
// CONCATENATED MODULE: ./src/components/Test/index.vue?vue&type=template&id=16447ee5&scoped=true&
|
|
5815
|
-
|
|
5816
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
5817
|
-
function _classCallCheck(instance, Constructor) {
|
|
5818
|
-
if (!(instance instanceof Constructor)) {
|
|
5819
|
-
throw new TypeError("Cannot call a class as a function");
|
|
5820
|
-
}
|
|
5821
|
-
}
|
|
5822
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
5823
|
-
var es_function_name = __webpack_require__("b0c0");
|
|
5824
|
-
|
|
5825
|
-
// CONCATENATED MODULE: ./src/types/article.ts
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
var article_Article = function Article() {
|
|
5829
|
-
_classCallCheck(this, Article);
|
|
5830
|
-
|
|
5831
|
-
this.name = "article";
|
|
5832
|
-
};
|
|
5833
|
-
// 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&
|
|
5834
|
-
//
|
|
5835
|
-
//
|
|
5836
|
-
//
|
|
5837
|
-
//
|
|
5838
|
-
//
|
|
5839
|
-
//
|
|
5840
|
-
|
|
5841
|
-
/* harmony default export */ var Testvue_type_script_lang_js_ = ({
|
|
5842
|
-
name: "Test",
|
|
5843
|
-
data: function data() {
|
|
5844
|
-
return {
|
|
5845
|
-
model: new article_Article()
|
|
5846
|
-
};
|
|
5847
|
-
}
|
|
5848
|
-
});
|
|
5849
|
-
// CONCATENATED MODULE: ./src/components/Test/index.vue?vue&type=script&lang=js&
|
|
5850
|
-
/* harmony default export */ var components_Testvue_type_script_lang_js_ = (Testvue_type_script_lang_js_);
|
|
5851
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
5852
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
5853
|
-
|
|
5854
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
5855
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
5856
|
-
// be included in the final webpack user bundle.
|
|
5857
|
-
|
|
5858
|
-
function normalizeComponent (
|
|
5859
|
-
scriptExports,
|
|
5860
|
-
render,
|
|
5861
|
-
staticRenderFns,
|
|
5862
|
-
functionalTemplate,
|
|
5863
|
-
injectStyles,
|
|
5864
|
-
scopeId,
|
|
5865
|
-
moduleIdentifier, /* server only */
|
|
5866
|
-
shadowMode /* vue-cli only */
|
|
5867
|
-
) {
|
|
5868
|
-
// Vue.extend constructor export interop
|
|
5869
|
-
var options = typeof scriptExports === 'function'
|
|
5870
|
-
? scriptExports.options
|
|
5871
|
-
: scriptExports
|
|
5872
|
-
|
|
5873
|
-
// render functions
|
|
5874
|
-
if (render) {
|
|
5875
|
-
options.render = render
|
|
5876
|
-
options.staticRenderFns = staticRenderFns
|
|
5877
|
-
options._compiled = true
|
|
5878
|
-
}
|
|
5879
|
-
|
|
5880
|
-
// functional template
|
|
5881
|
-
if (functionalTemplate) {
|
|
5882
|
-
options.functional = true
|
|
5883
|
-
}
|
|
5884
|
-
|
|
5885
|
-
// scopedId
|
|
5886
|
-
if (scopeId) {
|
|
5887
|
-
options._scopeId = 'data-v-' + scopeId
|
|
5888
|
-
}
|
|
5889
|
-
|
|
5890
|
-
var hook
|
|
5891
|
-
if (moduleIdentifier) { // server build
|
|
5892
|
-
hook = function (context) {
|
|
5893
|
-
// 2.3 injection
|
|
5894
|
-
context =
|
|
5895
|
-
context || // cached call
|
|
5896
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
5897
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
5898
|
-
// 2.2 with runInNewContext: true
|
|
5899
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
5900
|
-
context = __VUE_SSR_CONTEXT__
|
|
5901
|
-
}
|
|
5902
|
-
// inject component styles
|
|
5903
|
-
if (injectStyles) {
|
|
5904
|
-
injectStyles.call(this, context)
|
|
5905
|
-
}
|
|
5906
|
-
// register component module identifier for async chunk inferrence
|
|
5907
|
-
if (context && context._registeredComponents) {
|
|
5908
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
5909
|
-
}
|
|
5910
|
-
}
|
|
5911
|
-
// used by ssr in case component is cached and beforeCreate
|
|
5912
|
-
// never gets called
|
|
5913
|
-
options._ssrRegister = hook
|
|
5914
|
-
} else if (injectStyles) {
|
|
5915
|
-
hook = shadowMode
|
|
5916
|
-
? function () {
|
|
5917
|
-
injectStyles.call(
|
|
5918
|
-
this,
|
|
5919
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
5920
|
-
)
|
|
5921
|
-
}
|
|
5922
|
-
: injectStyles
|
|
5923
|
-
}
|
|
5924
|
-
|
|
5925
|
-
if (hook) {
|
|
5926
|
-
if (options.functional) {
|
|
5927
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
5928
|
-
// go through the normalizer
|
|
5929
|
-
options._injectStyles = hook
|
|
5930
|
-
// register for functional component in vue file
|
|
5931
|
-
var originalRender = options.render
|
|
5932
|
-
options.render = function renderWithStyleInjection (h, context) {
|
|
5933
|
-
hook.call(context)
|
|
5934
|
-
return originalRender(h, context)
|
|
5935
|
-
}
|
|
5936
|
-
} else {
|
|
5937
|
-
// inject component registration as beforeCreate hook
|
|
5938
|
-
var existing = options.beforeCreate
|
|
5939
|
-
options.beforeCreate = existing
|
|
5940
|
-
? [].concat(existing, hook)
|
|
5941
|
-
: [hook]
|
|
5942
|
-
}
|
|
5943
|
-
}
|
|
5944
|
-
|
|
5945
|
-
return {
|
|
5946
|
-
exports: scriptExports,
|
|
5947
|
-
options: options
|
|
5948
|
-
}
|
|
5949
|
-
}
|
|
5950
|
-
|
|
5951
|
-
// CONCATENATED MODULE: ./src/components/Test/index.vue
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
/* normalize component */
|
|
5958
|
-
|
|
5959
|
-
var component = normalizeComponent(
|
|
5960
|
-
components_Testvue_type_script_lang_js_,
|
|
5961
|
-
render,
|
|
5962
|
-
staticRenderFns,
|
|
5963
|
-
false,
|
|
5964
|
-
null,
|
|
5965
|
-
"16447ee5",
|
|
5966
|
-
null
|
|
5967
|
-
|
|
5968
|
-
)
|
|
5969
|
-
|
|
5970
|
-
/* harmony default export */ var Test = (component.exports);
|
|
5971
6049
|
// 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&
|
|
5972
|
-
var
|
|
5973
|
-
var
|
|
6050
|
+
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)}
|
|
6051
|
+
var staticRenderFns = []
|
|
5974
6052
|
|
|
5975
6053
|
|
|
5976
6054
|
// CONCATENATED MODULE: ./src/components/GenericTable/index.vue?vue&type=template&id=43420de9&scoped=true&
|
|
@@ -6118,8 +6196,11 @@ var web_dom_collections_iterator = __webpack_require__("ddb0");
|
|
|
6118
6196
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
6119
6197
|
var es_array_slice = __webpack_require__("fb6a");
|
|
6120
6198
|
|
|
6121
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.
|
|
6122
|
-
var
|
|
6199
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
6200
|
+
var es_function_name = __webpack_require__("b0c0");
|
|
6201
|
+
|
|
6202
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
6203
|
+
var es_array_from = __webpack_require__("a630");
|
|
6123
6204
|
|
|
6124
6205
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
6125
6206
|
var es_regexp_exec = __webpack_require__("ac1f");
|
|
@@ -6274,6 +6355,106 @@ var GenericPaginatorvue_type_template_id_63b76916_scoped_true_staticRenderFns =
|
|
|
6274
6355
|
});
|
|
6275
6356
|
// CONCATENATED MODULE: ./src/components/GenericTable/GenericPaginator.vue?vue&type=script&lang=js&
|
|
6276
6357
|
/* harmony default export */ var GenericTable_GenericPaginatorvue_type_script_lang_js_ = (GenericPaginatorvue_type_script_lang_js_);
|
|
6358
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
6359
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
6360
|
+
|
|
6361
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
6362
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
6363
|
+
// be included in the final webpack user bundle.
|
|
6364
|
+
|
|
6365
|
+
function normalizeComponent (
|
|
6366
|
+
scriptExports,
|
|
6367
|
+
render,
|
|
6368
|
+
staticRenderFns,
|
|
6369
|
+
functionalTemplate,
|
|
6370
|
+
injectStyles,
|
|
6371
|
+
scopeId,
|
|
6372
|
+
moduleIdentifier, /* server only */
|
|
6373
|
+
shadowMode /* vue-cli only */
|
|
6374
|
+
) {
|
|
6375
|
+
// Vue.extend constructor export interop
|
|
6376
|
+
var options = typeof scriptExports === 'function'
|
|
6377
|
+
? scriptExports.options
|
|
6378
|
+
: scriptExports
|
|
6379
|
+
|
|
6380
|
+
// render functions
|
|
6381
|
+
if (render) {
|
|
6382
|
+
options.render = render
|
|
6383
|
+
options.staticRenderFns = staticRenderFns
|
|
6384
|
+
options._compiled = true
|
|
6385
|
+
}
|
|
6386
|
+
|
|
6387
|
+
// functional template
|
|
6388
|
+
if (functionalTemplate) {
|
|
6389
|
+
options.functional = true
|
|
6390
|
+
}
|
|
6391
|
+
|
|
6392
|
+
// scopedId
|
|
6393
|
+
if (scopeId) {
|
|
6394
|
+
options._scopeId = 'data-v-' + scopeId
|
|
6395
|
+
}
|
|
6396
|
+
|
|
6397
|
+
var hook
|
|
6398
|
+
if (moduleIdentifier) { // server build
|
|
6399
|
+
hook = function (context) {
|
|
6400
|
+
// 2.3 injection
|
|
6401
|
+
context =
|
|
6402
|
+
context || // cached call
|
|
6403
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
6404
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
6405
|
+
// 2.2 with runInNewContext: true
|
|
6406
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
6407
|
+
context = __VUE_SSR_CONTEXT__
|
|
6408
|
+
}
|
|
6409
|
+
// inject component styles
|
|
6410
|
+
if (injectStyles) {
|
|
6411
|
+
injectStyles.call(this, context)
|
|
6412
|
+
}
|
|
6413
|
+
// register component module identifier for async chunk inferrence
|
|
6414
|
+
if (context && context._registeredComponents) {
|
|
6415
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
6416
|
+
}
|
|
6417
|
+
}
|
|
6418
|
+
// used by ssr in case component is cached and beforeCreate
|
|
6419
|
+
// never gets called
|
|
6420
|
+
options._ssrRegister = hook
|
|
6421
|
+
} else if (injectStyles) {
|
|
6422
|
+
hook = shadowMode
|
|
6423
|
+
? function () {
|
|
6424
|
+
injectStyles.call(
|
|
6425
|
+
this,
|
|
6426
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
6427
|
+
)
|
|
6428
|
+
}
|
|
6429
|
+
: injectStyles
|
|
6430
|
+
}
|
|
6431
|
+
|
|
6432
|
+
if (hook) {
|
|
6433
|
+
if (options.functional) {
|
|
6434
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
6435
|
+
// go through the normalizer
|
|
6436
|
+
options._injectStyles = hook
|
|
6437
|
+
// register for functional component in vue file
|
|
6438
|
+
var originalRender = options.render
|
|
6439
|
+
options.render = function renderWithStyleInjection (h, context) {
|
|
6440
|
+
hook.call(context)
|
|
6441
|
+
return originalRender(h, context)
|
|
6442
|
+
}
|
|
6443
|
+
} else {
|
|
6444
|
+
// inject component registration as beforeCreate hook
|
|
6445
|
+
var existing = options.beforeCreate
|
|
6446
|
+
options.beforeCreate = existing
|
|
6447
|
+
? [].concat(existing, hook)
|
|
6448
|
+
: [hook]
|
|
6449
|
+
}
|
|
6450
|
+
}
|
|
6451
|
+
|
|
6452
|
+
return {
|
|
6453
|
+
exports: scriptExports,
|
|
6454
|
+
options: options
|
|
6455
|
+
}
|
|
6456
|
+
}
|
|
6457
|
+
|
|
6277
6458
|
// CONCATENATED MODULE: ./src/components/GenericTable/GenericPaginator.vue
|
|
6278
6459
|
|
|
6279
6460
|
|
|
@@ -6282,7 +6463,7 @@ var GenericPaginatorvue_type_template_id_63b76916_scoped_true_staticRenderFns =
|
|
|
6282
6463
|
|
|
6283
6464
|
/* normalize component */
|
|
6284
6465
|
|
|
6285
|
-
var
|
|
6466
|
+
var component = normalizeComponent(
|
|
6286
6467
|
GenericTable_GenericPaginatorvue_type_script_lang_js_,
|
|
6287
6468
|
GenericPaginatorvue_type_template_id_63b76916_scoped_true_render,
|
|
6288
6469
|
GenericPaginatorvue_type_template_id_63b76916_scoped_true_staticRenderFns,
|
|
@@ -6293,7 +6474,7 @@ var GenericPaginator_component = normalizeComponent(
|
|
|
6293
6474
|
|
|
6294
6475
|
)
|
|
6295
6476
|
|
|
6296
|
-
/* harmony default export */ var GenericPaginator = (
|
|
6477
|
+
/* harmony default export */ var GenericPaginator = (component.exports);
|
|
6297
6478
|
// 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&
|
|
6298
6479
|
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)}
|
|
6299
6480
|
var GenericFiltervue_type_template_id_86acd82e_staticRenderFns = []
|
|
@@ -6443,6 +6624,12 @@ var FilterRow_component = normalizeComponent(
|
|
|
6443
6624
|
)
|
|
6444
6625
|
|
|
6445
6626
|
/* harmony default export */ var FilterRow = (FilterRow_component.exports);
|
|
6627
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
6628
|
+
function _classCallCheck(instance, Constructor) {
|
|
6629
|
+
if (!(instance instanceof Constructor)) {
|
|
6630
|
+
throw new TypeError("Cannot call a class as a function");
|
|
6631
|
+
}
|
|
6632
|
+
}
|
|
6446
6633
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
6447
6634
|
function _defineProperties(target, props) {
|
|
6448
6635
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -7664,8 +7851,8 @@ var list_query_service_ListQueryService = /*#__PURE__*/function () {
|
|
|
7664
7851
|
|
|
7665
7852
|
var GenericTable_component = normalizeComponent(
|
|
7666
7853
|
components_GenericTablevue_type_script_lang_js_,
|
|
7667
|
-
|
|
7668
|
-
|
|
7854
|
+
render,
|
|
7855
|
+
staticRenderFns,
|
|
7669
7856
|
false,
|
|
7670
7857
|
null,
|
|
7671
7858
|
"43420de9",
|
|
@@ -7674,7 +7861,1162 @@ var GenericTable_component = normalizeComponent(
|
|
|
7674
7861
|
)
|
|
7675
7862
|
|
|
7676
7863
|
/* harmony default export */ var GenericTable = (GenericTable_component.exports);
|
|
7677
|
-
// CONCATENATED MODULE: ./src/index.
|
|
7864
|
+
// 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&
|
|
7865
|
+
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)}
|
|
7866
|
+
var CreateFormvue_type_template_id_3a62da0d_staticRenderFns = []
|
|
7867
|
+
|
|
7868
|
+
|
|
7869
|
+
// CONCATENATED MODULE: ./src/components/CreateForm/index.vue?vue&type=template&id=3a62da0d&
|
|
7870
|
+
|
|
7871
|
+
// CONCATENATED MODULE: ./src/services/resolutions.js
|
|
7872
|
+
var resolutions = {
|
|
7873
|
+
quarterResolution: {
|
|
7874
|
+
xl: 6,
|
|
7875
|
+
lg: 6,
|
|
7876
|
+
md: 6,
|
|
7877
|
+
sm: 6,
|
|
7878
|
+
xs: 6
|
|
7879
|
+
},
|
|
7880
|
+
halfResolution: {
|
|
7881
|
+
xl: 12,
|
|
7882
|
+
lg: 12,
|
|
7883
|
+
md: 12,
|
|
7884
|
+
sm: 12,
|
|
7885
|
+
xs: 12
|
|
7886
|
+
},
|
|
7887
|
+
fullFromSm: {
|
|
7888
|
+
xl: 12,
|
|
7889
|
+
lg: 12,
|
|
7890
|
+
md: 12,
|
|
7891
|
+
sm: 24,
|
|
7892
|
+
xs: 24
|
|
7893
|
+
},
|
|
7894
|
+
fullFromLg: {
|
|
7895
|
+
xl: 12,
|
|
7896
|
+
lg: 24,
|
|
7897
|
+
md: 24,
|
|
7898
|
+
sm: 24,
|
|
7899
|
+
xs: 24
|
|
7900
|
+
},
|
|
7901
|
+
fullResolution: {
|
|
7902
|
+
xl: 24,
|
|
7903
|
+
lg: 24,
|
|
7904
|
+
md: 24,
|
|
7905
|
+
sm: 24,
|
|
7906
|
+
xs: 24
|
|
7907
|
+
}
|
|
7908
|
+
};
|
|
7909
|
+
function getResolution(size) {
|
|
7910
|
+
return resolutions[size];
|
|
7911
|
+
}
|
|
7912
|
+
// 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&
|
|
7913
|
+
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)}
|
|
7914
|
+
var NewColumnvue_type_template_id_05207afe_staticRenderFns = []
|
|
7915
|
+
|
|
7916
|
+
|
|
7917
|
+
// CONCATENATED MODULE: ./src/components/PartColumn/NewColumn.vue?vue&type=template&id=05207afe&
|
|
7918
|
+
|
|
7919
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
7920
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
7921
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
7922
|
+
|
|
7923
|
+
// 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&
|
|
7924
|
+
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)])}
|
|
7925
|
+
var NewFieldvue_type_template_id_03167641_staticRenderFns = []
|
|
7926
|
+
|
|
7927
|
+
|
|
7928
|
+
// CONCATENATED MODULE: ./src/components/NewField/index.vue?vue&type=template&id=03167641&
|
|
7929
|
+
|
|
7930
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
7931
|
+
var es_number_constructor = __webpack_require__("a9e3");
|
|
7932
|
+
|
|
7933
|
+
// 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&
|
|
7934
|
+
|
|
7935
|
+
|
|
7936
|
+
|
|
7937
|
+
//
|
|
7938
|
+
//
|
|
7939
|
+
//
|
|
7940
|
+
//
|
|
7941
|
+
//
|
|
7942
|
+
//
|
|
7943
|
+
//
|
|
7944
|
+
//
|
|
7945
|
+
//
|
|
7946
|
+
//
|
|
7947
|
+
//
|
|
7948
|
+
//
|
|
7949
|
+
//
|
|
7950
|
+
//
|
|
7951
|
+
//
|
|
7952
|
+
//
|
|
7953
|
+
//
|
|
7954
|
+
//
|
|
7955
|
+
//
|
|
7956
|
+
//
|
|
7957
|
+
//
|
|
7958
|
+
//
|
|
7959
|
+
//
|
|
7960
|
+
//
|
|
7961
|
+
//
|
|
7962
|
+
//
|
|
7963
|
+
//
|
|
7964
|
+
//
|
|
7965
|
+
//
|
|
7966
|
+
/* harmony default export */ var NewFieldvue_type_script_lang_js_ = ({
|
|
7967
|
+
name: 'NewField',
|
|
7968
|
+
props: {
|
|
7969
|
+
field: {
|
|
7970
|
+
type: [String, Boolean],
|
|
7971
|
+
default: ''
|
|
7972
|
+
},
|
|
7973
|
+
filterable: {
|
|
7974
|
+
type: Boolean,
|
|
7975
|
+
default: false
|
|
7976
|
+
},
|
|
7977
|
+
value: {
|
|
7978
|
+
type: [String, Boolean, Date, Number, Array],
|
|
7979
|
+
default: ''
|
|
7980
|
+
},
|
|
7981
|
+
type: {
|
|
7982
|
+
type: String,
|
|
7983
|
+
default: 'input'
|
|
7984
|
+
},
|
|
7985
|
+
placeholder: {
|
|
7986
|
+
type: String,
|
|
7987
|
+
default: ''
|
|
7988
|
+
},
|
|
7989
|
+
selectList: {
|
|
7990
|
+
type: Array,
|
|
7991
|
+
default: function _default() {
|
|
7992
|
+
return [];
|
|
7993
|
+
}
|
|
7994
|
+
},
|
|
7995
|
+
selectMultiple: {
|
|
7996
|
+
type: Boolean,
|
|
7997
|
+
default: false
|
|
7998
|
+
},
|
|
7999
|
+
selectKey: {
|
|
8000
|
+
type: String,
|
|
8001
|
+
default: ''
|
|
8002
|
+
},
|
|
8003
|
+
selectLabel: {
|
|
8004
|
+
type: String,
|
|
8005
|
+
default: ''
|
|
8006
|
+
},
|
|
8007
|
+
selectValue: {
|
|
8008
|
+
type: String,
|
|
8009
|
+
default: ''
|
|
8010
|
+
},
|
|
8011
|
+
precision: {
|
|
8012
|
+
type: Number,
|
|
8013
|
+
default: 0
|
|
8014
|
+
},
|
|
8015
|
+
step: {
|
|
8016
|
+
type: Number,
|
|
8017
|
+
default: 1
|
|
8018
|
+
},
|
|
8019
|
+
remoteMethod: {
|
|
8020
|
+
type: Object,
|
|
8021
|
+
default: null
|
|
8022
|
+
}
|
|
8023
|
+
},
|
|
8024
|
+
data: function data() {
|
|
8025
|
+
return {
|
|
8026
|
+
loading: false,
|
|
8027
|
+
selectListLocal: [],
|
|
8028
|
+
dataModel: window._.cloneDeep(this.value)
|
|
8029
|
+
};
|
|
8030
|
+
},
|
|
8031
|
+
computed: {
|
|
8032
|
+
remote: {
|
|
8033
|
+
get: function get() {
|
|
8034
|
+
return this.remoteMethod !== null;
|
|
8035
|
+
}
|
|
8036
|
+
},
|
|
8037
|
+
remoteMethodHandler: {
|
|
8038
|
+
get: function get() {
|
|
8039
|
+
if (this.remoteMethod !== null) {
|
|
8040
|
+
return this.remoteCall;
|
|
8041
|
+
}
|
|
8042
|
+
|
|
8043
|
+
return null;
|
|
8044
|
+
}
|
|
8045
|
+
}
|
|
8046
|
+
},
|
|
8047
|
+
watch: {
|
|
8048
|
+
dataModel: function dataModel() {
|
|
8049
|
+
this.$emit('editable:save', {
|
|
8050
|
+
'field': this.field,
|
|
8051
|
+
'value': this.dataModel
|
|
8052
|
+
});
|
|
8053
|
+
},
|
|
8054
|
+
value: function value() {
|
|
8055
|
+
this.dataModel = this._.cloneDeep(this.value);
|
|
8056
|
+
}
|
|
8057
|
+
},
|
|
8058
|
+
mounted: function mounted() {
|
|
8059
|
+
this.selectListLocal = this.selectList;
|
|
8060
|
+
},
|
|
8061
|
+
methods: {
|
|
8062
|
+
remoteCall: function remoteCall(query) {
|
|
8063
|
+
var _this = this;
|
|
8064
|
+
|
|
8065
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
8066
|
+
var response;
|
|
8067
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
8068
|
+
while (1) {
|
|
8069
|
+
switch (_context.prev = _context.next) {
|
|
8070
|
+
case 0:
|
|
8071
|
+
_this.loading = true;
|
|
8072
|
+
_context.next = 3;
|
|
8073
|
+
return _this.remoteMethod.all({
|
|
8074
|
+
search: _this.selectLabel + ':' + query,
|
|
8075
|
+
searchFields: _this.selectLabel + ':like'
|
|
8076
|
+
});
|
|
8077
|
+
|
|
8078
|
+
case 3:
|
|
8079
|
+
response = _context.sent;
|
|
8080
|
+
_this.selectListLocal = response.data;
|
|
8081
|
+
_this.loading = false;
|
|
8082
|
+
|
|
8083
|
+
case 6:
|
|
8084
|
+
case "end":
|
|
8085
|
+
return _context.stop();
|
|
8086
|
+
}
|
|
8087
|
+
}
|
|
8088
|
+
}, _callee);
|
|
8089
|
+
}))();
|
|
8090
|
+
}
|
|
8091
|
+
}
|
|
8092
|
+
});
|
|
8093
|
+
// CONCATENATED MODULE: ./src/components/NewField/index.vue?vue&type=script&lang=js&
|
|
8094
|
+
/* harmony default export */ var components_NewFieldvue_type_script_lang_js_ = (NewFieldvue_type_script_lang_js_);
|
|
8095
|
+
// CONCATENATED MODULE: ./src/components/NewField/index.vue
|
|
8096
|
+
|
|
8097
|
+
|
|
8098
|
+
|
|
8099
|
+
|
|
8100
|
+
|
|
8101
|
+
/* normalize component */
|
|
8102
|
+
|
|
8103
|
+
var NewField_component = normalizeComponent(
|
|
8104
|
+
components_NewFieldvue_type_script_lang_js_,
|
|
8105
|
+
NewFieldvue_type_template_id_03167641_render,
|
|
8106
|
+
NewFieldvue_type_template_id_03167641_staticRenderFns,
|
|
8107
|
+
false,
|
|
8108
|
+
null,
|
|
8109
|
+
null,
|
|
8110
|
+
null
|
|
8111
|
+
|
|
8112
|
+
)
|
|
8113
|
+
|
|
8114
|
+
/* harmony default export */ var NewField = (NewField_component.exports);
|
|
8115
|
+
// 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&
|
|
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
|
+
//
|
|
8144
|
+
//
|
|
8145
|
+
//
|
|
8146
|
+
//
|
|
8147
|
+
//
|
|
8148
|
+
//
|
|
8149
|
+
|
|
8150
|
+
|
|
8151
|
+
|
|
8152
|
+
/* harmony default export */ var NewColumnvue_type_script_lang_js_ = ({
|
|
8153
|
+
name: 'PartColumnNew',
|
|
8154
|
+
components: {
|
|
8155
|
+
NewField: NewField
|
|
8156
|
+
},
|
|
8157
|
+
props: {
|
|
8158
|
+
colResolution: {
|
|
8159
|
+
type: Object,
|
|
8160
|
+
default: function _default() {
|
|
8161
|
+
return getResolution('fullResolution');
|
|
8162
|
+
}
|
|
8163
|
+
},
|
|
8164
|
+
colInnerResolution: {
|
|
8165
|
+
type: Object,
|
|
8166
|
+
default: function _default() {
|
|
8167
|
+
return getResolution('fullResolution');
|
|
8168
|
+
}
|
|
8169
|
+
},
|
|
8170
|
+
propPrefix: {
|
|
8171
|
+
type: String,
|
|
8172
|
+
default: ''
|
|
8173
|
+
},
|
|
8174
|
+
columnName: {
|
|
8175
|
+
type: String,
|
|
8176
|
+
default: ''
|
|
8177
|
+
},
|
|
8178
|
+
fields: {
|
|
8179
|
+
type: Array,
|
|
8180
|
+
default: function _default() {
|
|
8181
|
+
return [];
|
|
8182
|
+
}
|
|
8183
|
+
},
|
|
8184
|
+
data: {
|
|
8185
|
+
type: Object,
|
|
8186
|
+
default: function _default() {
|
|
8187
|
+
return {};
|
|
8188
|
+
}
|
|
8189
|
+
},
|
|
8190
|
+
errors: {
|
|
8191
|
+
type: Object,
|
|
8192
|
+
default: function _default() {
|
|
8193
|
+
return {};
|
|
8194
|
+
}
|
|
8195
|
+
}
|
|
8196
|
+
},
|
|
8197
|
+
data: function data() {
|
|
8198
|
+
return {
|
|
8199
|
+
dataModel: window._.cloneDeep(this.data)
|
|
8200
|
+
};
|
|
8201
|
+
},
|
|
8202
|
+
watch: {
|
|
8203
|
+
data: function data() {
|
|
8204
|
+
this.dataModel = window._.cloneDeep(this.data);
|
|
8205
|
+
}
|
|
8206
|
+
},
|
|
8207
|
+
methods: {
|
|
8208
|
+
fieldResolution: function fieldResolution(field, size) {
|
|
8209
|
+
return field.colResolution ? field.colResolution[size] : this.colInnerResolution[size];
|
|
8210
|
+
},
|
|
8211
|
+
updateValue: function updateValue(newValue) {
|
|
8212
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.set(this.data, newValue.field, newValue.value);
|
|
8213
|
+
this.$emit('save', {
|
|
8214
|
+
'field': newValue.field,
|
|
8215
|
+
'value': newValue.value
|
|
8216
|
+
});
|
|
8217
|
+
}
|
|
8218
|
+
}
|
|
8219
|
+
});
|
|
8220
|
+
// CONCATENATED MODULE: ./src/components/PartColumn/NewColumn.vue?vue&type=script&lang=js&
|
|
8221
|
+
/* harmony default export */ var PartColumn_NewColumnvue_type_script_lang_js_ = (NewColumnvue_type_script_lang_js_);
|
|
8222
|
+
// CONCATENATED MODULE: ./src/components/PartColumn/NewColumn.vue
|
|
8223
|
+
|
|
8224
|
+
|
|
8225
|
+
|
|
8226
|
+
|
|
8227
|
+
|
|
8228
|
+
/* normalize component */
|
|
8229
|
+
|
|
8230
|
+
var NewColumn_component = normalizeComponent(
|
|
8231
|
+
PartColumn_NewColumnvue_type_script_lang_js_,
|
|
8232
|
+
NewColumnvue_type_template_id_05207afe_render,
|
|
8233
|
+
NewColumnvue_type_template_id_05207afe_staticRenderFns,
|
|
8234
|
+
false,
|
|
8235
|
+
null,
|
|
8236
|
+
null,
|
|
8237
|
+
null
|
|
8238
|
+
|
|
8239
|
+
)
|
|
8240
|
+
|
|
8241
|
+
/* harmony default export */ var NewColumn = (NewColumn_component.exports);
|
|
8242
|
+
// 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&
|
|
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
|
+
//
|
|
8279
|
+
//
|
|
8280
|
+
//
|
|
8281
|
+
//
|
|
8282
|
+
//
|
|
8283
|
+
//
|
|
8284
|
+
|
|
8285
|
+
|
|
8286
|
+
|
|
8287
|
+
/* harmony default export */ var CreateFormvue_type_script_lang_js_ = ({
|
|
8288
|
+
name: "CreateForm",
|
|
8289
|
+
components: {
|
|
8290
|
+
NewColumn: NewColumn
|
|
8291
|
+
},
|
|
8292
|
+
props: {
|
|
8293
|
+
form: {
|
|
8294
|
+
type: Object,
|
|
8295
|
+
default: function _default() {
|
|
8296
|
+
return new base_model_BaseModel();
|
|
8297
|
+
}
|
|
8298
|
+
},
|
|
8299
|
+
errors: {
|
|
8300
|
+
type: Object,
|
|
8301
|
+
default: function _default() {}
|
|
8302
|
+
},
|
|
8303
|
+
config: {
|
|
8304
|
+
type: Object,
|
|
8305
|
+
default: function _default() {
|
|
8306
|
+
return {
|
|
8307
|
+
rules: null
|
|
8308
|
+
};
|
|
8309
|
+
}
|
|
8310
|
+
}
|
|
8311
|
+
},
|
|
8312
|
+
data: function data() {
|
|
8313
|
+
return {
|
|
8314
|
+
colResolutionLg: getResolution("fullResolution")
|
|
8315
|
+
};
|
|
8316
|
+
},
|
|
8317
|
+
computed: {
|
|
8318
|
+
formLocal: {
|
|
8319
|
+
get: function get() {
|
|
8320
|
+
return this.form;
|
|
8321
|
+
},
|
|
8322
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8323
|
+
set: function set(value) {
|
|
8324
|
+
this.$emit("create:form", this.form);
|
|
8325
|
+
}
|
|
8326
|
+
}
|
|
8327
|
+
},
|
|
8328
|
+
methods: {
|
|
8329
|
+
saveForm: function saveForm() {
|
|
8330
|
+
var _this = this;
|
|
8331
|
+
|
|
8332
|
+
this.$refs["form"].validate(function (valid) {
|
|
8333
|
+
if (!valid) {
|
|
8334
|
+
_this.$message.error("Fill all required fields");
|
|
8335
|
+
|
|
8336
|
+
return false;
|
|
8337
|
+
}
|
|
8338
|
+
|
|
8339
|
+
_this.$emit("save", _this.form);
|
|
8340
|
+
});
|
|
8341
|
+
}
|
|
8342
|
+
}
|
|
8343
|
+
});
|
|
8344
|
+
// CONCATENATED MODULE: ./src/components/CreateForm/index.vue?vue&type=script&lang=js&
|
|
8345
|
+
/* harmony default export */ var components_CreateFormvue_type_script_lang_js_ = (CreateFormvue_type_script_lang_js_);
|
|
8346
|
+
// CONCATENATED MODULE: ./src/components/CreateForm/index.vue
|
|
8347
|
+
|
|
8348
|
+
|
|
8349
|
+
|
|
8350
|
+
|
|
8351
|
+
|
|
8352
|
+
/* normalize component */
|
|
8353
|
+
|
|
8354
|
+
var CreateForm_component = normalizeComponent(
|
|
8355
|
+
components_CreateFormvue_type_script_lang_js_,
|
|
8356
|
+
CreateFormvue_type_template_id_3a62da0d_render,
|
|
8357
|
+
CreateFormvue_type_template_id_3a62da0d_staticRenderFns,
|
|
8358
|
+
false,
|
|
8359
|
+
null,
|
|
8360
|
+
null,
|
|
8361
|
+
null
|
|
8362
|
+
|
|
8363
|
+
)
|
|
8364
|
+
|
|
8365
|
+
/* harmony default export */ var CreateForm = (CreateForm_component.exports);
|
|
8366
|
+
// 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&
|
|
8367
|
+
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()])}
|
|
8368
|
+
var EditableFieldvue_type_template_id_6a2ea373_staticRenderFns = []
|
|
8369
|
+
|
|
8370
|
+
|
|
8371
|
+
// CONCATENATED MODULE: ./src/components/EditableField/index.vue?vue&type=template&id=6a2ea373&
|
|
8372
|
+
|
|
8373
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
8374
|
+
var es_array_find = __webpack_require__("7db0");
|
|
8375
|
+
|
|
8376
|
+
// 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&
|
|
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
|
+
//
|
|
8430
|
+
//
|
|
8431
|
+
//
|
|
8432
|
+
//
|
|
8433
|
+
//
|
|
8434
|
+
//
|
|
8435
|
+
//
|
|
8436
|
+
//
|
|
8437
|
+
//
|
|
8438
|
+
/* harmony default export */ var EditableFieldvue_type_script_lang_js_ = ({
|
|
8439
|
+
name: 'EditableField',
|
|
8440
|
+
model: {
|
|
8441
|
+
props: 'value',
|
|
8442
|
+
event: 'input'
|
|
8443
|
+
},
|
|
8444
|
+
props: {
|
|
8445
|
+
field: {
|
|
8446
|
+
type: [String, Boolean],
|
|
8447
|
+
default: ''
|
|
8448
|
+
},
|
|
8449
|
+
value: {
|
|
8450
|
+
type: [String, Boolean, Date, Number, Array],
|
|
8451
|
+
default: ''
|
|
8452
|
+
},
|
|
8453
|
+
filterable: {
|
|
8454
|
+
type: Boolean,
|
|
8455
|
+
default: false
|
|
8456
|
+
},
|
|
8457
|
+
type: {
|
|
8458
|
+
type: String,
|
|
8459
|
+
default: 'input'
|
|
8460
|
+
},
|
|
8461
|
+
placeholder: {
|
|
8462
|
+
type: String,
|
|
8463
|
+
default: ''
|
|
8464
|
+
},
|
|
8465
|
+
selectList: {
|
|
8466
|
+
type: Array,
|
|
8467
|
+
default: function _default() {
|
|
8468
|
+
return [];
|
|
8469
|
+
}
|
|
8470
|
+
},
|
|
8471
|
+
selectMultiple: {
|
|
8472
|
+
type: Boolean,
|
|
8473
|
+
default: false
|
|
8474
|
+
},
|
|
8475
|
+
selectKey: {
|
|
8476
|
+
type: String,
|
|
8477
|
+
default: ''
|
|
8478
|
+
},
|
|
8479
|
+
selectLabel: {
|
|
8480
|
+
type: String,
|
|
8481
|
+
default: ''
|
|
8482
|
+
},
|
|
8483
|
+
selectValue: {
|
|
8484
|
+
type: String,
|
|
8485
|
+
default: ''
|
|
8486
|
+
},
|
|
8487
|
+
precision: {
|
|
8488
|
+
type: Number,
|
|
8489
|
+
default: 0
|
|
8490
|
+
},
|
|
8491
|
+
step: {
|
|
8492
|
+
type: Number,
|
|
8493
|
+
default: 1
|
|
8494
|
+
},
|
|
8495
|
+
remoteMethod: {
|
|
8496
|
+
type: Object,
|
|
8497
|
+
default: null
|
|
8498
|
+
}
|
|
8499
|
+
},
|
|
8500
|
+
data: function data() {
|
|
8501
|
+
return {
|
|
8502
|
+
isEditMode: false,
|
|
8503
|
+
model: '',
|
|
8504
|
+
selectListLocal: []
|
|
8505
|
+
};
|
|
8506
|
+
},
|
|
8507
|
+
computed: {
|
|
8508
|
+
isSelectValue: {
|
|
8509
|
+
get: function get() {
|
|
8510
|
+
return (this.value || this.value === false) && this.type === 'select';
|
|
8511
|
+
}
|
|
8512
|
+
},
|
|
8513
|
+
remote: {
|
|
8514
|
+
get: function get() {
|
|
8515
|
+
return this.remoteMethod !== null;
|
|
8516
|
+
}
|
|
8517
|
+
},
|
|
8518
|
+
remoteMethodHandler: {
|
|
8519
|
+
get: function get() {
|
|
8520
|
+
if (this.remoteMethod !== null) {
|
|
8521
|
+
return this.remoteCall;
|
|
8522
|
+
}
|
|
8523
|
+
|
|
8524
|
+
return null;
|
|
8525
|
+
}
|
|
8526
|
+
}
|
|
8527
|
+
},
|
|
8528
|
+
mounted: function mounted() {
|
|
8529
|
+
this.selectListLocal = this.selectList;
|
|
8530
|
+
},
|
|
8531
|
+
methods: {
|
|
8532
|
+
createList: function createList() {
|
|
8533
|
+
var _this = this;
|
|
8534
|
+
|
|
8535
|
+
var label = '';
|
|
8536
|
+
|
|
8537
|
+
if (this.selectMultiple) {
|
|
8538
|
+
this.value.forEach(function (element) {
|
|
8539
|
+
label = label + ' ' + _this.selectList.find(function (_ref) {
|
|
8540
|
+
var value = _ref.value;
|
|
8541
|
+
return value === element;
|
|
8542
|
+
}).name;
|
|
8543
|
+
});
|
|
8544
|
+
} else if (this.selectList.length) {
|
|
8545
|
+
label = this.selectList.find(function (x) {
|
|
8546
|
+
return x[_this.selectKey] === _this.value;
|
|
8547
|
+
})[this.selectLabel];
|
|
8548
|
+
} else {
|
|
8549
|
+
label = this.value;
|
|
8550
|
+
}
|
|
8551
|
+
|
|
8552
|
+
return label;
|
|
8553
|
+
},
|
|
8554
|
+
handleDoubleClick: function handleDoubleClick() {
|
|
8555
|
+
this.$emit('editable:open');
|
|
8556
|
+
this.isEditMode = true;
|
|
8557
|
+
this.model = this.value;
|
|
8558
|
+
},
|
|
8559
|
+
handleClose: function handleClose() {
|
|
8560
|
+
this.isEditMode = false;
|
|
8561
|
+
this.$emit('editable:close');
|
|
8562
|
+
},
|
|
8563
|
+
remoteCall: function remoteCall(query) {
|
|
8564
|
+
var _this2 = this;
|
|
8565
|
+
|
|
8566
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
8567
|
+
var response;
|
|
8568
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
8569
|
+
while (1) {
|
|
8570
|
+
switch (_context.prev = _context.next) {
|
|
8571
|
+
case 0:
|
|
8572
|
+
_this2.loading = true;
|
|
8573
|
+
_context.next = 3;
|
|
8574
|
+
return _this2.remoteMethod.all({
|
|
8575
|
+
search: _this2.selectLabel + ':' + query,
|
|
8576
|
+
searchFields: _this2.selectLabel + ':like'
|
|
8577
|
+
});
|
|
8578
|
+
|
|
8579
|
+
case 3:
|
|
8580
|
+
response = _context.sent;
|
|
8581
|
+
_this2.selectListLocal = response.data;
|
|
8582
|
+
_this2.loading = false;
|
|
8583
|
+
|
|
8584
|
+
case 6:
|
|
8585
|
+
case "end":
|
|
8586
|
+
return _context.stop();
|
|
8587
|
+
}
|
|
8588
|
+
}
|
|
8589
|
+
}, _callee);
|
|
8590
|
+
}))();
|
|
8591
|
+
},
|
|
8592
|
+
handleSave: function handleSave() {
|
|
8593
|
+
var _this3 = this;
|
|
8594
|
+
|
|
8595
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
8596
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
8597
|
+
while (1) {
|
|
8598
|
+
switch (_context2.prev = _context2.next) {
|
|
8599
|
+
case 0:
|
|
8600
|
+
_this3.isEditMode = false;
|
|
8601
|
+
|
|
8602
|
+
_this3.$emit('editable:close');
|
|
8603
|
+
|
|
8604
|
+
_this3.$emit('editable:save', {
|
|
8605
|
+
'field': _this3.field,
|
|
8606
|
+
'value': _this3.model
|
|
8607
|
+
});
|
|
8608
|
+
|
|
8609
|
+
_this3.$emit('update:value', {
|
|
8610
|
+
'field': _this3.field,
|
|
8611
|
+
'value': _this3.model
|
|
8612
|
+
});
|
|
8613
|
+
|
|
8614
|
+
case 4:
|
|
8615
|
+
case "end":
|
|
8616
|
+
return _context2.stop();
|
|
8617
|
+
}
|
|
8618
|
+
}
|
|
8619
|
+
}, _callee2);
|
|
8620
|
+
}))();
|
|
8621
|
+
}
|
|
8622
|
+
}
|
|
8623
|
+
});
|
|
8624
|
+
// CONCATENATED MODULE: ./src/components/EditableField/index.vue?vue&type=script&lang=js&
|
|
8625
|
+
/* harmony default export */ var components_EditableFieldvue_type_script_lang_js_ = (EditableFieldvue_type_script_lang_js_);
|
|
8626
|
+
// CONCATENATED MODULE: ./src/components/EditableField/index.vue
|
|
8627
|
+
|
|
8628
|
+
|
|
8629
|
+
|
|
8630
|
+
|
|
8631
|
+
|
|
8632
|
+
/* normalize component */
|
|
8633
|
+
|
|
8634
|
+
var EditableField_component = normalizeComponent(
|
|
8635
|
+
components_EditableFieldvue_type_script_lang_js_,
|
|
8636
|
+
EditableFieldvue_type_template_id_6a2ea373_render,
|
|
8637
|
+
EditableFieldvue_type_template_id_6a2ea373_staticRenderFns,
|
|
8638
|
+
false,
|
|
8639
|
+
null,
|
|
8640
|
+
null,
|
|
8641
|
+
null
|
|
8642
|
+
|
|
8643
|
+
)
|
|
8644
|
+
|
|
8645
|
+
/* harmony default export */ var EditableField = (EditableField_component.exports);
|
|
8646
|
+
// 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&
|
|
8647
|
+
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)}
|
|
8648
|
+
var UpdateFormvue_type_template_id_e84e0092_staticRenderFns = []
|
|
8649
|
+
|
|
8650
|
+
|
|
8651
|
+
// CONCATENATED MODULE: ./src/components/UpdateForm/index.vue?vue&type=template&id=e84e0092&
|
|
8652
|
+
|
|
8653
|
+
// 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&
|
|
8654
|
+
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)])])}
|
|
8655
|
+
var PartFormvue_type_template_id_40daf6c5_staticRenderFns = []
|
|
8656
|
+
|
|
8657
|
+
|
|
8658
|
+
// CONCATENATED MODULE: ./src/components/PartForm/index.vue?vue&type=template&id=40daf6c5&
|
|
8659
|
+
|
|
8660
|
+
// 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&
|
|
8661
|
+
//
|
|
8662
|
+
//
|
|
8663
|
+
//
|
|
8664
|
+
//
|
|
8665
|
+
//
|
|
8666
|
+
//
|
|
8667
|
+
//
|
|
8668
|
+
//
|
|
8669
|
+
//
|
|
8670
|
+
//
|
|
8671
|
+
//
|
|
8672
|
+
//
|
|
8673
|
+
//
|
|
8674
|
+
|
|
8675
|
+
/* harmony default export */ var PartFormvue_type_script_lang_js_ = ({
|
|
8676
|
+
name: 'PartForm',
|
|
8677
|
+
props: {
|
|
8678
|
+
header: {
|
|
8679
|
+
type: String,
|
|
8680
|
+
default: ''
|
|
8681
|
+
},
|
|
8682
|
+
bodyStyle: {
|
|
8683
|
+
type: String,
|
|
8684
|
+
default: ''
|
|
8685
|
+
},
|
|
8686
|
+
rowResolution: {
|
|
8687
|
+
type: Object,
|
|
8688
|
+
default: function _default() {
|
|
8689
|
+
return getResolution('fullFromSm');
|
|
8690
|
+
}
|
|
8691
|
+
}
|
|
8692
|
+
}
|
|
8693
|
+
});
|
|
8694
|
+
// CONCATENATED MODULE: ./src/components/PartForm/index.vue?vue&type=script&lang=js&
|
|
8695
|
+
/* harmony default export */ var components_PartFormvue_type_script_lang_js_ = (PartFormvue_type_script_lang_js_);
|
|
8696
|
+
// CONCATENATED MODULE: ./src/components/PartForm/index.vue
|
|
8697
|
+
|
|
8698
|
+
|
|
8699
|
+
|
|
8700
|
+
|
|
8701
|
+
|
|
8702
|
+
/* normalize component */
|
|
8703
|
+
|
|
8704
|
+
var PartForm_component = normalizeComponent(
|
|
8705
|
+
components_PartFormvue_type_script_lang_js_,
|
|
8706
|
+
PartFormvue_type_template_id_40daf6c5_render,
|
|
8707
|
+
PartFormvue_type_template_id_40daf6c5_staticRenderFns,
|
|
8708
|
+
false,
|
|
8709
|
+
null,
|
|
8710
|
+
null,
|
|
8711
|
+
null
|
|
8712
|
+
|
|
8713
|
+
)
|
|
8714
|
+
|
|
8715
|
+
/* harmony default export */ var PartForm = (PartForm_component.exports);
|
|
8716
|
+
// 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&
|
|
8717
|
+
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)}
|
|
8718
|
+
var EditColumnvue_type_template_id_536ae88d_staticRenderFns = []
|
|
8719
|
+
|
|
8720
|
+
|
|
8721
|
+
// CONCATENATED MODULE: ./src/components/PartColumn/EditColumn.vue?vue&type=template&id=536ae88d&
|
|
8722
|
+
|
|
8723
|
+
// 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&
|
|
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
|
+
//
|
|
8752
|
+
//
|
|
8753
|
+
//
|
|
8754
|
+
//
|
|
8755
|
+
//
|
|
8756
|
+
//
|
|
8757
|
+
|
|
8758
|
+
|
|
8759
|
+
|
|
8760
|
+
/* harmony default export */ var EditColumnvue_type_script_lang_js_ = ({
|
|
8761
|
+
name: 'PartColumnEdit',
|
|
8762
|
+
components: {
|
|
8763
|
+
EditableField: EditableField
|
|
8764
|
+
},
|
|
8765
|
+
props: {
|
|
8766
|
+
colResolution: {
|
|
8767
|
+
type: Object,
|
|
8768
|
+
default: function _default() {
|
|
8769
|
+
return getResolution('fullResolution');
|
|
8770
|
+
}
|
|
8771
|
+
},
|
|
8772
|
+
colInnerResolution: {
|
|
8773
|
+
type: Object,
|
|
8774
|
+
default: function _default() {
|
|
8775
|
+
return getResolution('fullResolution');
|
|
8776
|
+
}
|
|
8777
|
+
},
|
|
8778
|
+
columnName: {
|
|
8779
|
+
type: String,
|
|
8780
|
+
default: ''
|
|
8781
|
+
},
|
|
8782
|
+
propPrefix: {
|
|
8783
|
+
type: String,
|
|
8784
|
+
default: ''
|
|
8785
|
+
},
|
|
8786
|
+
fields: {
|
|
8787
|
+
type: Array,
|
|
8788
|
+
default: function _default() {
|
|
8789
|
+
return [];
|
|
8790
|
+
}
|
|
8791
|
+
},
|
|
8792
|
+
data: {
|
|
8793
|
+
type: Object,
|
|
8794
|
+
default: function _default() {}
|
|
8795
|
+
},
|
|
8796
|
+
errors: {
|
|
8797
|
+
type: Object,
|
|
8798
|
+
default: function _default() {
|
|
8799
|
+
return {};
|
|
8800
|
+
}
|
|
8801
|
+
}
|
|
8802
|
+
},
|
|
8803
|
+
methods: {
|
|
8804
|
+
fieldResolution: function fieldResolution(field, size) {
|
|
8805
|
+
return field.colResolution ? field.colResolution[size] : this.colInnerResolution[size];
|
|
8806
|
+
},
|
|
8807
|
+
updateValue: function updateValue(newValue) {
|
|
8808
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.set(this.data, newValue.field, newValue.value);
|
|
8809
|
+
this.$emit('save', {
|
|
8810
|
+
field: newValue.field,
|
|
8811
|
+
value: newValue.value,
|
|
8812
|
+
prefix: this.propPrefix
|
|
8813
|
+
});
|
|
8814
|
+
}
|
|
8815
|
+
}
|
|
8816
|
+
});
|
|
8817
|
+
// CONCATENATED MODULE: ./src/components/PartColumn/EditColumn.vue?vue&type=script&lang=js&
|
|
8818
|
+
/* harmony default export */ var PartColumn_EditColumnvue_type_script_lang_js_ = (EditColumnvue_type_script_lang_js_);
|
|
8819
|
+
// EXTERNAL MODULE: ./src/components/PartColumn/EditColumn.vue?vue&type=style&index=0&lang=css&
|
|
8820
|
+
var EditColumnvue_type_style_index_0_lang_css_ = __webpack_require__("c50b");
|
|
8821
|
+
|
|
8822
|
+
// CONCATENATED MODULE: ./src/components/PartColumn/EditColumn.vue
|
|
8823
|
+
|
|
8824
|
+
|
|
8825
|
+
|
|
8826
|
+
|
|
8827
|
+
|
|
8828
|
+
|
|
8829
|
+
/* normalize component */
|
|
8830
|
+
|
|
8831
|
+
var EditColumn_component = normalizeComponent(
|
|
8832
|
+
PartColumn_EditColumnvue_type_script_lang_js_,
|
|
8833
|
+
EditColumnvue_type_template_id_536ae88d_render,
|
|
8834
|
+
EditColumnvue_type_template_id_536ae88d_staticRenderFns,
|
|
8835
|
+
false,
|
|
8836
|
+
null,
|
|
8837
|
+
null,
|
|
8838
|
+
null
|
|
8839
|
+
|
|
8840
|
+
)
|
|
8841
|
+
|
|
8842
|
+
/* harmony default export */ var EditColumn = (EditColumn_component.exports);
|
|
8843
|
+
// 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&
|
|
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
|
+
//
|
|
8888
|
+
//
|
|
8889
|
+
//
|
|
8890
|
+
//
|
|
8891
|
+
//
|
|
8892
|
+
|
|
8893
|
+
|
|
8894
|
+
|
|
8895
|
+
|
|
8896
|
+
/* harmony default export */ var UpdateFormvue_type_script_lang_js_ = ({
|
|
8897
|
+
name: 'UpdateForm',
|
|
8898
|
+
components: {
|
|
8899
|
+
PartForm: PartForm,
|
|
8900
|
+
EditColumn: EditColumn
|
|
8901
|
+
},
|
|
8902
|
+
provide: function provide() {
|
|
8903
|
+
var _this = this;
|
|
8904
|
+
|
|
8905
|
+
var data = {};
|
|
8906
|
+
['loading'].forEach(function (key) {
|
|
8907
|
+
Object.defineProperty(data, key, {
|
|
8908
|
+
enumerable: true,
|
|
8909
|
+
get: function get() {
|
|
8910
|
+
return _this[key];
|
|
8911
|
+
}
|
|
8912
|
+
});
|
|
8913
|
+
});
|
|
8914
|
+
return {
|
|
8915
|
+
data: data
|
|
8916
|
+
};
|
|
8917
|
+
},
|
|
8918
|
+
props: {
|
|
8919
|
+
form: {
|
|
8920
|
+
type: Object,
|
|
8921
|
+
default: function _default() {
|
|
8922
|
+
return new base_model_BaseModel();
|
|
8923
|
+
}
|
|
8924
|
+
},
|
|
8925
|
+
config: {
|
|
8926
|
+
type: Object,
|
|
8927
|
+
default: function _default() {
|
|
8928
|
+
return {
|
|
8929
|
+
rules: null
|
|
8930
|
+
};
|
|
8931
|
+
}
|
|
8932
|
+
},
|
|
8933
|
+
errors: {
|
|
8934
|
+
type: Object,
|
|
8935
|
+
default: function _default() {
|
|
8936
|
+
return {};
|
|
8937
|
+
}
|
|
8938
|
+
}
|
|
8939
|
+
},
|
|
8940
|
+
data: function data() {
|
|
8941
|
+
return {
|
|
8942
|
+
colResolutionLg: getResolution('fullResolution')
|
|
8943
|
+
};
|
|
8944
|
+
},
|
|
8945
|
+
computed: {
|
|
8946
|
+
formLocal: {
|
|
8947
|
+
get: function get() {
|
|
8948
|
+
return this.form;
|
|
8949
|
+
},
|
|
8950
|
+
set: function set(value) {
|
|
8951
|
+
this.$emit('update:form', this.form);
|
|
8952
|
+
}
|
|
8953
|
+
}
|
|
8954
|
+
},
|
|
8955
|
+
methods: {
|
|
8956
|
+
updateValue: function updateValue(data) {
|
|
8957
|
+
var _this2 = this;
|
|
8958
|
+
|
|
8959
|
+
this.$refs['form'].validateField(data.field, function (invalid) {
|
|
8960
|
+
if (!invalid) {
|
|
8961
|
+
_this2.$refs['form'].clearValidate();
|
|
8962
|
+
|
|
8963
|
+
_this2.$emit('save:value', data);
|
|
8964
|
+
} else {
|
|
8965
|
+
_this2.$message.error('Validation error');
|
|
8966
|
+
}
|
|
8967
|
+
});
|
|
8968
|
+
},
|
|
8969
|
+
deleteModel: function deleteModel() {
|
|
8970
|
+
var _this3 = this;
|
|
8971
|
+
|
|
8972
|
+
this.$confirm('This will permanently delete data. Continue?', 'Warning', {
|
|
8973
|
+
confirmButtonText: 'OK',
|
|
8974
|
+
cancelButtonText: 'Cancel',
|
|
8975
|
+
type: 'warning'
|
|
8976
|
+
}).then(function () {
|
|
8977
|
+
_this3.$message({
|
|
8978
|
+
type: 'success',
|
|
8979
|
+
message: 'Delete completed'
|
|
8980
|
+
});
|
|
8981
|
+
|
|
8982
|
+
_this3.$emit('delete:model');
|
|
8983
|
+
}).catch(function () {
|
|
8984
|
+
_this3.$message({
|
|
8985
|
+
type: 'info',
|
|
8986
|
+
message: 'Delete canceled'
|
|
8987
|
+
});
|
|
8988
|
+
});
|
|
8989
|
+
}
|
|
8990
|
+
}
|
|
8991
|
+
});
|
|
8992
|
+
// CONCATENATED MODULE: ./src/components/UpdateForm/index.vue?vue&type=script&lang=js&
|
|
8993
|
+
/* harmony default export */ var components_UpdateFormvue_type_script_lang_js_ = (UpdateFormvue_type_script_lang_js_);
|
|
8994
|
+
// CONCATENATED MODULE: ./src/components/UpdateForm/index.vue
|
|
8995
|
+
|
|
8996
|
+
|
|
8997
|
+
|
|
8998
|
+
|
|
8999
|
+
|
|
9000
|
+
/* normalize component */
|
|
9001
|
+
|
|
9002
|
+
var UpdateForm_component = normalizeComponent(
|
|
9003
|
+
components_UpdateFormvue_type_script_lang_js_,
|
|
9004
|
+
UpdateFormvue_type_template_id_e84e0092_render,
|
|
9005
|
+
UpdateFormvue_type_template_id_e84e0092_staticRenderFns,
|
|
9006
|
+
false,
|
|
9007
|
+
null,
|
|
9008
|
+
null,
|
|
9009
|
+
null
|
|
9010
|
+
|
|
9011
|
+
)
|
|
9012
|
+
|
|
9013
|
+
/* harmony default export */ var UpdateForm = (UpdateForm_component.exports);
|
|
9014
|
+
// CONCATENATED MODULE: ./src/index.ts
|
|
9015
|
+
|
|
9016
|
+
|
|
9017
|
+
|
|
9018
|
+
|
|
9019
|
+
|
|
7678
9020
|
|
|
7679
9021
|
|
|
7680
9022
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|