@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.umd.js
CHANGED
|
@@ -144225,8 +144225,10 @@ function download(fileName, data) {
|
|
|
144225
144225
|
this.initTable();
|
|
144226
144226
|
},
|
|
144227
144227
|
activated: function activated() {
|
|
144228
|
-
|
|
144229
|
-
|
|
144228
|
+
try {
|
|
144229
|
+
document.querySelector('.ag-body-viewport').addEventListener('scroll', (0,utils/* debounceFun */.u1)(this.scrollFn));
|
|
144230
|
+
document.querySelector('.ag-body-viewport').scrollTop = this.scrollTop; // eslint-disable-next-line no-empty
|
|
144231
|
+
} catch (e) {}
|
|
144230
144232
|
},
|
|
144231
144233
|
deactivated: function deactivated() {
|
|
144232
144234
|
window.removeEventListener('scroll', this.scrollFn);
|
|
@@ -144740,7 +144742,7 @@ function download(fileName, data) {
|
|
|
144740
144742
|
return _this10.operationCommand(tf_table/* commit */.th, '提交', ids);
|
|
144741
144743
|
|
|
144742
144744
|
case 6:
|
|
144743
|
-
_context8.next =
|
|
144745
|
+
_context8.next = 19;
|
|
144744
144746
|
break;
|
|
144745
144747
|
|
|
144746
144748
|
case 8:
|
|
@@ -144753,7 +144755,7 @@ function download(fileName, data) {
|
|
|
144753
144755
|
return _this10.operationCommand(tf_table/* check */.BF, '审核', ids);
|
|
144754
144756
|
|
|
144755
144757
|
case 11:
|
|
144756
|
-
_context8.next =
|
|
144758
|
+
_context8.next = 19;
|
|
144757
144759
|
break;
|
|
144758
144760
|
|
|
144759
144761
|
case 13:
|
|
@@ -144766,22 +144768,51 @@ function download(fileName, data) {
|
|
|
144766
144768
|
return _this10.operationCommand(tf_table/* checkReverse */.P9, '反审核', ids);
|
|
144767
144769
|
|
|
144768
144770
|
case 16:
|
|
144769
|
-
_context8.next =
|
|
144771
|
+
_context8.next = 19;
|
|
144770
144772
|
break;
|
|
144771
144773
|
|
|
144772
144774
|
case 18:
|
|
144773
|
-
if (
|
|
144774
|
-
|
|
144775
|
-
|
|
144776
|
-
|
|
144775
|
+
if (command === 'delete') {
|
|
144776
|
+
_this10.$confirm('确认审核吗?', '提示', {
|
|
144777
|
+
confirmButtonText: '确定',
|
|
144778
|
+
cancelButtonText: '取消',
|
|
144779
|
+
type: 'warning'
|
|
144780
|
+
}).then(function () {
|
|
144781
|
+
var loading = _this10.$loading({
|
|
144782
|
+
lock: true,
|
|
144783
|
+
text: 'Loading',
|
|
144784
|
+
spinner: 'el-icon-loading',
|
|
144785
|
+
background: 'rgba(0, 0, 0, 0.7)'
|
|
144786
|
+
});
|
|
144777
144787
|
|
|
144778
|
-
|
|
144779
|
-
|
|
144788
|
+
var data = {
|
|
144789
|
+
deleteIds: ids,
|
|
144790
|
+
code: _this10.code
|
|
144791
|
+
};
|
|
144792
|
+
(0,tf_table/* deleted */.z2)(data).then(function (res) {
|
|
144793
|
+
if (res.code === 0) {
|
|
144794
|
+
_this10.$message.success('删除成功!'); // 刷新表格数据
|
|
144780
144795
|
|
|
144781
|
-
|
|
144796
|
+
|
|
144797
|
+
_this10.refreshData();
|
|
144798
|
+
} else {
|
|
144799
|
+
_this10.$message.warning(res.errorMsg || '删除失败,请稍后重试!');
|
|
144800
|
+
}
|
|
144801
|
+
|
|
144802
|
+
loading.close();
|
|
144803
|
+
}).catch(function () {
|
|
144804
|
+
_this10.$message.warning('删除失败,请稍后重试!');
|
|
144805
|
+
|
|
144806
|
+
loading.close();
|
|
144807
|
+
});
|
|
144808
|
+
}); // await this.operationCommand(deleted, '删除', ids)
|
|
144809
|
+
|
|
144810
|
+
}
|
|
144811
|
+
|
|
144812
|
+
case 19:
|
|
144782
144813
|
_this10.loadingObj[command + 'Loading'] = false;
|
|
144783
144814
|
|
|
144784
|
-
case
|
|
144815
|
+
case 20:
|
|
144785
144816
|
case "end":
|
|
144786
144817
|
return _context8.stop();
|
|
144787
144818
|
}
|
|
@@ -174261,9 +174292,9 @@ tf_widget.install = function (Vue) {
|
|
|
174261
174292
|
};
|
|
174262
174293
|
|
|
174263
174294
|
/* harmony default export */ var package_tf_widget = (tf_widget);
|
|
174264
|
-
;// 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=
|
|
174265
|
-
var
|
|
174266
|
-
var
|
|
174295
|
+
;// 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&
|
|
174296
|
+
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)}
|
|
174297
|
+
var tf_layoutvue_type_template_id_9068eb84_scoped_true_staticRenderFns = []
|
|
174267
174298
|
|
|
174268
174299
|
|
|
174269
174300
|
;// 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&
|
|
@@ -174405,9 +174436,9 @@ var tf_menu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174405
174436
|
)
|
|
174406
174437
|
|
|
174407
174438
|
/* harmony default export */ var tf_menu = (tf_menu_component.exports);
|
|
174408
|
-
;// 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=
|
|
174409
|
-
var
|
|
174410
|
-
var
|
|
174439
|
+
;// 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&
|
|
174440
|
+
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)}
|
|
174441
|
+
var tf_labelbarvue_type_template_id_b69ab7ca_scoped_true_staticRenderFns = []
|
|
174411
174442
|
|
|
174412
174443
|
|
|
174413
174444
|
;// 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&
|
|
@@ -174637,6 +174668,12 @@ var tf_right_menu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174637
174668
|
routeBase: {
|
|
174638
174669
|
default: null,
|
|
174639
174670
|
type: String
|
|
174671
|
+
},
|
|
174672
|
+
menusInfo: {
|
|
174673
|
+
type: Array,
|
|
174674
|
+
default: function _default() {
|
|
174675
|
+
return [];
|
|
174676
|
+
}
|
|
174640
174677
|
}
|
|
174641
174678
|
},
|
|
174642
174679
|
data: function data() {
|
|
@@ -174672,6 +174709,22 @@ var tf_right_menu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174672
174709
|
replace: meta.replace
|
|
174673
174710
|
};
|
|
174674
174711
|
|
|
174712
|
+
if (this.menusInfo.length) {
|
|
174713
|
+
this.menusInfo.map(function (menus) {
|
|
174714
|
+
if (menus.path === path) {
|
|
174715
|
+
obj.title = menus.title;
|
|
174716
|
+
} else if (menus.childNode) {
|
|
174717
|
+
var menu = menus.childNode.find(function (item) {
|
|
174718
|
+
return item.path === path;
|
|
174719
|
+
});
|
|
174720
|
+
|
|
174721
|
+
if (menu) {
|
|
174722
|
+
obj.title = menu.title;
|
|
174723
|
+
}
|
|
174724
|
+
}
|
|
174725
|
+
});
|
|
174726
|
+
}
|
|
174727
|
+
|
|
174675
174728
|
if (!meta.noCache) {
|
|
174676
174729
|
var cacheArr = newValue.matched.map(function (item) {
|
|
174677
174730
|
return item.name;
|
|
@@ -174860,10 +174913,10 @@ var tf_right_menu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174860
174913
|
});
|
|
174861
174914
|
;// CONCATENATED MODULE: ./package/tf-layout/src/components/tf-labelbar.vue?vue&type=script&lang=js&
|
|
174862
174915
|
/* harmony default export */ var components_tf_labelbarvue_type_script_lang_js_ = (tf_labelbarvue_type_script_lang_js_);
|
|
174863
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-73[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-73[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-73[0].rules[0].use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-73[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=
|
|
174916
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-73[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-73[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-73[0].rules[0].use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-73[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&
|
|
174864
174917
|
// extracted by mini-css-extract-plugin
|
|
174865
174918
|
|
|
174866
|
-
;// CONCATENATED MODULE: ./package/tf-layout/src/components/tf-labelbar.vue?vue&type=style&index=0&id=
|
|
174919
|
+
;// CONCATENATED MODULE: ./package/tf-layout/src/components/tf-labelbar.vue?vue&type=style&index=0&id=b69ab7ca&lang=less&scoped=true&
|
|
174867
174920
|
|
|
174868
174921
|
;// CONCATENATED MODULE: ./package/tf-layout/src/components/tf-labelbar.vue
|
|
174869
174922
|
|
|
@@ -174876,11 +174929,11 @@ var tf_right_menu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174876
174929
|
|
|
174877
174930
|
var tf_labelbar_component = (0,componentNormalizer/* default */.Z)(
|
|
174878
174931
|
components_tf_labelbarvue_type_script_lang_js_,
|
|
174879
|
-
|
|
174880
|
-
|
|
174932
|
+
tf_labelbarvue_type_template_id_b69ab7ca_scoped_true_render,
|
|
174933
|
+
tf_labelbarvue_type_template_id_b69ab7ca_scoped_true_staticRenderFns,
|
|
174881
174934
|
false,
|
|
174882
174935
|
null,
|
|
174883
|
-
"
|
|
174936
|
+
"b69ab7ca",
|
|
174884
174937
|
null
|
|
174885
174938
|
|
|
174886
174939
|
)
|
|
@@ -174919,6 +174972,7 @@ var tf_labelbar_component = (0,componentNormalizer/* default */.Z)(
|
|
|
174919
174972
|
//
|
|
174920
174973
|
//
|
|
174921
174974
|
//
|
|
174975
|
+
//
|
|
174922
174976
|
|
|
174923
174977
|
|
|
174924
174978
|
/* harmony default export */ var tf_layoutvue_type_script_lang_js_ = ({
|
|
@@ -175015,10 +175069,10 @@ var tf_labelbar_component = (0,componentNormalizer/* default */.Z)(
|
|
|
175015
175069
|
});
|
|
175016
175070
|
;// CONCATENATED MODULE: ./package/tf-layout/src/tf-layout.vue?vue&type=script&lang=js&
|
|
175017
175071
|
/* harmony default export */ var src_tf_layoutvue_type_script_lang_js_ = (tf_layoutvue_type_script_lang_js_);
|
|
175018
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-73[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-73[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-73[0].rules[0].use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-73[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=
|
|
175072
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-73[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-73[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-73[0].rules[0].use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-73[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&
|
|
175019
175073
|
// extracted by mini-css-extract-plugin
|
|
175020
175074
|
|
|
175021
|
-
;// CONCATENATED MODULE: ./package/tf-layout/src/tf-layout.vue?vue&type=style&index=0&id=
|
|
175075
|
+
;// CONCATENATED MODULE: ./package/tf-layout/src/tf-layout.vue?vue&type=style&index=0&id=9068eb84&lang=less&scoped=true&
|
|
175022
175076
|
|
|
175023
175077
|
;// CONCATENATED MODULE: ./package/tf-layout/src/tf-layout.vue
|
|
175024
175078
|
|
|
@@ -175031,11 +175085,11 @@ var tf_labelbar_component = (0,componentNormalizer/* default */.Z)(
|
|
|
175031
175085
|
|
|
175032
175086
|
var tf_layout_component = (0,componentNormalizer/* default */.Z)(
|
|
175033
175087
|
src_tf_layoutvue_type_script_lang_js_,
|
|
175034
|
-
|
|
175035
|
-
|
|
175088
|
+
tf_layoutvue_type_template_id_9068eb84_scoped_true_render,
|
|
175089
|
+
tf_layoutvue_type_template_id_9068eb84_scoped_true_staticRenderFns,
|
|
175036
175090
|
false,
|
|
175037
175091
|
null,
|
|
175038
|
-
"
|
|
175092
|
+
"9068eb84",
|
|
175039
175093
|
null
|
|
175040
175094
|
|
|
175041
175095
|
)
|
|
@@ -238127,9 +238181,9 @@ var tf_settingvue_type_template_id_2b5c0bbe_scoped_true_render = function () {va
|
|
|
238127
238181
|
var tf_settingvue_type_template_id_2b5c0bbe_scoped_true_staticRenderFns = []
|
|
238128
238182
|
|
|
238129
238183
|
|
|
238130
|
-
;// 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=
|
|
238131
|
-
var
|
|
238132
|
-
var
|
|
238184
|
+
;// 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&
|
|
238185
|
+
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)])}
|
|
238186
|
+
var tf_setting_formvue_type_template_id_3c8f0d24_scoped_true_staticRenderFns = []
|
|
238133
238187
|
|
|
238134
238188
|
|
|
238135
238189
|
// EXTERNAL MODULE: ./package/tf-ag-grid-table/index.js + 22 modules
|
|
@@ -238145,6 +238199,8 @@ var tf_ag_grid_table = __webpack_require__(876);
|
|
|
238145
238199
|
|
|
238146
238200
|
|
|
238147
238201
|
|
|
238202
|
+
|
|
238203
|
+
|
|
238148
238204
|
//
|
|
238149
238205
|
//
|
|
238150
238206
|
//
|
|
@@ -238426,76 +238482,136 @@ var tf_ag_grid_table = __webpack_require__(876);
|
|
|
238426
238482
|
handlerButtons: function handlerButtons(option) {
|
|
238427
238483
|
var _this3 = this;
|
|
238428
238484
|
|
|
238429
|
-
|
|
238430
|
-
|
|
238431
|
-
{
|
|
238432
|
-
|
|
238433
|
-
|
|
238434
|
-
|
|
238485
|
+
return (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee() {
|
|
238486
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
238487
|
+
while (1) {
|
|
238488
|
+
switch (_context.prev = _context.next) {
|
|
238489
|
+
case 0:
|
|
238490
|
+
_context.t0 = option;
|
|
238491
|
+
_context.next = _context.t0 === 'close' ? 3 : _context.t0 === 'showChange' ? 5 : _context.t0 === 'freeze' ? 8 : _context.t0 === 'recover' ? 11 : _context.t0 === 'save' ? 13 : 20;
|
|
238492
|
+
break;
|
|
238435
238493
|
|
|
238436
|
-
|
|
238437
|
-
|
|
238438
|
-
this.tableData.map(function (item) {
|
|
238439
|
-
if (_this3.selectRows.find(function (row) {
|
|
238440
|
-
return row.field === item.field;
|
|
238441
|
-
})) {
|
|
238442
|
-
item.isShow = !item.isShow;
|
|
238443
|
-
}
|
|
238444
|
-
});
|
|
238445
|
-
this.$refs.settingTable.gridApi.refreshCells();
|
|
238446
|
-
break;
|
|
238447
|
-
}
|
|
238494
|
+
case 3:
|
|
238495
|
+
_this3.$emit('close');
|
|
238448
238496
|
|
|
238449
|
-
|
|
238450
|
-
{
|
|
238451
|
-
this.tableData.map(function (item) {
|
|
238452
|
-
if (_this3.selectRows.find(function (row) {
|
|
238453
|
-
return row.field === item.field;
|
|
238454
|
-
})) {
|
|
238455
|
-
item.isFreeze = !item.isFreeze;
|
|
238456
|
-
}
|
|
238457
|
-
});
|
|
238458
|
-
this.$refs.settingTable.gridApi.refreshCells();
|
|
238459
|
-
break;
|
|
238460
|
-
}
|
|
238497
|
+
return _context.abrupt("break", 20);
|
|
238461
238498
|
|
|
238462
|
-
|
|
238463
|
-
|
|
238464
|
-
|
|
238465
|
-
|
|
238466
|
-
|
|
238499
|
+
case 5:
|
|
238500
|
+
_this3.tableData.map(function (item) {
|
|
238501
|
+
if (_this3.selectRows.find(function (row) {
|
|
238502
|
+
return row.field === item.field;
|
|
238503
|
+
})) {
|
|
238504
|
+
item.isShow = !item.isShow;
|
|
238505
|
+
}
|
|
238506
|
+
});
|
|
238467
238507
|
|
|
238468
|
-
|
|
238469
|
-
|
|
238470
|
-
|
|
238471
|
-
|
|
238472
|
-
|
|
238473
|
-
|
|
238474
|
-
|
|
238475
|
-
|
|
238508
|
+
_this3.$refs.settingTable.gridApi.refreshCells();
|
|
238509
|
+
|
|
238510
|
+
return _context.abrupt("break", 20);
|
|
238511
|
+
|
|
238512
|
+
case 8:
|
|
238513
|
+
_this3.tableData.map(function (item) {
|
|
238514
|
+
if (_this3.selectRows.find(function (row) {
|
|
238515
|
+
return row.field === item.field;
|
|
238516
|
+
})) {
|
|
238517
|
+
item.isFreeze = !item.isFreeze;
|
|
238518
|
+
}
|
|
238519
|
+
});
|
|
238520
|
+
|
|
238521
|
+
_this3.$refs.settingTable.gridApi.refreshCells();
|
|
238522
|
+
|
|
238523
|
+
return _context.abrupt("break", 20);
|
|
238524
|
+
|
|
238525
|
+
case 11:
|
|
238526
|
+
_this3.tableData = JSON.parse(JSON.stringify(_this3.defaultCongfigList));
|
|
238527
|
+
return _context.abrupt("break", 20);
|
|
238528
|
+
|
|
238529
|
+
case 13:
|
|
238530
|
+
_this3.saveLoading = true;
|
|
238531
|
+
_context.next = 16;
|
|
238532
|
+
return _this3.handleTableData();
|
|
238533
|
+
|
|
238534
|
+
case 16:
|
|
238535
|
+
_this3.searchContent = '';
|
|
238536
|
+
|
|
238537
|
+
_this3.tableData.map(function (item, index) {
|
|
238538
|
+
item.fieldIndex = index + 1;
|
|
238539
|
+
});
|
|
238540
|
+
|
|
238541
|
+
_this3.$emit('save', _this3.tableData);
|
|
238542
|
+
|
|
238543
|
+
return _context.abrupt("break", 20);
|
|
238544
|
+
|
|
238545
|
+
case 20:
|
|
238546
|
+
case "end":
|
|
238547
|
+
return _context.stop();
|
|
238548
|
+
}
|
|
238476
238549
|
}
|
|
238477
|
-
|
|
238550
|
+
}, _callee);
|
|
238551
|
+
}))();
|
|
238478
238552
|
},
|
|
238479
238553
|
|
|
238480
238554
|
/** 搜索字段 */
|
|
238481
238555
|
handleSearchField: function handleSearchField(value) {
|
|
238482
238556
|
if (!value) {
|
|
238483
|
-
this.
|
|
238557
|
+
this.handleTableData();
|
|
238484
238558
|
} else {
|
|
238485
238559
|
this.originalTableData = JSON.parse(JSON.stringify(this.tableData));
|
|
238486
238560
|
this.tableData = this.tableData.filter(function (item) {
|
|
238487
238561
|
return item.label.includes(value);
|
|
238488
238562
|
});
|
|
238489
238563
|
}
|
|
238564
|
+
},
|
|
238565
|
+
|
|
238566
|
+
/** 搜索字段并更改保存 */
|
|
238567
|
+
handleTableData: function handleTableData() {
|
|
238568
|
+
var _this4 = this;
|
|
238569
|
+
|
|
238570
|
+
return (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2() {
|
|
238571
|
+
var originalTableData;
|
|
238572
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2) {
|
|
238573
|
+
while (1) {
|
|
238574
|
+
switch (_context2.prev = _context2.next) {
|
|
238575
|
+
case 0:
|
|
238576
|
+
if (!(_this4.originalTableData.length === _this4.tableData.length)) {
|
|
238577
|
+
_context2.next = 2;
|
|
238578
|
+
break;
|
|
238579
|
+
}
|
|
238580
|
+
|
|
238581
|
+
return _context2.abrupt("return");
|
|
238582
|
+
|
|
238583
|
+
case 2:
|
|
238584
|
+
// 处理用户搜索字段后,修改table值
|
|
238585
|
+
originalTableData = JSON.parse(JSON.stringify(_this4.originalTableData));
|
|
238586
|
+
|
|
238587
|
+
_this4.tableData.map(function (item) {
|
|
238588
|
+
originalTableData = originalTableData.map(function (data) {
|
|
238589
|
+
if (item.field === data.field) {
|
|
238590
|
+
return item;
|
|
238591
|
+
} else {
|
|
238592
|
+
return data;
|
|
238593
|
+
}
|
|
238594
|
+
});
|
|
238595
|
+
});
|
|
238596
|
+
|
|
238597
|
+
_this4.tableData = originalTableData;
|
|
238598
|
+
|
|
238599
|
+
case 5:
|
|
238600
|
+
case "end":
|
|
238601
|
+
return _context2.stop();
|
|
238602
|
+
}
|
|
238603
|
+
}
|
|
238604
|
+
}, _callee2);
|
|
238605
|
+
}))();
|
|
238490
238606
|
}
|
|
238491
238607
|
}
|
|
238492
238608
|
});
|
|
238493
238609
|
;// 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&
|
|
238494
238610
|
/* harmony default export */ var components_tf_setting_formvue_type_script_lang_js_ = (tf_setting_formvue_type_script_lang_js_);
|
|
238495
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-63[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-63[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=
|
|
238611
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-63[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-63[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-63[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&
|
|
238496
238612
|
// extracted by mini-css-extract-plugin
|
|
238497
238613
|
|
|
238498
|
-
;// 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=
|
|
238614
|
+
;// 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&
|
|
238499
238615
|
|
|
238500
238616
|
;// CONCATENATED MODULE: ./package/tf-table-list/src/components/tf-header-button/components/tf-setting/components/tf-setting-form/index.vue
|
|
238501
238617
|
|
|
@@ -238508,11 +238624,11 @@ var tf_ag_grid_table = __webpack_require__(876);
|
|
|
238508
238624
|
|
|
238509
238625
|
var tf_setting_form_component = (0,componentNormalizer/* default */.Z)(
|
|
238510
238626
|
components_tf_setting_formvue_type_script_lang_js_,
|
|
238511
|
-
|
|
238512
|
-
|
|
238627
|
+
tf_setting_formvue_type_template_id_3c8f0d24_scoped_true_render,
|
|
238628
|
+
tf_setting_formvue_type_template_id_3c8f0d24_scoped_true_staticRenderFns,
|
|
238513
238629
|
false,
|
|
238514
238630
|
null,
|
|
238515
|
-
"
|
|
238631
|
+
"3c8f0d24",
|
|
238516
238632
|
null
|
|
238517
238633
|
|
|
238518
238634
|
)
|