@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.
package/lib/jtui.umd.js CHANGED
@@ -250044,8 +250044,8 @@ var es_function_name = __webpack_require__("b0c0");
250044
250044
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
250045
250045
  var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
250046
250046
 
250047
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"09b5e250-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/jt-table/index.vue?vue&type=template&id=40445eea&
250048
- 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":{
250047
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"09b5e250-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/jt-table/index.vue?vue&type=template&id=f923a0f6&
250048
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"tableStyle-2",class:_vm.isWrap ? 'isWrap' : '',staticStyle:{"position":"absolute","top":"1px","left":"1px","right":"1px","bottom":"1px"}},[(_vm.isTool)?_c('div',{staticStyle:{"position":"relative"}},[_c('vxe-toolbar',{staticClass:"jt-toolbar",attrs:{"custom":{ icon: 'jtIcon iconpeizhi41 colStyle' }}})],1):_vm._e(),_c('div',{staticStyle:{"width":"100%","height":"100%","position":"relative"}},[(_vm.isShowEmpty)?_c('div',{staticClass:"cus-empty-box"},[_c('el-empty',{attrs:{"image-size":200},scopedSlots:_vm._u([{key:"description",fn:function(){return [_c('p',{staticStyle:{"font-size":"30px"}},[_vm._v("暂无数据")])]},proxy:true}],null,false,1618345459)})],1):_vm._e(),(_vm.tableType === 'default')?_c('vxe-table',{ref:_vm.id,staticClass:"jt-table-class-only",attrs:{"height":"auto","size":"mini","show-overflow":"","show-header-overflow":"","auto-resize":"","resizable":"","highlight-current-row":"","highlight-current-column":"","keep-source":"","empty-text":" ","id":_vm.id,"data":_vm.data.DataArray,"stripe":_vm.stripe,"border":_vm.border,"max-height":_vm.maxHeight,"show-footer":_vm.isFooter,"footer-method":_vm.footerMethod,"footer-span-method":_vm.footerColspanMethod,"footer-cell-class-name":_vm.footerCellClassName,"loading":_vm.loading,"row-style":_vm.rowStyle,"cell-style":_vm.cellStyle_m,"header-cell-class-name":_vm.headerClass,"span-method":_vm.spanMethod,"scroll-y":{ mode: 'wheel' },"sort-config":{ sortMethod: _vm.sortMethod },"radio-config":{ checkRowKey: null },"keyboard-config":{ isArrow: true },"checkbox-config":{ highlight: true },"export-config":{
250049
250049
  type: 'xlsx',
250050
250050
  types: ['xlsx', 'csv', 'html', 'xml', 'txt'],
250051
250051
  },"custom-config":{ storage: true, checkMethod: _vm.checkColumnMethod },"edit-config":{
@@ -250059,7 +250059,7 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
250059
250059
  toggleMethod: _vm.toggleMethod,
250060
250060
  lazy: true,
250061
250061
  accordion: _vm.expandConfig.accordion,
250062
- }},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){
250062
+ }},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){
250063
250063
  var row = ref.row;
250064
250064
  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){
250065
250065
  var row = ref.row;
@@ -250072,7 +250072,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
250072
250072
  })}),_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:({
250073
250073
  color: item.color ? item.color : '#379FF2',
250074
250074
  fontSize: item.size ? item.size + 'px' : '16px',
250075
- })}),_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":{
250075
+ })}),_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":{
250076
250076
  type: 'xlsx',
250077
250077
  types: ['xlsx', 'csv', 'html', 'xml', 'txt'],
250078
250078
  },"custom-config":{ storage: true, checkMethod: _vm.checkColumnMethod },"edit-config":{
@@ -250080,7 +250080,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
250080
250080
  mode: 'cell',
250081
250081
  showStatus: true,
250082
250082
  activeMethod: _vm.activeCellMethod,
250083
- }},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){
250083
+ }},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){
250084
250084
  var row = ref.row;
250085
250085
  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){
250086
250086
  var row = ref.row;
@@ -250093,9 +250093,9 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
250093
250093
  })}),_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:({
250094
250094
  color: item.color ? item.color : '#379FF2',
250095
250095
  fontSize: item.size ? item.size + 'px' : '16px',
250096
- })}),_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":{
250096
+ })}),_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":{
250097
250097
  highlight: true,
250098
- },"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){
250098
+ },"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){
250099
250099
  var row = ref.row;
250100
250100
  var rowIndex = ref.rowIndex;
250101
250101
  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:({
@@ -250104,7 +250104,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
250104
250104
  })}),_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:({
250105
250105
  color: item.color ? item.color : '#379FF2',
250106
250106
  fontSize: item.size ? item.size + 'px' : '16px',
250107
- })}),_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":{
250107
+ })}),_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":{
250108
250108
  labelField: _vm.treeTypeConfig.type !== 'treeTable' ? 'name' : '',
250109
250109
  checkMethod: _vm.treeRadioMethod,
250110
250110
  },"checkbox-config":{
@@ -250123,7 +250123,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
250123
250123
  toggleMethod: _vm.toggleMethod,
250124
250124
  lazy: true,
250125
250125
  accordion: _vm.expandConfig.accordion,
250126
- },"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){
250126
+ },"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){
250127
250127
  var row = ref.row;
250128
250128
  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){
250129
250129
  var row = ref.row;
@@ -250140,11 +250140,11 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
250140
250140
  })}),_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:({
250141
250141
  color: item.color ? item.color : '#379FF2',
250142
250142
  fontSize: item.size ? item.size + 'px' : '16px',
250143
- })}),_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)}
250143
+ })}),_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)])}
250144
250144
  var staticRenderFns = []
250145
250145
 
250146
250146
 
250147
- // CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=40445eea&
250147
+ // CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=f923a0f6&
250148
250148
 
250149
250149
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
250150
250150
  var es_array_concat = __webpack_require__("99af");
@@ -251373,20 +251373,6 @@ var component = normalizeComponent(
251373
251373
  //
251374
251374
  //
251375
251375
  //
251376
- //
251377
- //
251378
- //
251379
- //
251380
- //
251381
- //
251382
- //
251383
- //
251384
- //
251385
- //
251386
- //
251387
- //
251388
- //
251389
- //
251390
251376
 
251391
251377
 
251392
251378
  /* harmony default export */ var jt_tablevue_type_script_lang_js_ = ({
@@ -251594,8 +251580,35 @@ var component = normalizeComponent(
251594
251580
  default: null
251595
251581
  }
251596
251582
  },
251583
+ watch: {
251584
+ loading: {
251585
+ deep: true,
251586
+ handler: function handler(n) {
251587
+ var _this = this;
251588
+
251589
+ if (this.$refs[this.id]) {
251590
+ setTimeout(function () {
251591
+ var temp = _this.$refs[_this.id].getTableData();
251592
+
251593
+ if (temp.fullData.length > 0) {
251594
+ _this.isShowEmpty = false;
251595
+ } else {
251596
+ if (n) {
251597
+ _this.isShowEmpty = false;
251598
+ } else {
251599
+ _this.isShowEmpty = true;
251600
+ }
251601
+ }
251602
+ }, 1000);
251603
+ } else {
251604
+ this.isShowEmpty = false;
251605
+ }
251606
+ }
251607
+ }
251608
+ },
251597
251609
  data: function data() {
251598
251610
  return {
251611
+ isShowEmpty: false,
251599
251612
  tableData: this.data.DataArray,
251600
251613
  //表格数据
251601
251614
  headerClass: (this.data.retjson.header || []).find(function (i) {
@@ -251838,7 +251851,7 @@ var component = normalizeComponent(
251838
251851
  },
251839
251852
  //表尾统计,(计算平均值和求和)
251840
251853
  footerMethod: function footerMethod(_ref4) {
251841
- var _this = this;
251854
+ var _this2 = this;
251842
251855
 
251843
251856
  var columns = _ref4.columns,
251844
251857
  data = _ref4.data;
@@ -251852,7 +251865,7 @@ var component = normalizeComponent(
251852
251865
  var meanCell = null;
251853
251866
  var sumCell = null;
251854
251867
 
251855
- _this.footConfig.filed.forEach(function (i) {
251868
+ _this2.footConfig.filed.forEach(function (i) {
251856
251869
  switch (column.property) {
251857
251870
  case i:
251858
251871
  meanCell = parseInt(xe_utils_default.a.mean(data, column.property));
@@ -251966,7 +251979,7 @@ var component = normalizeComponent(
251966
251979
  },
251967
251980
  //滚动到底事件派发
251968
251981
  scroll: function scroll(param) {
251969
- var _this2 = this;
251982
+ var _this3 = this;
251970
251983
 
251971
251984
  var scrollTop = param.scrollTop,
251972
251985
  $event = param.$event;
@@ -251976,7 +251989,7 @@ var component = normalizeComponent(
251976
251989
  var sh = $event.target.scrollHeight;
251977
251990
 
251978
251991
  if (Math.ceil(scrollTop + ch) >= sh && scrollTop != 0) {
251979
- _this2.$emit("scrollBottom", ++_this2.pageIndex);
251992
+ _this3.$emit("scrollBottom", ++_this3.pageIndex);
251980
251993
  }
251981
251994
  }, 200);
251982
251995
  },
@@ -252075,20 +252088,20 @@ var component = normalizeComponent(
252075
252088
  },
252076
252089
  //普通表格转树表(仅支持一层)
252077
252090
  default2tree: function default2tree(data, field) {
252078
- var _this3 = this;
252091
+ var _this4 = this;
252079
252092
 
252080
252093
  var result = [];
252081
252094
  this.treeField = this.data.retjson.header[0].prop;
252082
252095
  xe_utils_default.a.each(xe_utils_default.a.groupBy(data, field), function (childs, key) {
252083
252096
  var _result$push;
252084
252097
 
252085
- result.push((_result$push = {}, _defineProperty(_result$push, _this3.treeField, key + "\uFF08 ".concat(childs.length, " \uFF09")), _defineProperty(_result$push, "children", childs), _result$push));
252098
+ result.push((_result$push = {}, _defineProperty(_result$push, _this4.treeField, key + "\uFF08 ".concat(childs.length, " \uFF09")), _defineProperty(_result$push, "children", childs), _result$push));
252086
252099
  });
252087
252100
  this.data.DataArray = result;
252088
252101
 
252089
252102
  if (this.isExpand) {
252090
252103
  this.$nextTick(function () {
252091
- _this3.setAllTreeExpand();
252104
+ _this4.setAllTreeExpand();
252092
252105
  });
252093
252106
  }
252094
252107
  },
@@ -252165,7 +252178,7 @@ var component = normalizeComponent(
252165
252178
  },
252166
252179
  //树表滚动分页+性能优化
252167
252180
  scroll1: function scroll1(param) {
252168
- var _this4 = this;
252181
+ var _this5 = this;
252169
252182
 
252170
252183
  var scrollTop = param.scrollTop,
252171
252184
  $event = param.$event;
@@ -252173,24 +252186,24 @@ var component = normalizeComponent(
252173
252186
  this.timeOut = setTimeout(function () {
252174
252187
  var ch = $event.target.clientHeight;
252175
252188
  var sh = $event.target.scrollHeight;
252176
- var temp = scrollTop - _this4.sp;
252177
- _this4.sp = scrollTop;
252189
+ var temp = scrollTop - _this5.sp;
252190
+ _this5.sp = scrollTop;
252178
252191
 
252179
252192
  if (temp < 0 && scrollTop <= 0) {
252180
- if (_this4.tPageIndex > 1) {
252181
- _this4.tPageIndex--;
252193
+ if (_this5.tPageIndex > 1) {
252194
+ _this5.tPageIndex--;
252182
252195
 
252183
- _this4.dataSliceUp(_this4.tPageIndex);
252196
+ _this5.dataSliceUp(_this5.tPageIndex);
252184
252197
 
252185
- _this4.$refs[_this4.id].scrollTo(null, (sh - ch) / 2);
252198
+ _this5.$refs[_this5.id].scrollTo(null, (sh - ch) / 2);
252186
252199
  }
252187
252200
  } else if (temp >= 0 && scrollTop + ch >= sh) {
252188
- if (_this4.tPageIndex < _this4.pageTotal) {
252189
- _this4.tPageIndex++;
252201
+ if (_this5.tPageIndex < _this5.pageTotal) {
252202
+ _this5.tPageIndex++;
252190
252203
 
252191
- _this4.dataSliceDown(_this4.tPageIndex);
252204
+ _this5.dataSliceDown(_this5.tPageIndex);
252192
252205
 
252193
- _this4.$refs[_this4.id].scrollTo(null, (sh - ch) / 2);
252206
+ _this5.$refs[_this5.id].scrollTo(null, (sh - ch) / 2);
252194
252207
  }
252195
252208
  }
252196
252209
  }, 200);
@@ -252221,12 +252234,12 @@ var component = normalizeComponent(
252221
252234
  // },
252222
252235
  //树 懒加载方法
252223
252236
  loadChildrenMethod: function loadChildrenMethod(_ref20) {
252224
- var _this5 = this;
252237
+ var _this6 = this;
252225
252238
 
252226
252239
  var row = _ref20.row;
252227
252240
  return new Promise( /*#__PURE__*/function () {
252228
252241
  var _ref21 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(resolve) {
252229
- var _yield$_this5$$axios$, data, tempObj;
252242
+ var _yield$_this6$$axios$, data, tempObj;
252230
252243
 
252231
252244
  return regeneratorRuntime.wrap(function _callee$(_context) {
252232
252245
  while (1) {
@@ -252238,17 +252251,17 @@ var component = normalizeComponent(
252238
252251
  }
252239
252252
 
252240
252253
  delete row.activeValue;
252241
- resolve(_this5.treeTempData);
252254
+ resolve(_this6.treeTempData);
252242
252255
  _context.next = 10;
252243
252256
  break;
252244
252257
 
252245
252258
  case 5:
252246
252259
  _context.next = 7;
252247
- return _this5.$axios.post(_this5.treeTypeConfig.path + row.path, _this5.lazyLoadParams);
252260
+ return _this6.$axios.post(_this6.treeTypeConfig.path + row.path, _this6.lazyLoadParams);
252248
252261
 
252249
252262
  case 7:
252250
- _yield$_this5$$axios$ = _context.sent;
252251
- data = _yield$_this5$$axios$.data;
252263
+ _yield$_this6$$axios$ = _context.sent;
252264
+ data = _yield$_this6$$axios$.data;
252252
252265
 
252253
252266
  if (data[0].Result > 0) {
252254
252267
  resolve(data[0].DataArray);
@@ -252278,10 +252291,10 @@ var component = normalizeComponent(
252278
252291
  }());
252279
252292
  },
252280
252293
  setTreeTempData: function setTreeTempData(data) {
252281
- var _this6 = this;
252294
+ var _this7 = this;
252282
252295
 
252283
252296
  return new Promise(function (resolve) {
252284
- _this6.treeTempData = data;
252297
+ _this7.treeTempData = data;
252285
252298
  setTimeout(function () {
252286
252299
  resolve();
252287
252300
  }, 0);
@@ -252318,13 +252331,13 @@ var component = normalizeComponent(
252318
252331
  },
252319
252332
  //初始化隐藏列
252320
252333
  hideColumn: function hideColumn(arr) {
252321
- var _this7 = this;
252334
+ var _this8 = this;
252322
252335
 
252323
252336
  this.$nextTick(function () {
252324
252337
  arr.forEach(function (item) {
252325
- var col = _this7.$refs[_this7.id].getColumnByField(item);
252338
+ var col = _this8.$refs[_this8.id].getColumnByField(item);
252326
252339
 
252327
- _this7.$refs[_this7.id].hideColumn(col);
252340
+ _this8.$refs[_this8.id].hideColumn(col);
252328
252341
  });
252329
252342
  });
252330
252343
  },
@@ -252389,11 +252402,11 @@ var component = normalizeComponent(
252389
252402
  },
252390
252403
  //树添加数据方法
252391
252404
  treeAdd: function treeAdd(id, obj) {
252392
- var _this8 = this;
252405
+ var _this9 = this;
252393
252406
 
252394
252407
  var xTree = this.$refs[this.id];
252395
252408
  xTree.createRow(obj).then(function (newRow) {
252396
- var matchObj = xe_utils_default.a.findTree(_this8.data.DataArray, function (item) {
252409
+ var matchObj = xe_utils_default.a.findTree(_this9.data.DataArray, function (item) {
252397
252410
  return item.pkid === id;
252398
252411
  }, {
252399
252412
  children: "children"