@leevan/jtui 2.0.45 → 2.0.47
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/examples/tableTest/table-ptbg.vue +7 -7
- package/examples/tableTest/tree-table.vue +1 -1
- package/lib/jtui.common.js +196 -50
- package/lib/jtui.css +1 -1
- package/lib/jtui.umd.js +196 -50
- package/lib/jtui.umd.min.js +3 -3
- package/package.json +1 -1
- package/packages/jt-table/components/tableColumn.vue +201 -3
- package/packages/jt-table/data2.js +3281 -0
- package/packages/jt-table/index.vue +9 -7
package/lib/jtui.umd.js
CHANGED
|
@@ -26835,6 +26835,17 @@ echarts.registerProcessor({
|
|
|
26835
26835
|
|
|
26836
26836
|
/***/ }),
|
|
26837
26837
|
|
|
26838
|
+
/***/ "2c8c":
|
|
26839
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
26840
|
+
|
|
26841
|
+
"use strict";
|
|
26842
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_tableColumn_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9aeb");
|
|
26843
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_tableColumn_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_tableColumn_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
26844
|
+
/* unused harmony reexport * */
|
|
26845
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_tableColumn_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
26846
|
+
|
|
26847
|
+
/***/ }),
|
|
26848
|
+
|
|
26838
26849
|
/***/ "2c94":
|
|
26839
26850
|
/***/ (function(module, exports) {
|
|
26840
26851
|
|
|
@@ -150481,6 +150492,13 @@ function divide (num1, num2) {
|
|
|
150481
150492
|
module.exports = divide
|
|
150482
150493
|
|
|
150483
150494
|
|
|
150495
|
+
/***/ }),
|
|
150496
|
+
|
|
150497
|
+
/***/ "9aeb":
|
|
150498
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
150499
|
+
|
|
150500
|
+
// extracted by mini-css-extract-plugin
|
|
150501
|
+
|
|
150484
150502
|
/***/ }),
|
|
150485
150503
|
|
|
150486
150504
|
/***/ "9b19":
|
|
@@ -250044,7 +250062,7 @@ var es_function_name = __webpack_require__("b0c0");
|
|
|
250044
250062
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
250045
250063
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
250046
250064
|
|
|
250047
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"09b5e250-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!./packages/jt-table/index.vue?vue&type=template&id=
|
|
250065
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"09b5e250-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!./packages/jt-table/index.vue?vue&type=template&id=f923a0f6&
|
|
250048
250066
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tableStyle-2",class:_vm.isWrap ? 'isWrap' : '',staticStyle:{"position":"absolute","top":"1px","left":"1px","right":"1px","bottom":"1px"}},[(_vm.isTool)?_c('div',{staticStyle:{"position":"relative"}},[_c('vxe-toolbar',{staticClass:"jt-toolbar",attrs:{"custom":{ icon: 'jtIcon iconpeizhi41 colStyle' }}})],1):_vm._e(),_c('div',{staticStyle:{"width":"100%","height":"100%","position":"relative"}},[(_vm.isShowEmpty)?_c('div',{staticClass:"cus-empty-box"},[_c('el-empty',{attrs:{"image-size":200},scopedSlots:_vm._u([{key:"description",fn:function(){return [_c('p',{staticStyle:{"font-size":"30px"}},[_vm._v("暂无数据")])]},proxy:true}],null,false,1618345459)})],1):_vm._e(),(_vm.tableType === 'default')?_c('vxe-table',{ref:_vm.id,staticClass:"jt-table-class-only",attrs:{"height":"auto","size":"mini","show-overflow":"","show-header-overflow":"","auto-resize":"","resizable":"","highlight-current-row":"","highlight-current-column":"","keep-source":"","empty-text":" ","id":_vm.id,"data":_vm.data.DataArray,"stripe":_vm.stripe,"border":_vm.border,"max-height":_vm.maxHeight,"show-footer":_vm.isFooter,"footer-method":_vm.footerMethod,"footer-span-method":_vm.footerColspanMethod,"footer-cell-class-name":_vm.footerCellClassName,"loading":_vm.loading,"row-style":_vm.rowStyle,"cell-style":_vm.cellStyle_m,"header-cell-class-name":_vm.headerClass,"span-method":_vm.spanMethod,"scroll-y":{ mode: 'wheel' },"sort-config":{ sortMethod: _vm.sortMethod },"radio-config":{ checkRowKey: null },"keyboard-config":{ isArrow: true },"checkbox-config":{ highlight: true },"export-config":{
|
|
250049
250067
|
type: 'xlsx',
|
|
250050
250068
|
types: ['xlsx', 'csv', 'html', 'xml', 'txt'],
|
|
@@ -250144,7 +250162,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
|
|
|
250144
250162
|
var staticRenderFns = []
|
|
250145
250163
|
|
|
250146
250164
|
|
|
250147
|
-
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=
|
|
250165
|
+
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=f923a0f6&
|
|
250148
250166
|
|
|
250149
250167
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
250150
250168
|
var es_array_concat = __webpack_require__("99af");
|
|
@@ -250345,15 +250363,100 @@ function _toConsumableArray(arr) {
|
|
|
250345
250363
|
var xe_utils = __webpack_require__("c695");
|
|
250346
250364
|
var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
250347
250365
|
|
|
250348
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"09b5e250-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!./packages/jt-table/components/tableColumn.vue?vue&type=template&id=
|
|
250349
|
-
var
|
|
250350
|
-
var
|
|
250366
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"09b5e250-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!./packages/jt-table/components/tableColumn.vue?vue&type=template&id=07966dbe&
|
|
250367
|
+
var tableColumnvue_type_template_id_07966dbe_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.item.children && _vm.item.children.length)?_c('vxe-colgroup',{key:_vm.index,attrs:{"title":_vm.item.label,"type":_vm.item.html ? 'html' : ''}},[_vm._l((_vm.item.children),function(subItem,subIndex){return [(subItem.children && subItem.children.length)?_c('vxe-colgroup',{key:subIndex,attrs:{"title":subItem.label,"type":subItem.html ? 'html' : ''}},_vm._l((subItem.children),function(subSubItem,subSubIndex){return _c('vxe-table-column',{key:subSubIndex,attrs:{"edit-render":subSubItem.edit,"show-overflow":"","field":subSubItem.prop,"align":subSubItem.align,"title":subSubItem.label,"type":subSubItem.html ? 'html' : '',"min-width":subSubItem.width,"sortable":subSubItem.isSort,"visible":subSubItem.width != 0,"fixed":subSubItem.isFixed,"filters":_vm.filterData(subSubItem.filterRender),"filter-render":{ name: subSubItem.filterRender },"formatter":_vm.formatEnum,"cell-render":_vm.cellRenderData(subSubItem.cellRender)},scopedSlots:_vm._u([(_vm.item && _vm.item.edit && _vm.item.edit.name == '$select')?{key:"edit",fn:function(ref){
|
|
250368
|
+
var row = ref.row;
|
|
250369
|
+
return [_c('div',{ref:"selectWrapper",refInFor:true,staticClass:"custom-select-wrapper"},[_c('div',{ref:"inputRef",refInFor:true,staticClass:"custom-select-input",on:{"click":_vm.toggleDropdown}},[_c('span',{staticClass:"custom-select-value"},[_vm._v(" "+_vm._s(_vm.getLabel(row[_vm.item.prop]))+" ")]),_c('i',{staticClass:"custom-select-arrow",class:{'is-open': _vm.isOpen}})]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isOpen),expression:"isOpen"}],ref:"dropdownRef",refInFor:true,staticClass:"custom-select-dropdown"},[_c('ul',_vm._l((_vm.item.edit.options),function(op){return _c('li',{key:op.value,class:{'is-selected': row[_vm.item.prop] === op.value},on:{"mousedown":function($event){$event.preventDefault();return _vm.selectOption(op, row)}}},[_vm._v(" "+_vm._s(op.label)+" ")])}),0)])])]}}:null],null,true)})}),1):_c('vxe-table-column',{key:subIndex,attrs:{"edit-render":subItem.edit,"show-overflow":"","field":subItem.prop,"align":subItem.align,"title":subItem.label,"type":subItem.html ? 'html' : '',"min-width":subItem.width,"sortable":subItem.isSort,"visible":subItem.width != 0,"fixed":subItem.isFixed,"filters":_vm.filterData(subItem.filterRender),"filter-render":{ name: subItem.filterRender },"formatter":_vm.formatEnum,"cell-render":_vm.cellRenderData(subItem.cellRender)},scopedSlots:_vm._u([(_vm.item && _vm.item.edit && _vm.item.edit.name == '$select')?{key:"edit",fn:function(ref){
|
|
250370
|
+
var row = ref.row;
|
|
250371
|
+
return [_c('div',{ref:"selectWrapper",refInFor:true,staticClass:"custom-select-wrapper"},[_c('div',{ref:"inputRef",refInFor:true,staticClass:"custom-select-input",on:{"click":_vm.toggleDropdown}},[_c('span',{staticClass:"custom-select-value"},[_vm._v(" "+_vm._s(_vm.getLabel(row[_vm.item.prop]))+" ")]),_c('i',{staticClass:"custom-select-arrow",class:{'is-open': _vm.isOpen}})]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isOpen),expression:"isOpen"}],ref:"dropdownRef",refInFor:true,staticClass:"custom-select-dropdown"},[_c('ul',_vm._l((_vm.item.edit.options),function(op){return _c('li',{key:op.value,class:{'is-selected': row[_vm.item.prop] === op.value},on:{"mousedown":function($event){$event.preventDefault();return _vm.selectOption(op, row)}}},[_vm._v(" "+_vm._s(op.label)+" ")])}),0)])])]}}:null],null,true)})]})],2):_c('vxe-table-column',{key:_vm.index,attrs:{"edit-render":_vm.item.edit && _vm.item.edit.name == '$select' ? {autofocus: '.vxe-input--inner'} : _vm.item.edit,"show-overflow":"","field":_vm.item.prop,"align":_vm.item.align,"title":_vm.item.label,"type":_vm.item.html ? 'html' : '',"min-width":_vm.item.width,"sortable":_vm.item.isSort,"visible":_vm.item.width != 0,"fixed":_vm.item.isFixed,"filters":_vm.filterData(_vm.item.filterRender),"filter-render":{ name: _vm.item.filterRender },"formatter":_vm.formatEnum,"cell-render":_vm.cellRenderData(_vm.item.cellRender)},scopedSlots:_vm._u([(_vm.item && _vm.item.edit && _vm.item.edit.name == '$select')?{key:"edit",fn:function(ref){
|
|
250372
|
+
var row = ref.row;
|
|
250373
|
+
return [_c('div',{ref:"selectWrapper",staticClass:"custom-select-wrapper"},[_c('div',{ref:"inputRef",staticClass:"custom-select-input",on:{"click":_vm.toggleDropdown}},[_c('span',{staticClass:"custom-select-value"},[_vm._v(" "+_vm._s(_vm.getLabel(row[_vm.item.prop]))+" ")]),_c('i',{staticClass:"custom-select-arrow",class:{'is-open': _vm.isOpen}})]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isOpen),expression:"isOpen"}],ref:"dropdownRef",staticClass:"custom-select-dropdown"},[_c('ul',_vm._l((_vm.item.edit.options),function(op){return _c('li',{key:op.value,class:{'is-selected': row[_vm.item.prop] === op.value},on:{"mousedown":function($event){$event.preventDefault();return _vm.selectOption(op, row)}}},[_vm._v(" "+_vm._s(op.label)+" ")])}),0)])])]}}:null],null,true)})}
|
|
250374
|
+
var tableColumnvue_type_template_id_07966dbe_staticRenderFns = []
|
|
250351
250375
|
|
|
250352
250376
|
|
|
250353
|
-
// CONCATENATED MODULE: ./packages/jt-table/components/tableColumn.vue?vue&type=template&id=
|
|
250377
|
+
// CONCATENATED MODULE: ./packages/jt-table/components/tableColumn.vue?vue&type=template&id=07966dbe&
|
|
250354
250378
|
|
|
250355
250379
|
// 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!./packages/jt-table/components/tableColumn.vue?vue&type=script&lang=js&
|
|
250356
250380
|
|
|
250381
|
+
|
|
250382
|
+
//
|
|
250383
|
+
//
|
|
250384
|
+
//
|
|
250385
|
+
//
|
|
250386
|
+
//
|
|
250387
|
+
//
|
|
250388
|
+
//
|
|
250389
|
+
//
|
|
250390
|
+
//
|
|
250391
|
+
//
|
|
250392
|
+
//
|
|
250393
|
+
//
|
|
250394
|
+
//
|
|
250395
|
+
//
|
|
250396
|
+
//
|
|
250397
|
+
//
|
|
250398
|
+
//
|
|
250399
|
+
//
|
|
250400
|
+
//
|
|
250401
|
+
//
|
|
250402
|
+
//
|
|
250403
|
+
//
|
|
250404
|
+
//
|
|
250405
|
+
//
|
|
250406
|
+
//
|
|
250407
|
+
//
|
|
250408
|
+
//
|
|
250409
|
+
//
|
|
250410
|
+
//
|
|
250411
|
+
//
|
|
250412
|
+
//
|
|
250413
|
+
//
|
|
250414
|
+
//
|
|
250415
|
+
//
|
|
250416
|
+
//
|
|
250417
|
+
//
|
|
250418
|
+
//
|
|
250419
|
+
//
|
|
250420
|
+
//
|
|
250421
|
+
//
|
|
250422
|
+
//
|
|
250423
|
+
//
|
|
250424
|
+
//
|
|
250425
|
+
//
|
|
250426
|
+
//
|
|
250427
|
+
//
|
|
250428
|
+
//
|
|
250429
|
+
//
|
|
250430
|
+
//
|
|
250431
|
+
//
|
|
250432
|
+
//
|
|
250433
|
+
//
|
|
250434
|
+
//
|
|
250435
|
+
//
|
|
250436
|
+
//
|
|
250437
|
+
//
|
|
250438
|
+
//
|
|
250439
|
+
//
|
|
250440
|
+
//
|
|
250441
|
+
//
|
|
250442
|
+
//
|
|
250443
|
+
//
|
|
250444
|
+
//
|
|
250445
|
+
//
|
|
250446
|
+
//
|
|
250447
|
+
//
|
|
250448
|
+
//
|
|
250449
|
+
//
|
|
250450
|
+
//
|
|
250451
|
+
//
|
|
250452
|
+
//
|
|
250453
|
+
//
|
|
250454
|
+
//
|
|
250455
|
+
//
|
|
250456
|
+
//
|
|
250457
|
+
//
|
|
250458
|
+
//
|
|
250459
|
+
//
|
|
250357
250460
|
//
|
|
250358
250461
|
//
|
|
250359
250462
|
//
|
|
@@ -250436,7 +250539,22 @@ var tableColumnvue_type_template_id_62931950_scoped_true_staticRenderFns = []
|
|
|
250436
250539
|
/* harmony default export */ var tableColumnvue_type_script_lang_js_ = ({
|
|
250437
250540
|
name: "tableColumn",
|
|
250438
250541
|
data: function data() {
|
|
250439
|
-
return {
|
|
250542
|
+
return {
|
|
250543
|
+
isOpen: false
|
|
250544
|
+
};
|
|
250545
|
+
},
|
|
250546
|
+
mounted: function mounted() {
|
|
250547
|
+
var _this = this;
|
|
250548
|
+
|
|
250549
|
+
// 点击外部关闭下拉框
|
|
250550
|
+
document.addEventListener('click', this.handleClickOutside); // 编辑激活时自动打开
|
|
250551
|
+
|
|
250552
|
+
this.$nextTick(function () {
|
|
250553
|
+
_this.isOpen = true;
|
|
250554
|
+
});
|
|
250555
|
+
},
|
|
250556
|
+
beforeDestroy: function beforeDestroy() {
|
|
250557
|
+
document.removeEventListener('click', this.handleClickOutside);
|
|
250440
250558
|
},
|
|
250441
250559
|
props: {
|
|
250442
250560
|
item: Object,
|
|
@@ -250463,10 +250581,33 @@ var tableColumnvue_type_template_id_62931950_scoped_true_staticRenderFns = []
|
|
|
250463
250581
|
default: 0
|
|
250464
250582
|
}
|
|
250465
250583
|
},
|
|
250466
|
-
methods: {
|
|
250584
|
+
methods: {
|
|
250585
|
+
getLabel: function getLabel(value) {
|
|
250586
|
+
if (!this.item || !this.item.edit || !this.item.edit.options) return value;
|
|
250587
|
+
var findItem = this.item.edit.options.find(function (op) {
|
|
250588
|
+
return op.value === value;
|
|
250589
|
+
});
|
|
250590
|
+
return findItem ? findItem.label : value || '请选择';
|
|
250591
|
+
},
|
|
250592
|
+
toggleDropdown: function toggleDropdown() {
|
|
250593
|
+
this.isOpen = !this.isOpen;
|
|
250594
|
+
},
|
|
250595
|
+
selectOption: function selectOption(op, row) {
|
|
250596
|
+
row[this.item.prop] = op.value;
|
|
250597
|
+
this.isOpen = false;
|
|
250598
|
+
},
|
|
250599
|
+
handleClickOutside: function handleClickOutside(e) {
|
|
250600
|
+
if (this.$refs.selectWrapper && !this.$refs.selectWrapper.contains(e.target)) {
|
|
250601
|
+
this.isOpen = false;
|
|
250602
|
+
}
|
|
250603
|
+
}
|
|
250604
|
+
}
|
|
250467
250605
|
});
|
|
250468
250606
|
// CONCATENATED MODULE: ./packages/jt-table/components/tableColumn.vue?vue&type=script&lang=js&
|
|
250469
250607
|
/* harmony default export */ var components_tableColumnvue_type_script_lang_js_ = (tableColumnvue_type_script_lang_js_);
|
|
250608
|
+
// EXTERNAL MODULE: ./packages/jt-table/components/tableColumn.vue?vue&type=style&index=0&lang=scss&
|
|
250609
|
+
var tableColumnvue_type_style_index_0_lang_scss_ = __webpack_require__("2c8c");
|
|
250610
|
+
|
|
250470
250611
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
250471
250612
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
250472
250613
|
|
|
@@ -250573,15 +250714,16 @@ function normalizeComponent (
|
|
|
250573
250714
|
|
|
250574
250715
|
|
|
250575
250716
|
|
|
250717
|
+
|
|
250576
250718
|
/* normalize component */
|
|
250577
250719
|
|
|
250578
250720
|
var component = normalizeComponent(
|
|
250579
250721
|
components_tableColumnvue_type_script_lang_js_,
|
|
250580
|
-
|
|
250581
|
-
|
|
250722
|
+
tableColumnvue_type_template_id_07966dbe_render,
|
|
250723
|
+
tableColumnvue_type_template_id_07966dbe_staticRenderFns,
|
|
250582
250724
|
false,
|
|
250583
250725
|
null,
|
|
250584
|
-
|
|
250726
|
+
null,
|
|
250585
250727
|
null
|
|
250586
250728
|
|
|
250587
250729
|
)
|
|
@@ -251584,18 +251726,22 @@ var component = normalizeComponent(
|
|
|
251584
251726
|
loading: {
|
|
251585
251727
|
deep: true,
|
|
251586
251728
|
handler: function handler(n) {
|
|
251729
|
+
var _this = this;
|
|
251730
|
+
|
|
251587
251731
|
if (this.$refs[this.id]) {
|
|
251588
|
-
|
|
251732
|
+
setTimeout(function () {
|
|
251733
|
+
var temp = _this.$refs[_this.id].getTableData();
|
|
251589
251734
|
|
|
251590
|
-
|
|
251591
|
-
|
|
251592
|
-
} else {
|
|
251593
|
-
if (n) {
|
|
251594
|
-
this.isShowEmpty = false;
|
|
251735
|
+
if (temp.fullData.length > 0) {
|
|
251736
|
+
_this.isShowEmpty = false;
|
|
251595
251737
|
} else {
|
|
251596
|
-
|
|
251738
|
+
if (n) {
|
|
251739
|
+
_this.isShowEmpty = false;
|
|
251740
|
+
} else {
|
|
251741
|
+
_this.isShowEmpty = true;
|
|
251742
|
+
}
|
|
251597
251743
|
}
|
|
251598
|
-
}
|
|
251744
|
+
}, 1000);
|
|
251599
251745
|
} else {
|
|
251600
251746
|
this.isShowEmpty = false;
|
|
251601
251747
|
}
|
|
@@ -251847,7 +251993,7 @@ var component = normalizeComponent(
|
|
|
251847
251993
|
},
|
|
251848
251994
|
//表尾统计,(计算平均值和求和)
|
|
251849
251995
|
footerMethod: function footerMethod(_ref4) {
|
|
251850
|
-
var
|
|
251996
|
+
var _this2 = this;
|
|
251851
251997
|
|
|
251852
251998
|
var columns = _ref4.columns,
|
|
251853
251999
|
data = _ref4.data;
|
|
@@ -251861,7 +252007,7 @@ var component = normalizeComponent(
|
|
|
251861
252007
|
var meanCell = null;
|
|
251862
252008
|
var sumCell = null;
|
|
251863
252009
|
|
|
251864
|
-
|
|
252010
|
+
_this2.footConfig.filed.forEach(function (i) {
|
|
251865
252011
|
switch (column.property) {
|
|
251866
252012
|
case i:
|
|
251867
252013
|
meanCell = parseInt(xe_utils_default.a.mean(data, column.property));
|
|
@@ -251975,7 +252121,7 @@ var component = normalizeComponent(
|
|
|
251975
252121
|
},
|
|
251976
252122
|
//滚动到底事件派发
|
|
251977
252123
|
scroll: function scroll(param) {
|
|
251978
|
-
var
|
|
252124
|
+
var _this3 = this;
|
|
251979
252125
|
|
|
251980
252126
|
var scrollTop = param.scrollTop,
|
|
251981
252127
|
$event = param.$event;
|
|
@@ -251985,7 +252131,7 @@ var component = normalizeComponent(
|
|
|
251985
252131
|
var sh = $event.target.scrollHeight;
|
|
251986
252132
|
|
|
251987
252133
|
if (Math.ceil(scrollTop + ch) >= sh && scrollTop != 0) {
|
|
251988
|
-
|
|
252134
|
+
_this3.$emit("scrollBottom", ++_this3.pageIndex);
|
|
251989
252135
|
}
|
|
251990
252136
|
}, 200);
|
|
251991
252137
|
},
|
|
@@ -252084,20 +252230,20 @@ var component = normalizeComponent(
|
|
|
252084
252230
|
},
|
|
252085
252231
|
//普通表格转树表(仅支持一层)
|
|
252086
252232
|
default2tree: function default2tree(data, field) {
|
|
252087
|
-
var
|
|
252233
|
+
var _this4 = this;
|
|
252088
252234
|
|
|
252089
252235
|
var result = [];
|
|
252090
252236
|
this.treeField = this.data.retjson.header[0].prop;
|
|
252091
252237
|
xe_utils_default.a.each(xe_utils_default.a.groupBy(data, field), function (childs, key) {
|
|
252092
252238
|
var _result$push;
|
|
252093
252239
|
|
|
252094
|
-
result.push((_result$push = {}, _defineProperty(_result$push,
|
|
252240
|
+
result.push((_result$push = {}, _defineProperty(_result$push, _this4.treeField, key + "\uFF08 ".concat(childs.length, " \uFF09")), _defineProperty(_result$push, "children", childs), _result$push));
|
|
252095
252241
|
});
|
|
252096
252242
|
this.data.DataArray = result;
|
|
252097
252243
|
|
|
252098
252244
|
if (this.isExpand) {
|
|
252099
252245
|
this.$nextTick(function () {
|
|
252100
|
-
|
|
252246
|
+
_this4.setAllTreeExpand();
|
|
252101
252247
|
});
|
|
252102
252248
|
}
|
|
252103
252249
|
},
|
|
@@ -252174,7 +252320,7 @@ var component = normalizeComponent(
|
|
|
252174
252320
|
},
|
|
252175
252321
|
//树表滚动分页+性能优化
|
|
252176
252322
|
scroll1: function scroll1(param) {
|
|
252177
|
-
var
|
|
252323
|
+
var _this5 = this;
|
|
252178
252324
|
|
|
252179
252325
|
var scrollTop = param.scrollTop,
|
|
252180
252326
|
$event = param.$event;
|
|
@@ -252182,24 +252328,24 @@ var component = normalizeComponent(
|
|
|
252182
252328
|
this.timeOut = setTimeout(function () {
|
|
252183
252329
|
var ch = $event.target.clientHeight;
|
|
252184
252330
|
var sh = $event.target.scrollHeight;
|
|
252185
|
-
var temp = scrollTop -
|
|
252186
|
-
|
|
252331
|
+
var temp = scrollTop - _this5.sp;
|
|
252332
|
+
_this5.sp = scrollTop;
|
|
252187
252333
|
|
|
252188
252334
|
if (temp < 0 && scrollTop <= 0) {
|
|
252189
|
-
if (
|
|
252190
|
-
|
|
252335
|
+
if (_this5.tPageIndex > 1) {
|
|
252336
|
+
_this5.tPageIndex--;
|
|
252191
252337
|
|
|
252192
|
-
|
|
252338
|
+
_this5.dataSliceUp(_this5.tPageIndex);
|
|
252193
252339
|
|
|
252194
|
-
|
|
252340
|
+
_this5.$refs[_this5.id].scrollTo(null, (sh - ch) / 2);
|
|
252195
252341
|
}
|
|
252196
252342
|
} else if (temp >= 0 && scrollTop + ch >= sh) {
|
|
252197
|
-
if (
|
|
252198
|
-
|
|
252343
|
+
if (_this5.tPageIndex < _this5.pageTotal) {
|
|
252344
|
+
_this5.tPageIndex++;
|
|
252199
252345
|
|
|
252200
|
-
|
|
252346
|
+
_this5.dataSliceDown(_this5.tPageIndex);
|
|
252201
252347
|
|
|
252202
|
-
|
|
252348
|
+
_this5.$refs[_this5.id].scrollTo(null, (sh - ch) / 2);
|
|
252203
252349
|
}
|
|
252204
252350
|
}
|
|
252205
252351
|
}, 200);
|
|
@@ -252230,12 +252376,12 @@ var component = normalizeComponent(
|
|
|
252230
252376
|
// },
|
|
252231
252377
|
//树 懒加载方法
|
|
252232
252378
|
loadChildrenMethod: function loadChildrenMethod(_ref20) {
|
|
252233
|
-
var
|
|
252379
|
+
var _this6 = this;
|
|
252234
252380
|
|
|
252235
252381
|
var row = _ref20.row;
|
|
252236
252382
|
return new Promise( /*#__PURE__*/function () {
|
|
252237
252383
|
var _ref21 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(resolve) {
|
|
252238
|
-
var _yield$
|
|
252384
|
+
var _yield$_this6$$axios$, data, tempObj;
|
|
252239
252385
|
|
|
252240
252386
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
252241
252387
|
while (1) {
|
|
@@ -252247,17 +252393,17 @@ var component = normalizeComponent(
|
|
|
252247
252393
|
}
|
|
252248
252394
|
|
|
252249
252395
|
delete row.activeValue;
|
|
252250
|
-
resolve(
|
|
252396
|
+
resolve(_this6.treeTempData);
|
|
252251
252397
|
_context.next = 10;
|
|
252252
252398
|
break;
|
|
252253
252399
|
|
|
252254
252400
|
case 5:
|
|
252255
252401
|
_context.next = 7;
|
|
252256
|
-
return
|
|
252402
|
+
return _this6.$axios.post(_this6.treeTypeConfig.path + row.path, _this6.lazyLoadParams);
|
|
252257
252403
|
|
|
252258
252404
|
case 7:
|
|
252259
|
-
_yield$
|
|
252260
|
-
data = _yield$
|
|
252405
|
+
_yield$_this6$$axios$ = _context.sent;
|
|
252406
|
+
data = _yield$_this6$$axios$.data;
|
|
252261
252407
|
|
|
252262
252408
|
if (data[0].Result > 0) {
|
|
252263
252409
|
resolve(data[0].DataArray);
|
|
@@ -252287,10 +252433,10 @@ var component = normalizeComponent(
|
|
|
252287
252433
|
}());
|
|
252288
252434
|
},
|
|
252289
252435
|
setTreeTempData: function setTreeTempData(data) {
|
|
252290
|
-
var
|
|
252436
|
+
var _this7 = this;
|
|
252291
252437
|
|
|
252292
252438
|
return new Promise(function (resolve) {
|
|
252293
|
-
|
|
252439
|
+
_this7.treeTempData = data;
|
|
252294
252440
|
setTimeout(function () {
|
|
252295
252441
|
resolve();
|
|
252296
252442
|
}, 0);
|
|
@@ -252327,13 +252473,13 @@ var component = normalizeComponent(
|
|
|
252327
252473
|
},
|
|
252328
252474
|
//初始化隐藏列
|
|
252329
252475
|
hideColumn: function hideColumn(arr) {
|
|
252330
|
-
var
|
|
252476
|
+
var _this8 = this;
|
|
252331
252477
|
|
|
252332
252478
|
this.$nextTick(function () {
|
|
252333
252479
|
arr.forEach(function (item) {
|
|
252334
|
-
var col =
|
|
252480
|
+
var col = _this8.$refs[_this8.id].getColumnByField(item);
|
|
252335
252481
|
|
|
252336
|
-
|
|
252482
|
+
_this8.$refs[_this8.id].hideColumn(col);
|
|
252337
252483
|
});
|
|
252338
252484
|
});
|
|
252339
252485
|
},
|
|
@@ -252398,11 +252544,11 @@ var component = normalizeComponent(
|
|
|
252398
252544
|
},
|
|
252399
252545
|
//树添加数据方法
|
|
252400
252546
|
treeAdd: function treeAdd(id, obj) {
|
|
252401
|
-
var
|
|
252547
|
+
var _this9 = this;
|
|
252402
252548
|
|
|
252403
252549
|
var xTree = this.$refs[this.id];
|
|
252404
252550
|
xTree.createRow(obj).then(function (newRow) {
|
|
252405
|
-
var matchObj = xe_utils_default.a.findTree(
|
|
252551
|
+
var matchObj = xe_utils_default.a.findTree(_this9.data.DataArray, function (item) {
|
|
252406
252552
|
return item.pkid === id;
|
|
252407
252553
|
}, {
|
|
252408
252554
|
children: "children"
|