@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.common.js
CHANGED
|
@@ -116,13 +116,6 @@ module.exports = String(test) === '[object z]';
|
|
|
116
116
|
|
|
117
117
|
/***/ }),
|
|
118
118
|
|
|
119
|
-
/***/ "0293":
|
|
120
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
121
|
-
|
|
122
|
-
// extracted by mini-css-extract-plugin
|
|
123
|
-
|
|
124
|
-
/***/ }),
|
|
125
|
-
|
|
126
119
|
/***/ "02ee":
|
|
127
120
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
128
121
|
|
|
@@ -590,7 +583,7 @@ var staticRenderFns = []
|
|
|
590
583
|
|
|
591
584
|
// CONCATENATED MODULE: ./package/tf-tab-table/src/index.vue?vue&type=template&id=613dc5e4&scoped=true&
|
|
592
585
|
|
|
593
|
-
// EXTERNAL MODULE: ./package/tf-table/index.js +
|
|
586
|
+
// EXTERNAL MODULE: ./package/tf-table/index.js + 11 modules
|
|
594
587
|
var tf_table = __webpack_require__("99f4");
|
|
595
588
|
|
|
596
589
|
// 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&
|
|
@@ -3223,7 +3216,7 @@ var staticRenderFns = []
|
|
|
3223
3216
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
3224
3217
|
var es_number_constructor = __webpack_require__("a9e3");
|
|
3225
3218
|
|
|
3226
|
-
// EXTERNAL MODULE: ./package/tf-table/index.js +
|
|
3219
|
+
// EXTERNAL MODULE: ./package/tf-table/index.js + 11 modules
|
|
3227
3220
|
var tf_table = __webpack_require__("99f4");
|
|
3228
3221
|
|
|
3229
3222
|
// EXTERNAL MODULE: ./package/tf-splitter/index.js + 5 modules
|
|
@@ -3726,7 +3719,7 @@ var tf_input = __webpack_require__("5a1e");
|
|
|
3726
3719
|
_this2.editData.children.push(cacheData);
|
|
3727
3720
|
}, reductionObj);
|
|
3728
3721
|
_context.next = 4;
|
|
3729
|
-
return Object(api_tf_table["
|
|
3722
|
+
return Object(api_tf_table["j" /* updateGroupNode */])(sendData);
|
|
3730
3723
|
|
|
3731
3724
|
case 4:
|
|
3732
3725
|
res = _context.sent;
|
|
@@ -3786,7 +3779,7 @@ var tf_input = __webpack_require__("5a1e");
|
|
|
3786
3779
|
}
|
|
3787
3780
|
}, reductionObj);
|
|
3788
3781
|
_context2.next = 4;
|
|
3789
|
-
return Object(api_tf_table["
|
|
3782
|
+
return Object(api_tf_table["j" /* updateGroupNode */])(sendData);
|
|
3790
3783
|
|
|
3791
3784
|
case 4:
|
|
3792
3785
|
res = _context2.sent;
|
|
@@ -3954,7 +3947,7 @@ var table_group_item_edit_component = Object(componentNormalizer["a" /* default
|
|
|
3954
3947
|
switch (_context.prev = _context.next) {
|
|
3955
3948
|
case 0:
|
|
3956
3949
|
_context.next = 2;
|
|
3957
|
-
return Object(api_tf_table["
|
|
3950
|
+
return Object(api_tf_table["e" /* getGroupTree */])({
|
|
3958
3951
|
code: _this.code
|
|
3959
3952
|
});
|
|
3960
3953
|
|
|
@@ -4037,7 +4030,7 @@ var table_group_item_edit_component = Object(componentNormalizer["a" /* default
|
|
|
4037
4030
|
switch (_context2.prev = _context2.next) {
|
|
4038
4031
|
case 0:
|
|
4039
4032
|
_context2.next = 2;
|
|
4040
|
-
return Object(api_tf_table["
|
|
4033
|
+
return Object(api_tf_table["i" /* removeGroupNode */])({
|
|
4041
4034
|
ids: data.id
|
|
4042
4035
|
});
|
|
4043
4036
|
|
|
@@ -6972,6 +6965,13 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
6972
6965
|
|
|
6973
6966
|
/***/ }),
|
|
6974
6967
|
|
|
6968
|
+
/***/ "3f29":
|
|
6969
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6970
|
+
|
|
6971
|
+
// extracted by mini-css-extract-plugin
|
|
6972
|
+
|
|
6973
|
+
/***/ }),
|
|
6974
|
+
|
|
6975
6975
|
/***/ "3f6b":
|
|
6976
6976
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6977
6977
|
|
|
@@ -22569,7 +22569,7 @@ var tf_table = __webpack_require__("8297");
|
|
|
22569
22569
|
return _context.abrupt("return");
|
|
22570
22570
|
|
|
22571
22571
|
case 2:
|
|
22572
|
-
currentPost = _this.id ? tf_table["
|
|
22572
|
+
currentPost = _this.id ? tf_table["d" /* getEnumOptionsById */] : tf_table["c" /* getEnumOptions */];
|
|
22573
22573
|
currentParams = _this.id ? {
|
|
22574
22574
|
id: _this.id
|
|
22575
22575
|
} : {
|
|
@@ -23174,7 +23174,7 @@ var tf_basic_table_list = __webpack_require__("a637");
|
|
|
23174
23174
|
field: _this3.currentShowField.label
|
|
23175
23175
|
};
|
|
23176
23176
|
_context.next = 5;
|
|
23177
|
-
return Object(tf_table["
|
|
23177
|
+
return Object(tf_table["h" /* getSuggestion */])(data);
|
|
23178
23178
|
|
|
23179
23179
|
case 5:
|
|
23180
23180
|
res = _context.sent;
|
|
@@ -67007,6 +67007,17 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
67007
67007
|
/***/ })
|
|
67008
67008
|
/******/ ])["default"];
|
|
67009
67009
|
|
|
67010
|
+
/***/ }),
|
|
67011
|
+
|
|
67012
|
+
/***/ "5d08":
|
|
67013
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
67014
|
+
|
|
67015
|
+
"use strict";
|
|
67016
|
+
/* 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");
|
|
67017
|
+
/* 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__);
|
|
67018
|
+
/* unused harmony reexport * */
|
|
67019
|
+
|
|
67020
|
+
|
|
67010
67021
|
/***/ }),
|
|
67011
67022
|
|
|
67012
67023
|
/***/ "5d29":
|
|
@@ -74280,16 +74291,17 @@ module.exports = function (it) {
|
|
|
74280
74291
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
74281
74292
|
|
|
74282
74293
|
"use strict";
|
|
74283
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74284
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74294
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getInitConfig; });
|
|
74295
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getHeaderTableInfo; });
|
|
74285
74296
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getEntityTableInfo; });
|
|
74286
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74287
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74288
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74289
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74297
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getEnumOptionsById; });
|
|
74298
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getEnumOptions; });
|
|
74299
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getSuggestion; });
|
|
74300
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getGroupTree; });
|
|
74290
74301
|
/* unused harmony export addGroupNode */
|
|
74291
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74292
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
74302
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeGroupNode; });
|
|
74303
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return updateGroupNode; });
|
|
74304
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getEnumListByField; });
|
|
74293
74305
|
/* harmony import */ var _utils_request_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b775");
|
|
74294
74306
|
|
|
74295
74307
|
/** 表格配置查询 */
|
|
@@ -74385,6 +74397,14 @@ function updateGroupNode(data) {
|
|
|
74385
74397
|
method: 'post',
|
|
74386
74398
|
data: data
|
|
74387
74399
|
});
|
|
74400
|
+
} // 根据表头code和field来查询枚举类型
|
|
74401
|
+
|
|
74402
|
+
function getEnumListByField(data) {
|
|
74403
|
+
return Object(_utils_request_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
74404
|
+
url: '/api/erp/select/getEnumListByField',
|
|
74405
|
+
method: 'post',
|
|
74406
|
+
data: data
|
|
74407
|
+
});
|
|
74388
74408
|
}
|
|
74389
74409
|
|
|
74390
74410
|
/***/ }),
|
|
@@ -75913,6 +75933,325 @@ var document = __webpack_require__("ef08").document;
|
|
|
75913
75933
|
module.exports = document && document.documentElement;
|
|
75914
75934
|
|
|
75915
75935
|
|
|
75936
|
+
/***/ }),
|
|
75937
|
+
|
|
75938
|
+
/***/ "9169":
|
|
75939
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
75940
|
+
|
|
75941
|
+
"use strict";
|
|
75942
|
+
|
|
75943
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
75944
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
75945
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
75946
|
+
|
|
75947
|
+
// CONCATENATED MODULE: ./node_modules/element-ui/src/utils/dom.js
|
|
75948
|
+
/* istanbul ignore next */
|
|
75949
|
+
|
|
75950
|
+
|
|
75951
|
+
|
|
75952
|
+
const isServer = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$isServer;
|
|
75953
|
+
const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
|
|
75954
|
+
const MOZ_HACK_REGEXP = /^moz([A-Z])/;
|
|
75955
|
+
const ieVersion = isServer ? 0 : Number(document.documentMode);
|
|
75956
|
+
|
|
75957
|
+
/* istanbul ignore next */
|
|
75958
|
+
const trim = function(string) {
|
|
75959
|
+
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
|
|
75960
|
+
};
|
|
75961
|
+
/* istanbul ignore next */
|
|
75962
|
+
const camelCase = function(name) {
|
|
75963
|
+
return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
|
|
75964
|
+
return offset ? letter.toUpperCase() : letter;
|
|
75965
|
+
}).replace(MOZ_HACK_REGEXP, 'Moz$1');
|
|
75966
|
+
};
|
|
75967
|
+
|
|
75968
|
+
/* istanbul ignore next */
|
|
75969
|
+
const on = (function() {
|
|
75970
|
+
if (!isServer && document.addEventListener) {
|
|
75971
|
+
return function(element, event, handler) {
|
|
75972
|
+
if (element && event && handler) {
|
|
75973
|
+
element.addEventListener(event, handler, false);
|
|
75974
|
+
}
|
|
75975
|
+
};
|
|
75976
|
+
} else {
|
|
75977
|
+
return function(element, event, handler) {
|
|
75978
|
+
if (element && event && handler) {
|
|
75979
|
+
element.attachEvent('on' + event, handler);
|
|
75980
|
+
}
|
|
75981
|
+
};
|
|
75982
|
+
}
|
|
75983
|
+
})();
|
|
75984
|
+
|
|
75985
|
+
/* istanbul ignore next */
|
|
75986
|
+
const off = (function() {
|
|
75987
|
+
if (!isServer && document.removeEventListener) {
|
|
75988
|
+
return function(element, event, handler) {
|
|
75989
|
+
if (element && event) {
|
|
75990
|
+
element.removeEventListener(event, handler, false);
|
|
75991
|
+
}
|
|
75992
|
+
};
|
|
75993
|
+
} else {
|
|
75994
|
+
return function(element, event, handler) {
|
|
75995
|
+
if (element && event) {
|
|
75996
|
+
element.detachEvent('on' + event, handler);
|
|
75997
|
+
}
|
|
75998
|
+
};
|
|
75999
|
+
}
|
|
76000
|
+
})();
|
|
76001
|
+
|
|
76002
|
+
/* istanbul ignore next */
|
|
76003
|
+
const once = function(el, event, fn) {
|
|
76004
|
+
var listener = function() {
|
|
76005
|
+
if (fn) {
|
|
76006
|
+
fn.apply(this, arguments);
|
|
76007
|
+
}
|
|
76008
|
+
off(el, event, listener);
|
|
76009
|
+
};
|
|
76010
|
+
on(el, event, listener);
|
|
76011
|
+
};
|
|
76012
|
+
|
|
76013
|
+
/* istanbul ignore next */
|
|
76014
|
+
function hasClass(el, cls) {
|
|
76015
|
+
if (!el || !cls) return false;
|
|
76016
|
+
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
|
|
76017
|
+
if (el.classList) {
|
|
76018
|
+
return el.classList.contains(cls);
|
|
76019
|
+
} else {
|
|
76020
|
+
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
|
|
76021
|
+
}
|
|
76022
|
+
};
|
|
76023
|
+
|
|
76024
|
+
/* istanbul ignore next */
|
|
76025
|
+
function addClass(el, cls) {
|
|
76026
|
+
if (!el) return;
|
|
76027
|
+
var curClass = el.className;
|
|
76028
|
+
var classes = (cls || '').split(' ');
|
|
76029
|
+
|
|
76030
|
+
for (var i = 0, j = classes.length; i < j; i++) {
|
|
76031
|
+
var clsName = classes[i];
|
|
76032
|
+
if (!clsName) continue;
|
|
76033
|
+
|
|
76034
|
+
if (el.classList) {
|
|
76035
|
+
el.classList.add(clsName);
|
|
76036
|
+
} else if (!hasClass(el, clsName)) {
|
|
76037
|
+
curClass += ' ' + clsName;
|
|
76038
|
+
}
|
|
76039
|
+
}
|
|
76040
|
+
if (!el.classList) {
|
|
76041
|
+
el.setAttribute('class', curClass);
|
|
76042
|
+
}
|
|
76043
|
+
};
|
|
76044
|
+
|
|
76045
|
+
/* istanbul ignore next */
|
|
76046
|
+
function removeClass(el, cls) {
|
|
76047
|
+
if (!el || !cls) return;
|
|
76048
|
+
var classes = cls.split(' ');
|
|
76049
|
+
var curClass = ' ' + el.className + ' ';
|
|
76050
|
+
|
|
76051
|
+
for (var i = 0, j = classes.length; i < j; i++) {
|
|
76052
|
+
var clsName = classes[i];
|
|
76053
|
+
if (!clsName) continue;
|
|
76054
|
+
|
|
76055
|
+
if (el.classList) {
|
|
76056
|
+
el.classList.remove(clsName);
|
|
76057
|
+
} else if (hasClass(el, clsName)) {
|
|
76058
|
+
curClass = curClass.replace(' ' + clsName + ' ', ' ');
|
|
76059
|
+
}
|
|
76060
|
+
}
|
|
76061
|
+
if (!el.classList) {
|
|
76062
|
+
el.setAttribute('class', trim(curClass));
|
|
76063
|
+
}
|
|
76064
|
+
};
|
|
76065
|
+
|
|
76066
|
+
/* istanbul ignore next */
|
|
76067
|
+
const getStyle = ieVersion < 9 ? function(element, styleName) {
|
|
76068
|
+
if (isServer) return;
|
|
76069
|
+
if (!element || !styleName) return null;
|
|
76070
|
+
styleName = camelCase(styleName);
|
|
76071
|
+
if (styleName === 'float') {
|
|
76072
|
+
styleName = 'styleFloat';
|
|
76073
|
+
}
|
|
76074
|
+
try {
|
|
76075
|
+
switch (styleName) {
|
|
76076
|
+
case 'opacity':
|
|
76077
|
+
try {
|
|
76078
|
+
return element.filters.item('alpha').opacity / 100;
|
|
76079
|
+
} catch (e) {
|
|
76080
|
+
return 1.0;
|
|
76081
|
+
}
|
|
76082
|
+
default:
|
|
76083
|
+
return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null);
|
|
76084
|
+
}
|
|
76085
|
+
} catch (e) {
|
|
76086
|
+
return element.style[styleName];
|
|
76087
|
+
}
|
|
76088
|
+
} : function(element, styleName) {
|
|
76089
|
+
if (isServer) return;
|
|
76090
|
+
if (!element || !styleName) return null;
|
|
76091
|
+
styleName = camelCase(styleName);
|
|
76092
|
+
if (styleName === 'float') {
|
|
76093
|
+
styleName = 'cssFloat';
|
|
76094
|
+
}
|
|
76095
|
+
try {
|
|
76096
|
+
var computed = document.defaultView.getComputedStyle(element, '');
|
|
76097
|
+
return element.style[styleName] || computed ? computed[styleName] : null;
|
|
76098
|
+
} catch (e) {
|
|
76099
|
+
return element.style[styleName];
|
|
76100
|
+
}
|
|
76101
|
+
};
|
|
76102
|
+
|
|
76103
|
+
/* istanbul ignore next */
|
|
76104
|
+
function setStyle(element, styleName, value) {
|
|
76105
|
+
if (!element || !styleName) return;
|
|
76106
|
+
|
|
76107
|
+
if (typeof styleName === 'object') {
|
|
76108
|
+
for (var prop in styleName) {
|
|
76109
|
+
if (styleName.hasOwnProperty(prop)) {
|
|
76110
|
+
setStyle(element, prop, styleName[prop]);
|
|
76111
|
+
}
|
|
76112
|
+
}
|
|
76113
|
+
} else {
|
|
76114
|
+
styleName = camelCase(styleName);
|
|
76115
|
+
if (styleName === 'opacity' && ieVersion < 9) {
|
|
76116
|
+
element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
|
|
76117
|
+
} else {
|
|
76118
|
+
element.style[styleName] = value;
|
|
76119
|
+
}
|
|
76120
|
+
}
|
|
76121
|
+
};
|
|
76122
|
+
|
|
76123
|
+
const isScroll = (el, vertical) => {
|
|
76124
|
+
if (isServer) return;
|
|
76125
|
+
|
|
76126
|
+
const determinedDirection = vertical !== null && vertical !== undefined;
|
|
76127
|
+
const overflow = determinedDirection
|
|
76128
|
+
? vertical
|
|
76129
|
+
? getStyle(el, 'overflow-y')
|
|
76130
|
+
: getStyle(el, 'overflow-x')
|
|
76131
|
+
: getStyle(el, 'overflow');
|
|
76132
|
+
|
|
76133
|
+
return overflow.match(/(scroll|auto|overlay)/);
|
|
76134
|
+
};
|
|
76135
|
+
|
|
76136
|
+
const getScrollContainer = (el, vertical) => {
|
|
76137
|
+
if (isServer) return;
|
|
76138
|
+
|
|
76139
|
+
let parent = el;
|
|
76140
|
+
while (parent) {
|
|
76141
|
+
if ([window, document, document.documentElement].includes(parent)) {
|
|
76142
|
+
return window;
|
|
76143
|
+
}
|
|
76144
|
+
if (isScroll(parent, vertical)) {
|
|
76145
|
+
return parent;
|
|
76146
|
+
}
|
|
76147
|
+
parent = parent.parentNode;
|
|
76148
|
+
}
|
|
76149
|
+
|
|
76150
|
+
return parent;
|
|
76151
|
+
};
|
|
76152
|
+
|
|
76153
|
+
const isInContainer = (el, container) => {
|
|
76154
|
+
if (isServer || !el || !container) return false;
|
|
76155
|
+
|
|
76156
|
+
const elRect = el.getBoundingClientRect();
|
|
76157
|
+
let containerRect;
|
|
76158
|
+
|
|
76159
|
+
if ([window, document, document.documentElement, null, undefined].includes(container)) {
|
|
76160
|
+
containerRect = {
|
|
76161
|
+
top: 0,
|
|
76162
|
+
right: window.innerWidth,
|
|
76163
|
+
bottom: window.innerHeight,
|
|
76164
|
+
left: 0
|
|
76165
|
+
};
|
|
76166
|
+
} else {
|
|
76167
|
+
containerRect = container.getBoundingClientRect();
|
|
76168
|
+
}
|
|
76169
|
+
|
|
76170
|
+
return elRect.top < containerRect.bottom &&
|
|
76171
|
+
elRect.bottom > containerRect.top &&
|
|
76172
|
+
elRect.right > containerRect.left &&
|
|
76173
|
+
elRect.left < containerRect.right;
|
|
76174
|
+
};
|
|
76175
|
+
|
|
76176
|
+
// CONCATENATED MODULE: ./node_modules/element-ui/src/utils/clickoutside.js
|
|
76177
|
+
|
|
76178
|
+
|
|
76179
|
+
|
|
76180
|
+
const nodeList = [];
|
|
76181
|
+
const ctx = '@@clickoutsideContext';
|
|
76182
|
+
|
|
76183
|
+
let startClick;
|
|
76184
|
+
let seed = 0;
|
|
76185
|
+
|
|
76186
|
+
!external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$isServer && on(document, 'mousedown', e => (startClick = e));
|
|
76187
|
+
|
|
76188
|
+
!external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$isServer && on(document, 'mouseup', e => {
|
|
76189
|
+
nodeList.forEach(node => node[ctx].documentHandler(e, startClick));
|
|
76190
|
+
});
|
|
76191
|
+
|
|
76192
|
+
function createDocumentHandler(el, binding, vnode) {
|
|
76193
|
+
return function(mouseup = {}, mousedown = {}) {
|
|
76194
|
+
if (!vnode ||
|
|
76195
|
+
!vnode.context ||
|
|
76196
|
+
!mouseup.target ||
|
|
76197
|
+
!mousedown.target ||
|
|
76198
|
+
el.contains(mouseup.target) ||
|
|
76199
|
+
el.contains(mousedown.target) ||
|
|
76200
|
+
el === mouseup.target ||
|
|
76201
|
+
(vnode.context.popperElm &&
|
|
76202
|
+
(vnode.context.popperElm.contains(mouseup.target) ||
|
|
76203
|
+
vnode.context.popperElm.contains(mousedown.target)))) return;
|
|
76204
|
+
|
|
76205
|
+
if (binding.expression &&
|
|
76206
|
+
el[ctx].methodName &&
|
|
76207
|
+
vnode.context[el[ctx].methodName]) {
|
|
76208
|
+
vnode.context[el[ctx].methodName]();
|
|
76209
|
+
} else {
|
|
76210
|
+
el[ctx].bindingFn && el[ctx].bindingFn();
|
|
76211
|
+
}
|
|
76212
|
+
};
|
|
76213
|
+
}
|
|
76214
|
+
|
|
76215
|
+
/**
|
|
76216
|
+
* v-clickoutside
|
|
76217
|
+
* @desc 点击元素外面才会触发的事件
|
|
76218
|
+
* @example
|
|
76219
|
+
* ```vue
|
|
76220
|
+
* <div v-element-clickoutside="handleClose">
|
|
76221
|
+
* ```
|
|
76222
|
+
*/
|
|
76223
|
+
/* harmony default export */ var clickoutside = __webpack_exports__["a"] = ({
|
|
76224
|
+
bind(el, binding, vnode) {
|
|
76225
|
+
nodeList.push(el);
|
|
76226
|
+
const id = seed++;
|
|
76227
|
+
el[ctx] = {
|
|
76228
|
+
id,
|
|
76229
|
+
documentHandler: createDocumentHandler(el, binding, vnode),
|
|
76230
|
+
methodName: binding.expression,
|
|
76231
|
+
bindingFn: binding.value
|
|
76232
|
+
};
|
|
76233
|
+
},
|
|
76234
|
+
|
|
76235
|
+
update(el, binding, vnode) {
|
|
76236
|
+
el[ctx].documentHandler = createDocumentHandler(el, binding, vnode);
|
|
76237
|
+
el[ctx].methodName = binding.expression;
|
|
76238
|
+
el[ctx].bindingFn = binding.value;
|
|
76239
|
+
},
|
|
76240
|
+
|
|
76241
|
+
unbind(el) {
|
|
76242
|
+
let len = nodeList.length;
|
|
76243
|
+
|
|
76244
|
+
for (let i = 0; i < len; i++) {
|
|
76245
|
+
if (nodeList[i][ctx].id === el[ctx].id) {
|
|
76246
|
+
nodeList.splice(i, 1);
|
|
76247
|
+
break;
|
|
76248
|
+
}
|
|
76249
|
+
}
|
|
76250
|
+
delete el[ctx];
|
|
76251
|
+
}
|
|
76252
|
+
});
|
|
76253
|
+
|
|
76254
|
+
|
|
75916
76255
|
/***/ }),
|
|
75917
76256
|
|
|
75918
76257
|
/***/ "9263":
|
|
@@ -77416,12 +77755,29 @@ $({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
77416
77755
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
77417
77756
|
var es_function_name = __webpack_require__("b0c0");
|
|
77418
77757
|
|
|
77419
|
-
// 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=
|
|
77420
|
-
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.
|
|
77758
|
+
// 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&
|
|
77759
|
+
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){
|
|
77760
|
+
var column = ref.column;
|
|
77761
|
+
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)}
|
|
77421
77762
|
var staticRenderFns = []
|
|
77422
77763
|
|
|
77423
77764
|
|
|
77424
|
-
// CONCATENATED MODULE: ./package/tf-table/src/index.vue?vue&type=template&id=
|
|
77765
|
+
// CONCATENATED MODULE: ./package/tf-table/src/index.vue?vue&type=template&id=41b1f54d&scoped=true&
|
|
77766
|
+
|
|
77767
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js + 1 modules
|
|
77768
|
+
var objectSpread2 = __webpack_require__("5530");
|
|
77769
|
+
|
|
77770
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
77771
|
+
var es_array_filter = __webpack_require__("4de4");
|
|
77772
|
+
|
|
77773
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
77774
|
+
var es_object_keys = __webpack_require__("b64b");
|
|
77775
|
+
|
|
77776
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
77777
|
+
var es_array_includes = __webpack_require__("caad");
|
|
77778
|
+
|
|
77779
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
77780
|
+
var es_string_includes = __webpack_require__("2532");
|
|
77425
77781
|
|
|
77426
77782
|
// EXTERNAL MODULE: ./src/utils/index.js
|
|
77427
77783
|
var utils = __webpack_require__("ed08");
|
|
@@ -77468,7 +77824,298 @@ var watchParentNode = function watchParentNode(el, binding, vNode) {
|
|
|
77468
77824
|
el.watchParentNode.removeAllListeners(el.parentNode);
|
|
77469
77825
|
}
|
|
77470
77826
|
});
|
|
77827
|
+
// 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&
|
|
77828
|
+
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)}
|
|
77829
|
+
var tf_filtervue_type_template_id_e9941a66_scoped_true_staticRenderFns = []
|
|
77830
|
+
|
|
77831
|
+
|
|
77832
|
+
// CONCATENATED MODULE: ./package/tf-table/src/components/tf-filter/index.vue?vue&type=template&id=e9941a66&scoped=true&
|
|
77833
|
+
|
|
77834
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
77835
|
+
var asyncToGenerator = __webpack_require__("1da1");
|
|
77836
|
+
|
|
77837
|
+
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
|
77838
|
+
var runtime = __webpack_require__("96cf");
|
|
77839
|
+
|
|
77840
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
77841
|
+
var es_array_splice = __webpack_require__("a434");
|
|
77842
|
+
|
|
77843
|
+
// EXTERNAL MODULE: ./src/api/tf-table.js
|
|
77844
|
+
var tf_table = __webpack_require__("8297");
|
|
77845
|
+
|
|
77846
|
+
// EXTERNAL MODULE: ./package/tf-input/index.js + 50 modules
|
|
77847
|
+
var tf_input = __webpack_require__("5a1e");
|
|
77848
|
+
|
|
77849
|
+
// EXTERNAL MODULE: ./node_modules/element-ui/src/utils/clickoutside.js + 1 modules
|
|
77850
|
+
var clickoutside = __webpack_require__("9169");
|
|
77851
|
+
|
|
77852
|
+
// 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&
|
|
77853
|
+
|
|
77854
|
+
|
|
77855
|
+
|
|
77856
|
+
|
|
77857
|
+
//
|
|
77858
|
+
//
|
|
77859
|
+
//
|
|
77860
|
+
//
|
|
77861
|
+
//
|
|
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
|
+
/* harmony default export */ var tf_filtervue_type_script_lang_js_ = ({
|
|
77927
|
+
components: {
|
|
77928
|
+
TfInput: tf_input["a" /* default */]
|
|
77929
|
+
},
|
|
77930
|
+
directives: {
|
|
77931
|
+
Clickoutside: clickoutside["a" /* default */]
|
|
77932
|
+
},
|
|
77933
|
+
props: {
|
|
77934
|
+
configData: {
|
|
77935
|
+
type: Object,
|
|
77936
|
+
default: function _default() {
|
|
77937
|
+
return {};
|
|
77938
|
+
}
|
|
77939
|
+
}
|
|
77940
|
+
},
|
|
77941
|
+
data: function data() {
|
|
77942
|
+
return {
|
|
77943
|
+
searchData: {
|
|
77944
|
+
// 过滤时间
|
|
77945
|
+
time: {
|
|
77946
|
+
startTime: null,
|
|
77947
|
+
endTime: null
|
|
77948
|
+
},
|
|
77949
|
+
// 枚举类型
|
|
77950
|
+
selectList: [],
|
|
77951
|
+
// 过滤输入框
|
|
77952
|
+
input: ''
|
|
77953
|
+
},
|
|
77954
|
+
optionsList: [],
|
|
77955
|
+
isClick: false
|
|
77956
|
+
};
|
|
77957
|
+
},
|
|
77958
|
+
computed: {
|
|
77959
|
+
isFilter: function isFilter() {
|
|
77960
|
+
return JSON.stringify(this.searchData) !== JSON.stringify({
|
|
77961
|
+
time: {
|
|
77962
|
+
startTime: null,
|
|
77963
|
+
endTime: null
|
|
77964
|
+
},
|
|
77965
|
+
selectList: [],
|
|
77966
|
+
input: ''
|
|
77967
|
+
});
|
|
77968
|
+
}
|
|
77969
|
+
},
|
|
77970
|
+
watch: {
|
|
77971
|
+
'searchData.time': {
|
|
77972
|
+
handler: function handler(newVal) {
|
|
77973
|
+
// console.log(newVal)
|
|
77974
|
+
this.handleDateChange(newVal);
|
|
77975
|
+
},
|
|
77976
|
+
deep: true
|
|
77977
|
+
}
|
|
77978
|
+
},
|
|
77979
|
+
methods: {
|
|
77980
|
+
handleClickOut: function handleClickOut() {
|
|
77981
|
+
this.isClick = false;
|
|
77982
|
+
},
|
|
77983
|
+
handleFilterClick: function handleFilterClick() {
|
|
77984
|
+
this.getSelectOption();
|
|
77985
|
+
this.isClick = !this.isClick;
|
|
77986
|
+
},
|
|
77987
|
+
// 处理日期的改变
|
|
77988
|
+
handleDateChange: function handleDateChange(value) {
|
|
77989
|
+
this.$emit('update-filter', {
|
|
77990
|
+
value: value,
|
|
77991
|
+
configData: this.configData
|
|
77992
|
+
});
|
|
77993
|
+
},
|
|
77994
|
+
// 输入的值改变时调用
|
|
77995
|
+
handleInput: function handleInput(value) {
|
|
77996
|
+
this.searchData.input = value;
|
|
77997
|
+
this.$emit('update-filter', {
|
|
77998
|
+
value: value,
|
|
77999
|
+
configData: this.configData
|
|
78000
|
+
});
|
|
78001
|
+
},
|
|
78002
|
+
// 处理枚举选中的逻辑
|
|
78003
|
+
handleSelectClick: function handleSelectClick(item) {
|
|
78004
|
+
var index = this.searchData.selectList.indexOf(item.name);
|
|
78005
|
+
|
|
78006
|
+
if (index >= 0) {
|
|
78007
|
+
this.searchData.selectList.splice(index, 1);
|
|
78008
|
+
this.$emit('update-filter', {
|
|
78009
|
+
value: this.searchData.selectList,
|
|
78010
|
+
configData: this.configData
|
|
78011
|
+
});
|
|
78012
|
+
return;
|
|
78013
|
+
}
|
|
78014
|
+
|
|
78015
|
+
this.searchData.selectList.push(item.name);
|
|
78016
|
+
this.$emit('update-filter', {
|
|
78017
|
+
value: this.searchData.selectList,
|
|
78018
|
+
configData: this.configData
|
|
78019
|
+
});
|
|
78020
|
+
},
|
|
78021
|
+
// 获取枚举列表
|
|
78022
|
+
getSelectOption: function getSelectOption() {
|
|
78023
|
+
var _this = this;
|
|
78024
|
+
|
|
78025
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
78026
|
+
var _yield$getEnumListByF, code, data;
|
|
78027
|
+
|
|
78028
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
78029
|
+
while (1) {
|
|
78030
|
+
switch (_context.prev = _context.next) {
|
|
78031
|
+
case 0:
|
|
78032
|
+
if (!(_this.optionsList.length > 0 || !_this.configData.code || !_this.configData.field || _this.configData.fieldType !== 'select')) {
|
|
78033
|
+
_context.next = 2;
|
|
78034
|
+
break;
|
|
78035
|
+
}
|
|
78036
|
+
|
|
78037
|
+
return _context.abrupt("return");
|
|
78038
|
+
|
|
78039
|
+
case 2:
|
|
78040
|
+
_context.next = 4;
|
|
78041
|
+
return Object(tf_table["b" /* getEnumListByField */])({
|
|
78042
|
+
code: _this.configData.code,
|
|
78043
|
+
field: _this.configData.field
|
|
78044
|
+
});
|
|
78045
|
+
|
|
78046
|
+
case 4:
|
|
78047
|
+
_yield$getEnumListByF = _context.sent;
|
|
78048
|
+
code = _yield$getEnumListByF.code;
|
|
78049
|
+
data = _yield$getEnumListByF.data;
|
|
78050
|
+
|
|
78051
|
+
if (!(code !== 0)) {
|
|
78052
|
+
_context.next = 9;
|
|
78053
|
+
break;
|
|
78054
|
+
}
|
|
78055
|
+
|
|
78056
|
+
return _context.abrupt("return");
|
|
78057
|
+
|
|
78058
|
+
case 9:
|
|
78059
|
+
// 给枚举类型赋值
|
|
78060
|
+
_this.optionsList = data;
|
|
78061
|
+
|
|
78062
|
+
case 10:
|
|
78063
|
+
case "end":
|
|
78064
|
+
return _context.stop();
|
|
78065
|
+
}
|
|
78066
|
+
}
|
|
78067
|
+
}, _callee);
|
|
78068
|
+
}))();
|
|
78069
|
+
}
|
|
78070
|
+
}
|
|
78071
|
+
});
|
|
78072
|
+
// CONCATENATED MODULE: ./package/tf-table/src/components/tf-filter/index.vue?vue&type=script&lang=js&
|
|
78073
|
+
/* harmony default export */ var components_tf_filtervue_type_script_lang_js_ = (tf_filtervue_type_script_lang_js_);
|
|
78074
|
+
// EXTERNAL MODULE: ./package/tf-table/src/components/tf-filter/index.vue?vue&type=style&index=0&id=e9941a66&lang=less&scoped=true&
|
|
78075
|
+
var tf_filtervue_type_style_index_0_id_e9941a66_lang_less_scoped_true_ = __webpack_require__("da6b");
|
|
78076
|
+
|
|
78077
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
78078
|
+
var componentNormalizer = __webpack_require__("2877");
|
|
78079
|
+
|
|
78080
|
+
// CONCATENATED MODULE: ./package/tf-table/src/components/tf-filter/index.vue
|
|
78081
|
+
|
|
78082
|
+
|
|
78083
|
+
|
|
78084
|
+
|
|
78085
|
+
|
|
78086
|
+
|
|
78087
|
+
/* normalize component */
|
|
78088
|
+
|
|
78089
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
78090
|
+
components_tf_filtervue_type_script_lang_js_,
|
|
78091
|
+
tf_filtervue_type_template_id_e9941a66_scoped_true_render,
|
|
78092
|
+
tf_filtervue_type_template_id_e9941a66_scoped_true_staticRenderFns,
|
|
78093
|
+
false,
|
|
78094
|
+
null,
|
|
78095
|
+
"e9941a66",
|
|
78096
|
+
null
|
|
78097
|
+
|
|
78098
|
+
)
|
|
78099
|
+
|
|
78100
|
+
/* harmony default export */ var tf_filter = (component.exports);
|
|
77471
78101
|
// 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&
|
|
78102
|
+
|
|
78103
|
+
|
|
78104
|
+
|
|
78105
|
+
|
|
78106
|
+
|
|
78107
|
+
//
|
|
78108
|
+
//
|
|
78109
|
+
//
|
|
78110
|
+
//
|
|
78111
|
+
//
|
|
78112
|
+
//
|
|
78113
|
+
//
|
|
78114
|
+
//
|
|
78115
|
+
//
|
|
78116
|
+
//
|
|
78117
|
+
//
|
|
78118
|
+
//
|
|
77472
78119
|
//
|
|
77473
78120
|
//
|
|
77474
78121
|
//
|
|
@@ -77508,11 +78155,15 @@ var watchParentNode = function watchParentNode(el, binding, vNode) {
|
|
|
77508
78155
|
//
|
|
77509
78156
|
|
|
77510
78157
|
|
|
78158
|
+
|
|
77511
78159
|
/* harmony default export */ var srcvue_type_script_lang_js_ = ({
|
|
77512
78160
|
name: 'TfTable',
|
|
77513
78161
|
directives: {
|
|
77514
78162
|
tableAutoHeight: table_auto_height
|
|
77515
78163
|
},
|
|
78164
|
+
components: {
|
|
78165
|
+
TfFilter: tf_filter
|
|
78166
|
+
},
|
|
77516
78167
|
props: {
|
|
77517
78168
|
columns: {
|
|
77518
78169
|
type: Array,
|
|
@@ -77546,9 +78197,18 @@ var watchParentNode = function watchParentNode(el, binding, vNode) {
|
|
|
77546
78197
|
activated: false,
|
|
77547
78198
|
currentRow: null,
|
|
77548
78199
|
selectedRows: [],
|
|
77549
|
-
tableRef: Object(utils["b" /* randomRefName */])(15)
|
|
78200
|
+
tableRef: Object(utils["b" /* randomRefName */])(15),
|
|
78201
|
+
// 过滤条件
|
|
78202
|
+
filterOption: {},
|
|
78203
|
+
// 过滤之后的数据
|
|
78204
|
+
filteredData: []
|
|
77550
78205
|
};
|
|
77551
78206
|
},
|
|
78207
|
+
watch: {
|
|
78208
|
+
tableData: function tableData(newVal) {
|
|
78209
|
+
this.filterMethod(); // console.log('updateData')
|
|
78210
|
+
}
|
|
78211
|
+
},
|
|
77552
78212
|
methods: {
|
|
77553
78213
|
/**
|
|
77554
78214
|
* 表格当前行change事件
|
|
@@ -77583,16 +78243,70 @@ var watchParentNode = function watchParentNode(el, binding, vNode) {
|
|
|
77583
78243
|
/** 表格合计 */
|
|
77584
78244
|
getSummaries: function getSummaries() {
|
|
77585
78245
|
return [this.totalData];
|
|
78246
|
+
},
|
|
78247
|
+
|
|
78248
|
+
/** 过滤条件方法 */
|
|
78249
|
+
filterMethod: function filterMethod() {
|
|
78250
|
+
var _this = this;
|
|
78251
|
+
|
|
78252
|
+
var result = this.tableData.filter(function (e) {
|
|
78253
|
+
var keyArr = Object.keys(e);
|
|
78254
|
+
var isFilter = true;
|
|
78255
|
+
keyArr.some(function (key) {
|
|
78256
|
+
var _this$filterOption$ke;
|
|
78257
|
+
|
|
78258
|
+
// 数据存在时执行
|
|
78259
|
+
if (!!key && e[key] && (_this$filterOption$ke = _this.filterOption[key]) !== null && _this$filterOption$ke !== void 0 && _this$filterOption$ke.value) {
|
|
78260
|
+
// 时间类型的筛选
|
|
78261
|
+
if (['date', 'dateTime'].includes(_this.filterOption[key].fieldType)) {
|
|
78262
|
+
if (e[key] < _this.filterOption[key].value.startTime || e[key] > _this.filterOption[key].value.endTime) {
|
|
78263
|
+
isFilter = false;
|
|
78264
|
+
}
|
|
78265
|
+
|
|
78266
|
+
return !isFilter;
|
|
78267
|
+
} // 枚举类型筛选
|
|
78268
|
+
|
|
78269
|
+
|
|
78270
|
+
if (_this.filterOption[key].fieldType === 'select') {
|
|
78271
|
+
if (_this.filterOption[key].value.length > 0 && !_this.filterOption[key].value.includes(e[key])) {
|
|
78272
|
+
isFilter = false;
|
|
78273
|
+
}
|
|
78274
|
+
|
|
78275
|
+
return !isFilter;
|
|
78276
|
+
} // 文本数据过滤
|
|
78277
|
+
|
|
78278
|
+
|
|
78279
|
+
if (!e[key].includes(_this.filterOption[key].value)) {
|
|
78280
|
+
isFilter = false;
|
|
78281
|
+
return !isFilter;
|
|
78282
|
+
}
|
|
78283
|
+
}
|
|
78284
|
+
});
|
|
78285
|
+
return isFilter;
|
|
78286
|
+
});
|
|
78287
|
+
this.filteredData = result;
|
|
78288
|
+
},
|
|
78289
|
+
|
|
78290
|
+
/**
|
|
78291
|
+
* @param{
|
|
78292
|
+
* value: "输入的值",
|
|
78293
|
+
* configData:"在哪一列"
|
|
78294
|
+
* }
|
|
78295
|
+
*/
|
|
78296
|
+
handleUpdateFilter: function handleUpdateFilter(_ref) {
|
|
78297
|
+
var value = _ref.value,
|
|
78298
|
+
configData = _ref.configData;
|
|
78299
|
+
this.filterOption[configData.field] = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, configData), {}, {
|
|
78300
|
+
value: value
|
|
78301
|
+
});
|
|
78302
|
+
this.filterMethod();
|
|
77586
78303
|
}
|
|
77587
78304
|
}
|
|
77588
78305
|
});
|
|
77589
78306
|
// CONCATENATED MODULE: ./package/tf-table/src/index.vue?vue&type=script&lang=js&
|
|
77590
78307
|
/* harmony default export */ var tf_table_srcvue_type_script_lang_js_ = (srcvue_type_script_lang_js_);
|
|
77591
|
-
// EXTERNAL MODULE: ./package/tf-table/src/index.vue?vue&type=style&index=0&id=
|
|
77592
|
-
var
|
|
77593
|
-
|
|
77594
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
77595
|
-
var componentNormalizer = __webpack_require__("2877");
|
|
78308
|
+
// EXTERNAL MODULE: ./package/tf-table/src/index.vue?vue&type=style&index=0&id=41b1f54d&lang=less&scoped=true&
|
|
78309
|
+
var srcvue_type_style_index_0_id_41b1f54d_lang_less_scoped_true_ = __webpack_require__("5d08");
|
|
77596
78310
|
|
|
77597
78311
|
// CONCATENATED MODULE: ./package/tf-table/src/index.vue
|
|
77598
78312
|
|
|
@@ -77603,18 +78317,18 @@ var componentNormalizer = __webpack_require__("2877");
|
|
|
77603
78317
|
|
|
77604
78318
|
/* normalize component */
|
|
77605
78319
|
|
|
77606
|
-
var
|
|
78320
|
+
var src_component = Object(componentNormalizer["a" /* default */])(
|
|
77607
78321
|
tf_table_srcvue_type_script_lang_js_,
|
|
77608
78322
|
render,
|
|
77609
78323
|
staticRenderFns,
|
|
77610
78324
|
false,
|
|
77611
78325
|
null,
|
|
77612
|
-
"
|
|
78326
|
+
"41b1f54d",
|
|
77613
78327
|
null
|
|
77614
78328
|
|
|
77615
78329
|
)
|
|
77616
78330
|
|
|
77617
|
-
/* harmony default export */ var src = (
|
|
78331
|
+
/* harmony default export */ var src = (src_component.exports);
|
|
77618
78332
|
// CONCATENATED MODULE: ./package/tf-table/index.js
|
|
77619
78333
|
|
|
77620
78334
|
|
|
@@ -77623,7 +78337,7 @@ src.install = function (Vue) {
|
|
|
77623
78337
|
Vue.component(src.name, src);
|
|
77624
78338
|
};
|
|
77625
78339
|
|
|
77626
|
-
/* harmony default export */ var
|
|
78340
|
+
/* harmony default export */ var package_tf_table = __webpack_exports__["a"] = (src);
|
|
77627
78341
|
|
|
77628
78342
|
/***/ }),
|
|
77629
78343
|
|
|
@@ -80020,17 +80734,6 @@ hiddenKeys[HIDDEN] = true;
|
|
|
80020
80734
|
|
|
80021
80735
|
// extracted by mini-css-extract-plugin
|
|
80022
80736
|
|
|
80023
|
-
/***/ }),
|
|
80024
|
-
|
|
80025
|
-
/***/ "a60f":
|
|
80026
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
80027
|
-
|
|
80028
|
-
"use strict";
|
|
80029
|
-
/* 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");
|
|
80030
|
-
/* 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__);
|
|
80031
|
-
/* unused harmony reexport * */
|
|
80032
|
-
|
|
80033
|
-
|
|
80034
80737
|
/***/ }),
|
|
80035
80738
|
|
|
80036
80739
|
/***/ "a630":
|
|
@@ -87278,7 +87981,7 @@ module.exports = function (C, x) {
|
|
|
87278
87981
|
var _this2 = this;
|
|
87279
87982
|
|
|
87280
87983
|
return new Promise(function (resolve) {
|
|
87281
|
-
Object(_api_tf_table__WEBPACK_IMPORTED_MODULE_14__[/* getInitConfig */ "
|
|
87984
|
+
Object(_api_tf_table__WEBPACK_IMPORTED_MODULE_14__[/* getInitConfig */ "g"])({
|
|
87282
87985
|
code: _this2.code
|
|
87283
87986
|
}).then(function (res) {
|
|
87284
87987
|
if (res.code === 0) {
|
|
@@ -87328,7 +88031,7 @@ module.exports = function (C, x) {
|
|
|
87328
88031
|
|
|
87329
88032
|
_this3.mainTable.mainTableLoading = true;
|
|
87330
88033
|
_context2.next = 7;
|
|
87331
|
-
return Object(_api_tf_table__WEBPACK_IMPORTED_MODULE_14__[/* getHeaderTableInfo */ "
|
|
88034
|
+
return Object(_api_tf_table__WEBPACK_IMPORTED_MODULE_14__[/* getHeaderTableInfo */ "f"])(data);
|
|
87332
88035
|
|
|
87333
88036
|
case 7:
|
|
87334
88037
|
res = _context2.sent;
|
|
@@ -89919,6 +90622,17 @@ module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
|
|
89919
90622
|
};
|
|
89920
90623
|
|
|
89921
90624
|
|
|
90625
|
+
/***/ }),
|
|
90626
|
+
|
|
90627
|
+
/***/ "da6b":
|
|
90628
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
90629
|
+
|
|
90630
|
+
"use strict";
|
|
90631
|
+
/* 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");
|
|
90632
|
+
/* 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__);
|
|
90633
|
+
/* unused harmony reexport * */
|
|
90634
|
+
|
|
90635
|
+
|
|
89922
90636
|
/***/ }),
|
|
89923
90637
|
|
|
89924
90638
|
/***/ "da84":
|
|
@@ -92304,6 +93018,13 @@ var wellKnownSymbol = __webpack_require__("b622");
|
|
|
92304
93018
|
exports.f = wellKnownSymbol;
|
|
92305
93019
|
|
|
92306
93020
|
|
|
93021
|
+
/***/ }),
|
|
93022
|
+
|
|
93023
|
+
/***/ "e61d":
|
|
93024
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
93025
|
+
|
|
93026
|
+
// extracted by mini-css-extract-plugin
|
|
93027
|
+
|
|
92307
93028
|
/***/ }),
|
|
92308
93029
|
|
|
92309
93030
|
/***/ "e62d":
|
|
@@ -113025,316 +113746,8 @@ function getOperatorOption(type) {
|
|
|
113025
113746
|
|
|
113026
113747
|
return typeEnum[type];
|
|
113027
113748
|
}
|
|
113028
|
-
// EXTERNAL MODULE:
|
|
113029
|
-
var
|
|
113030
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
113031
|
-
|
|
113032
|
-
// CONCATENATED MODULE: ./node_modules/element-ui/src/utils/dom.js
|
|
113033
|
-
/* istanbul ignore next */
|
|
113034
|
-
|
|
113035
|
-
|
|
113036
|
-
|
|
113037
|
-
const isServer = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$isServer;
|
|
113038
|
-
const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
|
|
113039
|
-
const MOZ_HACK_REGEXP = /^moz([A-Z])/;
|
|
113040
|
-
const ieVersion = isServer ? 0 : Number(document.documentMode);
|
|
113041
|
-
|
|
113042
|
-
/* istanbul ignore next */
|
|
113043
|
-
const trim = function(string) {
|
|
113044
|
-
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
|
|
113045
|
-
};
|
|
113046
|
-
/* istanbul ignore next */
|
|
113047
|
-
const camelCase = function(name) {
|
|
113048
|
-
return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
|
|
113049
|
-
return offset ? letter.toUpperCase() : letter;
|
|
113050
|
-
}).replace(MOZ_HACK_REGEXP, 'Moz$1');
|
|
113051
|
-
};
|
|
113052
|
-
|
|
113053
|
-
/* istanbul ignore next */
|
|
113054
|
-
const dom_on = (function() {
|
|
113055
|
-
if (!isServer && document.addEventListener) {
|
|
113056
|
-
return function(element, event, handler) {
|
|
113057
|
-
if (element && event && handler) {
|
|
113058
|
-
element.addEventListener(event, handler, false);
|
|
113059
|
-
}
|
|
113060
|
-
};
|
|
113061
|
-
} else {
|
|
113062
|
-
return function(element, event, handler) {
|
|
113063
|
-
if (element && event && handler) {
|
|
113064
|
-
element.attachEvent('on' + event, handler);
|
|
113065
|
-
}
|
|
113066
|
-
};
|
|
113067
|
-
}
|
|
113068
|
-
})();
|
|
113069
|
-
|
|
113070
|
-
/* istanbul ignore next */
|
|
113071
|
-
const dom_off = (function() {
|
|
113072
|
-
if (!isServer && document.removeEventListener) {
|
|
113073
|
-
return function(element, event, handler) {
|
|
113074
|
-
if (element && event) {
|
|
113075
|
-
element.removeEventListener(event, handler, false);
|
|
113076
|
-
}
|
|
113077
|
-
};
|
|
113078
|
-
} else {
|
|
113079
|
-
return function(element, event, handler) {
|
|
113080
|
-
if (element && event) {
|
|
113081
|
-
element.detachEvent('on' + event, handler);
|
|
113082
|
-
}
|
|
113083
|
-
};
|
|
113084
|
-
}
|
|
113085
|
-
})();
|
|
113086
|
-
|
|
113087
|
-
/* istanbul ignore next */
|
|
113088
|
-
const once = function(el, event, fn) {
|
|
113089
|
-
var listener = function() {
|
|
113090
|
-
if (fn) {
|
|
113091
|
-
fn.apply(this, arguments);
|
|
113092
|
-
}
|
|
113093
|
-
dom_off(el, event, listener);
|
|
113094
|
-
};
|
|
113095
|
-
dom_on(el, event, listener);
|
|
113096
|
-
};
|
|
113097
|
-
|
|
113098
|
-
/* istanbul ignore next */
|
|
113099
|
-
function hasClass(el, cls) {
|
|
113100
|
-
if (!el || !cls) return false;
|
|
113101
|
-
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
|
|
113102
|
-
if (el.classList) {
|
|
113103
|
-
return el.classList.contains(cls);
|
|
113104
|
-
} else {
|
|
113105
|
-
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
|
|
113106
|
-
}
|
|
113107
|
-
};
|
|
113108
|
-
|
|
113109
|
-
/* istanbul ignore next */
|
|
113110
|
-
function addClass(el, cls) {
|
|
113111
|
-
if (!el) return;
|
|
113112
|
-
var curClass = el.className;
|
|
113113
|
-
var classes = (cls || '').split(' ');
|
|
113114
|
-
|
|
113115
|
-
for (var i = 0, j = classes.length; i < j; i++) {
|
|
113116
|
-
var clsName = classes[i];
|
|
113117
|
-
if (!clsName) continue;
|
|
113118
|
-
|
|
113119
|
-
if (el.classList) {
|
|
113120
|
-
el.classList.add(clsName);
|
|
113121
|
-
} else if (!hasClass(el, clsName)) {
|
|
113122
|
-
curClass += ' ' + clsName;
|
|
113123
|
-
}
|
|
113124
|
-
}
|
|
113125
|
-
if (!el.classList) {
|
|
113126
|
-
el.setAttribute('class', curClass);
|
|
113127
|
-
}
|
|
113128
|
-
};
|
|
113129
|
-
|
|
113130
|
-
/* istanbul ignore next */
|
|
113131
|
-
function removeClass(el, cls) {
|
|
113132
|
-
if (!el || !cls) return;
|
|
113133
|
-
var classes = cls.split(' ');
|
|
113134
|
-
var curClass = ' ' + el.className + ' ';
|
|
113135
|
-
|
|
113136
|
-
for (var i = 0, j = classes.length; i < j; i++) {
|
|
113137
|
-
var clsName = classes[i];
|
|
113138
|
-
if (!clsName) continue;
|
|
113139
|
-
|
|
113140
|
-
if (el.classList) {
|
|
113141
|
-
el.classList.remove(clsName);
|
|
113142
|
-
} else if (hasClass(el, clsName)) {
|
|
113143
|
-
curClass = curClass.replace(' ' + clsName + ' ', ' ');
|
|
113144
|
-
}
|
|
113145
|
-
}
|
|
113146
|
-
if (!el.classList) {
|
|
113147
|
-
el.setAttribute('class', trim(curClass));
|
|
113148
|
-
}
|
|
113149
|
-
};
|
|
113150
|
-
|
|
113151
|
-
/* istanbul ignore next */
|
|
113152
|
-
const getStyle = ieVersion < 9 ? function(element, styleName) {
|
|
113153
|
-
if (isServer) return;
|
|
113154
|
-
if (!element || !styleName) return null;
|
|
113155
|
-
styleName = camelCase(styleName);
|
|
113156
|
-
if (styleName === 'float') {
|
|
113157
|
-
styleName = 'styleFloat';
|
|
113158
|
-
}
|
|
113159
|
-
try {
|
|
113160
|
-
switch (styleName) {
|
|
113161
|
-
case 'opacity':
|
|
113162
|
-
try {
|
|
113163
|
-
return element.filters.item('alpha').opacity / 100;
|
|
113164
|
-
} catch (e) {
|
|
113165
|
-
return 1.0;
|
|
113166
|
-
}
|
|
113167
|
-
default:
|
|
113168
|
-
return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null);
|
|
113169
|
-
}
|
|
113170
|
-
} catch (e) {
|
|
113171
|
-
return element.style[styleName];
|
|
113172
|
-
}
|
|
113173
|
-
} : function(element, styleName) {
|
|
113174
|
-
if (isServer) return;
|
|
113175
|
-
if (!element || !styleName) return null;
|
|
113176
|
-
styleName = camelCase(styleName);
|
|
113177
|
-
if (styleName === 'float') {
|
|
113178
|
-
styleName = 'cssFloat';
|
|
113179
|
-
}
|
|
113180
|
-
try {
|
|
113181
|
-
var computed = document.defaultView.getComputedStyle(element, '');
|
|
113182
|
-
return element.style[styleName] || computed ? computed[styleName] : null;
|
|
113183
|
-
} catch (e) {
|
|
113184
|
-
return element.style[styleName];
|
|
113185
|
-
}
|
|
113186
|
-
};
|
|
113187
|
-
|
|
113188
|
-
/* istanbul ignore next */
|
|
113189
|
-
function setStyle(element, styleName, value) {
|
|
113190
|
-
if (!element || !styleName) return;
|
|
113191
|
-
|
|
113192
|
-
if (typeof styleName === 'object') {
|
|
113193
|
-
for (var prop in styleName) {
|
|
113194
|
-
if (styleName.hasOwnProperty(prop)) {
|
|
113195
|
-
setStyle(element, prop, styleName[prop]);
|
|
113196
|
-
}
|
|
113197
|
-
}
|
|
113198
|
-
} else {
|
|
113199
|
-
styleName = camelCase(styleName);
|
|
113200
|
-
if (styleName === 'opacity' && ieVersion < 9) {
|
|
113201
|
-
element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
|
|
113202
|
-
} else {
|
|
113203
|
-
element.style[styleName] = value;
|
|
113204
|
-
}
|
|
113205
|
-
}
|
|
113206
|
-
};
|
|
113207
|
-
|
|
113208
|
-
const isScroll = (el, vertical) => {
|
|
113209
|
-
if (isServer) return;
|
|
113210
|
-
|
|
113211
|
-
const determinedDirection = vertical !== null && vertical !== undefined;
|
|
113212
|
-
const overflow = determinedDirection
|
|
113213
|
-
? vertical
|
|
113214
|
-
? getStyle(el, 'overflow-y')
|
|
113215
|
-
: getStyle(el, 'overflow-x')
|
|
113216
|
-
: getStyle(el, 'overflow');
|
|
113217
|
-
|
|
113218
|
-
return overflow.match(/(scroll|auto|overlay)/);
|
|
113219
|
-
};
|
|
113220
|
-
|
|
113221
|
-
const getScrollContainer = (el, vertical) => {
|
|
113222
|
-
if (isServer) return;
|
|
113223
|
-
|
|
113224
|
-
let parent = el;
|
|
113225
|
-
while (parent) {
|
|
113226
|
-
if ([window, document, document.documentElement].includes(parent)) {
|
|
113227
|
-
return window;
|
|
113228
|
-
}
|
|
113229
|
-
if (isScroll(parent, vertical)) {
|
|
113230
|
-
return parent;
|
|
113231
|
-
}
|
|
113232
|
-
parent = parent.parentNode;
|
|
113233
|
-
}
|
|
113234
|
-
|
|
113235
|
-
return parent;
|
|
113236
|
-
};
|
|
113237
|
-
|
|
113238
|
-
const isInContainer = (el, container) => {
|
|
113239
|
-
if (isServer || !el || !container) return false;
|
|
113240
|
-
|
|
113241
|
-
const elRect = el.getBoundingClientRect();
|
|
113242
|
-
let containerRect;
|
|
113243
|
-
|
|
113244
|
-
if ([window, document, document.documentElement, null, undefined].includes(container)) {
|
|
113245
|
-
containerRect = {
|
|
113246
|
-
top: 0,
|
|
113247
|
-
right: window.innerWidth,
|
|
113248
|
-
bottom: window.innerHeight,
|
|
113249
|
-
left: 0
|
|
113250
|
-
};
|
|
113251
|
-
} else {
|
|
113252
|
-
containerRect = container.getBoundingClientRect();
|
|
113253
|
-
}
|
|
113254
|
-
|
|
113255
|
-
return elRect.top < containerRect.bottom &&
|
|
113256
|
-
elRect.bottom > containerRect.top &&
|
|
113257
|
-
elRect.right > containerRect.left &&
|
|
113258
|
-
elRect.left < containerRect.right;
|
|
113259
|
-
};
|
|
113260
|
-
|
|
113261
|
-
// CONCATENATED MODULE: ./node_modules/element-ui/src/utils/clickoutside.js
|
|
113262
|
-
|
|
113263
|
-
|
|
113264
|
-
|
|
113265
|
-
const nodeList = [];
|
|
113266
|
-
const ctx = '@@clickoutsideContext';
|
|
113267
|
-
|
|
113268
|
-
let startClick;
|
|
113269
|
-
let clickoutside_seed = 0;
|
|
113270
|
-
|
|
113271
|
-
!external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$isServer && dom_on(document, 'mousedown', e => (startClick = e));
|
|
113272
|
-
|
|
113273
|
-
!external_commonjs_vue_commonjs2_vue_root_Vue_default.a.prototype.$isServer && dom_on(document, 'mouseup', e => {
|
|
113274
|
-
nodeList.forEach(node => node[ctx].documentHandler(e, startClick));
|
|
113275
|
-
});
|
|
113276
|
-
|
|
113277
|
-
function createDocumentHandler(el, binding, vnode) {
|
|
113278
|
-
return function(mouseup = {}, mousedown = {}) {
|
|
113279
|
-
if (!vnode ||
|
|
113280
|
-
!vnode.context ||
|
|
113281
|
-
!mouseup.target ||
|
|
113282
|
-
!mousedown.target ||
|
|
113283
|
-
el.contains(mouseup.target) ||
|
|
113284
|
-
el.contains(mousedown.target) ||
|
|
113285
|
-
el === mouseup.target ||
|
|
113286
|
-
(vnode.context.popperElm &&
|
|
113287
|
-
(vnode.context.popperElm.contains(mouseup.target) ||
|
|
113288
|
-
vnode.context.popperElm.contains(mousedown.target)))) return;
|
|
113289
|
-
|
|
113290
|
-
if (binding.expression &&
|
|
113291
|
-
el[ctx].methodName &&
|
|
113292
|
-
vnode.context[el[ctx].methodName]) {
|
|
113293
|
-
vnode.context[el[ctx].methodName]();
|
|
113294
|
-
} else {
|
|
113295
|
-
el[ctx].bindingFn && el[ctx].bindingFn();
|
|
113296
|
-
}
|
|
113297
|
-
};
|
|
113298
|
-
}
|
|
113299
|
-
|
|
113300
|
-
/**
|
|
113301
|
-
* v-clickoutside
|
|
113302
|
-
* @desc 点击元素外面才会触发的事件
|
|
113303
|
-
* @example
|
|
113304
|
-
* ```vue
|
|
113305
|
-
* <div v-element-clickoutside="handleClose">
|
|
113306
|
-
* ```
|
|
113307
|
-
*/
|
|
113308
|
-
/* harmony default export */ var clickoutside = ({
|
|
113309
|
-
bind(el, binding, vnode) {
|
|
113310
|
-
nodeList.push(el);
|
|
113311
|
-
const id = clickoutside_seed++;
|
|
113312
|
-
el[ctx] = {
|
|
113313
|
-
id,
|
|
113314
|
-
documentHandler: createDocumentHandler(el, binding, vnode),
|
|
113315
|
-
methodName: binding.expression,
|
|
113316
|
-
bindingFn: binding.value
|
|
113317
|
-
};
|
|
113318
|
-
},
|
|
113319
|
-
|
|
113320
|
-
update(el, binding, vnode) {
|
|
113321
|
-
el[ctx].documentHandler = createDocumentHandler(el, binding, vnode);
|
|
113322
|
-
el[ctx].methodName = binding.expression;
|
|
113323
|
-
el[ctx].bindingFn = binding.value;
|
|
113324
|
-
},
|
|
113325
|
-
|
|
113326
|
-
unbind(el) {
|
|
113327
|
-
let len = nodeList.length;
|
|
113328
|
-
|
|
113329
|
-
for (let i = 0; i < len; i++) {
|
|
113330
|
-
if (nodeList[i][ctx].id === el[ctx].id) {
|
|
113331
|
-
nodeList.splice(i, 1);
|
|
113332
|
-
break;
|
|
113333
|
-
}
|
|
113334
|
-
}
|
|
113335
|
-
delete el[ctx];
|
|
113336
|
-
}
|
|
113337
|
-
});
|
|
113749
|
+
// EXTERNAL MODULE: ./node_modules/element-ui/src/utils/clickoutside.js + 1 modules
|
|
113750
|
+
var clickoutside = __webpack_require__("9169");
|
|
113338
113751
|
|
|
113339
113752
|
// 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&
|
|
113340
113753
|
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)}
|
|
@@ -114618,7 +115031,7 @@ var condition_always_item_component = Object(componentNormalizer["a" /* default
|
|
|
114618
115031
|
ConditionAlwaysItem: condition_always_item
|
|
114619
115032
|
},
|
|
114620
115033
|
directives: {
|
|
114621
|
-
Clickoutside: clickoutside
|
|
115034
|
+
Clickoutside: clickoutside["a" /* default */]
|
|
114622
115035
|
},
|
|
114623
115036
|
props: {
|
|
114624
115037
|
visible: {
|
|
@@ -116232,7 +116645,7 @@ var es_object_values = __webpack_require__("07ac");
|
|
|
116232
116645
|
},
|
|
116233
116646
|
inject: ['target', 'enumOptionCache'],
|
|
116234
116647
|
directives: {
|
|
116235
|
-
Clickoutside: clickoutside
|
|
116648
|
+
Clickoutside: clickoutside["a" /* default */]
|
|
116236
116649
|
},
|
|
116237
116650
|
props: {
|
|
116238
116651
|
item: {
|
|
@@ -180359,16 +180772,16 @@ form_body.install = function (Vue) {
|
|
|
180359
180772
|
};
|
|
180360
180773
|
|
|
180361
180774
|
/* harmony default export */ var package_form_body = (form_body);
|
|
180362
|
-
// 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=
|
|
180363
|
-
var
|
|
180775
|
+
// 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&
|
|
180776
|
+
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){
|
|
180364
180777
|
var row = ref.row;
|
|
180365
180778
|
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){
|
|
180366
180779
|
var row = ref.row;
|
|
180367
180780
|
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)}
|
|
180368
|
-
var
|
|
180781
|
+
var form_body_itemvue_type_template_id_c645a22c_scoped_true_staticRenderFns = []
|
|
180369
180782
|
|
|
180370
180783
|
|
|
180371
|
-
// CONCATENATED MODULE: ./package/form-body-item/src/form-body-item.vue?vue&type=template&id=
|
|
180784
|
+
// CONCATENATED MODULE: ./package/form-body-item/src/form-body-item.vue?vue&type=template&id=c645a22c&scoped=true&
|
|
180372
180785
|
|
|
180373
180786
|
// 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&
|
|
180374
180787
|
|
|
@@ -180381,7 +180794,6 @@ var form_body_itemvue_type_template_id_69ab2dfd_scoped_true_staticRenderFns = []
|
|
|
180381
180794
|
|
|
180382
180795
|
|
|
180383
180796
|
|
|
180384
|
-
|
|
180385
180797
|
//
|
|
180386
180798
|
//
|
|
180387
180799
|
//
|
|
@@ -180619,19 +181031,9 @@ var form_body_itemvue_type_template_id_69ab2dfd_scoped_true_staticRenderFns = []
|
|
|
180619
181031
|
(_this$FormBody$data = this.FormBody.data).splice.apply(_this$FormBody$data, [index, 1].concat(Object(toConsumableArray["a" /* default */])(rows)));
|
|
180620
181032
|
|
|
180621
181033
|
if (this.afterBasicSelected) {
|
|
180622
|
-
|
|
180623
|
-
|
|
180624
|
-
|
|
180625
|
-
try {
|
|
180626
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
180627
|
-
var selected = _step.value;
|
|
180628
|
-
this.afterBasicSelected(currentRow, selected);
|
|
180629
|
-
}
|
|
180630
|
-
} catch (err) {
|
|
180631
|
-
_iterator.e(err);
|
|
180632
|
-
} finally {
|
|
180633
|
-
_iterator.f();
|
|
180634
|
-
}
|
|
181034
|
+
rows.forEach(function (row, index) {
|
|
181035
|
+
_this.afterBasicSelected(row, selectedList[index]);
|
|
181036
|
+
});
|
|
180635
181037
|
}
|
|
180636
181038
|
},
|
|
180637
181039
|
handleInput: function handleInput(row, value) {
|
|
@@ -180668,11 +181070,11 @@ var form_body_itemvue_type_template_id_69ab2dfd_scoped_true_staticRenderFns = []
|
|
|
180668
181070
|
|
|
180669
181071
|
var form_body_item_component = Object(componentNormalizer["a" /* default */])(
|
|
180670
181072
|
src_form_body_itemvue_type_script_lang_js_,
|
|
180671
|
-
|
|
180672
|
-
|
|
181073
|
+
form_body_itemvue_type_template_id_c645a22c_scoped_true_render,
|
|
181074
|
+
form_body_itemvue_type_template_id_c645a22c_scoped_true_staticRenderFns,
|
|
180673
181075
|
false,
|
|
180674
181076
|
null,
|
|
180675
|
-
"
|
|
181077
|
+
"c645a22c",
|
|
180676
181078
|
null
|
|
180677
181079
|
|
|
180678
181080
|
)
|
|
@@ -180690,7 +181092,7 @@ form_body_item.install = function (Vue) {
|
|
|
180690
181092
|
// EXTERNAL MODULE: ./package/tf-input/index.js + 50 modules
|
|
180691
181093
|
var tf_input = __webpack_require__("5a1e");
|
|
180692
181094
|
|
|
180693
|
-
// EXTERNAL MODULE: ./package/tf-table/index.js +
|
|
181095
|
+
// EXTERNAL MODULE: ./package/tf-table/index.js + 11 modules
|
|
180694
181096
|
var tf_table = __webpack_require__("99f4");
|
|
180695
181097
|
|
|
180696
181098
|
// 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&
|