@tongfun/tf-widget 0.1.56 → 0.1.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tf-widget.common.js +785 -383
- package/lib/tf-widget.css +1 -1
- package/lib/tf-widget.umd.js +785 -383
- package/lib/tf-widget.umd.min.js +5 -5
- package/package.json +1 -1
package/lib/tf-widget.umd.js
CHANGED
|
@@ -125,13 +125,6 @@ module.exports = String(test) === '[object z]';
|
|
|
125
125
|
|
|
126
126
|
/***/ }),
|
|
127
127
|
|
|
128
|
-
/***/ "0293":
|
|
129
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
130
|
-
|
|
131
|
-
// extracted by mini-css-extract-plugin
|
|
132
|
-
|
|
133
|
-
/***/ }),
|
|
134
|
-
|
|
135
128
|
/***/ "02ee":
|
|
136
129
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
137
130
|
|
|
@@ -599,7 +592,7 @@ var staticRenderFns = []
|
|
|
599
592
|
|
|
600
593
|
// CONCATENATED MODULE: ./package/tf-tab-table/src/index.vue?vue&type=template&id=613dc5e4&scoped=true&
|
|
601
594
|
|
|
602
|
-
// EXTERNAL MODULE: ./package/tf-table/index.js +
|
|
595
|
+
// EXTERNAL MODULE: ./package/tf-table/index.js + 11 modules
|
|
603
596
|
var tf_table = __webpack_require__("99f4");
|
|
604
597
|
|
|
605
598
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./package/tf-tab-table/src/index.vue?vue&type=script&lang=js&
|
|
@@ -3232,7 +3225,7 @@ var staticRenderFns = []
|
|
|
3232
3225
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
3233
3226
|
var es_number_constructor = __webpack_require__("a9e3");
|
|
3234
3227
|
|
|
3235
|
-
// EXTERNAL MODULE: ./package/tf-table/index.js +
|
|
3228
|
+
// EXTERNAL MODULE: ./package/tf-table/index.js + 11 modules
|
|
3236
3229
|
var tf_table = __webpack_require__("99f4");
|
|
3237
3230
|
|
|
3238
3231
|
// EXTERNAL MODULE: ./package/tf-splitter/index.js + 5 modules
|
|
@@ -3735,7 +3728,7 @@ var tf_input = __webpack_require__("5a1e");
|
|
|
3735
3728
|
_this2.editData.children.push(cacheData);
|
|
3736
3729
|
}, reductionObj);
|
|
3737
3730
|
_context.next = 4;
|
|
3738
|
-
return Object(api_tf_table["
|
|
3731
|
+
return Object(api_tf_table["j" /* updateGroupNode */])(sendData);
|
|
3739
3732
|
|
|
3740
3733
|
case 4:
|
|
3741
3734
|
res = _context.sent;
|
|
@@ -3795,7 +3788,7 @@ var tf_input = __webpack_require__("5a1e");
|
|
|
3795
3788
|
}
|
|
3796
3789
|
}, reductionObj);
|
|
3797
3790
|
_context2.next = 4;
|
|
3798
|
-
return Object(api_tf_table["
|
|
3791
|
+
return Object(api_tf_table["j" /* updateGroupNode */])(sendData);
|
|
3799
3792
|
|
|
3800
3793
|
case 4:
|
|
3801
3794
|
res = _context2.sent;
|
|
@@ -3963,7 +3956,7 @@ var table_group_item_edit_component = Object(componentNormalizer["a" /* default
|
|
|
3963
3956
|
switch (_context.prev = _context.next) {
|
|
3964
3957
|
case 0:
|
|
3965
3958
|
_context.next = 2;
|
|
3966
|
-
return Object(api_tf_table["
|
|
3959
|
+
return Object(api_tf_table["e" /* getGroupTree */])({
|
|
3967
3960
|
code: _this.code
|
|
3968
3961
|
});
|
|
3969
3962
|
|
|
@@ -4046,7 +4039,7 @@ var table_group_item_edit_component = Object(componentNormalizer["a" /* default
|
|
|
4046
4039
|
switch (_context2.prev = _context2.next) {
|
|
4047
4040
|
case 0:
|
|
4048
4041
|
_context2.next = 2;
|
|
4049
|
-
return Object(api_tf_table["
|
|
4042
|
+
return Object(api_tf_table["i" /* removeGroupNode */])({
|
|
4050
4043
|
ids: data.id
|
|
4051
4044
|
});
|
|
4052
4045
|
|
|
@@ -6981,6 +6974,13 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
6981
6974
|
|
|
6982
6975
|
/***/ }),
|
|
6983
6976
|
|
|
6977
|
+
/***/ "3f29":
|
|
6978
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6979
|
+
|
|
6980
|
+
// extracted by mini-css-extract-plugin
|
|
6981
|
+
|
|
6982
|
+
/***/ }),
|
|
6983
|
+
|
|
6984
6984
|
/***/ "3f6b":
|
|
6985
6985
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6986
6986
|
|
|
@@ -22578,7 +22578,7 @@ var tf_table = __webpack_require__("8297");
|
|
|
22578
22578
|
return _context.abrupt("return");
|
|
22579
22579
|
|
|
22580
22580
|
case 2:
|
|
22581
|
-
currentPost = _this.id ? tf_table["
|
|
22581
|
+
currentPost = _this.id ? tf_table["d" /* getEnumOptionsById */] : tf_table["c" /* getEnumOptions */];
|
|
22582
22582
|
currentParams = _this.id ? {
|
|
22583
22583
|
id: _this.id
|
|
22584
22584
|
} : {
|
|
@@ -23183,7 +23183,7 @@ var tf_basic_table_list = __webpack_require__("a637");
|
|
|
23183
23183
|
field: _this3.currentShowField.label
|
|
23184
23184
|
};
|
|
23185
23185
|
_context.next = 5;
|
|
23186
|
-
return Object(tf_table["
|
|
23186
|
+
return Object(tf_table["h" /* getSuggestion */])(data);
|
|
23187
23187
|
|
|
23188
23188
|
case 5:
|
|
23189
23189
|
res = _context.sent;
|
|
@@ -67016,6 +67016,17 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
67016
67016
|
/***/ })
|
|
67017
67017
|
/******/ ])["default"];
|
|
67018
67018
|
|
|
67019
|
+
/***/ }),
|
|
67020
|
+
|
|
67021
|
+
/***/ "5d08":
|
|
67022
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
67023
|
+
|
|
67024
|
+
"use strict";
|
|
67025
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_41b1f54d_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3f29");
|
|
67026
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_41b1f54d_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_41b1f54d_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
67027
|
+
/* unused harmony reexport * */
|
|
67028
|
+
|
|
67029
|
+
|
|
67019
67030
|
/***/ }),
|
|
67020
67031
|
|
|
67021
67032
|
/***/ "5d29":
|
|
@@ -74289,16 +74300,17 @@ module.exports = function (it) {
|
|
|
74289
74300
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
74290
74301
|
|
|
74291
74302
|
"use strict";
|
|
74292
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74293
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74303
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getInitConfig; });
|
|
74304
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getHeaderTableInfo; });
|
|
74294
74305
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getEntityTableInfo; });
|
|
74295
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74296
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74297
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74298
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74306
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getEnumOptionsById; });
|
|
74307
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getEnumOptions; });
|
|
74308
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getSuggestion; });
|
|
74309
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getGroupTree; });
|
|
74299
74310
|
/* unused harmony export addGroupNode */
|
|
74300
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74301
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74311
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeGroupNode; });
|
|
74312
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return updateGroupNode; });
|
|
74313
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getEnumListByField; });
|
|
74302
74314
|
/* harmony import */ var _utils_request_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b775");
|
|
74303
74315
|
|
|
74304
74316
|
/** 表格配置查询 */
|
|
@@ -74394,6 +74406,14 @@ function updateGroupNode(data) {
|
|
|
74394
74406
|
method: 'post',
|
|
74395
74407
|
data: data
|
|
74396
74408
|
});
|
|
74409
|
+
} // 根据表头code和field来查询枚举类型
|
|
74410
|
+
|
|
74411
|
+
function getEnumListByField(data) {
|
|
74412
|
+
return Object(_utils_request_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
74413
|
+
url: '/api/erp/select/getEnumListByField',
|
|
74414
|
+
method: 'post',
|
|
74415
|
+
data: data
|
|
74416
|
+
});
|
|
74397
74417
|
}
|
|
74398
74418
|
|
|
74399
74419
|
/***/ }),
|
|
@@ -75922,6 +75942,325 @@ var document = __webpack_require__("ef08").document;
|
|
|
75922
75942
|
module.exports = document && document.documentElement;
|
|
75923
75943
|
|
|
75924
75944
|
|
|
75945
|
+
/***/ }),
|
|
75946
|
+
|
|
75947
|
+
/***/ "9169":
|
|
75948
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
75949
|
+
|
|
75950
|
+
"use strict";
|
|
75951
|
+
|
|
75952
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
75953
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
75954
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
75955
|
+
|
|
75956
|
+
// CONCATENATED MODULE: ./node_modules/element-ui/src/utils/dom.js
|
|
75957
|
+
/* istanbul ignore next */
|
|
75958
|
+
|
|
75959
|
+
|
|
75960
|
+
|
|
75961
|
+
const isServer = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$isServer;
|
|
75962
|
+
const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
|
|
75963
|
+
const MOZ_HACK_REGEXP = /^moz([A-Z])/;
|
|
75964
|
+
const ieVersion = isServer ? 0 : Number(document.documentMode);
|
|
75965
|
+
|
|
75966
|
+
/* istanbul ignore next */
|
|
75967
|
+
const trim = function(string) {
|
|
75968
|
+
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
|
|
75969
|
+
};
|
|
75970
|
+
/* istanbul ignore next */
|
|
75971
|
+
const camelCase = function(name) {
|
|
75972
|
+
return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
|
|
75973
|
+
return offset ? letter.toUpperCase() : letter;
|
|
75974
|
+
}).replace(MOZ_HACK_REGEXP, 'Moz$1');
|
|
75975
|
+
};
|
|
75976
|
+
|
|
75977
|
+
/* istanbul ignore next */
|
|
75978
|
+
const on = (function() {
|
|
75979
|
+
if (!isServer && document.addEventListener) {
|
|
75980
|
+
return function(element, event, handler) {
|
|
75981
|
+
if (element && event && handler) {
|
|
75982
|
+
element.addEventListener(event, handler, false);
|
|
75983
|
+
}
|
|
75984
|
+
};
|
|
75985
|
+
} else {
|
|
75986
|
+
return function(element, event, handler) {
|
|
75987
|
+
if (element && event && handler) {
|
|
75988
|
+
element.attachEvent('on' + event, handler);
|
|
75989
|
+
}
|
|
75990
|
+
};
|
|
75991
|
+
}
|
|
75992
|
+
})();
|
|
75993
|
+
|
|
75994
|
+
/* istanbul ignore next */
|
|
75995
|
+
const off = (function() {
|
|
75996
|
+
if (!isServer && document.removeEventListener) {
|
|
75997
|
+
return function(element, event, handler) {
|
|
75998
|
+
if (element && event) {
|
|
75999
|
+
element.removeEventListener(event, handler, false);
|
|
76000
|
+
}
|
|
76001
|
+
};
|
|
76002
|
+
} else {
|
|
76003
|
+
return function(element, event, handler) {
|
|
76004
|
+
if (element && event) {
|
|
76005
|
+
element.detachEvent('on' + event, handler);
|
|
76006
|
+
}
|
|
76007
|
+
};
|
|
76008
|
+
}
|
|
76009
|
+
})();
|
|
76010
|
+
|
|
76011
|
+
/* istanbul ignore next */
|
|
76012
|
+
const once = function(el, event, fn) {
|
|
76013
|
+
var listener = function() {
|
|
76014
|
+
if (fn) {
|
|
76015
|
+
fn.apply(this, arguments);
|
|
76016
|
+
}
|
|
76017
|
+
off(el, event, listener);
|
|
76018
|
+
};
|
|
76019
|
+
on(el, event, listener);
|
|
76020
|
+
};
|
|
76021
|
+
|
|
76022
|
+
/* istanbul ignore next */
|
|
76023
|
+
function hasClass(el, cls) {
|
|
76024
|
+
if (!el || !cls) return false;
|
|
76025
|
+
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
|
|
76026
|
+
if (el.classList) {
|
|
76027
|
+
return el.classList.contains(cls);
|
|
76028
|
+
} else {
|
|
76029
|
+
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
|
|
76030
|
+
}
|
|
76031
|
+
};
|
|
76032
|
+
|
|
76033
|
+
/* istanbul ignore next */
|
|
76034
|
+
function addClass(el, cls) {
|
|
76035
|
+
if (!el) return;
|
|
76036
|
+
var curClass = el.className;
|
|
76037
|
+
var classes = (cls || '').split(' ');
|
|
76038
|
+
|
|
76039
|
+
for (var i = 0, j = classes.length; i < j; i++) {
|
|
76040
|
+
var clsName = classes[i];
|
|
76041
|
+
if (!clsName) continue;
|
|
76042
|
+
|
|
76043
|
+
if (el.classList) {
|
|
76044
|
+
el.classList.add(clsName);
|
|
76045
|
+
} else if (!hasClass(el, clsName)) {
|
|
76046
|
+
curClass += ' ' + clsName;
|
|
76047
|
+
}
|
|
76048
|
+
}
|
|
76049
|
+
if (!el.classList) {
|
|
76050
|
+
el.setAttribute('class', curClass);
|
|
76051
|
+
}
|
|
76052
|
+
};
|
|
76053
|
+
|
|
76054
|
+
/* istanbul ignore next */
|
|
76055
|
+
function removeClass(el, cls) {
|
|
76056
|
+
if (!el || !cls) return;
|
|
76057
|
+
var classes = cls.split(' ');
|
|
76058
|
+
var curClass = ' ' + el.className + ' ';
|
|
76059
|
+
|
|
76060
|
+
for (var i = 0, j = classes.length; i < j; i++) {
|
|
76061
|
+
var clsName = classes[i];
|
|
76062
|
+
if (!clsName) continue;
|
|
76063
|
+
|
|
76064
|
+
if (el.classList) {
|
|
76065
|
+
el.classList.remove(clsName);
|
|
76066
|
+
} else if (hasClass(el, clsName)) {
|
|
76067
|
+
curClass = curClass.replace(' ' + clsName + ' ', ' ');
|
|
76068
|
+
}
|
|
76069
|
+
}
|
|
76070
|
+
if (!el.classList) {
|
|
76071
|
+
el.setAttribute('class', trim(curClass));
|
|
76072
|
+
}
|
|
76073
|
+
};
|
|
76074
|
+
|
|
76075
|
+
/* istanbul ignore next */
|
|
76076
|
+
const getStyle = ieVersion < 9 ? function(element, styleName) {
|
|
76077
|
+
if (isServer) return;
|
|
76078
|
+
if (!element || !styleName) return null;
|
|
76079
|
+
styleName = camelCase(styleName);
|
|
76080
|
+
if (styleName === 'float') {
|
|
76081
|
+
styleName = 'styleFloat';
|
|
76082
|
+
}
|
|
76083
|
+
try {
|
|
76084
|
+
switch (styleName) {
|
|
76085
|
+
case 'opacity':
|
|
76086
|
+
try {
|
|
76087
|
+
return element.filters.item('alpha').opacity / 100;
|
|
76088
|
+
} catch (e) {
|
|
76089
|
+
return 1.0;
|
|
76090
|
+
}
|
|
76091
|
+
default:
|
|
76092
|
+
return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null);
|
|
76093
|
+
}
|
|
76094
|
+
} catch (e) {
|
|
76095
|
+
return element.style[styleName];
|
|
76096
|
+
}
|
|
76097
|
+
} : function(element, styleName) {
|
|
76098
|
+
if (isServer) return;
|
|
76099
|
+
if (!element || !styleName) return null;
|
|
76100
|
+
styleName = camelCase(styleName);
|
|
76101
|
+
if (styleName === 'float') {
|
|
76102
|
+
styleName = 'cssFloat';
|
|
76103
|
+
}
|
|
76104
|
+
try {
|
|
76105
|
+
var computed = document.defaultView.getComputedStyle(element, '');
|
|
76106
|
+
return element.style[styleName] || computed ? computed[styleName] : null;
|
|
76107
|
+
} catch (e) {
|
|
76108
|
+
return element.style[styleName];
|
|
76109
|
+
}
|
|
76110
|
+
};
|
|
76111
|
+
|
|
76112
|
+
/* istanbul ignore next */
|
|
76113
|
+
function setStyle(element, styleName, value) {
|
|
76114
|
+
if (!element || !styleName) return;
|
|
76115
|
+
|
|
76116
|
+
if (typeof styleName === 'object') {
|
|
76117
|
+
for (var prop in styleName) {
|
|
76118
|
+
if (styleName.hasOwnProperty(prop)) {
|
|
76119
|
+
setStyle(element, prop, styleName[prop]);
|
|
76120
|
+
}
|
|
76121
|
+
}
|
|
76122
|
+
} else {
|
|
76123
|
+
styleName = camelCase(styleName);
|
|
76124
|
+
if (styleName === 'opacity' && ieVersion < 9) {
|
|
76125
|
+
element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
|
|
76126
|
+
} else {
|
|
76127
|
+
element.style[styleName] = value;
|
|
76128
|
+
}
|
|
76129
|
+
}
|
|
76130
|
+
};
|
|
76131
|
+
|
|
76132
|
+
const isScroll = (el, vertical) => {
|
|
76133
|
+
if (isServer) return;
|
|
76134
|
+
|
|
76135
|
+
const determinedDirection = vertical !== null && vertical !== undefined;
|
|
76136
|
+
const overflow = determinedDirection
|
|
76137
|
+
? vertical
|
|
76138
|
+
? getStyle(el, 'overflow-y')
|
|
76139
|
+
: getStyle(el, 'overflow-x')
|
|
76140
|
+
: getStyle(el, 'overflow');
|
|
76141
|
+
|
|
76142
|
+
return overflow.match(/(scroll|auto|overlay)/);
|
|
76143
|
+
};
|
|
76144
|
+
|
|
76145
|
+
const getScrollContainer = (el, vertical) => {
|
|
76146
|
+
if (isServer) return;
|
|
76147
|
+
|
|
76148
|
+
let parent = el;
|
|
76149
|
+
while (parent) {
|
|
76150
|
+
if ([window, document, document.documentElement].includes(parent)) {
|
|
76151
|
+
return window;
|
|
76152
|
+
}
|
|
76153
|
+
if (isScroll(parent, vertical)) {
|
|
76154
|
+
return parent;
|
|
76155
|
+
}
|
|
76156
|
+
parent = parent.parentNode;
|
|
76157
|
+
}
|
|
76158
|
+
|
|
76159
|
+
return parent;
|
|
76160
|
+
};
|
|
76161
|
+
|
|
76162
|
+
const isInContainer = (el, container) => {
|
|
76163
|
+
if (isServer || !el || !container) return false;
|
|
76164
|
+
|
|
76165
|
+
const elRect = el.getBoundingClientRect();
|
|
76166
|
+
let containerRect;
|
|
76167
|
+
|
|
76168
|
+
if ([window, document, document.documentElement, null, undefined].includes(container)) {
|
|
76169
|
+
containerRect = {
|
|
76170
|
+
top: 0,
|
|
76171
|
+
right: window.innerWidth,
|
|
76172
|
+
bottom: window.innerHeight,
|
|
76173
|
+
left: 0
|
|
76174
|
+
};
|
|
76175
|
+
} else {
|
|
76176
|
+
containerRect = container.getBoundingClientRect();
|
|
76177
|
+
}
|
|
76178
|
+
|
|
76179
|
+
return elRect.top < containerRect.bottom &&
|
|
76180
|
+
elRect.bottom > containerRect.top &&
|
|
76181
|
+
elRect.right > containerRect.left &&
|
|
76182
|
+
elRect.left < containerRect.right;
|
|
76183
|
+
};
|
|
76184
|
+
|
|
76185
|
+
// CONCATENATED MODULE: ./node_modules/element-ui/src/utils/clickoutside.js
|
|
76186
|
+
|
|
76187
|
+
|
|
76188
|
+
|
|
76189
|
+
const nodeList = [];
|
|
76190
|
+
const ctx = '@@clickoutsideContext';
|
|
76191
|
+
|
|
76192
|
+
let startClick;
|
|
76193
|
+
let seed = 0;
|
|
76194
|
+
|
|
76195
|
+
!external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$isServer && on(document, 'mousedown', e => (startClick = e));
|
|
76196
|
+
|
|
76197
|
+
!external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$isServer && on(document, 'mouseup', e => {
|
|
76198
|
+
nodeList.forEach(node => node[ctx].documentHandler(e, startClick));
|
|
76199
|
+
});
|
|
76200
|
+
|
|
76201
|
+
function createDocumentHandler(el, binding, vnode) {
|
|
76202
|
+
return function(mouseup = {}, mousedown = {}) {
|
|
76203
|
+
if (!vnode ||
|
|
76204
|
+
!vnode.context ||
|
|
76205
|
+
!mouseup.target ||
|
|
76206
|
+
!mousedown.target ||
|
|
76207
|
+
el.contains(mouseup.target) ||
|
|
76208
|
+
el.contains(mousedown.target) ||
|
|
76209
|
+
el === mouseup.target ||
|
|
76210
|
+
(vnode.context.popperElm &&
|
|
76211
|
+
(vnode.context.popperElm.contains(mouseup.target) ||
|
|
76212
|
+
vnode.context.popperElm.contains(mousedown.target)))) return;
|
|
76213
|
+
|
|
76214
|
+
if (binding.expression &&
|
|
76215
|
+
el[ctx].methodName &&
|
|
76216
|
+
vnode.context[el[ctx].methodName]) {
|
|
76217
|
+
vnode.context[el[ctx].methodName]();
|
|
76218
|
+
} else {
|
|
76219
|
+
el[ctx].bindingFn && el[ctx].bindingFn();
|
|
76220
|
+
}
|
|
76221
|
+
};
|
|
76222
|
+
}
|
|
76223
|
+
|
|
76224
|
+
/**
|
|
76225
|
+
* v-clickoutside
|
|
76226
|
+
* @desc 点击元素外面才会触发的事件
|
|
76227
|
+
* @example
|
|
76228
|
+
* ```vue
|
|
76229
|
+
* <div v-element-clickoutside="handleClose">
|
|
76230
|
+
* ```
|
|
76231
|
+
*/
|
|
76232
|
+
/* harmony default export */ var clickoutside = __webpack_exports__["a"] = ({
|
|
76233
|
+
bind(el, binding, vnode) {
|
|
76234
|
+
nodeList.push(el);
|
|
76235
|
+
const id = seed++;
|
|
76236
|
+
el[ctx] = {
|
|
76237
|
+
id,
|
|
76238
|
+
documentHandler: createDocumentHandler(el, binding, vnode),
|
|
76239
|
+
methodName: binding.expression,
|
|
76240
|
+
bindingFn: binding.value
|
|
76241
|
+
};
|
|
76242
|
+
},
|
|
76243
|
+
|
|
76244
|
+
update(el, binding, vnode) {
|
|
76245
|
+
el[ctx].documentHandler = createDocumentHandler(el, binding, vnode);
|
|
76246
|
+
el[ctx].methodName = binding.expression;
|
|
76247
|
+
el[ctx].bindingFn = binding.value;
|
|
76248
|
+
},
|
|
76249
|
+
|
|
76250
|
+
unbind(el) {
|
|
76251
|
+
let len = nodeList.length;
|
|
76252
|
+
|
|
76253
|
+
for (let i = 0; i < len; i++) {
|
|
76254
|
+
if (nodeList[i][ctx].id === el[ctx].id) {
|
|
76255
|
+
nodeList.splice(i, 1);
|
|
76256
|
+
break;
|
|
76257
|
+
}
|
|
76258
|
+
}
|
|
76259
|
+
delete el[ctx];
|
|
76260
|
+
}
|
|
76261
|
+
});
|
|
76262
|
+
|
|
76263
|
+
|
|
75925
76264
|
/***/ }),
|
|
75926
76265
|
|
|
75927
76266
|
/***/ "9263":
|
|
@@ -77425,12 +77764,29 @@ $({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
77425
77764
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
77426
77765
|
var es_function_name = __webpack_require__("b0c0");
|
|
77427
77766
|
|
|
77428
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0bbedd18-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./package/tf-table/src/index.vue?vue&type=template&id=
|
|
77429
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tf-common-table-container"},[_c('ux-grid',_vm._b({directives:[{name:"tableAutoHeight",rawName:"v-tableAutoHeight"},{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:_vm.tableRef,staticClass:"tf-common-table",attrs:{"border":"","width-resize":"","beautify-table":"","highlight-current-row":"","show-header-overflow":"","show-overflow":"tooltip","show-summary":"","summary-method":_vm.getSummaries,"data":_vm.
|
|
77767
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0bbedd18-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./package/tf-table/src/index.vue?vue&type=template&id=41b1f54d&scoped=true&
|
|
77768
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tf-common-table-container"},[_c('ux-grid',_vm._b({directives:[{name:"tableAutoHeight",rawName:"v-tableAutoHeight"},{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:_vm.tableRef,staticClass:"tf-common-table",attrs:{"border":"","width-resize":"","beautify-table":"","highlight-current-row":"","show-header-overflow":"","show-overflow":"tooltip","show-summary":"","summary-method":_vm.getSummaries,"data":_vm.filteredData,"valid-config":{ autoPos: true },"checkbox-config":{ highlight: true, trigger: 'row' },"edit-config":{ trigger: 'click', mode: 'cell', autoClear: false, showIcon: false }},on:{"cell-click":_vm.cellClick,"cell-dblclick":_vm.cellDBLClick,"current-change":_vm.currentChange,"selection-change":_vm.selectionChange}},'ux-grid',_vm.$attrs,false),[(_vm.columns.length || _vm.customColumns)?_c('ux-table-column',{attrs:{"type":"index","fixed":"left","align":"center","width":"50"}}):_vm._e(),(_vm.columns.length || _vm.customColumns)?_c('ux-table-column',{attrs:{"type":"checkbox","fixed":"left","align":"center","width":"40"}}):_vm._e(),_vm._l((_vm.columns),function(item){return _c('ux-table-column',_vm._b({key:item.field,attrs:{"min-width":"150","align":"center","resizable":""},scopedSlots:_vm._u([{key:"header",fn:function(ref){
|
|
77769
|
+
var column = ref.column;
|
|
77770
|
+
return [_vm._v(" "+_vm._s(column.title)+" "),_c('tf-filter',{staticClass:"column-header",attrs:{"config-data":item},on:{"update-filter":_vm.handleUpdateFilter}})]}}],null,true)},'ux-table-column',item,false))}),(_vm.customColumns)?_vm._t("default"):_vm._e(),_c('template',{slot:"empty"},[_c('SvgIcon',{staticStyle:{"width":"6vw","height":"6vh"},attrs:{"icon-class":"table-empty"}}),_c('div',{staticStyle:{"font-size":"1.4vh"}},[_vm._v("暂无数据")])],1)],2)],1)}
|
|
77430
77771
|
var staticRenderFns = []
|
|
77431
77772
|
|
|
77432
77773
|
|
|
77433
|
-
// CONCATENATED MODULE: ./package/tf-table/src/index.vue?vue&type=template&id=
|
|
77774
|
+
// CONCATENATED MODULE: ./package/tf-table/src/index.vue?vue&type=template&id=41b1f54d&scoped=true&
|
|
77775
|
+
|
|
77776
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js + 1 modules
|
|
77777
|
+
var objectSpread2 = __webpack_require__("5530");
|
|
77778
|
+
|
|
77779
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
77780
|
+
var es_array_filter = __webpack_require__("4de4");
|
|
77781
|
+
|
|
77782
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
77783
|
+
var es_object_keys = __webpack_require__("b64b");
|
|
77784
|
+
|
|
77785
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
77786
|
+
var es_array_includes = __webpack_require__("caad");
|
|
77787
|
+
|
|
77788
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
77789
|
+
var es_string_includes = __webpack_require__("2532");
|
|
77434
77790
|
|
|
77435
77791
|
// EXTERNAL MODULE: ./src/utils/index.js
|
|
77436
77792
|
var utils = __webpack_require__("ed08");
|
|
@@ -77477,7 +77833,298 @@ var watchParentNode = function watchParentNode(el, binding, vNode) {
|
|
|
77477
77833
|
el.watchParentNode.removeAllListeners(el.parentNode);
|
|
77478
77834
|
}
|
|
77479
77835
|
});
|
|
77836
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0bbedd18-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./package/tf-table/src/components/tf-filter/index.vue?vue&type=template&id=e9941a66&scoped=true&
|
|
77837
|
+
var tf_filtervue_type_template_id_e9941a66_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:{'filter-main':_vm.isClick || _vm.isFilter}},[_c('el-popover',{attrs:{"width":"200","trigger":"manual","placement":"bottom"},model:{value:(_vm.isClick),callback:function ($$v) {_vm.isClick=$$v},expression:"isClick"}},[(_vm.isClick)?_c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.handleClickOut),expression:"handleClickOut"}],staticClass:"filter-main-context"},[(_vm.configData.fieldType === 'select')?_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.optionsList.length === 0),expression:"optionsList.length === 0"}],staticClass:"filter-list"},_vm._l((_vm.optionsList),function(item){return _c('div',{key:item.id,staticClass:"filter-list-item",class:{select:_vm.searchData.selectList.includes(item.name)},on:{"click":function($event){return _vm.handleSelectClick(item)}}},[_vm._v(" "+_vm._s(item.name)+" ")])}),0):(_vm.configData.fieldType === 'date' || _vm.configData.fieldType === 'dateTime')?_c('div',{staticClass:"time-select"},[_c('TfInput',{attrs:{"full-border":"","not-form":"","placeholder":"起始时间","append-to-body":"","type":_vm.configData.fieldType || 'input'},model:{value:(_vm.searchData.time.startTime),callback:function ($$v) {_vm.$set(_vm.searchData.time, "startTime", $$v)},expression:"searchData.time.startTime"}}),_c('TfInput',{attrs:{"full-border":"","not-form":"","placeholder":"结束时间","append-to-body":"","type":_vm.configData.fieldType || 'input'},model:{value:(_vm.searchData.time.endTime),callback:function ($$v) {_vm.$set(_vm.searchData.time, "endTime", $$v)},expression:"searchData.time.endTime"}})],1):_c('el-input',{attrs:{"value":_vm.searchData.input,"placeholder":"输入需要过滤的值"},on:{"input":function($event){return _vm.handleInput($event)}}})],1):_vm._e(),_c('SvgIcon',{staticClass:"filter-icon",attrs:{"slot":"reference","icon-class":"filter"},on:{"mouseup":function($event){$event.stopPropagation();return _vm.handleFilterClick.apply(null, arguments)}},slot:"reference"})],1)],1)}
|
|
77838
|
+
var tf_filtervue_type_template_id_e9941a66_scoped_true_staticRenderFns = []
|
|
77839
|
+
|
|
77840
|
+
|
|
77841
|
+
// CONCATENATED MODULE: ./package/tf-table/src/components/tf-filter/index.vue?vue&type=template&id=e9941a66&scoped=true&
|
|
77842
|
+
|
|
77843
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
77844
|
+
var asyncToGenerator = __webpack_require__("1da1");
|
|
77845
|
+
|
|
77846
|
+
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
77847
|
+
var runtime = __webpack_require__("96cf");
|
|
77848
|
+
|
|
77849
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
77850
|
+
var es_array_splice = __webpack_require__("a434");
|
|
77851
|
+
|
|
77852
|
+
// EXTERNAL MODULE: ./src/api/tf-table.js
|
|
77853
|
+
var tf_table = __webpack_require__("8297");
|
|
77854
|
+
|
|
77855
|
+
// EXTERNAL MODULE: ./package/tf-input/index.js + 50 modules
|
|
77856
|
+
var tf_input = __webpack_require__("5a1e");
|
|
77857
|
+
|
|
77858
|
+
// EXTERNAL MODULE: ./node_modules/element-ui/src/utils/clickoutside.js + 1 modules
|
|
77859
|
+
var clickoutside = __webpack_require__("9169");
|
|
77860
|
+
|
|
77861
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./package/tf-table/src/components/tf-filter/index.vue?vue&type=script&lang=js&
|
|
77862
|
+
|
|
77863
|
+
|
|
77864
|
+
|
|
77865
|
+
|
|
77866
|
+
//
|
|
77867
|
+
//
|
|
77868
|
+
//
|
|
77869
|
+
//
|
|
77870
|
+
//
|
|
77871
|
+
//
|
|
77872
|
+
//
|
|
77873
|
+
//
|
|
77874
|
+
//
|
|
77875
|
+
//
|
|
77876
|
+
//
|
|
77877
|
+
//
|
|
77878
|
+
//
|
|
77879
|
+
//
|
|
77880
|
+
//
|
|
77881
|
+
//
|
|
77882
|
+
//
|
|
77883
|
+
//
|
|
77884
|
+
//
|
|
77885
|
+
//
|
|
77886
|
+
//
|
|
77887
|
+
//
|
|
77888
|
+
//
|
|
77889
|
+
//
|
|
77890
|
+
//
|
|
77891
|
+
//
|
|
77892
|
+
//
|
|
77893
|
+
//
|
|
77894
|
+
//
|
|
77895
|
+
//
|
|
77896
|
+
//
|
|
77897
|
+
//
|
|
77898
|
+
//
|
|
77899
|
+
//
|
|
77900
|
+
//
|
|
77901
|
+
//
|
|
77902
|
+
//
|
|
77903
|
+
//
|
|
77904
|
+
//
|
|
77905
|
+
//
|
|
77906
|
+
//
|
|
77907
|
+
//
|
|
77908
|
+
//
|
|
77909
|
+
//
|
|
77910
|
+
//
|
|
77911
|
+
//
|
|
77912
|
+
//
|
|
77913
|
+
//
|
|
77914
|
+
//
|
|
77915
|
+
//
|
|
77916
|
+
//
|
|
77917
|
+
//
|
|
77918
|
+
//
|
|
77919
|
+
//
|
|
77920
|
+
//
|
|
77921
|
+
//
|
|
77922
|
+
//
|
|
77923
|
+
//
|
|
77924
|
+
//
|
|
77925
|
+
//
|
|
77926
|
+
//
|
|
77927
|
+
//
|
|
77928
|
+
//
|
|
77929
|
+
//
|
|
77930
|
+
//
|
|
77931
|
+
//
|
|
77932
|
+
|
|
77933
|
+
|
|
77934
|
+
|
|
77935
|
+
/* harmony default export */ var tf_filtervue_type_script_lang_js_ = ({
|
|
77936
|
+
components: {
|
|
77937
|
+
TfInput: tf_input["a" /* default */]
|
|
77938
|
+
},
|
|
77939
|
+
directives: {
|
|
77940
|
+
Clickoutside: clickoutside["a" /* default */]
|
|
77941
|
+
},
|
|
77942
|
+
props: {
|
|
77943
|
+
configData: {
|
|
77944
|
+
type: Object,
|
|
77945
|
+
default: function _default() {
|
|
77946
|
+
return {};
|
|
77947
|
+
}
|
|
77948
|
+
}
|
|
77949
|
+
},
|
|
77950
|
+
data: function data() {
|
|
77951
|
+
return {
|
|
77952
|
+
searchData: {
|
|
77953
|
+
// 过滤时间
|
|
77954
|
+
time: {
|
|
77955
|
+
startTime: null,
|
|
77956
|
+
endTime: null
|
|
77957
|
+
},
|
|
77958
|
+
// 枚举类型
|
|
77959
|
+
selectList: [],
|
|
77960
|
+
// 过滤输入框
|
|
77961
|
+
input: ''
|
|
77962
|
+
},
|
|
77963
|
+
optionsList: [],
|
|
77964
|
+
isClick: false
|
|
77965
|
+
};
|
|
77966
|
+
},
|
|
77967
|
+
computed: {
|
|
77968
|
+
isFilter: function isFilter() {
|
|
77969
|
+
return JSON.stringify(this.searchData) !== JSON.stringify({
|
|
77970
|
+
time: {
|
|
77971
|
+
startTime: null,
|
|
77972
|
+
endTime: null
|
|
77973
|
+
},
|
|
77974
|
+
selectList: [],
|
|
77975
|
+
input: ''
|
|
77976
|
+
});
|
|
77977
|
+
}
|
|
77978
|
+
},
|
|
77979
|
+
watch: {
|
|
77980
|
+
'searchData.time': {
|
|
77981
|
+
handler: function handler(newVal) {
|
|
77982
|
+
// console.log(newVal)
|
|
77983
|
+
this.handleDateChange(newVal);
|
|
77984
|
+
},
|
|
77985
|
+
deep: true
|
|
77986
|
+
}
|
|
77987
|
+
},
|
|
77988
|
+
methods: {
|
|
77989
|
+
handleClickOut: function handleClickOut() {
|
|
77990
|
+
this.isClick = false;
|
|
77991
|
+
},
|
|
77992
|
+
handleFilterClick: function handleFilterClick() {
|
|
77993
|
+
this.getSelectOption();
|
|
77994
|
+
this.isClick = !this.isClick;
|
|
77995
|
+
},
|
|
77996
|
+
// 处理日期的改变
|
|
77997
|
+
handleDateChange: function handleDateChange(value) {
|
|
77998
|
+
this.$emit('update-filter', {
|
|
77999
|
+
value: value,
|
|
78000
|
+
configData: this.configData
|
|
78001
|
+
});
|
|
78002
|
+
},
|
|
78003
|
+
// 输入的值改变时调用
|
|
78004
|
+
handleInput: function handleInput(value) {
|
|
78005
|
+
this.searchData.input = value;
|
|
78006
|
+
this.$emit('update-filter', {
|
|
78007
|
+
value: value,
|
|
78008
|
+
configData: this.configData
|
|
78009
|
+
});
|
|
78010
|
+
},
|
|
78011
|
+
// 处理枚举选中的逻辑
|
|
78012
|
+
handleSelectClick: function handleSelectClick(item) {
|
|
78013
|
+
var index = this.searchData.selectList.indexOf(item.name);
|
|
78014
|
+
|
|
78015
|
+
if (index >= 0) {
|
|
78016
|
+
this.searchData.selectList.splice(index, 1);
|
|
78017
|
+
this.$emit('update-filter', {
|
|
78018
|
+
value: this.searchData.selectList,
|
|
78019
|
+
configData: this.configData
|
|
78020
|
+
});
|
|
78021
|
+
return;
|
|
78022
|
+
}
|
|
78023
|
+
|
|
78024
|
+
this.searchData.selectList.push(item.name);
|
|
78025
|
+
this.$emit('update-filter', {
|
|
78026
|
+
value: this.searchData.selectList,
|
|
78027
|
+
configData: this.configData
|
|
78028
|
+
});
|
|
78029
|
+
},
|
|
78030
|
+
// 获取枚举列表
|
|
78031
|
+
getSelectOption: function getSelectOption() {
|
|
78032
|
+
var _this = this;
|
|
78033
|
+
|
|
78034
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
78035
|
+
var _yield$getEnumListByF, code, data;
|
|
78036
|
+
|
|
78037
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
78038
|
+
while (1) {
|
|
78039
|
+
switch (_context.prev = _context.next) {
|
|
78040
|
+
case 0:
|
|
78041
|
+
if (!(_this.optionsList.length > 0 || !_this.configData.code || !_this.configData.field || _this.configData.fieldType !== 'select')) {
|
|
78042
|
+
_context.next = 2;
|
|
78043
|
+
break;
|
|
78044
|
+
}
|
|
78045
|
+
|
|
78046
|
+
return _context.abrupt("return");
|
|
78047
|
+
|
|
78048
|
+
case 2:
|
|
78049
|
+
_context.next = 4;
|
|
78050
|
+
return Object(tf_table["b" /* getEnumListByField */])({
|
|
78051
|
+
code: _this.configData.code,
|
|
78052
|
+
field: _this.configData.field
|
|
78053
|
+
});
|
|
78054
|
+
|
|
78055
|
+
case 4:
|
|
78056
|
+
_yield$getEnumListByF = _context.sent;
|
|
78057
|
+
code = _yield$getEnumListByF.code;
|
|
78058
|
+
data = _yield$getEnumListByF.data;
|
|
78059
|
+
|
|
78060
|
+
if (!(code !== 0)) {
|
|
78061
|
+
_context.next = 9;
|
|
78062
|
+
break;
|
|
78063
|
+
}
|
|
78064
|
+
|
|
78065
|
+
return _context.abrupt("return");
|
|
78066
|
+
|
|
78067
|
+
case 9:
|
|
78068
|
+
// 给枚举类型赋值
|
|
78069
|
+
_this.optionsList = data;
|
|
78070
|
+
|
|
78071
|
+
case 10:
|
|
78072
|
+
case "end":
|
|
78073
|
+
return _context.stop();
|
|
78074
|
+
}
|
|
78075
|
+
}
|
|
78076
|
+
}, _callee);
|
|
78077
|
+
}))();
|
|
78078
|
+
}
|
|
78079
|
+
}
|
|
78080
|
+
});
|
|
78081
|
+
// CONCATENATED MODULE: ./package/tf-table/src/components/tf-filter/index.vue?vue&type=script&lang=js&
|
|
78082
|
+
/* harmony default export */ var components_tf_filtervue_type_script_lang_js_ = (tf_filtervue_type_script_lang_js_);
|
|
78083
|
+
// EXTERNAL MODULE: ./package/tf-table/src/components/tf-filter/index.vue?vue&type=style&index=0&id=e9941a66&lang=less&scoped=true&
|
|
78084
|
+
var tf_filtervue_type_style_index_0_id_e9941a66_lang_less_scoped_true_ = __webpack_require__("da6b");
|
|
78085
|
+
|
|
78086
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
78087
|
+
var componentNormalizer = __webpack_require__("2877");
|
|
78088
|
+
|
|
78089
|
+
// CONCATENATED MODULE: ./package/tf-table/src/components/tf-filter/index.vue
|
|
78090
|
+
|
|
78091
|
+
|
|
78092
|
+
|
|
78093
|
+
|
|
78094
|
+
|
|
78095
|
+
|
|
78096
|
+
/* normalize component */
|
|
78097
|
+
|
|
78098
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
78099
|
+
components_tf_filtervue_type_script_lang_js_,
|
|
78100
|
+
tf_filtervue_type_template_id_e9941a66_scoped_true_render,
|
|
78101
|
+
tf_filtervue_type_template_id_e9941a66_scoped_true_staticRenderFns,
|
|
78102
|
+
false,
|
|
78103
|
+
null,
|
|
78104
|
+
"e9941a66",
|
|
78105
|
+
null
|
|
78106
|
+
|
|
78107
|
+
)
|
|
78108
|
+
|
|
78109
|
+
/* harmony default export */ var tf_filter = (component.exports);
|
|
77480
78110
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./package/tf-table/src/index.vue?vue&type=script&lang=js&
|
|
78111
|
+
|
|
78112
|
+
|
|
78113
|
+
|
|
78114
|
+
|
|
78115
|
+
|
|
78116
|
+
//
|
|
78117
|
+
//
|
|
78118
|
+
//
|
|
78119
|
+
//
|
|
78120
|
+
//
|
|
78121
|
+
//
|
|
78122
|
+
//
|
|
78123
|
+
//
|
|
78124
|
+
//
|
|
78125
|
+
//
|
|
78126
|
+
//
|
|
78127
|
+
//
|
|
77481
78128
|
//
|
|
77482
78129
|
//
|
|
77483
78130
|
//
|
|
@@ -77517,11 +78164,15 @@ var watchParentNode = function watchParentNode(el, binding, vNode) {
|
|
|
77517
78164
|
//
|
|
77518
78165
|
|
|
77519
78166
|
|
|
78167
|
+
|
|
77520
78168
|
/* harmony default export */ var srcvue_type_script_lang_js_ = ({
|
|
77521
78169
|
name: 'TfTable',
|
|
77522
78170
|
directives: {
|
|
77523
78171
|
tableAutoHeight: table_auto_height
|
|
77524
78172
|
},
|
|
78173
|
+
components: {
|
|
78174
|
+
TfFilter: tf_filter
|
|
78175
|
+
},
|
|
77525
78176
|
props: {
|
|
77526
78177
|
columns: {
|
|
77527
78178
|
type: Array,
|
|
@@ -77555,9 +78206,18 @@ var watchParentNode = function watchParentNode(el, binding, vNode) {
|
|
|
77555
78206
|
activated: false,
|
|
77556
78207
|
currentRow: null,
|
|
77557
78208
|
selectedRows: [],
|
|
77558
|
-
tableRef: Object(utils["b" /* randomRefName */])(15)
|
|
78209
|
+
tableRef: Object(utils["b" /* randomRefName */])(15),
|
|
78210
|
+
// 过滤条件
|
|
78211
|
+
filterOption: {},
|
|
78212
|
+
// 过滤之后的数据
|
|
78213
|
+
filteredData: []
|
|
77559
78214
|
};
|
|
77560
78215
|
},
|
|
78216
|
+
watch: {
|
|
78217
|
+
tableData: function tableData(newVal) {
|
|
78218
|
+
this.filterMethod(); // console.log('updateData')
|
|
78219
|
+
}
|
|
78220
|
+
},
|
|
77561
78221
|
methods: {
|
|
77562
78222
|
/**
|
|
77563
78223
|
* 表格当前行change事件
|
|
@@ -77592,16 +78252,70 @@ var watchParentNode = function watchParentNode(el, binding, vNode) {
|
|
|
77592
78252
|
/** 表格合计 */
|
|
77593
78253
|
getSummaries: function getSummaries() {
|
|
77594
78254
|
return [this.totalData];
|
|
78255
|
+
},
|
|
78256
|
+
|
|
78257
|
+
/** 过滤条件方法 */
|
|
78258
|
+
filterMethod: function filterMethod() {
|
|
78259
|
+
var _this = this;
|
|
78260
|
+
|
|
78261
|
+
var result = this.tableData.filter(function (e) {
|
|
78262
|
+
var keyArr = Object.keys(e);
|
|
78263
|
+
var isFilter = true;
|
|
78264
|
+
keyArr.some(function (key) {
|
|
78265
|
+
var _this$filterOption$ke;
|
|
78266
|
+
|
|
78267
|
+
// 数据存在时执行
|
|
78268
|
+
if (!!key && e[key] && (_this$filterOption$ke = _this.filterOption[key]) !== null && _this$filterOption$ke !== void 0 && _this$filterOption$ke.value) {
|
|
78269
|
+
// 时间类型的筛选
|
|
78270
|
+
if (['date', 'dateTime'].includes(_this.filterOption[key].fieldType)) {
|
|
78271
|
+
if (e[key] < _this.filterOption[key].value.startTime || e[key] > _this.filterOption[key].value.endTime) {
|
|
78272
|
+
isFilter = false;
|
|
78273
|
+
}
|
|
78274
|
+
|
|
78275
|
+
return !isFilter;
|
|
78276
|
+
} // 枚举类型筛选
|
|
78277
|
+
|
|
78278
|
+
|
|
78279
|
+
if (_this.filterOption[key].fieldType === 'select') {
|
|
78280
|
+
if (_this.filterOption[key].value.length > 0 && !_this.filterOption[key].value.includes(e[key])) {
|
|
78281
|
+
isFilter = false;
|
|
78282
|
+
}
|
|
78283
|
+
|
|
78284
|
+
return !isFilter;
|
|
78285
|
+
} // 文本数据过滤
|
|
78286
|
+
|
|
78287
|
+
|
|
78288
|
+
if (!e[key].includes(_this.filterOption[key].value)) {
|
|
78289
|
+
isFilter = false;
|
|
78290
|
+
return !isFilter;
|
|
78291
|
+
}
|
|
78292
|
+
}
|
|
78293
|
+
});
|
|
78294
|
+
return isFilter;
|
|
78295
|
+
});
|
|
78296
|
+
this.filteredData = result;
|
|
78297
|
+
},
|
|
78298
|
+
|
|
78299
|
+
/**
|
|
78300
|
+
* @param{
|
|
78301
|
+
* value: "输入的值",
|
|
78302
|
+
* configData:"在哪一列"
|
|
78303
|
+
* }
|
|
78304
|
+
*/
|
|
78305
|
+
handleUpdateFilter: function handleUpdateFilter(_ref) {
|
|
78306
|
+
var value = _ref.value,
|
|
78307
|
+
configData = _ref.configData;
|
|
78308
|
+
this.filterOption[configData.field] = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, configData), {}, {
|
|
78309
|
+
value: value
|
|
78310
|
+
});
|
|
78311
|
+
this.filterMethod();
|
|
77595
78312
|
}
|
|
77596
78313
|
}
|
|
77597
78314
|
});
|
|
77598
78315
|
// CONCATENATED MODULE: ./package/tf-table/src/index.vue?vue&type=script&lang=js&
|
|
77599
78316
|
/* harmony default export */ var tf_table_srcvue_type_script_lang_js_ = (srcvue_type_script_lang_js_);
|
|
77600
|
-
// EXTERNAL MODULE: ./package/tf-table/src/index.vue?vue&type=style&index=0&id=
|
|
77601
|
-
var
|
|
77602
|
-
|
|
77603
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
77604
|
-
var componentNormalizer = __webpack_require__("2877");
|
|
78317
|
+
// EXTERNAL MODULE: ./package/tf-table/src/index.vue?vue&type=style&index=0&id=41b1f54d&lang=less&scoped=true&
|
|
78318
|
+
var srcvue_type_style_index_0_id_41b1f54d_lang_less_scoped_true_ = __webpack_require__("5d08");
|
|
77605
78319
|
|
|
77606
78320
|
// CONCATENATED MODULE: ./package/tf-table/src/index.vue
|
|
77607
78321
|
|
|
@@ -77612,18 +78326,18 @@ var componentNormalizer = __webpack_require__("2877");
|
|
|
77612
78326
|
|
|
77613
78327
|
/* normalize component */
|
|
77614
78328
|
|
|
77615
|
-
var
|
|
78329
|
+
var src_component = Object(componentNormalizer["a" /* default */])(
|
|
77616
78330
|
tf_table_srcvue_type_script_lang_js_,
|
|
77617
78331
|
render,
|
|
77618
78332
|
staticRenderFns,
|
|
77619
78333
|
false,
|
|
77620
78334
|
null,
|
|
77621
|
-
"
|
|
78335
|
+
"41b1f54d",
|
|
77622
78336
|
null
|
|
77623
78337
|
|
|
77624
78338
|
)
|
|
77625
78339
|
|
|
77626
|
-
/* harmony default export */ var src = (
|
|
78340
|
+
/* harmony default export */ var src = (src_component.exports);
|
|
77627
78341
|
// CONCATENATED MODULE: ./package/tf-table/index.js
|
|
77628
78342
|
|
|
77629
78343
|
|
|
@@ -77632,7 +78346,7 @@ src.install = function (Vue) {
|
|
|
77632
78346
|
Vue.component(src.name, src);
|
|
77633
78347
|
};
|
|
77634
78348
|
|
|
77635
|
-
/* harmony default export */ var
|
|
78349
|
+
/* harmony default export */ var package_tf_table = __webpack_exports__["a"] = (src);
|
|
77636
78350
|
|
|
77637
78351
|
/***/ }),
|
|
77638
78352
|
|
|
@@ -80029,17 +80743,6 @@ hiddenKeys[HIDDEN] = true;
|
|
|
80029
80743
|
|
|
80030
80744
|
// extracted by mini-css-extract-plugin
|
|
80031
80745
|
|
|
80032
|
-
/***/ }),
|
|
80033
|
-
|
|
80034
|
-
/***/ "a60f":
|
|
80035
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
80036
|
-
|
|
80037
|
-
"use strict";
|
|
80038
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_110bfda6_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0293");
|
|
80039
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_110bfda6_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_110bfda6_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
80040
|
-
/* unused harmony reexport * */
|
|
80041
|
-
|
|
80042
|
-
|
|
80043
80746
|
/***/ }),
|
|
80044
80747
|
|
|
80045
80748
|
/***/ "a630":
|
|
@@ -87287,7 +87990,7 @@ module.exports = function (C, x) {
|
|
|
87287
87990
|
var _this2 = this;
|
|
87288
87991
|
|
|
87289
87992
|
return new Promise(function (resolve) {
|
|
87290
|
-
Object(_api_tf_table__WEBPACK_IMPORTED_MODULE_14__[/* getInitConfig */ "
|
|
87993
|
+
Object(_api_tf_table__WEBPACK_IMPORTED_MODULE_14__[/* getInitConfig */ "g"])({
|
|
87291
87994
|
code: _this2.code
|
|
87292
87995
|
}).then(function (res) {
|
|
87293
87996
|
if (res.code === 0) {
|
|
@@ -87337,7 +88040,7 @@ module.exports = function (C, x) {
|
|
|
87337
88040
|
|
|
87338
88041
|
_this3.mainTable.mainTableLoading = true;
|
|
87339
88042
|
_context2.next = 7;
|
|
87340
|
-
return Object(_api_tf_table__WEBPACK_IMPORTED_MODULE_14__[/* getHeaderTableInfo */ "
|
|
88043
|
+
return Object(_api_tf_table__WEBPACK_IMPORTED_MODULE_14__[/* getHeaderTableInfo */ "f"])(data);
|
|
87341
88044
|
|
|
87342
88045
|
case 7:
|
|
87343
88046
|
res = _context2.sent;
|
|
@@ -89928,6 +90631,17 @@ module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
|
|
89928
90631
|
};
|
|
89929
90632
|
|
|
89930
90633
|
|
|
90634
|
+
/***/ }),
|
|
90635
|
+
|
|
90636
|
+
/***/ "da6b":
|
|
90637
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
90638
|
+
|
|
90639
|
+
"use strict";
|
|
90640
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_e9941a66_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e61d");
|
|
90641
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_e9941a66_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_e9941a66_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
90642
|
+
/* unused harmony reexport * */
|
|
90643
|
+
|
|
90644
|
+
|
|
89931
90645
|
/***/ }),
|
|
89932
90646
|
|
|
89933
90647
|
/***/ "da84":
|
|
@@ -92313,6 +93027,13 @@ var wellKnownSymbol = __webpack_require__("b622");
|
|
|
92313
93027
|
exports.f = wellKnownSymbol;
|
|
92314
93028
|
|
|
92315
93029
|
|
|
93030
|
+
/***/ }),
|
|
93031
|
+
|
|
93032
|
+
/***/ "e61d":
|
|
93033
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
93034
|
+
|
|
93035
|
+
// extracted by mini-css-extract-plugin
|
|
93036
|
+
|
|
92316
93037
|
/***/ }),
|
|
92317
93038
|
|
|
92318
93039
|
/***/ "e62d":
|
|
@@ -113034,316 +113755,8 @@ function getOperatorOption(type) {
|
|
|
113034
113755
|
|
|
113035
113756
|
return typeEnum[type];
|
|
113036
113757
|
}
|
|
113037
|
-
// EXTERNAL MODULE:
|
|
113038
|
-
var
|
|
113039
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
113040
|
-
|
|
113041
|
-
// CONCATENATED MODULE: ./node_modules/element-ui/src/utils/dom.js
|
|
113042
|
-
/* istanbul ignore next */
|
|
113043
|
-
|
|
113044
|
-
|
|
113045
|
-
|
|
113046
|
-
const isServer = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$isServer;
|
|
113047
|
-
const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
|
|
113048
|
-
const MOZ_HACK_REGEXP = /^moz([A-Z])/;
|
|
113049
|
-
const ieVersion = isServer ? 0 : Number(document.documentMode);
|
|
113050
|
-
|
|
113051
|
-
/* istanbul ignore next */
|
|
113052
|
-
const trim = function(string) {
|
|
113053
|
-
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
|
|
113054
|
-
};
|
|
113055
|
-
/* istanbul ignore next */
|
|
113056
|
-
const camelCase = function(name) {
|
|
113057
|
-
return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
|
|
113058
|
-
return offset ? letter.toUpperCase() : letter;
|
|
113059
|
-
}).replace(MOZ_HACK_REGEXP, 'Moz$1');
|
|
113060
|
-
};
|
|
113061
|
-
|
|
113062
|
-
/* istanbul ignore next */
|
|
113063
|
-
const dom_on = (function() {
|
|
113064
|
-
if (!isServer && document.addEventListener) {
|
|
113065
|
-
return function(element, event, handler) {
|
|
113066
|
-
if (element && event && handler) {
|
|
113067
|
-
element.addEventListener(event, handler, false);
|
|
113068
|
-
}
|
|
113069
|
-
};
|
|
113070
|
-
} else {
|
|
113071
|
-
return function(element, event, handler) {
|
|
113072
|
-
if (element && event && handler) {
|
|
113073
|
-
element.attachEvent('on' + event, handler);
|
|
113074
|
-
}
|
|
113075
|
-
};
|
|
113076
|
-
}
|
|
113077
|
-
})();
|
|
113078
|
-
|
|
113079
|
-
/* istanbul ignore next */
|
|
113080
|
-
const dom_off = (function() {
|
|
113081
|
-
if (!isServer && document.removeEventListener) {
|
|
113082
|
-
return function(element, event, handler) {
|
|
113083
|
-
if (element && event) {
|
|
113084
|
-
element.removeEventListener(event, handler, false);
|
|
113085
|
-
}
|
|
113086
|
-
};
|
|
113087
|
-
} else {
|
|
113088
|
-
return function(element, event, handler) {
|
|
113089
|
-
if (element && event) {
|
|
113090
|
-
element.detachEvent('on' + event, handler);
|
|
113091
|
-
}
|
|
113092
|
-
};
|
|
113093
|
-
}
|
|
113094
|
-
})();
|
|
113095
|
-
|
|
113096
|
-
/* istanbul ignore next */
|
|
113097
|
-
const once = function(el, event, fn) {
|
|
113098
|
-
var listener = function() {
|
|
113099
|
-
if (fn) {
|
|
113100
|
-
fn.apply(this, arguments);
|
|
113101
|
-
}
|
|
113102
|
-
dom_off(el, event, listener);
|
|
113103
|
-
};
|
|
113104
|
-
dom_on(el, event, listener);
|
|
113105
|
-
};
|
|
113106
|
-
|
|
113107
|
-
/* istanbul ignore next */
|
|
113108
|
-
function hasClass(el, cls) {
|
|
113109
|
-
if (!el || !cls) return false;
|
|
113110
|
-
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
|
|
113111
|
-
if (el.classList) {
|
|
113112
|
-
return el.classList.contains(cls);
|
|
113113
|
-
} else {
|
|
113114
|
-
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
|
|
113115
|
-
}
|
|
113116
|
-
};
|
|
113117
|
-
|
|
113118
|
-
/* istanbul ignore next */
|
|
113119
|
-
function addClass(el, cls) {
|
|
113120
|
-
if (!el) return;
|
|
113121
|
-
var curClass = el.className;
|
|
113122
|
-
var classes = (cls || '').split(' ');
|
|
113123
|
-
|
|
113124
|
-
for (var i = 0, j = classes.length; i < j; i++) {
|
|
113125
|
-
var clsName = classes[i];
|
|
113126
|
-
if (!clsName) continue;
|
|
113127
|
-
|
|
113128
|
-
if (el.classList) {
|
|
113129
|
-
el.classList.add(clsName);
|
|
113130
|
-
} else if (!hasClass(el, clsName)) {
|
|
113131
|
-
curClass += ' ' + clsName;
|
|
113132
|
-
}
|
|
113133
|
-
}
|
|
113134
|
-
if (!el.classList) {
|
|
113135
|
-
el.setAttribute('class', curClass);
|
|
113136
|
-
}
|
|
113137
|
-
};
|
|
113138
|
-
|
|
113139
|
-
/* istanbul ignore next */
|
|
113140
|
-
function removeClass(el, cls) {
|
|
113141
|
-
if (!el || !cls) return;
|
|
113142
|
-
var classes = cls.split(' ');
|
|
113143
|
-
var curClass = ' ' + el.className + ' ';
|
|
113144
|
-
|
|
113145
|
-
for (var i = 0, j = classes.length; i < j; i++) {
|
|
113146
|
-
var clsName = classes[i];
|
|
113147
|
-
if (!clsName) continue;
|
|
113148
|
-
|
|
113149
|
-
if (el.classList) {
|
|
113150
|
-
el.classList.remove(clsName);
|
|
113151
|
-
} else if (hasClass(el, clsName)) {
|
|
113152
|
-
curClass = curClass.replace(' ' + clsName + ' ', ' ');
|
|
113153
|
-
}
|
|
113154
|
-
}
|
|
113155
|
-
if (!el.classList) {
|
|
113156
|
-
el.setAttribute('class', trim(curClass));
|
|
113157
|
-
}
|
|
113158
|
-
};
|
|
113159
|
-
|
|
113160
|
-
/* istanbul ignore next */
|
|
113161
|
-
const getStyle = ieVersion < 9 ? function(element, styleName) {
|
|
113162
|
-
if (isServer) return;
|
|
113163
|
-
if (!element || !styleName) return null;
|
|
113164
|
-
styleName = camelCase(styleName);
|
|
113165
|
-
if (styleName === 'float') {
|
|
113166
|
-
styleName = 'styleFloat';
|
|
113167
|
-
}
|
|
113168
|
-
try {
|
|
113169
|
-
switch (styleName) {
|
|
113170
|
-
case 'opacity':
|
|
113171
|
-
try {
|
|
113172
|
-
return element.filters.item('alpha').opacity / 100;
|
|
113173
|
-
} catch (e) {
|
|
113174
|
-
return 1.0;
|
|
113175
|
-
}
|
|
113176
|
-
default:
|
|
113177
|
-
return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null);
|
|
113178
|
-
}
|
|
113179
|
-
} catch (e) {
|
|
113180
|
-
return element.style[styleName];
|
|
113181
|
-
}
|
|
113182
|
-
} : function(element, styleName) {
|
|
113183
|
-
if (isServer) return;
|
|
113184
|
-
if (!element || !styleName) return null;
|
|
113185
|
-
styleName = camelCase(styleName);
|
|
113186
|
-
if (styleName === 'float') {
|
|
113187
|
-
styleName = 'cssFloat';
|
|
113188
|
-
}
|
|
113189
|
-
try {
|
|
113190
|
-
var computed = document.defaultView.getComputedStyle(element, '');
|
|
113191
|
-
return element.style[styleName] || computed ? computed[styleName] : null;
|
|
113192
|
-
} catch (e) {
|
|
113193
|
-
return element.style[styleName];
|
|
113194
|
-
}
|
|
113195
|
-
};
|
|
113196
|
-
|
|
113197
|
-
/* istanbul ignore next */
|
|
113198
|
-
function setStyle(element, styleName, value) {
|
|
113199
|
-
if (!element || !styleName) return;
|
|
113200
|
-
|
|
113201
|
-
if (typeof styleName === 'object') {
|
|
113202
|
-
for (var prop in styleName) {
|
|
113203
|
-
if (styleName.hasOwnProperty(prop)) {
|
|
113204
|
-
setStyle(element, prop, styleName[prop]);
|
|
113205
|
-
}
|
|
113206
|
-
}
|
|
113207
|
-
} else {
|
|
113208
|
-
styleName = camelCase(styleName);
|
|
113209
|
-
if (styleName === 'opacity' && ieVersion < 9) {
|
|
113210
|
-
element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
|
|
113211
|
-
} else {
|
|
113212
|
-
element.style[styleName] = value;
|
|
113213
|
-
}
|
|
113214
|
-
}
|
|
113215
|
-
};
|
|
113216
|
-
|
|
113217
|
-
const isScroll = (el, vertical) => {
|
|
113218
|
-
if (isServer) return;
|
|
113219
|
-
|
|
113220
|
-
const determinedDirection = vertical !== null && vertical !== undefined;
|
|
113221
|
-
const overflow = determinedDirection
|
|
113222
|
-
? vertical
|
|
113223
|
-
? getStyle(el, 'overflow-y')
|
|
113224
|
-
: getStyle(el, 'overflow-x')
|
|
113225
|
-
: getStyle(el, 'overflow');
|
|
113226
|
-
|
|
113227
|
-
return overflow.match(/(scroll|auto|overlay)/);
|
|
113228
|
-
};
|
|
113229
|
-
|
|
113230
|
-
const getScrollContainer = (el, vertical) => {
|
|
113231
|
-
if (isServer) return;
|
|
113232
|
-
|
|
113233
|
-
let parent = el;
|
|
113234
|
-
while (parent) {
|
|
113235
|
-
if ([window, document, document.documentElement].includes(parent)) {
|
|
113236
|
-
return window;
|
|
113237
|
-
}
|
|
113238
|
-
if (isScroll(parent, vertical)) {
|
|
113239
|
-
return parent;
|
|
113240
|
-
}
|
|
113241
|
-
parent = parent.parentNode;
|
|
113242
|
-
}
|
|
113243
|
-
|
|
113244
|
-
return parent;
|
|
113245
|
-
};
|
|
113246
|
-
|
|
113247
|
-
const isInContainer = (el, container) => {
|
|
113248
|
-
if (isServer || !el || !container) return false;
|
|
113249
|
-
|
|
113250
|
-
const elRect = el.getBoundingClientRect();
|
|
113251
|
-
let containerRect;
|
|
113252
|
-
|
|
113253
|
-
if ([window, document, document.documentElement, null, undefined].includes(container)) {
|
|
113254
|
-
containerRect = {
|
|
113255
|
-
top: 0,
|
|
113256
|
-
right: window.innerWidth,
|
|
113257
|
-
bottom: window.innerHeight,
|
|
113258
|
-
left: 0
|
|
113259
|
-
};
|
|
113260
|
-
} else {
|
|
113261
|
-
containerRect = container.getBoundingClientRect();
|
|
113262
|
-
}
|
|
113263
|
-
|
|
113264
|
-
return elRect.top < containerRect.bottom &&
|
|
113265
|
-
elRect.bottom > containerRect.top &&
|
|
113266
|
-
elRect.right > containerRect.left &&
|
|
113267
|
-
elRect.left < containerRect.right;
|
|
113268
|
-
};
|
|
113269
|
-
|
|
113270
|
-
// CONCATENATED MODULE: ./node_modules/element-ui/src/utils/clickoutside.js
|
|
113271
|
-
|
|
113272
|
-
|
|
113273
|
-
|
|
113274
|
-
const nodeList = [];
|
|
113275
|
-
const ctx = '@@clickoutsideContext';
|
|
113276
|
-
|
|
113277
|
-
let startClick;
|
|
113278
|
-
let clickoutside_seed = 0;
|
|
113279
|
-
|
|
113280
|
-
!external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$isServer && dom_on(document, 'mousedown', e => (startClick = e));
|
|
113281
|
-
|
|
113282
|
-
!external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$isServer && dom_on(document, 'mouseup', e => {
|
|
113283
|
-
nodeList.forEach(node => node[ctx].documentHandler(e, startClick));
|
|
113284
|
-
});
|
|
113285
|
-
|
|
113286
|
-
function createDocumentHandler(el, binding, vnode) {
|
|
113287
|
-
return function(mouseup = {}, mousedown = {}) {
|
|
113288
|
-
if (!vnode ||
|
|
113289
|
-
!vnode.context ||
|
|
113290
|
-
!mouseup.target ||
|
|
113291
|
-
!mousedown.target ||
|
|
113292
|
-
el.contains(mouseup.target) ||
|
|
113293
|
-
el.contains(mousedown.target) ||
|
|
113294
|
-
el === mouseup.target ||
|
|
113295
|
-
(vnode.context.popperElm &&
|
|
113296
|
-
(vnode.context.popperElm.contains(mouseup.target) ||
|
|
113297
|
-
vnode.context.popperElm.contains(mousedown.target)))) return;
|
|
113298
|
-
|
|
113299
|
-
if (binding.expression &&
|
|
113300
|
-
el[ctx].methodName &&
|
|
113301
|
-
vnode.context[el[ctx].methodName]) {
|
|
113302
|
-
vnode.context[el[ctx].methodName]();
|
|
113303
|
-
} else {
|
|
113304
|
-
el[ctx].bindingFn && el[ctx].bindingFn();
|
|
113305
|
-
}
|
|
113306
|
-
};
|
|
113307
|
-
}
|
|
113308
|
-
|
|
113309
|
-
/**
|
|
113310
|
-
* v-clickoutside
|
|
113311
|
-
* @desc 点击元素外面才会触发的事件
|
|
113312
|
-
* @example
|
|
113313
|
-
* ```vue
|
|
113314
|
-
* <div v-element-clickoutside="handleClose">
|
|
113315
|
-
* ```
|
|
113316
|
-
*/
|
|
113317
|
-
/* harmony default export */ var clickoutside = ({
|
|
113318
|
-
bind(el, binding, vnode) {
|
|
113319
|
-
nodeList.push(el);
|
|
113320
|
-
const id = clickoutside_seed++;
|
|
113321
|
-
el[ctx] = {
|
|
113322
|
-
id,
|
|
113323
|
-
documentHandler: createDocumentHandler(el, binding, vnode),
|
|
113324
|
-
methodName: binding.expression,
|
|
113325
|
-
bindingFn: binding.value
|
|
113326
|
-
};
|
|
113327
|
-
},
|
|
113328
|
-
|
|
113329
|
-
update(el, binding, vnode) {
|
|
113330
|
-
el[ctx].documentHandler = createDocumentHandler(el, binding, vnode);
|
|
113331
|
-
el[ctx].methodName = binding.expression;
|
|
113332
|
-
el[ctx].bindingFn = binding.value;
|
|
113333
|
-
},
|
|
113334
|
-
|
|
113335
|
-
unbind(el) {
|
|
113336
|
-
let len = nodeList.length;
|
|
113337
|
-
|
|
113338
|
-
for (let i = 0; i < len; i++) {
|
|
113339
|
-
if (nodeList[i][ctx].id === el[ctx].id) {
|
|
113340
|
-
nodeList.splice(i, 1);
|
|
113341
|
-
break;
|
|
113342
|
-
}
|
|
113343
|
-
}
|
|
113344
|
-
delete el[ctx];
|
|
113345
|
-
}
|
|
113346
|
-
});
|
|
113758
|
+
// EXTERNAL MODULE: ./node_modules/element-ui/src/utils/clickoutside.js + 1 modules
|
|
113759
|
+
var clickoutside = __webpack_require__("9169");
|
|
113347
113760
|
|
|
113348
113761
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0bbedd18-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./package/t-data-list/src/t-plan/condition-mult-item.vue?vue&type=template&id=9d5296ae&scoped=true&
|
|
113349
113762
|
var condition_mult_itemvue_type_template_id_9d5296ae_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"condition-item"},[_c('el-select',{staticClass:"bracket",attrs:{"popper-append-to-body":false,"size":"mini","placeholder":""},model:{value:(_vm.condition.leftBracket),callback:function ($$v) {_vm.$set(_vm.condition, "leftBracket", $$v)},expression:"condition.leftBracket"}},[_c('el-option',{attrs:{"lable":"(","value":"("}}),_c('el-option',{attrs:{"lable":"((","value":"(("}}),_c('el-option',{attrs:{"lable":"(((","value":"((("}})],1),_c('el-select',{staticClass:"condition-field",attrs:{"popper-append-to-body":false,"size":"mini","placeholder":""},on:{"change":_vm.handleFieldSelect},model:{value:(_vm.condition.field),callback:function ($$v) {_vm.$set(_vm.condition, "field", $$v)},expression:"condition.field"}},_vm._l((_vm.fieldsOptions),function(option){return _c('el-option',{key:option.field,attrs:{"label":option.title,"value":option.field}})}),1),_c('el-select',{staticClass:"condition-operator",attrs:{"popper-append-to-body":false,"size":"mini","placeholder":""},model:{value:(_vm.condition.operator),callback:function ($$v) {_vm.$set(_vm.condition, "operator", $$v)},expression:"condition.operator"}},_vm._l((_vm.operatorOptions),function(option){return _c('el-option',{key:option.value,attrs:{"label":option.label,"value":option.value}})}),1),_c('ConditionInput',{attrs:{"disabled":_vm.inputDisabled,"type":_vm.inputType,"field":_vm.condition.field,"multi":_vm.multiSelect,"range":_vm.range},model:{value:(_vm.condition.value),callback:function ($$v) {_vm.$set(_vm.condition, "value", $$v)},expression:"condition.value"}}),_c('el-select',{staticClass:"bracket",attrs:{"popper-append-to-body":false,"size":"mini","placeholder":""},model:{value:(_vm.condition.rightBracket),callback:function ($$v) {_vm.$set(_vm.condition, "rightBracket", $$v)},expression:"condition.rightBracket"}},[_c('el-option',{attrs:{"label":")","value":")"}}),_c('el-option',{attrs:{"label":"))","value":"))"}}),_c('el-option',{attrs:{"label":")))","value":")))"}})],1),_c('el-select',{staticClass:"condition-relation",attrs:{"popper-append-to-body":false,"size":"mini","placeholder":""},model:{value:(_vm.condition.relation),callback:function ($$v) {_vm.$set(_vm.condition, "relation", $$v)},expression:"condition.relation"}},[_c('el-option',{attrs:{"value":"AND","label":"并且"}}),_c('el-option',{attrs:{"value":"OR","label":"或者"}})],1),_c('i',{staticClass:"el-icon-remove icon",on:{"click":_vm.removeCondition}})],1)}
|
|
@@ -114627,7 +115040,7 @@ var condition_always_item_component = Object(componentNormalizer["a" /* default
|
|
|
114627
115040
|
ConditionAlwaysItem: condition_always_item
|
|
114628
115041
|
},
|
|
114629
115042
|
directives: {
|
|
114630
|
-
Clickoutside: clickoutside
|
|
115043
|
+
Clickoutside: clickoutside["a" /* default */]
|
|
114631
115044
|
},
|
|
114632
115045
|
props: {
|
|
114633
115046
|
visible: {
|
|
@@ -116241,7 +116654,7 @@ var es_object_values = __webpack_require__("07ac");
|
|
|
116241
116654
|
},
|
|
116242
116655
|
inject: ['target', 'enumOptionCache'],
|
|
116243
116656
|
directives: {
|
|
116244
|
-
Clickoutside: clickoutside
|
|
116657
|
+
Clickoutside: clickoutside["a" /* default */]
|
|
116245
116658
|
},
|
|
116246
116659
|
props: {
|
|
116247
116660
|
item: {
|
|
@@ -180368,16 +180781,16 @@ form_body.install = function (Vue) {
|
|
|
180368
180781
|
};
|
|
180369
180782
|
|
|
180370
180783
|
/* harmony default export */ var package_form_body = (form_body);
|
|
180371
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0bbedd18-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./package/form-body-item/src/form-body-item.vue?vue&type=template&id=
|
|
180372
|
-
var
|
|
180784
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0bbedd18-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./package/form-body-item/src/form-body-item.vue?vue&type=template&id=c645a22c&scoped=true&
|
|
180785
|
+
var form_body_itemvue_type_template_id_c645a22c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"body-form-item"},[(!_vm.readOnly)?_c('ux-table-column',{attrs:{"field":_vm.field,"title":_vm.title,"edit-render":{autofocus:'.el-input__inner'},"resizable":"","width":_vm.width},scopedSlots:_vm._u([{key:"edit",fn:function(ref){
|
|
180373
180786
|
var row = ref.row;
|
|
180374
180787
|
return [_c('Tinput',{attrs:{"entity":"","type":_vm.type,"placeholder":_vm.placeholder,"disabled":_vm.disabled,"target":_vm.target,"limitation":_vm.getLimitation(row),"enum-type":_vm.enumType,"percision":_vm.percision,"rows":_vm.rows,"disable-field-generate":"","before-input":_vm.beforeInput,"notFormBasicAppendBody":_vm.notFormBasicAppendBody},on:{"selected":function($event){return _vm.handleBasicSelected(row,$event)},"change":function($event){return _vm.$emit('change',{row:row,value:$event})},"input":function($event){return _vm.handleInput(row,$event)},"basicConfigLoad":function($event){_vm.basicIdentityConfig = $event}},model:{value:(row[_vm.field]),callback:function ($$v) {_vm.$set(row, _vm.field, $$v)},expression:"row[field]"}})]}},{key:"default",fn:function(ref){
|
|
180375
180788
|
var row = ref.row;
|
|
180376
180789
|
return [_c('span',[_vm._v(_vm._s(_vm.showMessage(row[_vm.field])))])]}}],null,false,842025978)}):_c('ux-table-column',{attrs:{"title":_vm.title,"field":_vm.field,"resizable":"","width":_vm.width}})],1)}
|
|
180377
|
-
var
|
|
180790
|
+
var form_body_itemvue_type_template_id_c645a22c_scoped_true_staticRenderFns = []
|
|
180378
180791
|
|
|
180379
180792
|
|
|
180380
|
-
// CONCATENATED MODULE: ./package/form-body-item/src/form-body-item.vue?vue&type=template&id=
|
|
180793
|
+
// CONCATENATED MODULE: ./package/form-body-item/src/form-body-item.vue?vue&type=template&id=c645a22c&scoped=true&
|
|
180381
180794
|
|
|
180382
180795
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./package/form-body-item/src/form-body-item.vue?vue&type=script&lang=js&
|
|
180383
180796
|
|
|
@@ -180390,7 +180803,6 @@ var form_body_itemvue_type_template_id_69ab2dfd_scoped_true_staticRenderFns = []
|
|
|
180390
180803
|
|
|
180391
180804
|
|
|
180392
180805
|
|
|
180393
|
-
|
|
180394
180806
|
//
|
|
180395
180807
|
//
|
|
180396
180808
|
//
|
|
@@ -180628,19 +181040,9 @@ var form_body_itemvue_type_template_id_69ab2dfd_scoped_true_staticRenderFns = []
|
|
|
180628
181040
|
(_this$FormBody$data = this.FormBody.data).splice.apply(_this$FormBody$data, [index, 1].concat(Object(toConsumableArray["a" /* default */])(rows)));
|
|
180629
181041
|
|
|
180630
181042
|
if (this.afterBasicSelected) {
|
|
180631
|
-
|
|
180632
|
-
|
|
180633
|
-
|
|
180634
|
-
try {
|
|
180635
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
180636
|
-
var selected = _step.value;
|
|
180637
|
-
this.afterBasicSelected(currentRow, selected);
|
|
180638
|
-
}
|
|
180639
|
-
} catch (err) {
|
|
180640
|
-
_iterator.e(err);
|
|
180641
|
-
} finally {
|
|
180642
|
-
_iterator.f();
|
|
180643
|
-
}
|
|
181043
|
+
rows.forEach(function (row, index) {
|
|
181044
|
+
_this.afterBasicSelected(row, selectedList[index]);
|
|
181045
|
+
});
|
|
180644
181046
|
}
|
|
180645
181047
|
},
|
|
180646
181048
|
handleInput: function handleInput(row, value) {
|
|
@@ -180677,11 +181079,11 @@ var form_body_itemvue_type_template_id_69ab2dfd_scoped_true_staticRenderFns = []
|
|
|
180677
181079
|
|
|
180678
181080
|
var form_body_item_component = Object(componentNormalizer["a" /* default */])(
|
|
180679
181081
|
src_form_body_itemvue_type_script_lang_js_,
|
|
180680
|
-
|
|
180681
|
-
|
|
181082
|
+
form_body_itemvue_type_template_id_c645a22c_scoped_true_render,
|
|
181083
|
+
form_body_itemvue_type_template_id_c645a22c_scoped_true_staticRenderFns,
|
|
180682
181084
|
false,
|
|
180683
181085
|
null,
|
|
180684
|
-
"
|
|
181086
|
+
"c645a22c",
|
|
180685
181087
|
null
|
|
180686
181088
|
|
|
180687
181089
|
)
|
|
@@ -180699,7 +181101,7 @@ form_body_item.install = function (Vue) {
|
|
|
180699
181101
|
// EXTERNAL MODULE: ./package/tf-input/index.js + 50 modules
|
|
180700
181102
|
var tf_input = __webpack_require__("5a1e");
|
|
180701
181103
|
|
|
180702
|
-
// EXTERNAL MODULE: ./package/tf-table/index.js +
|
|
181104
|
+
// EXTERNAL MODULE: ./package/tf-table/index.js + 11 modules
|
|
180703
181105
|
var tf_table = __webpack_require__("99f4");
|
|
180704
181106
|
|
|
180705
181107
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0bbedd18-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./package/tf-vxe-table/src/index.vue?vue&type=template&id=66878ea0&scoped=true&
|