@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
|
@@ -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"
|
|
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
|
-
|
|
34
|
+
|
|
35
35
|
setInterval(() => {
|
|
36
|
+
this.data = data();
|
|
36
37
|
this.aaa = {
|
|
37
38
|
test:Math.random()
|
|
38
39
|
}
|
|
39
|
-
},
|
|
40
|
+
},2000)
|
|
40
41
|
},
|
|
41
42
|
data(){
|
|
42
43
|
return {
|
package/lib/jtui.common.js
CHANGED
|
@@ -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=
|
|
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=917ff1fc&
|
|
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}
|
|
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}
|
|
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}
|
|
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}
|
|
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=
|
|
250138
|
+
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=917ff1fc&
|
|
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,31 @@ var component = normalizeComponent(
|
|
|
251585
251571
|
default: null
|
|
251586
251572
|
}
|
|
251587
251573
|
},
|
|
251574
|
+
watch: {
|
|
251575
|
+
loading: {
|
|
251576
|
+
deep: true,
|
|
251577
|
+
handler: function handler(n) {
|
|
251578
|
+
if (this.$refs[this.id]) {
|
|
251579
|
+
var temp = this.$refs[this.id].getTableData();
|
|
251580
|
+
|
|
251581
|
+
if (temp.fullData.length > 0) {
|
|
251582
|
+
this.isShowEmpty = false;
|
|
251583
|
+
} else {
|
|
251584
|
+
if (n) {
|
|
251585
|
+
this.isShowEmpty = false;
|
|
251586
|
+
} else {
|
|
251587
|
+
this.isShowEmpty = true;
|
|
251588
|
+
}
|
|
251589
|
+
}
|
|
251590
|
+
} else {
|
|
251591
|
+
this.isShowEmpty = false;
|
|
251592
|
+
}
|
|
251593
|
+
}
|
|
251594
|
+
}
|
|
251595
|
+
},
|
|
251588
251596
|
data: function data() {
|
|
251589
251597
|
return {
|
|
251598
|
+
isShowEmpty: false,
|
|
251590
251599
|
tableData: this.data.DataArray,
|
|
251591
251600
|
//表格数据
|
|
251592
251601
|
headerClass: (this.data.retjson.header || []).find(function (i) {
|