@tongfun/tf-widget 0.1.97 → 0.1.100
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 +174 -76
- package/lib/tf-widget.css +1 -1
- package/lib/tf-widget.umd.js +174 -76
- package/lib/tf-widget.umd.min.js +2 -2
- package/package.json +1 -1
- package/dist/css/chunk-vendors.75ec1ba3.css +0 -1
- package/dist/css/index.d1a92f6c.css +0 -1
- package/dist/fonts/element-icons.f1a45d74.ttf +0 -0
- package/dist/fonts/element-icons.ff18efd1.woff +0 -0
- package/dist/js/chunk-vendors-legacy.8062375b.js +0 -54
- package/dist/js/chunk-vendors.32ae2509.js +0 -52
- package/dist/js/index-legacy.a20e505f.js +0 -1
- package/dist/js/index.2db423f4.js +0 -1
- package/dist.zip +0 -0
package/lib/tf-widget.common.js
CHANGED
|
@@ -144215,8 +144215,10 @@ function download(fileName, data) {
|
|
|
144215
144215
|
this.initTable();
|
|
144216
144216
|
},
|
|
144217
144217
|
activated: function activated() {
|
|
144218
|
-
|
|
144219
|
-
|
|
144218
|
+
try {
|
|
144219
|
+
document.querySelector('.ag-body-viewport').addEventListener('scroll', (0,utils/* debounceFun */.u1)(this.scrollFn));
|
|
144220
|
+
document.querySelector('.ag-body-viewport').scrollTop = this.scrollTop; // eslint-disable-next-line no-empty
|
|
144221
|
+
} catch (e) {}
|
|
144220
144222
|
},
|
|
144221
144223
|
deactivated: function deactivated() {
|
|
144222
144224
|
window.removeEventListener('scroll', this.scrollFn);
|
|
@@ -144730,7 +144732,7 @@ function download(fileName, data) {
|
|
|
144730
144732
|
return _this10.operationCommand(tf_table/* commit */.th, '提交', ids);
|
|
144731
144733
|
|
|
144732
144734
|
case 6:
|
|
144733
|
-
_context8.next =
|
|
144735
|
+
_context8.next = 19;
|
|
144734
144736
|
break;
|
|
144735
144737
|
|
|
144736
144738
|
case 8:
|
|
@@ -144743,7 +144745,7 @@ function download(fileName, data) {
|
|
|
144743
144745
|
return _this10.operationCommand(tf_table/* check */.BF, '审核', ids);
|
|
144744
144746
|
|
|
144745
144747
|
case 11:
|
|
144746
|
-
_context8.next =
|
|
144748
|
+
_context8.next = 19;
|
|
144747
144749
|
break;
|
|
144748
144750
|
|
|
144749
144751
|
case 13:
|
|
@@ -144756,22 +144758,51 @@ function download(fileName, data) {
|
|
|
144756
144758
|
return _this10.operationCommand(tf_table/* checkReverse */.P9, '反审核', ids);
|
|
144757
144759
|
|
|
144758
144760
|
case 16:
|
|
144759
|
-
_context8.next =
|
|
144761
|
+
_context8.next = 19;
|
|
144760
144762
|
break;
|
|
144761
144763
|
|
|
144762
144764
|
case 18:
|
|
144763
|
-
if (
|
|
144764
|
-
|
|
144765
|
-
|
|
144766
|
-
|
|
144765
|
+
if (command === 'delete') {
|
|
144766
|
+
_this10.$confirm('确认审核吗?', '提示', {
|
|
144767
|
+
confirmButtonText: '确定',
|
|
144768
|
+
cancelButtonText: '取消',
|
|
144769
|
+
type: 'warning'
|
|
144770
|
+
}).then(function () {
|
|
144771
|
+
var loading = _this10.$loading({
|
|
144772
|
+
lock: true,
|
|
144773
|
+
text: 'Loading',
|
|
144774
|
+
spinner: 'el-icon-loading',
|
|
144775
|
+
background: 'rgba(0, 0, 0, 0.7)'
|
|
144776
|
+
});
|
|
144767
144777
|
|
|
144768
|
-
|
|
144769
|
-
|
|
144778
|
+
var data = {
|
|
144779
|
+
deleteIds: ids,
|
|
144780
|
+
code: _this10.code
|
|
144781
|
+
};
|
|
144782
|
+
(0,tf_table/* deleted */.z2)(data).then(function (res) {
|
|
144783
|
+
if (res.code === 0) {
|
|
144784
|
+
_this10.$message.success('删除成功!'); // 刷新表格数据
|
|
144770
144785
|
|
|
144771
|
-
|
|
144786
|
+
|
|
144787
|
+
_this10.refreshData();
|
|
144788
|
+
} else {
|
|
144789
|
+
_this10.$message.warning(res.errorMsg || '删除失败,请稍后重试!');
|
|
144790
|
+
}
|
|
144791
|
+
|
|
144792
|
+
loading.close();
|
|
144793
|
+
}).catch(function () {
|
|
144794
|
+
_this10.$message.warning('删除失败,请稍后重试!');
|
|
144795
|
+
|
|
144796
|
+
loading.close();
|
|
144797
|
+
});
|
|
144798
|
+
}); // await this.operationCommand(deleted, '删除', ids)
|
|
144799
|
+
|
|
144800
|
+
}
|
|
144801
|
+
|
|
144802
|
+
case 19:
|
|
144772
144803
|
_this10.loadingObj[command + 'Loading'] = false;
|
|
144773
144804
|
|
|
144774
|
-
case
|
|
144805
|
+
case 20:
|
|
144775
144806
|
case "end":
|
|
144776
144807
|
return _context8.stop();
|
|
144777
144808
|
}
|
|
@@ -145310,7 +145341,10 @@ function download(fileName, data) {
|
|
|
145310
145341
|
return;
|
|
145311
145342
|
}
|
|
145312
145343
|
|
|
145313
|
-
configList.
|
|
145344
|
+
var fieldIndex = configList.findIndex(function (item) {
|
|
145345
|
+
return item.field === params.column.colId;
|
|
145346
|
+
});
|
|
145347
|
+
configList.splice(fieldIndex, 1);
|
|
145314
145348
|
configList.splice(params.toIndex - 1, 0, field);
|
|
145315
145349
|
configList.forEach(function (item, index) {
|
|
145316
145350
|
item.fieldIndex = index + 1;
|
|
@@ -174395,9 +174429,9 @@ var tf_menu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174395
174429
|
)
|
|
174396
174430
|
|
|
174397
174431
|
/* harmony default export */ var tf_menu = (tf_menu_component.exports);
|
|
174398
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/tf-layout/src/components/tf-labelbar.vue?vue&type=template&id=
|
|
174399
|
-
var
|
|
174400
|
-
var
|
|
174432
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/tf-layout/src/components/tf-labelbar.vue?vue&type=template&id=b69ab7ca&scoped=true&
|
|
174433
|
+
var tf_labelbarvue_type_template_id_b69ab7ca_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tf-labelbar"},[_c('div',{staticClass:"close-menu"},[_c('div',{class:_vm.closeMenu ? 'open-menu-icon': 'close-menu-icon',attrs:{"src":"","alt":"","title":"隐藏列表"},on:{"click":_vm.changeMenuState}})]),_c('ul',{ref:"labelMenu"},_vm._l((_vm.tagList),function(tagItem){return _c('li',{key:tagItem.path,class:_vm.activePath === tagItem.path ? 'active-tag' : '',on:{"click":function($event){return _vm.routeJump(tagItem)},"contextmenu":function($event){$event.preventDefault();$event.stopPropagation();return _vm.rightClick(tagItem, $event)}}},[_c('span',[_vm._v(_vm._s(tagItem.title))]),_c('i',{directives:[{name:"show",rawName:"v-show",value:(!tagItem.notCloseTag),expression:"!tagItem.notCloseTag"}],staticClass:"el-icon-close close-icon",on:{"click":function($event){$event.stopPropagation();return _vm.closeTag(tagItem)}}})])}),0),_c('div',{staticClass:"scrollbar-icon left",on:{"click":function($event){return _vm.handleScroll('left')}}}),_c('el-dropdown',{staticClass:"right-menu",attrs:{"trigger":"click"},on:{"command":_vm.dropdownCommand}},[_c('span',{staticClass:"el-dropdown-link"},[_c('TfRotateBox')],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{attrs:{"icon":"el-icon-back","command":"closeLeft"}},[_vm._v("关闭左侧")]),_c('el-dropdown-item',{attrs:{"icon":"el-icon-right","command":"closeRight"}},[_vm._v("关闭右侧")]),_c('el-dropdown-item',{attrs:{"icon":"el-icon-circle-close","command":"closeOther"}},[_vm._v("关闭其他")]),_c('el-dropdown-item',{attrs:{"icon":"el-icon-circle-close","command":"closeAll"}},[_vm._v("关闭全部")])],1)],1),_c('div',{staticClass:"scrollbar-icon right",on:{"click":function($event){return _vm.handleScroll('right')}}}),_c('TfRightMenu',{attrs:{"left":_vm.rightMenuLeft,"top":_vm.rightMenuTop,"show-menu":_vm.showRightMenu},on:{"rightMenuClick":_vm.dropdownCommand}})],1)}
|
|
174434
|
+
var tf_labelbarvue_type_template_id_b69ab7ca_scoped_true_staticRenderFns = []
|
|
174401
174435
|
|
|
174402
174436
|
|
|
174403
174437
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/tf-layout/src/components/tf-rotate-box.vue?vue&type=template&id=e334a8d8&scoped=true&
|
|
@@ -174670,7 +174704,9 @@ var tf_right_menu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174670
174704
|
|
|
174671
174705
|
if (this.menusInfo.length) {
|
|
174672
174706
|
this.menusInfo.map(function (menus) {
|
|
174673
|
-
if (menus.
|
|
174707
|
+
if (menus.path === path) {
|
|
174708
|
+
obj.title = menus.title;
|
|
174709
|
+
} else if (menus.childNode) {
|
|
174674
174710
|
var menu = menus.childNode.find(function (item) {
|
|
174675
174711
|
return item.path === path;
|
|
174676
174712
|
});
|
|
@@ -174870,10 +174906,10 @@ var tf_right_menu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174870
174906
|
});
|
|
174871
174907
|
;// CONCATENATED MODULE: ./package/tf-layout/src/components/tf-labelbar.vue?vue&type=script&lang=js&
|
|
174872
174908
|
/* harmony default export */ var components_tf_labelbarvue_type_script_lang_js_ = (tf_labelbarvue_type_script_lang_js_);
|
|
174873
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32[0].rules[0].use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/tf-layout/src/components/tf-labelbar.vue?vue&type=style&index=0&id=
|
|
174909
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32[0].rules[0].use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/tf-layout/src/components/tf-labelbar.vue?vue&type=style&index=0&id=b69ab7ca&lang=less&scoped=true&
|
|
174874
174910
|
// extracted by mini-css-extract-plugin
|
|
174875
174911
|
|
|
174876
|
-
;// CONCATENATED MODULE: ./package/tf-layout/src/components/tf-labelbar.vue?vue&type=style&index=0&id=
|
|
174912
|
+
;// CONCATENATED MODULE: ./package/tf-layout/src/components/tf-labelbar.vue?vue&type=style&index=0&id=b69ab7ca&lang=less&scoped=true&
|
|
174877
174913
|
|
|
174878
174914
|
;// CONCATENATED MODULE: ./package/tf-layout/src/components/tf-labelbar.vue
|
|
174879
174915
|
|
|
@@ -174886,11 +174922,11 @@ var tf_right_menu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174886
174922
|
|
|
174887
174923
|
var tf_labelbar_component = (0,componentNormalizer/* default */.Z)(
|
|
174888
174924
|
components_tf_labelbarvue_type_script_lang_js_,
|
|
174889
|
-
|
|
174890
|
-
|
|
174925
|
+
tf_labelbarvue_type_template_id_b69ab7ca_scoped_true_render,
|
|
174926
|
+
tf_labelbarvue_type_template_id_b69ab7ca_scoped_true_staticRenderFns,
|
|
174891
174927
|
false,
|
|
174892
174928
|
null,
|
|
174893
|
-
"
|
|
174929
|
+
"b69ab7ca",
|
|
174894
174930
|
null
|
|
174895
174931
|
|
|
174896
174932
|
)
|
|
@@ -238138,9 +238174,9 @@ var tf_settingvue_type_template_id_2b5c0bbe_scoped_true_render = function () {va
|
|
|
238138
238174
|
var tf_settingvue_type_template_id_2b5c0bbe_scoped_true_staticRenderFns = []
|
|
238139
238175
|
|
|
238140
238176
|
|
|
238141
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/tf-table-list/src/components/tf-header-button/components/tf-setting/components/tf-setting-form/index.vue?vue&type=template&id=
|
|
238142
|
-
var
|
|
238143
|
-
var
|
|
238177
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/tf-table-list/src/components/tf-header-button/components/tf-setting/components/tf-setting-form/index.vue?vue&type=template&id=3c8f0d24&scoped=true&
|
|
238178
|
+
var tf_setting_formvue_type_template_id_3c8f0d24_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tf-setting-form-content"},[_c('div',{staticClass:"tf-header-group"},[_c('div',{staticClass:"tf-search-text"},[_c('el-input',{attrs:{"placeholder":"搜索字段名称"},on:{"change":_vm.handleSearchField},model:{value:(_vm.searchContent),callback:function ($$v) {_vm.searchContent=$$v},expression:"searchContent"}},[_c('i',{staticClass:"el-input__icon el-icon-search",attrs:{"slot":"prefix"},slot:"prefix"})])],1),_c('TfButtonGroup',[_vm._t("showChange",function(){return [_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":function($event){return _vm.handlerButtons('showChange')}}},[_vm._v("显示切换")])]}),_vm._t("fixedChange",function(){return [_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":function($event){return _vm.handlerButtons('freeze')}}},[_vm._v("冻结固定")])]}),_vm._t("recover",function(){return [_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":function($event){return _vm.handlerButtons('recover')}}},[_vm._v("恢复默认")])]}),_vm._t("save",function(){return [_c('el-button',{attrs:{"type":"primary","size":"mini","loading":_vm.saveLoading},on:{"click":function($event){return _vm.handlerButtons('save')}}},[_vm._v("保存")])]}),_vm._t("close",function(){return [_c('el-button',{attrs:{"type":"danger","size":"mini"},on:{"click":function($event){return _vm.handlerButtons('close')}}},[_vm._v("关闭")])]})],2)],1),_c('div',{staticClass:"tf-common-table"},[_c('TfAgGridTable',{ref:"settingTable",attrs:{"columns":_vm.mainColumns,"table-data":_vm.tableData,"row-drag-managed":true,"row-drag-entire-row":true,"row-drag-multi-row":true},on:{"rowDragEnd":_vm.rowDragEnd,"handleChangeCellValue":_vm.handleChangeCellValue,"sortRow":_vm.sortRow,"selectChange":_vm.selectChange}})],1)])}
|
|
238179
|
+
var tf_setting_formvue_type_template_id_3c8f0d24_scoped_true_staticRenderFns = []
|
|
238144
238180
|
|
|
238145
238181
|
|
|
238146
238182
|
// EXTERNAL MODULE: ./package/tf-ag-grid-table/index.js + 22 modules
|
|
@@ -238156,6 +238192,8 @@ var tf_ag_grid_table = __webpack_require__(5738);
|
|
|
238156
238192
|
|
|
238157
238193
|
|
|
238158
238194
|
|
|
238195
|
+
|
|
238196
|
+
|
|
238159
238197
|
//
|
|
238160
238198
|
//
|
|
238161
238199
|
//
|
|
@@ -238437,76 +238475,136 @@ var tf_ag_grid_table = __webpack_require__(5738);
|
|
|
238437
238475
|
handlerButtons: function handlerButtons(option) {
|
|
238438
238476
|
var _this3 = this;
|
|
238439
238477
|
|
|
238440
|
-
|
|
238441
|
-
|
|
238442
|
-
{
|
|
238443
|
-
|
|
238444
|
-
|
|
238445
|
-
|
|
238478
|
+
return (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee() {
|
|
238479
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
238480
|
+
while (1) {
|
|
238481
|
+
switch (_context.prev = _context.next) {
|
|
238482
|
+
case 0:
|
|
238483
|
+
_context.t0 = option;
|
|
238484
|
+
_context.next = _context.t0 === 'close' ? 3 : _context.t0 === 'showChange' ? 5 : _context.t0 === 'freeze' ? 8 : _context.t0 === 'recover' ? 11 : _context.t0 === 'save' ? 13 : 20;
|
|
238485
|
+
break;
|
|
238446
238486
|
|
|
238447
|
-
|
|
238448
|
-
|
|
238449
|
-
this.tableData.map(function (item) {
|
|
238450
|
-
if (_this3.selectRows.find(function (row) {
|
|
238451
|
-
return row.field === item.field;
|
|
238452
|
-
})) {
|
|
238453
|
-
item.isShow = !item.isShow;
|
|
238454
|
-
}
|
|
238455
|
-
});
|
|
238456
|
-
this.$refs.settingTable.gridApi.refreshCells();
|
|
238457
|
-
break;
|
|
238458
|
-
}
|
|
238487
|
+
case 3:
|
|
238488
|
+
_this3.$emit('close');
|
|
238459
238489
|
|
|
238460
|
-
|
|
238461
|
-
{
|
|
238462
|
-
this.tableData.map(function (item) {
|
|
238463
|
-
if (_this3.selectRows.find(function (row) {
|
|
238464
|
-
return row.field === item.field;
|
|
238465
|
-
})) {
|
|
238466
|
-
item.isFreeze = !item.isFreeze;
|
|
238467
|
-
}
|
|
238468
|
-
});
|
|
238469
|
-
this.$refs.settingTable.gridApi.refreshCells();
|
|
238470
|
-
break;
|
|
238471
|
-
}
|
|
238490
|
+
return _context.abrupt("break", 20);
|
|
238472
238491
|
|
|
238473
|
-
|
|
238474
|
-
|
|
238475
|
-
|
|
238476
|
-
|
|
238477
|
-
|
|
238492
|
+
case 5:
|
|
238493
|
+
_this3.tableData.map(function (item) {
|
|
238494
|
+
if (_this3.selectRows.find(function (row) {
|
|
238495
|
+
return row.field === item.field;
|
|
238496
|
+
})) {
|
|
238497
|
+
item.isShow = !item.isShow;
|
|
238498
|
+
}
|
|
238499
|
+
});
|
|
238478
238500
|
|
|
238479
|
-
|
|
238480
|
-
|
|
238481
|
-
|
|
238482
|
-
|
|
238483
|
-
|
|
238484
|
-
|
|
238485
|
-
|
|
238486
|
-
|
|
238501
|
+
_this3.$refs.settingTable.gridApi.refreshCells();
|
|
238502
|
+
|
|
238503
|
+
return _context.abrupt("break", 20);
|
|
238504
|
+
|
|
238505
|
+
case 8:
|
|
238506
|
+
_this3.tableData.map(function (item) {
|
|
238507
|
+
if (_this3.selectRows.find(function (row) {
|
|
238508
|
+
return row.field === item.field;
|
|
238509
|
+
})) {
|
|
238510
|
+
item.isFreeze = !item.isFreeze;
|
|
238511
|
+
}
|
|
238512
|
+
});
|
|
238513
|
+
|
|
238514
|
+
_this3.$refs.settingTable.gridApi.refreshCells();
|
|
238515
|
+
|
|
238516
|
+
return _context.abrupt("break", 20);
|
|
238517
|
+
|
|
238518
|
+
case 11:
|
|
238519
|
+
_this3.tableData = JSON.parse(JSON.stringify(_this3.defaultCongfigList));
|
|
238520
|
+
return _context.abrupt("break", 20);
|
|
238521
|
+
|
|
238522
|
+
case 13:
|
|
238523
|
+
_this3.saveLoading = true;
|
|
238524
|
+
_context.next = 16;
|
|
238525
|
+
return _this3.handleTableData();
|
|
238526
|
+
|
|
238527
|
+
case 16:
|
|
238528
|
+
_this3.searchContent = '';
|
|
238529
|
+
|
|
238530
|
+
_this3.tableData.map(function (item, index) {
|
|
238531
|
+
item.fieldIndex = index + 1;
|
|
238532
|
+
});
|
|
238533
|
+
|
|
238534
|
+
_this3.$emit('save', _this3.tableData);
|
|
238535
|
+
|
|
238536
|
+
return _context.abrupt("break", 20);
|
|
238537
|
+
|
|
238538
|
+
case 20:
|
|
238539
|
+
case "end":
|
|
238540
|
+
return _context.stop();
|
|
238541
|
+
}
|
|
238487
238542
|
}
|
|
238488
|
-
|
|
238543
|
+
}, _callee);
|
|
238544
|
+
}))();
|
|
238489
238545
|
},
|
|
238490
238546
|
|
|
238491
238547
|
/** 搜索字段 */
|
|
238492
238548
|
handleSearchField: function handleSearchField(value) {
|
|
238493
238549
|
if (!value) {
|
|
238494
|
-
this.
|
|
238550
|
+
this.handleTableData();
|
|
238495
238551
|
} else {
|
|
238496
238552
|
this.originalTableData = JSON.parse(JSON.stringify(this.tableData));
|
|
238497
238553
|
this.tableData = this.tableData.filter(function (item) {
|
|
238498
238554
|
return item.label.includes(value);
|
|
238499
238555
|
});
|
|
238500
238556
|
}
|
|
238557
|
+
},
|
|
238558
|
+
|
|
238559
|
+
/** 搜索字段并更改保存 */
|
|
238560
|
+
handleTableData: function handleTableData() {
|
|
238561
|
+
var _this4 = this;
|
|
238562
|
+
|
|
238563
|
+
return (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2() {
|
|
238564
|
+
var originalTableData;
|
|
238565
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2) {
|
|
238566
|
+
while (1) {
|
|
238567
|
+
switch (_context2.prev = _context2.next) {
|
|
238568
|
+
case 0:
|
|
238569
|
+
if (!(_this4.originalTableData.length === _this4.tableData.length)) {
|
|
238570
|
+
_context2.next = 2;
|
|
238571
|
+
break;
|
|
238572
|
+
}
|
|
238573
|
+
|
|
238574
|
+
return _context2.abrupt("return");
|
|
238575
|
+
|
|
238576
|
+
case 2:
|
|
238577
|
+
// 处理用户搜索字段后,修改table值
|
|
238578
|
+
originalTableData = JSON.parse(JSON.stringify(_this4.originalTableData));
|
|
238579
|
+
|
|
238580
|
+
_this4.tableData.map(function (item) {
|
|
238581
|
+
originalTableData = originalTableData.map(function (data) {
|
|
238582
|
+
if (item.field === data.field) {
|
|
238583
|
+
return item;
|
|
238584
|
+
} else {
|
|
238585
|
+
return data;
|
|
238586
|
+
}
|
|
238587
|
+
});
|
|
238588
|
+
});
|
|
238589
|
+
|
|
238590
|
+
_this4.tableData = originalTableData;
|
|
238591
|
+
|
|
238592
|
+
case 5:
|
|
238593
|
+
case "end":
|
|
238594
|
+
return _context2.stop();
|
|
238595
|
+
}
|
|
238596
|
+
}
|
|
238597
|
+
}, _callee2);
|
|
238598
|
+
}))();
|
|
238501
238599
|
}
|
|
238502
238600
|
}
|
|
238503
238601
|
});
|
|
238504
238602
|
;// CONCATENATED MODULE: ./package/tf-table-list/src/components/tf-header-button/components/tf-setting/components/tf-setting-form/index.vue?vue&type=script&lang=js&
|
|
238505
238603
|
/* harmony default export */ var components_tf_setting_formvue_type_script_lang_js_ = (tf_setting_formvue_type_script_lang_js_);
|
|
238506
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/tf-table-list/src/components/tf-header-button/components/tf-setting/components/tf-setting-form/index.vue?vue&type=style&index=0&id=
|
|
238604
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/tf-table-list/src/components/tf-header-button/components/tf-setting/components/tf-setting-form/index.vue?vue&type=style&index=0&id=3c8f0d24&lang=scss&scoped=true&
|
|
238507
238605
|
// extracted by mini-css-extract-plugin
|
|
238508
238606
|
|
|
238509
|
-
;// CONCATENATED MODULE: ./package/tf-table-list/src/components/tf-header-button/components/tf-setting/components/tf-setting-form/index.vue?vue&type=style&index=0&id=
|
|
238607
|
+
;// CONCATENATED MODULE: ./package/tf-table-list/src/components/tf-header-button/components/tf-setting/components/tf-setting-form/index.vue?vue&type=style&index=0&id=3c8f0d24&lang=scss&scoped=true&
|
|
238510
238608
|
|
|
238511
238609
|
;// CONCATENATED MODULE: ./package/tf-table-list/src/components/tf-header-button/components/tf-setting/components/tf-setting-form/index.vue
|
|
238512
238610
|
|
|
@@ -238519,11 +238617,11 @@ var tf_ag_grid_table = __webpack_require__(5738);
|
|
|
238519
238617
|
|
|
238520
238618
|
var tf_setting_form_component = (0,componentNormalizer/* default */.Z)(
|
|
238521
238619
|
components_tf_setting_formvue_type_script_lang_js_,
|
|
238522
|
-
|
|
238523
|
-
|
|
238620
|
+
tf_setting_formvue_type_template_id_3c8f0d24_scoped_true_render,
|
|
238621
|
+
tf_setting_formvue_type_template_id_3c8f0d24_scoped_true_staticRenderFns,
|
|
238524
238622
|
false,
|
|
238525
238623
|
null,
|
|
238526
|
-
"
|
|
238624
|
+
"3c8f0d24",
|
|
238527
238625
|
null
|
|
238528
238626
|
|
|
238529
238627
|
)
|