@leevan/jtui 2.0.44 → 2.0.45
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/examples/tableTest/table-ptbg.vue +11 -2
- package/examples/tableTest/tree-table.vue +3 -2
- package/lib/jtui.common.js +34 -25
- package/lib/jtui.css +1 -1
- package/lib/jtui.umd.js +34 -25
- package/lib/jtui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/jt-table/index.vue +45 -30
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=
|
|
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=917ff1fc&
|
|
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}
|
|
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}
|
|
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}
|
|
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}
|
|
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=
|
|
250147
|
+
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=917ff1fc&
|
|
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,31 @@ var component = normalizeComponent(
|
|
|
251594
251580
|
default: null
|
|
251595
251581
|
}
|
|
251596
251582
|
},
|
|
251583
|
+
watch: {
|
|
251584
|
+
loading: {
|
|
251585
|
+
deep: true,
|
|
251586
|
+
handler: function handler(n) {
|
|
251587
|
+
if (this.$refs[this.id]) {
|
|
251588
|
+
var temp = this.$refs[this.id].getTableData();
|
|
251589
|
+
|
|
251590
|
+
if (temp.fullData.length > 0) {
|
|
251591
|
+
this.isShowEmpty = false;
|
|
251592
|
+
} else {
|
|
251593
|
+
if (n) {
|
|
251594
|
+
this.isShowEmpty = false;
|
|
251595
|
+
} else {
|
|
251596
|
+
this.isShowEmpty = true;
|
|
251597
|
+
}
|
|
251598
|
+
}
|
|
251599
|
+
} else {
|
|
251600
|
+
this.isShowEmpty = false;
|
|
251601
|
+
}
|
|
251602
|
+
}
|
|
251603
|
+
}
|
|
251604
|
+
},
|
|
251597
251605
|
data: function data() {
|
|
251598
251606
|
return {
|
|
251607
|
+
isShowEmpty: false,
|
|
251599
251608
|
tableData: this.data.DataArray,
|
|
251600
251609
|
//表格数据
|
|
251601
251610
|
headerClass: (this.data.retjson.header || []).find(function (i) {
|