@tongfun/tf-widget 0.1.96 → 0.1.99
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 +198 -82
- package/lib/tf-widget.css +1 -1
- package/lib/tf-widget.umd.js +198 -82
- 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
|
}
|
|
@@ -174251,9 +174282,9 @@ tf_widget.install = function (Vue) {
|
|
|
174251
174282
|
};
|
|
174252
174283
|
|
|
174253
174284
|
/* harmony default export */ var package_tf_widget = (tf_widget);
|
|
174254
|
-
;// 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/tf-layout.vue?vue&type=template&id=
|
|
174255
|
-
var
|
|
174256
|
-
var
|
|
174285
|
+
;// 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/tf-layout.vue?vue&type=template&id=9068eb84&scoped=true&
|
|
174286
|
+
var tf_layoutvue_type_template_id_9068eb84_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tf-layout"},[_c('TfMenu',{attrs:{"menus-info":_vm.menusInfo,"menu-state":_vm.menuState}}),_c('div',{staticClass:"tf-layout-subject"},[_c('TfLaberBar',{ref:"TfLaberBar",attrs:{"route-base":_vm.routeBase,"menus-info":_vm.menusInfo},on:{"setCache":_vm.setCache,"changeMenuState":_vm.changeMenuState,"deleteCache":_vm.deleteCache}}),_c('div',{staticClass:"tf-layout-subject-content"},[_c('keep-alive',{attrs:{"include":_vm.secondCacheArray}},[_c('router-view')],1)],1)],1)],1)}
|
|
174287
|
+
var tf_layoutvue_type_template_id_9068eb84_scoped_true_staticRenderFns = []
|
|
174257
174288
|
|
|
174258
174289
|
|
|
174259
174290
|
;// 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-menu.vue?vue&type=template&id=22a9cab7&scoped=true&
|
|
@@ -174395,9 +174426,9 @@ var tf_menu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174395
174426
|
)
|
|
174396
174427
|
|
|
174397
174428
|
/* 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
|
|
174429
|
+
;// 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&
|
|
174430
|
+
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)}
|
|
174431
|
+
var tf_labelbarvue_type_template_id_b69ab7ca_scoped_true_staticRenderFns = []
|
|
174401
174432
|
|
|
174402
174433
|
|
|
174403
174434
|
;// 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&
|
|
@@ -174627,6 +174658,12 @@ var tf_right_menu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174627
174658
|
routeBase: {
|
|
174628
174659
|
default: null,
|
|
174629
174660
|
type: String
|
|
174661
|
+
},
|
|
174662
|
+
menusInfo: {
|
|
174663
|
+
type: Array,
|
|
174664
|
+
default: function _default() {
|
|
174665
|
+
return [];
|
|
174666
|
+
}
|
|
174630
174667
|
}
|
|
174631
174668
|
},
|
|
174632
174669
|
data: function data() {
|
|
@@ -174662,6 +174699,22 @@ var tf_right_menu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174662
174699
|
replace: meta.replace
|
|
174663
174700
|
};
|
|
174664
174701
|
|
|
174702
|
+
if (this.menusInfo.length) {
|
|
174703
|
+
this.menusInfo.map(function (menus) {
|
|
174704
|
+
if (menus.path === path) {
|
|
174705
|
+
obj.title = menus.title;
|
|
174706
|
+
} else if (menus.childNode) {
|
|
174707
|
+
var menu = menus.childNode.find(function (item) {
|
|
174708
|
+
return item.path === path;
|
|
174709
|
+
});
|
|
174710
|
+
|
|
174711
|
+
if (menu) {
|
|
174712
|
+
obj.title = menu.title;
|
|
174713
|
+
}
|
|
174714
|
+
}
|
|
174715
|
+
});
|
|
174716
|
+
}
|
|
174717
|
+
|
|
174665
174718
|
if (!meta.noCache) {
|
|
174666
174719
|
var cacheArr = newValue.matched.map(function (item) {
|
|
174667
174720
|
return item.name;
|
|
@@ -174850,10 +174903,10 @@ var tf_right_menu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174850
174903
|
});
|
|
174851
174904
|
;// CONCATENATED MODULE: ./package/tf-layout/src/components/tf-labelbar.vue?vue&type=script&lang=js&
|
|
174852
174905
|
/* harmony default export */ var components_tf_labelbarvue_type_script_lang_js_ = (tf_labelbarvue_type_script_lang_js_);
|
|
174853
|
-
;// 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=
|
|
174906
|
+
;// 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&
|
|
174854
174907
|
// extracted by mini-css-extract-plugin
|
|
174855
174908
|
|
|
174856
|
-
;// CONCATENATED MODULE: ./package/tf-layout/src/components/tf-labelbar.vue?vue&type=style&index=0&id=
|
|
174909
|
+
;// CONCATENATED MODULE: ./package/tf-layout/src/components/tf-labelbar.vue?vue&type=style&index=0&id=b69ab7ca&lang=less&scoped=true&
|
|
174857
174910
|
|
|
174858
174911
|
;// CONCATENATED MODULE: ./package/tf-layout/src/components/tf-labelbar.vue
|
|
174859
174912
|
|
|
@@ -174866,11 +174919,11 @@ var tf_right_menu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174866
174919
|
|
|
174867
174920
|
var tf_labelbar_component = (0,componentNormalizer/* default */.Z)(
|
|
174868
174921
|
components_tf_labelbarvue_type_script_lang_js_,
|
|
174869
|
-
|
|
174870
|
-
|
|
174922
|
+
tf_labelbarvue_type_template_id_b69ab7ca_scoped_true_render,
|
|
174923
|
+
tf_labelbarvue_type_template_id_b69ab7ca_scoped_true_staticRenderFns,
|
|
174871
174924
|
false,
|
|
174872
174925
|
null,
|
|
174873
|
-
"
|
|
174926
|
+
"b69ab7ca",
|
|
174874
174927
|
null
|
|
174875
174928
|
|
|
174876
174929
|
)
|
|
@@ -174909,6 +174962,7 @@ var tf_labelbar_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174909
174962
|
//
|
|
174910
174963
|
//
|
|
174911
174964
|
//
|
|
174965
|
+
//
|
|
174912
174966
|
|
|
174913
174967
|
|
|
174914
174968
|
/* harmony default export */ var tf_layoutvue_type_script_lang_js_ = ({
|
|
@@ -175005,10 +175059,10 @@ var tf_labelbar_component = (0,componentNormalizer/* default */.Z)(
|
|
|
175005
175059
|
});
|
|
175006
175060
|
;// CONCATENATED MODULE: ./package/tf-layout/src/tf-layout.vue?vue&type=script&lang=js&
|
|
175007
175061
|
/* harmony default export */ var src_tf_layoutvue_type_script_lang_js_ = (tf_layoutvue_type_script_lang_js_);
|
|
175008
|
-
;// 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/tf-layout.vue?vue&type=style&index=0&id=
|
|
175062
|
+
;// 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/tf-layout.vue?vue&type=style&index=0&id=9068eb84&lang=less&scoped=true&
|
|
175009
175063
|
// extracted by mini-css-extract-plugin
|
|
175010
175064
|
|
|
175011
|
-
;// CONCATENATED MODULE: ./package/tf-layout/src/tf-layout.vue?vue&type=style&index=0&id=
|
|
175065
|
+
;// CONCATENATED MODULE: ./package/tf-layout/src/tf-layout.vue?vue&type=style&index=0&id=9068eb84&lang=less&scoped=true&
|
|
175012
175066
|
|
|
175013
175067
|
;// CONCATENATED MODULE: ./package/tf-layout/src/tf-layout.vue
|
|
175014
175068
|
|
|
@@ -175021,11 +175075,11 @@ var tf_labelbar_component = (0,componentNormalizer/* default */.Z)(
|
|
|
175021
175075
|
|
|
175022
175076
|
var tf_layout_component = (0,componentNormalizer/* default */.Z)(
|
|
175023
175077
|
src_tf_layoutvue_type_script_lang_js_,
|
|
175024
|
-
|
|
175025
|
-
|
|
175078
|
+
tf_layoutvue_type_template_id_9068eb84_scoped_true_render,
|
|
175079
|
+
tf_layoutvue_type_template_id_9068eb84_scoped_true_staticRenderFns,
|
|
175026
175080
|
false,
|
|
175027
175081
|
null,
|
|
175028
|
-
"
|
|
175082
|
+
"9068eb84",
|
|
175029
175083
|
null
|
|
175030
175084
|
|
|
175031
175085
|
)
|
|
@@ -238117,9 +238171,9 @@ var tf_settingvue_type_template_id_2b5c0bbe_scoped_true_render = function () {va
|
|
|
238117
238171
|
var tf_settingvue_type_template_id_2b5c0bbe_scoped_true_staticRenderFns = []
|
|
238118
238172
|
|
|
238119
238173
|
|
|
238120
|
-
;// 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=
|
|
238121
|
-
var
|
|
238122
|
-
var
|
|
238174
|
+
;// 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&
|
|
238175
|
+
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)])}
|
|
238176
|
+
var tf_setting_formvue_type_template_id_3c8f0d24_scoped_true_staticRenderFns = []
|
|
238123
238177
|
|
|
238124
238178
|
|
|
238125
238179
|
// EXTERNAL MODULE: ./package/tf-ag-grid-table/index.js + 22 modules
|
|
@@ -238135,6 +238189,8 @@ var tf_ag_grid_table = __webpack_require__(5738);
|
|
|
238135
238189
|
|
|
238136
238190
|
|
|
238137
238191
|
|
|
238192
|
+
|
|
238193
|
+
|
|
238138
238194
|
//
|
|
238139
238195
|
//
|
|
238140
238196
|
//
|
|
@@ -238416,76 +238472,136 @@ var tf_ag_grid_table = __webpack_require__(5738);
|
|
|
238416
238472
|
handlerButtons: function handlerButtons(option) {
|
|
238417
238473
|
var _this3 = this;
|
|
238418
238474
|
|
|
238419
|
-
|
|
238420
|
-
|
|
238421
|
-
{
|
|
238422
|
-
|
|
238423
|
-
|
|
238424
|
-
|
|
238475
|
+
return (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee() {
|
|
238476
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
238477
|
+
while (1) {
|
|
238478
|
+
switch (_context.prev = _context.next) {
|
|
238479
|
+
case 0:
|
|
238480
|
+
_context.t0 = option;
|
|
238481
|
+
_context.next = _context.t0 === 'close' ? 3 : _context.t0 === 'showChange' ? 5 : _context.t0 === 'freeze' ? 8 : _context.t0 === 'recover' ? 11 : _context.t0 === 'save' ? 13 : 20;
|
|
238482
|
+
break;
|
|
238425
238483
|
|
|
238426
|
-
|
|
238427
|
-
|
|
238428
|
-
this.tableData.map(function (item) {
|
|
238429
|
-
if (_this3.selectRows.find(function (row) {
|
|
238430
|
-
return row.field === item.field;
|
|
238431
|
-
})) {
|
|
238432
|
-
item.isShow = !item.isShow;
|
|
238433
|
-
}
|
|
238434
|
-
});
|
|
238435
|
-
this.$refs.settingTable.gridApi.refreshCells();
|
|
238436
|
-
break;
|
|
238437
|
-
}
|
|
238484
|
+
case 3:
|
|
238485
|
+
_this3.$emit('close');
|
|
238438
238486
|
|
|
238439
|
-
|
|
238440
|
-
{
|
|
238441
|
-
this.tableData.map(function (item) {
|
|
238442
|
-
if (_this3.selectRows.find(function (row) {
|
|
238443
|
-
return row.field === item.field;
|
|
238444
|
-
})) {
|
|
238445
|
-
item.isFreeze = !item.isFreeze;
|
|
238446
|
-
}
|
|
238447
|
-
});
|
|
238448
|
-
this.$refs.settingTable.gridApi.refreshCells();
|
|
238449
|
-
break;
|
|
238450
|
-
}
|
|
238487
|
+
return _context.abrupt("break", 20);
|
|
238451
238488
|
|
|
238452
|
-
|
|
238453
|
-
|
|
238454
|
-
|
|
238455
|
-
|
|
238456
|
-
|
|
238489
|
+
case 5:
|
|
238490
|
+
_this3.tableData.map(function (item) {
|
|
238491
|
+
if (_this3.selectRows.find(function (row) {
|
|
238492
|
+
return row.field === item.field;
|
|
238493
|
+
})) {
|
|
238494
|
+
item.isShow = !item.isShow;
|
|
238495
|
+
}
|
|
238496
|
+
});
|
|
238457
238497
|
|
|
238458
|
-
|
|
238459
|
-
|
|
238460
|
-
|
|
238461
|
-
|
|
238462
|
-
|
|
238463
|
-
|
|
238464
|
-
|
|
238465
|
-
|
|
238498
|
+
_this3.$refs.settingTable.gridApi.refreshCells();
|
|
238499
|
+
|
|
238500
|
+
return _context.abrupt("break", 20);
|
|
238501
|
+
|
|
238502
|
+
case 8:
|
|
238503
|
+
_this3.tableData.map(function (item) {
|
|
238504
|
+
if (_this3.selectRows.find(function (row) {
|
|
238505
|
+
return row.field === item.field;
|
|
238506
|
+
})) {
|
|
238507
|
+
item.isFreeze = !item.isFreeze;
|
|
238508
|
+
}
|
|
238509
|
+
});
|
|
238510
|
+
|
|
238511
|
+
_this3.$refs.settingTable.gridApi.refreshCells();
|
|
238512
|
+
|
|
238513
|
+
return _context.abrupt("break", 20);
|
|
238514
|
+
|
|
238515
|
+
case 11:
|
|
238516
|
+
_this3.tableData = JSON.parse(JSON.stringify(_this3.defaultCongfigList));
|
|
238517
|
+
return _context.abrupt("break", 20);
|
|
238518
|
+
|
|
238519
|
+
case 13:
|
|
238520
|
+
_this3.saveLoading = true;
|
|
238521
|
+
_context.next = 16;
|
|
238522
|
+
return _this3.handleTableData();
|
|
238523
|
+
|
|
238524
|
+
case 16:
|
|
238525
|
+
_this3.searchContent = '';
|
|
238526
|
+
|
|
238527
|
+
_this3.tableData.map(function (item, index) {
|
|
238528
|
+
item.fieldIndex = index + 1;
|
|
238529
|
+
});
|
|
238530
|
+
|
|
238531
|
+
_this3.$emit('save', _this3.tableData);
|
|
238532
|
+
|
|
238533
|
+
return _context.abrupt("break", 20);
|
|
238534
|
+
|
|
238535
|
+
case 20:
|
|
238536
|
+
case "end":
|
|
238537
|
+
return _context.stop();
|
|
238538
|
+
}
|
|
238466
238539
|
}
|
|
238467
|
-
|
|
238540
|
+
}, _callee);
|
|
238541
|
+
}))();
|
|
238468
238542
|
},
|
|
238469
238543
|
|
|
238470
238544
|
/** 搜索字段 */
|
|
238471
238545
|
handleSearchField: function handleSearchField(value) {
|
|
238472
238546
|
if (!value) {
|
|
238473
|
-
this.
|
|
238547
|
+
this.handleTableData();
|
|
238474
238548
|
} else {
|
|
238475
238549
|
this.originalTableData = JSON.parse(JSON.stringify(this.tableData));
|
|
238476
238550
|
this.tableData = this.tableData.filter(function (item) {
|
|
238477
238551
|
return item.label.includes(value);
|
|
238478
238552
|
});
|
|
238479
238553
|
}
|
|
238554
|
+
},
|
|
238555
|
+
|
|
238556
|
+
/** 搜索字段并更改保存 */
|
|
238557
|
+
handleTableData: function handleTableData() {
|
|
238558
|
+
var _this4 = this;
|
|
238559
|
+
|
|
238560
|
+
return (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2() {
|
|
238561
|
+
var originalTableData;
|
|
238562
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2) {
|
|
238563
|
+
while (1) {
|
|
238564
|
+
switch (_context2.prev = _context2.next) {
|
|
238565
|
+
case 0:
|
|
238566
|
+
if (!(_this4.originalTableData.length === _this4.tableData.length)) {
|
|
238567
|
+
_context2.next = 2;
|
|
238568
|
+
break;
|
|
238569
|
+
}
|
|
238570
|
+
|
|
238571
|
+
return _context2.abrupt("return");
|
|
238572
|
+
|
|
238573
|
+
case 2:
|
|
238574
|
+
// 处理用户搜索字段后,修改table值
|
|
238575
|
+
originalTableData = JSON.parse(JSON.stringify(_this4.originalTableData));
|
|
238576
|
+
|
|
238577
|
+
_this4.tableData.map(function (item) {
|
|
238578
|
+
originalTableData = originalTableData.map(function (data) {
|
|
238579
|
+
if (item.field === data.field) {
|
|
238580
|
+
return item;
|
|
238581
|
+
} else {
|
|
238582
|
+
return data;
|
|
238583
|
+
}
|
|
238584
|
+
});
|
|
238585
|
+
});
|
|
238586
|
+
|
|
238587
|
+
_this4.tableData = originalTableData;
|
|
238588
|
+
|
|
238589
|
+
case 5:
|
|
238590
|
+
case "end":
|
|
238591
|
+
return _context2.stop();
|
|
238592
|
+
}
|
|
238593
|
+
}
|
|
238594
|
+
}, _callee2);
|
|
238595
|
+
}))();
|
|
238480
238596
|
}
|
|
238481
238597
|
}
|
|
238482
238598
|
});
|
|
238483
238599
|
;// 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&
|
|
238484
238600
|
/* harmony default export */ var components_tf_setting_formvue_type_script_lang_js_ = (tf_setting_formvue_type_script_lang_js_);
|
|
238485
|
-
;// 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=
|
|
238601
|
+
;// 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&
|
|
238486
238602
|
// extracted by mini-css-extract-plugin
|
|
238487
238603
|
|
|
238488
|
-
;// 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=
|
|
238604
|
+
;// 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&
|
|
238489
238605
|
|
|
238490
238606
|
;// CONCATENATED MODULE: ./package/tf-table-list/src/components/tf-header-button/components/tf-setting/components/tf-setting-form/index.vue
|
|
238491
238607
|
|
|
@@ -238498,11 +238614,11 @@ var tf_ag_grid_table = __webpack_require__(5738);
|
|
|
238498
238614
|
|
|
238499
238615
|
var tf_setting_form_component = (0,componentNormalizer/* default */.Z)(
|
|
238500
238616
|
components_tf_setting_formvue_type_script_lang_js_,
|
|
238501
|
-
|
|
238502
|
-
|
|
238617
|
+
tf_setting_formvue_type_template_id_3c8f0d24_scoped_true_render,
|
|
238618
|
+
tf_setting_formvue_type_template_id_3c8f0d24_scoped_true_staticRenderFns,
|
|
238503
238619
|
false,
|
|
238504
238620
|
null,
|
|
238505
|
-
"
|
|
238621
|
+
"3c8f0d24",
|
|
238506
238622
|
null
|
|
238507
238623
|
|
|
238508
238624
|
)
|