@leevan/jtui 2.0.44 → 2.0.46

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.
@@ -142,6 +142,7 @@ import { data1 ,data0} from '../data2';
142
142
  this.loading = true;
143
143
  const res = data15();
144
144
  let timeId = setTimeout(()=>{
145
+ // this.$refs.tablePtbg.loadData(res[0].DataArray);
145
146
  this.$refs.tablePtbg.loadData(res[0].DataArray);
146
147
  clearTimeout(timeId);
147
148
  this.loading = false
@@ -279,6 +280,14 @@ import { data1 ,data0} from '../data2';
279
280
  }
280
281
  </script>
281
282
 
282
- <style lang="scss" scoped>
283
-
283
+ <style lang="scss">
284
+ .vxe-loading{
285
+ background-color: rgba(0, 0, 0, .2) !important;
286
+ }
287
+ .vxe-loading .vxe-loading--spinner:before{
288
+ background-color: #409eff !important;
289
+ }
290
+ .vxe-loading .vxe-loading--spinner:after{
291
+ background-color: #409eff !important;
292
+ }
284
293
  </style>
@@ -31,12 +31,13 @@ import { data } from '../data2.js';
31
31
  // debugger;
32
32
  // data[0].DataArray[0].TEST_EXEC = '显示文案'
33
33
 
34
- this.data = data();
34
+
35
35
  setInterval(() => {
36
+ this.data = data();
36
37
  this.aaa = {
37
38
  test:Math.random()
38
39
  }
39
- },5000)
40
+ },2000)
40
41
  },
41
42
  data(){
42
43
  return {
@@ -250035,8 +250035,8 @@ var es_function_name = __webpack_require__("b0c0");
250035
250035
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
250036
250036
  var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
250037
250037
 
250038
- // 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=40445eea&
250039
- 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(),(_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":"","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":{
250038
+ // 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&
250039
+ 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":{
250040
250040
  type: 'xlsx',
250041
250041
  types: ['xlsx', 'csv', 'html', 'xml', 'txt'],
250042
250042
  },"custom-config":{ storage: true, checkMethod: _vm.checkColumnMethod },"edit-config":{
@@ -250050,7 +250050,7 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
250050
250050
  toggleMethod: _vm.toggleMethod,
250051
250051
  lazy: true,
250052
250052
  accordion: _vm.expandConfig.accordion,
250053
- }},on:{"scroll":_vm.scroll,"checkbox-change":_vm.selectChangeEvent,"checkbox-all":_vm.selectChangeEvent,"radio-change":_vm.radioSelectChangeEvent,"cell-click":_vm.cellClickEvent,"keydown":_vm.keyEnter},scopedSlots:_vm._u([{key:"empty",fn:function(){return [_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)})]},proxy:true}],null,false,2574934439)},[(_vm.checkbox)?_c('vxe-table-column',{attrs:{"type":"checkbox","width":"38","align":"center","fixed":"left"}}):_vm._e(),(_vm.radio)?_c('vxe-table-column',{attrs:{"type":"radio","width":"38","align":"center","fixed":"left"}}):_vm._e(),(_vm.isSeq && _vm.data)?_c('vxe-table-column',{attrs:{"type":"seq","align":"center","width":_vm.req + 'px',"title":"序号","fixed":"left"}}):_vm._e(),_vm._l((_vm.data.retjson.header),function(item,index){return [_c('table-column',{key:index,attrs:{"item":item,"index":index,"cellRenderData":_vm.cellRenderData,"filterData":_vm.filterData,"formatEnum":_vm.formatEnum}})]}),(_vm.expandConfig.isOpen)?_c('vxe-table-column',{attrs:{"type":"expand","fixed":"right","width":_vm.expandConfig.width},scopedSlots:_vm._u([{key:"default",fn:function(ref){
250053
+ }},on:{"scroll":_vm.scroll,"checkbox-change":_vm.selectChangeEvent,"checkbox-all":_vm.selectChangeEvent,"radio-change":_vm.radioSelectChangeEvent,"cell-click":_vm.cellClickEvent,"keydown":_vm.keyEnter}},[(_vm.checkbox)?_c('vxe-table-column',{attrs:{"type":"checkbox","width":"38","align":"center","fixed":"left"}}):_vm._e(),(_vm.radio)?_c('vxe-table-column',{attrs:{"type":"radio","width":"38","align":"center","fixed":"left"}}):_vm._e(),(_vm.isSeq && _vm.data)?_c('vxe-table-column',{attrs:{"type":"seq","align":"center","width":_vm.req + 'px',"title":"序号","fixed":"left"}}):_vm._e(),_vm._l((_vm.data.retjson.header),function(item,index){return [_c('table-column',{key:index,attrs:{"item":item,"index":index,"cellRenderData":_vm.cellRenderData,"filterData":_vm.filterData,"formatEnum":_vm.formatEnum}})]}),(_vm.expandConfig.isOpen)?_c('vxe-table-column',{attrs:{"type":"expand","fixed":"right","width":_vm.expandConfig.width},scopedSlots:_vm._u([{key:"default",fn:function(ref){
250054
250054
  var row = ref.row;
250055
250055
  return [_c('span',{staticStyle:{"position":"relative","top":"2px","right":"6px","color":"#333"}},[_vm._v(" "+_vm._s(_vm.isExpandText(row) ? _vm.expandConfig.text : ""))])]}},{key:"content",fn:function(ref){
250056
250056
  var row = ref.row;
@@ -250063,7 +250063,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
250063
250063
  })}),_c('span',{staticClass:"ht-text",style:({color:item.textColor ? item.textColor : '#379FF2'})},[_vm._v(_vm._s(item.name))])])}),_vm._l((row.inBottons),function(item,index){return _c('el-button',{key:index,style:(_vm.btnHover(item.bgColor)),attrs:{"type":"text","size":"mini"},on:{"click":function($event){return _vm.handlerColClick(item.funcode, row, rowIndex)}}},[_c('i',{staticClass:"jtIcon ht-icon",class:item.icon ? item.icon : 'iconxiangqing',style:({
250064
250064
  color: item.color ? item.color : '#379FF2',
250065
250065
  fontSize: item.size ? item.size + 'px' : '16px',
250066
- })}),_c('span',{staticClass:"ht-text",style:({color:item.textColor ? item.textColor : '#379FF2'})},[_vm._v(_vm._s(item.name))])])})]:_vm._e()]}}],null,false,1291632177)})],2):_vm._e(),(_vm.tableType === 'bigData')?_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":"","header-cell-class-name":_vm.headerClass,"id":_vm.id,"data":_vm.data.DataArray,"stripe":_vm.stripe,"border":_vm.border,"max-height":_vm.maxHeight,"loading":_vm.loading,"row-style":_vm.rowStyle,"cell-style":_vm.cellStyle_m,"span-method":_vm.spanMethod,"scroll-x":{ gt: 20 },"scroll-y":{ gt: 40, mode: 'wheel' },"sort-config":{ sortMethod: _vm.sortMethod },"radio-config":{ checkRowKey: null },"keyboard-config":{ isArrow: true },"checkbox-config":{ highlight: true },"export-config":{
250066
+ })}),_c('span',{staticClass:"ht-text",style:({color:item.textColor ? item.textColor : '#379FF2'})},[_vm._v(_vm._s(item.name))])])})]:_vm._e()]}}],null,false,1291632177)})],2):_vm._e(),(_vm.tableType === 'bigData')?_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":" ","header-cell-class-name":_vm.headerClass,"id":_vm.id,"data":_vm.data.DataArray,"stripe":_vm.stripe,"border":_vm.border,"max-height":_vm.maxHeight,"loading":_vm.loading,"row-style":_vm.rowStyle,"cell-style":_vm.cellStyle_m,"span-method":_vm.spanMethod,"scroll-x":{ gt: 20 },"scroll-y":{ gt: 40, mode: 'wheel' },"sort-config":{ sortMethod: _vm.sortMethod },"radio-config":{ checkRowKey: null },"keyboard-config":{ isArrow: true },"checkbox-config":{ highlight: true },"export-config":{
250067
250067
  type: 'xlsx',
250068
250068
  types: ['xlsx', 'csv', 'html', 'xml', 'txt'],
250069
250069
  },"custom-config":{ storage: true, checkMethod: _vm.checkColumnMethod },"edit-config":{
@@ -250071,7 +250071,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
250071
250071
  mode: 'cell',
250072
250072
  showStatus: true,
250073
250073
  activeMethod: _vm.activeCellMethod,
250074
- }},on:{"scroll":_vm.scroll,"checkbox-change":_vm.selectChangeEvent,"checkbox-all":_vm.selectChangeEvent,"radio-change":_vm.radioSelectChangeEvent,"cell-click":_vm.cellClickEvent,"keydown":_vm.keyEnter},scopedSlots:_vm._u([{key:"empty",fn:function(){return [_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)})]},proxy:true}],null,false,2574934439)},[(_vm.checkbox)?_c('vxe-table-column',{attrs:{"type":"checkbox","width":"38","align":"center","fixed":"left"}}):_vm._e(),(_vm.radio)?_c('vxe-table-column',{attrs:{"type":"radio","width":"38","align":"center","fixed":"left"}}):_vm._e(),(_vm.isSeq && _vm.data)?_c('vxe-table-column',{attrs:{"type":"seq","align":"center","width":_vm.req + 'px',"title":"序号","fixed":"left"}}):_vm._e(),_vm._l((_vm.data.retjson.header),function(item,index){return [_c('table-column',{key:index,attrs:{"item":item,"cellRenderData":_vm.cellRenderData,"filterData":_vm.filterData}})]}),(_vm.expandConfig.isOpen)?_c('vxe-table-column',{attrs:{"type":"expand","fixed":"right","width":_vm.expandConfig.width},scopedSlots:_vm._u([{key:"default",fn:function(ref){
250074
+ }},on:{"scroll":_vm.scroll,"checkbox-change":_vm.selectChangeEvent,"checkbox-all":_vm.selectChangeEvent,"radio-change":_vm.radioSelectChangeEvent,"cell-click":_vm.cellClickEvent,"keydown":_vm.keyEnter}},[(_vm.checkbox)?_c('vxe-table-column',{attrs:{"type":"checkbox","width":"38","align":"center","fixed":"left"}}):_vm._e(),(_vm.radio)?_c('vxe-table-column',{attrs:{"type":"radio","width":"38","align":"center","fixed":"left"}}):_vm._e(),(_vm.isSeq && _vm.data)?_c('vxe-table-column',{attrs:{"type":"seq","align":"center","width":_vm.req + 'px',"title":"序号","fixed":"left"}}):_vm._e(),_vm._l((_vm.data.retjson.header),function(item,index){return [_c('table-column',{key:index,attrs:{"item":item,"cellRenderData":_vm.cellRenderData,"filterData":_vm.filterData}})]}),(_vm.expandConfig.isOpen)?_c('vxe-table-column',{attrs:{"type":"expand","fixed":"right","width":_vm.expandConfig.width},scopedSlots:_vm._u([{key:"default",fn:function(ref){
250075
250075
  var row = ref.row;
250076
250076
  return [_c('span',{staticStyle:{"position":"relative","top":"2px","right":"6px","color":"#333"}},[_vm._v(" "+_vm._s(_vm.isExpandText(row) ? _vm.expandConfig.text : ""))])]}},{key:"content",fn:function(ref){
250077
250077
  var row = ref.row;
@@ -250084,9 +250084,9 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
250084
250084
  })}),_c('span',{staticClass:"ht-text",style:({color:item.textColor ? item.textColor : '#379FF2'})},[_vm._v(_vm._s(item.name))])])}),_vm._l((row.inBottons),function(item,index){return _c('el-button',{key:index,style:(_vm.btnHover(item.bgColor)),attrs:{"type":"text","size":"mini"},on:{"click":function($event){return _vm.handlerColClick(item.funcode, row, rowIndex)}}},[_c('i',{staticClass:"jtIcon ht-icon",class:item.icon ? item.icon : 'iconxiangqing',style:({
250085
250085
  color: item.color ? item.color : '#379FF2',
250086
250086
  fontSize: item.size ? item.size + 'px' : '16px',
250087
- })}),_c('span',{staticClass:"ht-text",style:({color:item.textColor ? item.textColor : '#379FF2'})},[_vm._v(_vm._s(item.name))])])})]:_vm._e()]}}],null,false,1291632177)})],2):_vm._e(),(_vm.tableType === 'group')?_c('vxe-table',{ref:_vm.id,staticClass:"jt-table-class-only",attrs:{"size":"mini","id":_vm.id,"custom-config":{ storage: true, checkMethod: _vm.checkColumnMethod },"border":_vm.border,"show-overflow":"","show-header-overflow":"","height":"auto","max-height":_vm.maxHeight,"auto-resize":"","resizable":"","highlight-current-row":"","tree-config":_vm.groupConfig,"row-class-name":_vm.rowClassName,"cell-class-name":_vm.gcellClassName,"keyboard-config":{ isArrow: true },"highlight-current-column":"","checkbox-config":{
250087
+ })}),_c('span',{staticClass:"ht-text",style:({color:item.textColor ? item.textColor : '#379FF2'})},[_vm._v(_vm._s(item.name))])])})]:_vm._e()]}}],null,false,1291632177)})],2):_vm._e(),(_vm.tableType === 'group')?_c('vxe-table',{ref:_vm.id,staticClass:"jt-table-class-only",attrs:{"size":"mini","id":_vm.id,"empty-text":" ","custom-config":{ storage: true, checkMethod: _vm.checkColumnMethod },"border":_vm.border,"show-overflow":"","show-header-overflow":"","height":"auto","max-height":_vm.maxHeight,"auto-resize":"","resizable":"","highlight-current-row":"","tree-config":_vm.groupConfig,"row-class-name":_vm.rowClassName,"cell-class-name":_vm.gcellClassName,"keyboard-config":{ isArrow: true },"highlight-current-column":"","checkbox-config":{
250088
250088
  highlight: true,
250089
- },"row-style":_vm.rowStyle,"cell-style":_vm.cellStyle_m,"loading":_vm.loading,"data":_vm.data.DataArray},on:{"checkbox-change":_vm.treeSelectChangeEvent,"checkbox-all":_vm.treeSelectChangeEvent,"cell-click":_vm.cellClickEvent},scopedSlots:_vm._u([{key:"empty",fn:function(){return [_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)})]},proxy:true}],null,false,2574934439)},[(_vm.checkbox)?_c('vxe-table-column',{attrs:{"type":"checkbox","width":"38","fixed":"left","align":"center"}}):_vm._e(),(_vm.isSeq && _vm.data)?_c('vxe-table-column',{attrs:{"type":"seq","align":"center","width":_vm.req + 'px',"title":"序号","fixed":"left"}}):_vm._e(),_vm._l((_vm.data.retjson.header),function(item,index){return [_c('vxe-table-column',{key:index,attrs:{"show-overflow":"","tree-node":item.prop == _vm.treeField,"field":item.prop,"align":item.align,"type":item.html ? 'html' : '',"title":item.label,"min-width":item.width,"visible":item.width != 0,"formatter":_vm.formatEnum}})]}),(_vm.handlerConfig.show)?_c('vxe-table-column',{attrs:{"title":"操作","align":_vm.handlerConfig.align,"width":_vm.handlerConfig.width,"fixed":_vm.handlerConfig.fixed,"show-overflow":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){
250089
+ },"row-style":_vm.rowStyle,"cell-style":_vm.cellStyle_m,"loading":_vm.loading,"data":_vm.data.DataArray},on:{"checkbox-change":_vm.treeSelectChangeEvent,"checkbox-all":_vm.treeSelectChangeEvent,"cell-click":_vm.cellClickEvent}},[(_vm.checkbox)?_c('vxe-table-column',{attrs:{"type":"checkbox","width":"38","fixed":"left","align":"center"}}):_vm._e(),(_vm.isSeq && _vm.data)?_c('vxe-table-column',{attrs:{"type":"seq","align":"center","width":_vm.req + 'px',"title":"序号","fixed":"left"}}):_vm._e(),_vm._l((_vm.data.retjson.header),function(item,index){return [_c('vxe-table-column',{key:index,attrs:{"show-overflow":"","tree-node":item.prop == _vm.treeField,"field":item.prop,"align":item.align,"type":item.html ? 'html' : '',"title":item.label,"min-width":item.width,"visible":item.width != 0,"formatter":_vm.formatEnum}})]}),(_vm.handlerConfig.show)?_c('vxe-table-column',{attrs:{"title":"操作","align":_vm.handlerConfig.align,"width":_vm.handlerConfig.width,"fixed":_vm.handlerConfig.fixed,"show-overflow":""},scopedSlots:_vm._u([{key:"default",fn:function(ref){
250090
250090
  var row = ref.row;
250091
250091
  var rowIndex = ref.rowIndex;
250092
250092
  return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"size":"mini","type":"primary"}},[_vm._v(" 更多操作"),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_vm._l((_vm.data.retjson.inBottons),function(item,index){return [(_vm.isShowAddButton(row.path, item.name))?_c('el-dropdown-item',{key:'s' + index,nativeOn:{"click":function($event){return _vm.handlerColClick(item.funcode, row, rowIndex)}}},[_vm._v(_vm._s(item.name))]):_vm._e()]}),_vm._l((row.inBottons),function(item,index){return [(_vm.isShowAddButton(row.path, item.name))?_c('el-dropdown-item',{key:index,nativeOn:{"click":function($event){return _vm.handlerColClick(item.funcode, row, rowIndex)}}},[_vm._v(_vm._s(item.name))]):_vm._e()]})],2)],1):_vm._e(),(!_vm.handlerConfig.btnGroup)?[_vm._l((_vm.data.retjson.inBottons),function(item,index){return [(_vm.isShowAddButton(row.path, item.name))?_c('el-button',{key:'s' + index,style:(_vm.btnHover(item.bgColor)),attrs:{"type":"text","size":"mini"},on:{"click":function($event){return _vm.handlerColClick(item.funcode, row, rowIndex)}}},[_c('i',{staticClass:"jtIcon ht-icon",class:item.icon ? item.icon : 'iconxiangqing',style:({
@@ -250095,7 +250095,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
250095
250095
  })}),_c('span',{staticClass:"ht-text",style:({color:item.textColor ? item.textColor : '#379FF2'})},[_vm._v(_vm._s(item.name))])]):_vm._e()]}),_vm._l((row.inBottons),function(item,index){return [(_vm.isShowAddButton(row.path, item.name))?_c('el-button',{key:index,style:(_vm.btnHover(item.bgColor)),attrs:{"type":"text","size":"mini"},on:{"click":function($event){return _vm.handlerColClick(item.funcode, row, rowIndex)}}},[_c('i',{staticClass:"jtIcon ht-icon",class:item.icon ? item.icon : 'iconxiangqing',style:({
250096
250096
  color: item.color ? item.color : '#379FF2',
250097
250097
  fontSize: item.size ? item.size + 'px' : '16px',
250098
- })}),_c('span',{staticClass:"ht-text",style:({color:item.textColor ? item.textColor : '#379FF2'})},[_vm._v(_vm._s(item.name))])]):_vm._e()]})]:_vm._e()]}}],null,false,3832603369)}):_vm._e()],2):_vm._e(),(_vm.tableType === 'tree')?_c('vxe-table',{ref:_vm.id,staticClass:"jt-table-class-only",attrs:{"size":"mini","id":_vm.id,"stripe":_vm.stripe,"show-header":_vm.treeTypeConfig.type == 'treeTable',"max-height":_vm.maxHeight,"border":_vm.border,"show-overflow":"","show-header-overflow":"","height":"auto","auto-resize":"","cell-style":_vm.cellStyle_m,"row-style":_vm.rowStyle,"span-method":_vm.spanMethod,"resizable":"","highlight-current-row":"","tree-config":_vm.treeConfig,"row-key":true,"row-id":"pkid","radio-config":{
250098
+ })}),_c('span',{staticClass:"ht-text",style:({color:item.textColor ? item.textColor : '#379FF2'})},[_vm._v(_vm._s(item.name))])]):_vm._e()]})]:_vm._e()]}}],null,false,3832603369)}):_vm._e()],2):_vm._e(),(_vm.tableType === 'tree')?_c('vxe-table',{ref:_vm.id,staticClass:"jt-table-class-only",attrs:{"size":"mini","id":_vm.id,"stripe":_vm.stripe,"show-header":_vm.treeTypeConfig.type == 'treeTable',"empty-text":" ","max-height":_vm.maxHeight,"border":_vm.border,"show-overflow":"","show-header-overflow":"","height":"auto","auto-resize":"","cell-style":_vm.cellStyle_m,"row-style":_vm.rowStyle,"span-method":_vm.spanMethod,"resizable":"","highlight-current-row":"","tree-config":_vm.treeConfig,"row-key":true,"row-id":"pkid","radio-config":{
250099
250099
  labelField: _vm.treeTypeConfig.type !== 'treeTable' ? 'name' : '',
250100
250100
  checkMethod: _vm.treeRadioMethod,
250101
250101
  },"checkbox-config":{
@@ -250114,7 +250114,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
250114
250114
  toggleMethod: _vm.toggleMethod,
250115
250115
  lazy: true,
250116
250116
  accordion: _vm.expandConfig.accordion,
250117
- },"data":_vm.data.DataArray},on:{"checkbox-change":_vm.treeCheckChange,"checkbox-all":_vm.treeCheckChange,"radio-change":_vm.radioSelectChangeEvent,"cell-click":_vm.cellClickEvent,"keydown":_vm.keyEnter,"scroll":_vm.scroll1},scopedSlots:_vm._u([{key:"empty",fn:function(){return [_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)})]},proxy:true}],null,false,2574934439)},[(_vm.treeTypeConfig.type === 'treeTable' && _vm.treeTypeConfig.checkbox)?_c('vxe-table-column',{attrs:{"type":"checkbox","width":"38","align":"center","fixed":"left"}}):_vm._e(),(_vm.treeTypeConfig.type === 'treeTable' && _vm.treeTypeConfig.radio)?_c('vxe-table-column',{attrs:{"type":"radio","width":"38","align":"center","fixed":"left"}}):_vm._e(),(_vm.isSeq && _vm.treeTypeConfig.type === 'treeTable')?_c('vxe-table-column',{attrs:{"type":"seq","align":"center","width":_vm.req + 'px',"title":"序号","fixed":"left"}}):_vm._e(),_vm._l((_vm.data.retjson.header),function(item,index){return [(_vm.treeTypeConfig.type !== 'treeTable')?_c('vxe-table-column',{key:index,attrs:{"edit-render":item.edit,"type":_vm.treeTypeConfig.colType,"tree-node":index == 0,"show-overflow":"","field":item.prop,"align":"left","title":item.label,"min-width":item.width,"cell-render":_vm.cellRenderData(item.cellRender),"visible":index === 0},scopedSlots:_vm._u([{key:"default",fn:function(ref){
250117
+ },"data":_vm.data.DataArray},on:{"checkbox-change":_vm.treeCheckChange,"checkbox-all":_vm.treeCheckChange,"radio-change":_vm.radioSelectChangeEvent,"cell-click":_vm.cellClickEvent,"keydown":_vm.keyEnter,"scroll":_vm.scroll1}},[(_vm.treeTypeConfig.type === 'treeTable' && _vm.treeTypeConfig.checkbox)?_c('vxe-table-column',{attrs:{"type":"checkbox","width":"38","align":"center","fixed":"left"}}):_vm._e(),(_vm.treeTypeConfig.type === 'treeTable' && _vm.treeTypeConfig.radio)?_c('vxe-table-column',{attrs:{"type":"radio","width":"38","align":"center","fixed":"left"}}):_vm._e(),(_vm.isSeq && _vm.treeTypeConfig.type === 'treeTable')?_c('vxe-table-column',{attrs:{"type":"seq","align":"center","width":_vm.req + 'px',"title":"序号","fixed":"left"}}):_vm._e(),_vm._l((_vm.data.retjson.header),function(item,index){return [(_vm.treeTypeConfig.type !== 'treeTable')?_c('vxe-table-column',{key:index,attrs:{"edit-render":item.edit,"type":_vm.treeTypeConfig.colType,"tree-node":index == 0,"show-overflow":"","field":item.prop,"align":"left","title":item.label,"min-width":item.width,"cell-render":_vm.cellRenderData(item.cellRender),"visible":index === 0},scopedSlots:_vm._u([{key:"default",fn:function(ref){
250118
250118
  var row = ref.row;
250119
250119
  return [_c('span',{staticStyle:{"position":"relative","top":"2px"},on:{"click":function($event){return _vm.treeTxtClick(row)}}},[(row.path && row.path !== undefined)?[_c('i',{staticClass:"jtIcon",class:row.icon ? row.icon : 'jt-iconClose2 iconwenjianjia'})]:[_c('i',{staticClass:"jtIcon jt-iconFile",class:row.icon ? row.icon : 'icon21file'})],_c('span',[_vm._v(_vm._s(row.name))])],2)]}}],null,true)}):_vm._e(),(_vm.treeTypeConfig.type === 'treeTable')?_c('vxe-table-column',{key:index,attrs:{"edit-render":item.edit,"tree-node":index == 0,"show-overflow":"","field":item.prop,"align":item.align,"title":item.label,"min-width":item.width,"visible":item.width !== 0,"type":item.html ? 'html' : '',"cell-render":_vm.cellRenderData(item.cellRender),"formatter":_vm.formatEnum},scopedSlots:_vm._u([(index === 0)?{key:"default",fn:function(ref){
250120
250120
  var row = ref.row;
@@ -250131,11 +250131,11 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
250131
250131
  })}),_c('span',{staticClass:"ht-text",style:({color:item.textColor ? item.textColor : '#379FF2'})},[_vm._v(_vm._s(item.name))])]):_vm._e()]}),_vm._l((row.inBottons),function(item,index){return [(_vm.isShowAddButton(row.path, item.name))?_c('el-button',{key:index,style:(_vm.btnHover(item.bgColor)),attrs:{"type":"text","size":"mini"},on:{"click":function($event){return _vm.handlerColClick(item.funcode, row, rowIndex)}}},[_c('i',{staticClass:"jtIcon ht-icon",class:item.icon ? item.icon : 'iconxiangqing',style:({
250132
250132
  color: item.color ? item.color : '#379FF2',
250133
250133
  fontSize: item.size ? item.size + 'px' : '16px',
250134
- })}),_c('span',{staticClass:"ht-text",style:({color:item.textColor ? item.textColor : '#379FF2'})},[_vm._v(_vm._s(item.name))])]):_vm._e()]})]:_vm._e()]}}],null,false,3832603369)}):_vm._e()],2):_vm._e()],1)}
250134
+ })}),_c('span',{staticClass:"ht-text",style:({color:item.textColor ? item.textColor : '#379FF2'})},[_vm._v(_vm._s(item.name))])]):_vm._e()]})]:_vm._e()]}}],null,false,3832603369)}):_vm._e()],2):_vm._e()],1)])}
250135
250135
  var staticRenderFns = []
250136
250136
 
250137
250137
 
250138
- // CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=40445eea&
250138
+ // CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=f923a0f6&
250139
250139
 
250140
250140
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
250141
250141
  var es_array_concat = __webpack_require__("99af");
@@ -251364,20 +251364,6 @@ var component = normalizeComponent(
251364
251364
  //
251365
251365
  //
251366
251366
  //
251367
- //
251368
- //
251369
- //
251370
- //
251371
- //
251372
- //
251373
- //
251374
- //
251375
- //
251376
- //
251377
- //
251378
- //
251379
- //
251380
- //
251381
251367
 
251382
251368
 
251383
251369
  /* harmony default export */ var jt_tablevue_type_script_lang_js_ = ({
@@ -251585,8 +251571,35 @@ var component = normalizeComponent(
251585
251571
  default: null
251586
251572
  }
251587
251573
  },
251574
+ watch: {
251575
+ loading: {
251576
+ deep: true,
251577
+ handler: function handler(n) {
251578
+ var _this = this;
251579
+
251580
+ if (this.$refs[this.id]) {
251581
+ setTimeout(function () {
251582
+ var temp = _this.$refs[_this.id].getTableData();
251583
+
251584
+ if (temp.fullData.length > 0) {
251585
+ _this.isShowEmpty = false;
251586
+ } else {
251587
+ if (n) {
251588
+ _this.isShowEmpty = false;
251589
+ } else {
251590
+ _this.isShowEmpty = true;
251591
+ }
251592
+ }
251593
+ }, 1000);
251594
+ } else {
251595
+ this.isShowEmpty = false;
251596
+ }
251597
+ }
251598
+ }
251599
+ },
251588
251600
  data: function data() {
251589
251601
  return {
251602
+ isShowEmpty: false,
251590
251603
  tableData: this.data.DataArray,
251591
251604
  //表格数据
251592
251605
  headerClass: (this.data.retjson.header || []).find(function (i) {
@@ -251829,7 +251842,7 @@ var component = normalizeComponent(
251829
251842
  },
251830
251843
  //表尾统计,(计算平均值和求和)
251831
251844
  footerMethod: function footerMethod(_ref4) {
251832
- var _this = this;
251845
+ var _this2 = this;
251833
251846
 
251834
251847
  var columns = _ref4.columns,
251835
251848
  data = _ref4.data;
@@ -251843,7 +251856,7 @@ var component = normalizeComponent(
251843
251856
  var meanCell = null;
251844
251857
  var sumCell = null;
251845
251858
 
251846
- _this.footConfig.filed.forEach(function (i) {
251859
+ _this2.footConfig.filed.forEach(function (i) {
251847
251860
  switch (column.property) {
251848
251861
  case i:
251849
251862
  meanCell = parseInt(xe_utils_default.a.mean(data, column.property));
@@ -251957,7 +251970,7 @@ var component = normalizeComponent(
251957
251970
  },
251958
251971
  //滚动到底事件派发
251959
251972
  scroll: function scroll(param) {
251960
- var _this2 = this;
251973
+ var _this3 = this;
251961
251974
 
251962
251975
  var scrollTop = param.scrollTop,
251963
251976
  $event = param.$event;
@@ -251967,7 +251980,7 @@ var component = normalizeComponent(
251967
251980
  var sh = $event.target.scrollHeight;
251968
251981
 
251969
251982
  if (Math.ceil(scrollTop + ch) >= sh && scrollTop != 0) {
251970
- _this2.$emit("scrollBottom", ++_this2.pageIndex);
251983
+ _this3.$emit("scrollBottom", ++_this3.pageIndex);
251971
251984
  }
251972
251985
  }, 200);
251973
251986
  },
@@ -252066,20 +252079,20 @@ var component = normalizeComponent(
252066
252079
  },
252067
252080
  //普通表格转树表(仅支持一层)
252068
252081
  default2tree: function default2tree(data, field) {
252069
- var _this3 = this;
252082
+ var _this4 = this;
252070
252083
 
252071
252084
  var result = [];
252072
252085
  this.treeField = this.data.retjson.header[0].prop;
252073
252086
  xe_utils_default.a.each(xe_utils_default.a.groupBy(data, field), function (childs, key) {
252074
252087
  var _result$push;
252075
252088
 
252076
- result.push((_result$push = {}, _defineProperty(_result$push, _this3.treeField, key + "\uFF08 ".concat(childs.length, " \uFF09")), _defineProperty(_result$push, "children", childs), _result$push));
252089
+ result.push((_result$push = {}, _defineProperty(_result$push, _this4.treeField, key + "\uFF08 ".concat(childs.length, " \uFF09")), _defineProperty(_result$push, "children", childs), _result$push));
252077
252090
  });
252078
252091
  this.data.DataArray = result;
252079
252092
 
252080
252093
  if (this.isExpand) {
252081
252094
  this.$nextTick(function () {
252082
- _this3.setAllTreeExpand();
252095
+ _this4.setAllTreeExpand();
252083
252096
  });
252084
252097
  }
252085
252098
  },
@@ -252156,7 +252169,7 @@ var component = normalizeComponent(
252156
252169
  },
252157
252170
  //树表滚动分页+性能优化
252158
252171
  scroll1: function scroll1(param) {
252159
- var _this4 = this;
252172
+ var _this5 = this;
252160
252173
 
252161
252174
  var scrollTop = param.scrollTop,
252162
252175
  $event = param.$event;
@@ -252164,24 +252177,24 @@ var component = normalizeComponent(
252164
252177
  this.timeOut = setTimeout(function () {
252165
252178
  var ch = $event.target.clientHeight;
252166
252179
  var sh = $event.target.scrollHeight;
252167
- var temp = scrollTop - _this4.sp;
252168
- _this4.sp = scrollTop;
252180
+ var temp = scrollTop - _this5.sp;
252181
+ _this5.sp = scrollTop;
252169
252182
 
252170
252183
  if (temp < 0 && scrollTop <= 0) {
252171
- if (_this4.tPageIndex > 1) {
252172
- _this4.tPageIndex--;
252184
+ if (_this5.tPageIndex > 1) {
252185
+ _this5.tPageIndex--;
252173
252186
 
252174
- _this4.dataSliceUp(_this4.tPageIndex);
252187
+ _this5.dataSliceUp(_this5.tPageIndex);
252175
252188
 
252176
- _this4.$refs[_this4.id].scrollTo(null, (sh - ch) / 2);
252189
+ _this5.$refs[_this5.id].scrollTo(null, (sh - ch) / 2);
252177
252190
  }
252178
252191
  } else if (temp >= 0 && scrollTop + ch >= sh) {
252179
- if (_this4.tPageIndex < _this4.pageTotal) {
252180
- _this4.tPageIndex++;
252192
+ if (_this5.tPageIndex < _this5.pageTotal) {
252193
+ _this5.tPageIndex++;
252181
252194
 
252182
- _this4.dataSliceDown(_this4.tPageIndex);
252195
+ _this5.dataSliceDown(_this5.tPageIndex);
252183
252196
 
252184
- _this4.$refs[_this4.id].scrollTo(null, (sh - ch) / 2);
252197
+ _this5.$refs[_this5.id].scrollTo(null, (sh - ch) / 2);
252185
252198
  }
252186
252199
  }
252187
252200
  }, 200);
@@ -252212,12 +252225,12 @@ var component = normalizeComponent(
252212
252225
  // },
252213
252226
  //树 懒加载方法
252214
252227
  loadChildrenMethod: function loadChildrenMethod(_ref20) {
252215
- var _this5 = this;
252228
+ var _this6 = this;
252216
252229
 
252217
252230
  var row = _ref20.row;
252218
252231
  return new Promise( /*#__PURE__*/function () {
252219
252232
  var _ref21 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(resolve) {
252220
- var _yield$_this5$$axios$, data, tempObj;
252233
+ var _yield$_this6$$axios$, data, tempObj;
252221
252234
 
252222
252235
  return regeneratorRuntime.wrap(function _callee$(_context) {
252223
252236
  while (1) {
@@ -252229,17 +252242,17 @@ var component = normalizeComponent(
252229
252242
  }
252230
252243
 
252231
252244
  delete row.activeValue;
252232
- resolve(_this5.treeTempData);
252245
+ resolve(_this6.treeTempData);
252233
252246
  _context.next = 10;
252234
252247
  break;
252235
252248
 
252236
252249
  case 5:
252237
252250
  _context.next = 7;
252238
- return _this5.$axios.post(_this5.treeTypeConfig.path + row.path, _this5.lazyLoadParams);
252251
+ return _this6.$axios.post(_this6.treeTypeConfig.path + row.path, _this6.lazyLoadParams);
252239
252252
 
252240
252253
  case 7:
252241
- _yield$_this5$$axios$ = _context.sent;
252242
- data = _yield$_this5$$axios$.data;
252254
+ _yield$_this6$$axios$ = _context.sent;
252255
+ data = _yield$_this6$$axios$.data;
252243
252256
 
252244
252257
  if (data[0].Result > 0) {
252245
252258
  resolve(data[0].DataArray);
@@ -252269,10 +252282,10 @@ var component = normalizeComponent(
252269
252282
  }());
252270
252283
  },
252271
252284
  setTreeTempData: function setTreeTempData(data) {
252272
- var _this6 = this;
252285
+ var _this7 = this;
252273
252286
 
252274
252287
  return new Promise(function (resolve) {
252275
- _this6.treeTempData = data;
252288
+ _this7.treeTempData = data;
252276
252289
  setTimeout(function () {
252277
252290
  resolve();
252278
252291
  }, 0);
@@ -252309,13 +252322,13 @@ var component = normalizeComponent(
252309
252322
  },
252310
252323
  //初始化隐藏列
252311
252324
  hideColumn: function hideColumn(arr) {
252312
- var _this7 = this;
252325
+ var _this8 = this;
252313
252326
 
252314
252327
  this.$nextTick(function () {
252315
252328
  arr.forEach(function (item) {
252316
- var col = _this7.$refs[_this7.id].getColumnByField(item);
252329
+ var col = _this8.$refs[_this8.id].getColumnByField(item);
252317
252330
 
252318
- _this7.$refs[_this7.id].hideColumn(col);
252331
+ _this8.$refs[_this8.id].hideColumn(col);
252319
252332
  });
252320
252333
  });
252321
252334
  },
@@ -252380,11 +252393,11 @@ var component = normalizeComponent(
252380
252393
  },
252381
252394
  //树添加数据方法
252382
252395
  treeAdd: function treeAdd(id, obj) {
252383
- var _this8 = this;
252396
+ var _this9 = this;
252384
252397
 
252385
252398
  var xTree = this.$refs[this.id];
252386
252399
  xTree.createRow(obj).then(function (newRow) {
252387
- var matchObj = xe_utils_default.a.findTree(_this8.data.DataArray, function (item) {
252400
+ var matchObj = xe_utils_default.a.findTree(_this9.data.DataArray, function (item) {
252388
252401
  return item.pkid === id;
252389
252402
  }, {
252390
252403
  children: "children"