@leevan/jtui 2.0.3 → 2.0.4
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/App.vue +1 -1
- package/examples/tableTest/table-ptbg.vue +13 -1
- package/examples/tableTest/tree-table.vue +4 -1
- package/lib/jtui.common.js +169 -10
- package/lib/jtui.umd.js +169 -10
- package/lib/jtui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/jt-table/comp.js +12 -0
- package/packages/jt-table/components/tabsCheckbox.vue +70 -0
- package/packages/jt-table/index.vue +18 -4
- package/packages/jt-table-pc/data2.js +5 -1
package/examples/App.vue
CHANGED
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
:handlerConfig="handlerConfig"
|
|
91
91
|
@handlerClick="handlerClick"
|
|
92
92
|
:loading="loading"
|
|
93
|
-
:cellRenderMethods="{radioChange}"
|
|
93
|
+
:cellRenderMethods="{radioChange,checkboxChange}"
|
|
94
94
|
>
|
|
95
95
|
</jt-table-pc>
|
|
96
96
|
</div>
|
|
@@ -213,6 +213,18 @@ import { data23 , data13 } from '../../packages/jt-table-pc/data2';
|
|
|
213
213
|
}
|
|
214
214
|
})
|
|
215
215
|
},
|
|
216
|
+
checkboxChange({row,property,val,params}){
|
|
217
|
+
return new Promise(async resolve=>{
|
|
218
|
+
let random = Math.random();
|
|
219
|
+
if(random > 0.5){
|
|
220
|
+
this.$message.success('设置成功');
|
|
221
|
+
resolve(true)
|
|
222
|
+
}else{
|
|
223
|
+
this.$message.warning('设置失败');
|
|
224
|
+
resolve(false)
|
|
225
|
+
}
|
|
226
|
+
})
|
|
227
|
+
}
|
|
216
228
|
}
|
|
217
229
|
}
|
|
218
230
|
</script>
|
|
@@ -46,7 +46,10 @@ import { data } from '../data2.js';
|
|
|
46
46
|
async handlerClick(value,row,rowIndex){
|
|
47
47
|
if(value == 'stcd_search'){
|
|
48
48
|
await this.$refs.tree_table.setTreeTempData([
|
|
49
|
-
{"path":"NB_ADDVCD_DS
|
|
49
|
+
{"path":"NB_ADDVCD_DS",
|
|
50
|
+
"inBottons":[],
|
|
51
|
+
"name":"我是父组件检索加载的-[/srjtcontrol/nb/PN05ToPPTN]",
|
|
52
|
+
"pjcd":""}
|
|
50
53
|
]);
|
|
51
54
|
this.$refs.tree_table.reloadTreeChilds(row);
|
|
52
55
|
}
|
package/lib/jtui.common.js
CHANGED
|
@@ -231247,7 +231247,7 @@ var es_function_name = __webpack_require__("b0c0");
|
|
|
231247
231247
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
231248
231248
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
231249
231249
|
|
|
231250
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7e503786-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=
|
|
231250
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7e503786-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=b5f4787a&
|
|
231251
231251
|
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,"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":{
|
|
231252
231252
|
type: 'xlsx',
|
|
231253
231253
|
types: ['xlsx', 'csv', 'html', 'xml', 'txt'],
|
|
@@ -231347,7 +231347,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
|
|
|
231347
231347
|
var staticRenderFns = []
|
|
231348
231348
|
|
|
231349
231349
|
|
|
231350
|
-
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=
|
|
231350
|
+
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=b5f4787a&
|
|
231351
231351
|
|
|
231352
231352
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
231353
231353
|
var es_array_concat = __webpack_require__("99af");
|
|
@@ -231361,6 +231361,9 @@ var es_array_find = __webpack_require__("7db0");
|
|
|
231361
231361
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js
|
|
231362
231362
|
var es_array_for_each = __webpack_require__("4160");
|
|
231363
231363
|
|
|
231364
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.index-of.js
|
|
231365
|
+
var es_array_index_of = __webpack_require__("c975");
|
|
231366
|
+
|
|
231364
231367
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
231365
231368
|
var es_array_slice = __webpack_require__("fb6a");
|
|
231366
231369
|
|
|
@@ -231540,6 +231543,7 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
231540
231543
|
|
|
231541
231544
|
|
|
231542
231545
|
|
|
231546
|
+
|
|
231543
231547
|
//
|
|
231544
231548
|
//
|
|
231545
231549
|
//
|
|
@@ -232477,7 +232481,8 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
232477
232481
|
default: function _default() {
|
|
232478
232482
|
return {
|
|
232479
232483
|
parentRow: Object,
|
|
232480
|
-
radioChange: function radioChange() {}
|
|
232484
|
+
radioChange: function radioChange() {},
|
|
232485
|
+
checkBoxChange: function checkBoxChange() {}
|
|
232481
232486
|
};
|
|
232482
232487
|
}
|
|
232483
232488
|
},
|
|
@@ -232598,7 +232603,7 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
232598
232603
|
},
|
|
232599
232604
|
//单元格自定义渲染根据类型返回配置
|
|
232600
232605
|
cellRenderData: function cellRenderData(type) {
|
|
232601
|
-
var _this$cellRenderMetho;
|
|
232606
|
+
var _this$cellRenderMetho, _this$cellRenderMetho2;
|
|
232602
232607
|
|
|
232603
232608
|
switch (type) {
|
|
232604
232609
|
case "TabsBtn":
|
|
@@ -232609,6 +232614,15 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
232609
232614
|
},
|
|
232610
232615
|
parentRow: (_this$cellRenderMetho = this.cellRenderMethods) === null || _this$cellRenderMetho === void 0 ? void 0 : _this$cellRenderMetho.parentRow
|
|
232611
232616
|
};
|
|
232617
|
+
|
|
232618
|
+
case "TabsCheckbox":
|
|
232619
|
+
return {
|
|
232620
|
+
name: 'TabsCheckbox',
|
|
232621
|
+
events: {
|
|
232622
|
+
checkboxChange: this.cellRenderMethods.checkboxChange
|
|
232623
|
+
},
|
|
232624
|
+
parentRow: (_this$cellRenderMetho2 = this.cellRenderMethods) === null || _this$cellRenderMetho2 === void 0 ? void 0 : _this$cellRenderMetho2.parentRow
|
|
232625
|
+
};
|
|
232612
232626
|
}
|
|
232613
232627
|
},
|
|
232614
232628
|
//枚举转换
|
|
@@ -232911,7 +232925,17 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
232911
232925
|
},
|
|
232912
232926
|
//操作列点击事件派发
|
|
232913
232927
|
handlerColClick: function handlerColClick(value, row, rowIndex) {
|
|
232914
|
-
|
|
232928
|
+
//检索
|
|
232929
|
+
if (value === 'stcd_search') {
|
|
232930
|
+
this.$set(row, "activeValue", value);
|
|
232931
|
+
} //刷新
|
|
232932
|
+
|
|
232933
|
+
|
|
232934
|
+
if (value === 'reflash') {
|
|
232935
|
+
this.reloadTreeChilds(row);
|
|
232936
|
+
}
|
|
232937
|
+
|
|
232938
|
+
;
|
|
232915
232939
|
this.$emit("handlerClick", value, row, rowIndex);
|
|
232916
232940
|
},
|
|
232917
232941
|
//普通表格转树表(仅支持一层)
|
|
@@ -233042,7 +233066,6 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
233042
233066
|
dataSliceDown: function dataSliceDown(idx) {
|
|
233043
233067
|
this.data.DataArray = this.dataTreeObj[idx].concat(this.dataTreeObj[idx + 1]);
|
|
233044
233068
|
},
|
|
233045
|
-
//树 懒加载方法
|
|
233046
233069
|
// async loadChildrenMethod({ row }){
|
|
233047
233070
|
// const { data } = await this.$axios.post(this.treeTypeConfig.path + row.path);
|
|
233048
233071
|
// return new Promise((resolve) => {
|
|
@@ -233061,6 +233084,7 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
233061
233084
|
// }
|
|
233062
233085
|
// })
|
|
233063
233086
|
// },
|
|
233087
|
+
//树 懒加载方法
|
|
233064
233088
|
loadChildrenMethod: function loadChildrenMethod(_ref20) {
|
|
233065
233089
|
var _this5 = this;
|
|
233066
233090
|
|
|
@@ -233073,7 +233097,7 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
233073
233097
|
while (1) {
|
|
233074
233098
|
switch (_context.prev = _context.next) {
|
|
233075
233099
|
case 0:
|
|
233076
|
-
if (!(row.activeValue
|
|
233100
|
+
if (!(row.activeValue.indexOf("search") !== -1)) {
|
|
233077
233101
|
_context.next = 4;
|
|
233078
233102
|
break;
|
|
233079
233103
|
}
|
|
@@ -234526,9 +234550,6 @@ var JtEchartsPcvue_type_template_id_9cf77ee0_scoped_true_staticRenderFns = []
|
|
|
234526
234550
|
|
|
234527
234551
|
// CONCATENATED MODULE: ./packages/jt-echarts-pc/JtEchartsPc.vue?vue&type=template&id=9cf77ee0&scoped=true&
|
|
234528
234552
|
|
|
234529
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.index-of.js
|
|
234530
|
-
var es_array_index_of = __webpack_require__("c975");
|
|
234531
|
-
|
|
234532
234553
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.reflect.construct.js
|
|
234533
234554
|
var es_reflect_construct = __webpack_require__("4ae1");
|
|
234534
234555
|
|
|
@@ -237466,13 +237487,138 @@ var tabsBtn_component = normalizeComponent(
|
|
|
237466
237487
|
)
|
|
237467
237488
|
|
|
237468
237489
|
/* harmony default export */ var tabsBtn = (tabsBtn_component.exports);
|
|
237490
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7e503786-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/components/tabsCheckbox.vue?vue&type=template&id=0e0cb1dd&scoped=true&
|
|
237491
|
+
var tabsCheckboxvue_type_template_id_0e0cb1dd_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.dataType !== 'string')?_c('el-checkbox-group',{attrs:{"size":"mini"},on:{"change":_vm.btnsClick},model:{value:(_vm.radio_value),callback:function ($$v) {_vm.radio_value=$$v},expression:"radio_value"}},_vm._l((_vm.fullData),function(item,index){return _c('el-checkbox-button',{key:index,attrs:{"label":item.value}},[_vm._v(_vm._s(item.label))])}),1):_c('div',[_vm._v(" "+_vm._s(_vm.rowData)+" ")])],1)}
|
|
237492
|
+
var tabsCheckboxvue_type_template_id_0e0cb1dd_scoped_true_staticRenderFns = []
|
|
237493
|
+
|
|
237494
|
+
|
|
237495
|
+
// CONCATENATED MODULE: ./packages/jt-table/components/tabsCheckbox.vue?vue&type=template&id=0e0cb1dd&scoped=true&
|
|
237496
|
+
|
|
237497
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/jt-table/components/tabsCheckbox.vue?vue&type=script&lang=js&
|
|
237498
|
+
|
|
237499
|
+
|
|
237500
|
+
|
|
237501
|
+
//
|
|
237502
|
+
//
|
|
237503
|
+
//
|
|
237504
|
+
//
|
|
237505
|
+
//
|
|
237506
|
+
//
|
|
237507
|
+
//
|
|
237508
|
+
//
|
|
237509
|
+
//
|
|
237510
|
+
//
|
|
237511
|
+
//
|
|
237512
|
+
//
|
|
237513
|
+
//
|
|
237514
|
+
//
|
|
237515
|
+
//
|
|
237516
|
+
//
|
|
237517
|
+
//
|
|
237518
|
+
/* harmony default export */ var tabsCheckboxvue_type_script_lang_js_ = ({
|
|
237519
|
+
name: "TabsCheckbox",
|
|
237520
|
+
data: function data() {
|
|
237521
|
+
return {
|
|
237522
|
+
radio_value: [],
|
|
237523
|
+
fullData: [],
|
|
237524
|
+
oldValue: "",
|
|
237525
|
+
dataType: '',
|
|
237526
|
+
rowData: ''
|
|
237527
|
+
};
|
|
237528
|
+
},
|
|
237529
|
+
props: {
|
|
237530
|
+
params: Object
|
|
237531
|
+
},
|
|
237532
|
+
created: function created() {
|
|
237533
|
+
this.load();
|
|
237534
|
+
},
|
|
237535
|
+
methods: {
|
|
237536
|
+
load: function load() {
|
|
237537
|
+
var _this$params = this.params,
|
|
237538
|
+
row = _this$params.row,
|
|
237539
|
+
column = _this$params.column;
|
|
237540
|
+
|
|
237541
|
+
if (row) {
|
|
237542
|
+
this.rowData = row[column.property];
|
|
237543
|
+
this.dataType = _typeof(this.rowData);
|
|
237544
|
+
}
|
|
237545
|
+
|
|
237546
|
+
if (this.rowData && this.rowData.enum) {
|
|
237547
|
+
this.fullData = this.rowData.enum;
|
|
237548
|
+
this.radio_value = this.rowData.selected;
|
|
237549
|
+
this.oldValue = this.rowData.selected;
|
|
237550
|
+
}
|
|
237551
|
+
},
|
|
237552
|
+
btnsClick: function btnsClick(val) {
|
|
237553
|
+
var _this = this;
|
|
237554
|
+
|
|
237555
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
237556
|
+
var _this$params2, row, column, _this$$attrs, events, parentRow, result;
|
|
237557
|
+
|
|
237558
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
237559
|
+
while (1) {
|
|
237560
|
+
switch (_context.prev = _context.next) {
|
|
237561
|
+
case 0:
|
|
237562
|
+
_this$params2 = _this.params, row = _this$params2.row, column = _this$params2.column;
|
|
237563
|
+
_this$$attrs = _this.$attrs, events = _this$$attrs.events, parentRow = _this$$attrs.parentRow;
|
|
237564
|
+
_context.next = 4;
|
|
237565
|
+
return events.checkboxChange({
|
|
237566
|
+
row: row,
|
|
237567
|
+
property: column.property,
|
|
237568
|
+
val: val,
|
|
237569
|
+
params: parentRow
|
|
237570
|
+
});
|
|
237571
|
+
|
|
237572
|
+
case 4:
|
|
237573
|
+
result = _context.sent;
|
|
237574
|
+
|
|
237575
|
+
if (result) {
|
|
237576
|
+
_this.oldValue = val;
|
|
237577
|
+
} else {
|
|
237578
|
+
_this.radio_value = _this.oldValue;
|
|
237579
|
+
}
|
|
237580
|
+
|
|
237581
|
+
case 6:
|
|
237582
|
+
case "end":
|
|
237583
|
+
return _context.stop();
|
|
237584
|
+
}
|
|
237585
|
+
}
|
|
237586
|
+
}, _callee);
|
|
237587
|
+
}))();
|
|
237588
|
+
}
|
|
237589
|
+
}
|
|
237590
|
+
});
|
|
237591
|
+
// CONCATENATED MODULE: ./packages/jt-table/components/tabsCheckbox.vue?vue&type=script&lang=js&
|
|
237592
|
+
/* harmony default export */ var components_tabsCheckboxvue_type_script_lang_js_ = (tabsCheckboxvue_type_script_lang_js_);
|
|
237593
|
+
// CONCATENATED MODULE: ./packages/jt-table/components/tabsCheckbox.vue
|
|
237594
|
+
|
|
237595
|
+
|
|
237596
|
+
|
|
237597
|
+
|
|
237598
|
+
|
|
237599
|
+
/* normalize component */
|
|
237600
|
+
|
|
237601
|
+
var tabsCheckbox_component = normalizeComponent(
|
|
237602
|
+
components_tabsCheckboxvue_type_script_lang_js_,
|
|
237603
|
+
tabsCheckboxvue_type_template_id_0e0cb1dd_scoped_true_render,
|
|
237604
|
+
tabsCheckboxvue_type_template_id_0e0cb1dd_scoped_true_staticRenderFns,
|
|
237605
|
+
false,
|
|
237606
|
+
null,
|
|
237607
|
+
"0e0cb1dd",
|
|
237608
|
+
null
|
|
237609
|
+
|
|
237610
|
+
)
|
|
237611
|
+
|
|
237612
|
+
/* harmony default export */ var tabsCheckbox = (tabsCheckbox_component.exports);
|
|
237469
237613
|
// CONCATENATED MODULE: ./packages/jt-table/comp.js
|
|
237470
237614
|
|
|
237471
237615
|
|
|
237472
237616
|
|
|
237473
237617
|
|
|
237474
237618
|
|
|
237619
|
+
|
|
237475
237620
|
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.component(tabsBtn.name, tabsBtn);
|
|
237621
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.component(tabsCheckbox.name, tabsCheckbox);
|
|
237476
237622
|
index_common_default.a.renderer.add('TabsBtn', {
|
|
237477
237623
|
renderDefault: function renderDefault(h, renderOpts, params) {
|
|
237478
237624
|
var events = renderOpts.events,
|
|
@@ -237486,6 +237632,19 @@ index_common_default.a.renderer.add('TabsBtn', {
|
|
|
237486
237632
|
})];
|
|
237487
237633
|
}
|
|
237488
237634
|
});
|
|
237635
|
+
index_common_default.a.renderer.add('TabsCheckbox', {
|
|
237636
|
+
renderDefault: function renderDefault(h, renderOpts, params) {
|
|
237637
|
+
var events = renderOpts.events,
|
|
237638
|
+
parentRow = renderOpts.parentRow;
|
|
237639
|
+
return [h("tabs-checkbox", {
|
|
237640
|
+
"attrs": {
|
|
237641
|
+
"params": params,
|
|
237642
|
+
"events": events,
|
|
237643
|
+
"parentRow": parentRow
|
|
237644
|
+
}
|
|
237645
|
+
})];
|
|
237646
|
+
}
|
|
237647
|
+
});
|
|
237489
237648
|
// EXTERNAL MODULE: ./node_modules/moment/moment.js
|
|
237490
237649
|
var moment = __webpack_require__("c1df");
|
|
237491
237650
|
var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
package/lib/jtui.umd.js
CHANGED
|
@@ -231256,7 +231256,7 @@ var es_function_name = __webpack_require__("b0c0");
|
|
|
231256
231256
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
231257
231257
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
231258
231258
|
|
|
231259
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7e503786-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=
|
|
231259
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7e503786-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=b5f4787a&
|
|
231260
231260
|
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,"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":{
|
|
231261
231261
|
type: 'xlsx',
|
|
231262
231262
|
types: ['xlsx', 'csv', 'html', 'xml', 'txt'],
|
|
@@ -231356,7 +231356,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
|
|
|
231356
231356
|
var staticRenderFns = []
|
|
231357
231357
|
|
|
231358
231358
|
|
|
231359
|
-
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=
|
|
231359
|
+
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=b5f4787a&
|
|
231360
231360
|
|
|
231361
231361
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
231362
231362
|
var es_array_concat = __webpack_require__("99af");
|
|
@@ -231370,6 +231370,9 @@ var es_array_find = __webpack_require__("7db0");
|
|
|
231370
231370
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js
|
|
231371
231371
|
var es_array_for_each = __webpack_require__("4160");
|
|
231372
231372
|
|
|
231373
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.index-of.js
|
|
231374
|
+
var es_array_index_of = __webpack_require__("c975");
|
|
231375
|
+
|
|
231373
231376
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
231374
231377
|
var es_array_slice = __webpack_require__("fb6a");
|
|
231375
231378
|
|
|
@@ -231549,6 +231552,7 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
231549
231552
|
|
|
231550
231553
|
|
|
231551
231554
|
|
|
231555
|
+
|
|
231552
231556
|
//
|
|
231553
231557
|
//
|
|
231554
231558
|
//
|
|
@@ -232486,7 +232490,8 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
232486
232490
|
default: function _default() {
|
|
232487
232491
|
return {
|
|
232488
232492
|
parentRow: Object,
|
|
232489
|
-
radioChange: function radioChange() {}
|
|
232493
|
+
radioChange: function radioChange() {},
|
|
232494
|
+
checkBoxChange: function checkBoxChange() {}
|
|
232490
232495
|
};
|
|
232491
232496
|
}
|
|
232492
232497
|
},
|
|
@@ -232607,7 +232612,7 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
232607
232612
|
},
|
|
232608
232613
|
//单元格自定义渲染根据类型返回配置
|
|
232609
232614
|
cellRenderData: function cellRenderData(type) {
|
|
232610
|
-
var _this$cellRenderMetho;
|
|
232615
|
+
var _this$cellRenderMetho, _this$cellRenderMetho2;
|
|
232611
232616
|
|
|
232612
232617
|
switch (type) {
|
|
232613
232618
|
case "TabsBtn":
|
|
@@ -232618,6 +232623,15 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
232618
232623
|
},
|
|
232619
232624
|
parentRow: (_this$cellRenderMetho = this.cellRenderMethods) === null || _this$cellRenderMetho === void 0 ? void 0 : _this$cellRenderMetho.parentRow
|
|
232620
232625
|
};
|
|
232626
|
+
|
|
232627
|
+
case "TabsCheckbox":
|
|
232628
|
+
return {
|
|
232629
|
+
name: 'TabsCheckbox',
|
|
232630
|
+
events: {
|
|
232631
|
+
checkboxChange: this.cellRenderMethods.checkboxChange
|
|
232632
|
+
},
|
|
232633
|
+
parentRow: (_this$cellRenderMetho2 = this.cellRenderMethods) === null || _this$cellRenderMetho2 === void 0 ? void 0 : _this$cellRenderMetho2.parentRow
|
|
232634
|
+
};
|
|
232621
232635
|
}
|
|
232622
232636
|
},
|
|
232623
232637
|
//枚举转换
|
|
@@ -232920,7 +232934,17 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
232920
232934
|
},
|
|
232921
232935
|
//操作列点击事件派发
|
|
232922
232936
|
handlerColClick: function handlerColClick(value, row, rowIndex) {
|
|
232923
|
-
|
|
232937
|
+
//检索
|
|
232938
|
+
if (value === 'stcd_search') {
|
|
232939
|
+
this.$set(row, "activeValue", value);
|
|
232940
|
+
} //刷新
|
|
232941
|
+
|
|
232942
|
+
|
|
232943
|
+
if (value === 'reflash') {
|
|
232944
|
+
this.reloadTreeChilds(row);
|
|
232945
|
+
}
|
|
232946
|
+
|
|
232947
|
+
;
|
|
232924
232948
|
this.$emit("handlerClick", value, row, rowIndex);
|
|
232925
232949
|
},
|
|
232926
232950
|
//普通表格转树表(仅支持一层)
|
|
@@ -233051,7 +233075,6 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
233051
233075
|
dataSliceDown: function dataSliceDown(idx) {
|
|
233052
233076
|
this.data.DataArray = this.dataTreeObj[idx].concat(this.dataTreeObj[idx + 1]);
|
|
233053
233077
|
},
|
|
233054
|
-
//树 懒加载方法
|
|
233055
233078
|
// async loadChildrenMethod({ row }){
|
|
233056
233079
|
// const { data } = await this.$axios.post(this.treeTypeConfig.path + row.path);
|
|
233057
233080
|
// return new Promise((resolve) => {
|
|
@@ -233070,6 +233093,7 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
233070
233093
|
// }
|
|
233071
233094
|
// })
|
|
233072
233095
|
// },
|
|
233096
|
+
//树 懒加载方法
|
|
233073
233097
|
loadChildrenMethod: function loadChildrenMethod(_ref20) {
|
|
233074
233098
|
var _this5 = this;
|
|
233075
233099
|
|
|
@@ -233082,7 +233106,7 @@ var xe_utils_default = /*#__PURE__*/__webpack_require__.n(xe_utils);
|
|
|
233082
233106
|
while (1) {
|
|
233083
233107
|
switch (_context.prev = _context.next) {
|
|
233084
233108
|
case 0:
|
|
233085
|
-
if (!(row.activeValue
|
|
233109
|
+
if (!(row.activeValue.indexOf("search") !== -1)) {
|
|
233086
233110
|
_context.next = 4;
|
|
233087
233111
|
break;
|
|
233088
233112
|
}
|
|
@@ -234535,9 +234559,6 @@ var JtEchartsPcvue_type_template_id_9cf77ee0_scoped_true_staticRenderFns = []
|
|
|
234535
234559
|
|
|
234536
234560
|
// CONCATENATED MODULE: ./packages/jt-echarts-pc/JtEchartsPc.vue?vue&type=template&id=9cf77ee0&scoped=true&
|
|
234537
234561
|
|
|
234538
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.index-of.js
|
|
234539
|
-
var es_array_index_of = __webpack_require__("c975");
|
|
234540
|
-
|
|
234541
234562
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.reflect.construct.js
|
|
234542
234563
|
var es_reflect_construct = __webpack_require__("4ae1");
|
|
234543
234564
|
|
|
@@ -237475,13 +237496,138 @@ var tabsBtn_component = normalizeComponent(
|
|
|
237475
237496
|
)
|
|
237476
237497
|
|
|
237477
237498
|
/* harmony default export */ var tabsBtn = (tabsBtn_component.exports);
|
|
237499
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7e503786-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/components/tabsCheckbox.vue?vue&type=template&id=0e0cb1dd&scoped=true&
|
|
237500
|
+
var tabsCheckboxvue_type_template_id_0e0cb1dd_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.dataType !== 'string')?_c('el-checkbox-group',{attrs:{"size":"mini"},on:{"change":_vm.btnsClick},model:{value:(_vm.radio_value),callback:function ($$v) {_vm.radio_value=$$v},expression:"radio_value"}},_vm._l((_vm.fullData),function(item,index){return _c('el-checkbox-button',{key:index,attrs:{"label":item.value}},[_vm._v(_vm._s(item.label))])}),1):_c('div',[_vm._v(" "+_vm._s(_vm.rowData)+" ")])],1)}
|
|
237501
|
+
var tabsCheckboxvue_type_template_id_0e0cb1dd_scoped_true_staticRenderFns = []
|
|
237502
|
+
|
|
237503
|
+
|
|
237504
|
+
// CONCATENATED MODULE: ./packages/jt-table/components/tabsCheckbox.vue?vue&type=template&id=0e0cb1dd&scoped=true&
|
|
237505
|
+
|
|
237506
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/jt-table/components/tabsCheckbox.vue?vue&type=script&lang=js&
|
|
237507
|
+
|
|
237508
|
+
|
|
237509
|
+
|
|
237510
|
+
//
|
|
237511
|
+
//
|
|
237512
|
+
//
|
|
237513
|
+
//
|
|
237514
|
+
//
|
|
237515
|
+
//
|
|
237516
|
+
//
|
|
237517
|
+
//
|
|
237518
|
+
//
|
|
237519
|
+
//
|
|
237520
|
+
//
|
|
237521
|
+
//
|
|
237522
|
+
//
|
|
237523
|
+
//
|
|
237524
|
+
//
|
|
237525
|
+
//
|
|
237526
|
+
//
|
|
237527
|
+
/* harmony default export */ var tabsCheckboxvue_type_script_lang_js_ = ({
|
|
237528
|
+
name: "TabsCheckbox",
|
|
237529
|
+
data: function data() {
|
|
237530
|
+
return {
|
|
237531
|
+
radio_value: [],
|
|
237532
|
+
fullData: [],
|
|
237533
|
+
oldValue: "",
|
|
237534
|
+
dataType: '',
|
|
237535
|
+
rowData: ''
|
|
237536
|
+
};
|
|
237537
|
+
},
|
|
237538
|
+
props: {
|
|
237539
|
+
params: Object
|
|
237540
|
+
},
|
|
237541
|
+
created: function created() {
|
|
237542
|
+
this.load();
|
|
237543
|
+
},
|
|
237544
|
+
methods: {
|
|
237545
|
+
load: function load() {
|
|
237546
|
+
var _this$params = this.params,
|
|
237547
|
+
row = _this$params.row,
|
|
237548
|
+
column = _this$params.column;
|
|
237549
|
+
|
|
237550
|
+
if (row) {
|
|
237551
|
+
this.rowData = row[column.property];
|
|
237552
|
+
this.dataType = _typeof(this.rowData);
|
|
237553
|
+
}
|
|
237554
|
+
|
|
237555
|
+
if (this.rowData && this.rowData.enum) {
|
|
237556
|
+
this.fullData = this.rowData.enum;
|
|
237557
|
+
this.radio_value = this.rowData.selected;
|
|
237558
|
+
this.oldValue = this.rowData.selected;
|
|
237559
|
+
}
|
|
237560
|
+
},
|
|
237561
|
+
btnsClick: function btnsClick(val) {
|
|
237562
|
+
var _this = this;
|
|
237563
|
+
|
|
237564
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
237565
|
+
var _this$params2, row, column, _this$$attrs, events, parentRow, result;
|
|
237566
|
+
|
|
237567
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
237568
|
+
while (1) {
|
|
237569
|
+
switch (_context.prev = _context.next) {
|
|
237570
|
+
case 0:
|
|
237571
|
+
_this$params2 = _this.params, row = _this$params2.row, column = _this$params2.column;
|
|
237572
|
+
_this$$attrs = _this.$attrs, events = _this$$attrs.events, parentRow = _this$$attrs.parentRow;
|
|
237573
|
+
_context.next = 4;
|
|
237574
|
+
return events.checkboxChange({
|
|
237575
|
+
row: row,
|
|
237576
|
+
property: column.property,
|
|
237577
|
+
val: val,
|
|
237578
|
+
params: parentRow
|
|
237579
|
+
});
|
|
237580
|
+
|
|
237581
|
+
case 4:
|
|
237582
|
+
result = _context.sent;
|
|
237583
|
+
|
|
237584
|
+
if (result) {
|
|
237585
|
+
_this.oldValue = val;
|
|
237586
|
+
} else {
|
|
237587
|
+
_this.radio_value = _this.oldValue;
|
|
237588
|
+
}
|
|
237589
|
+
|
|
237590
|
+
case 6:
|
|
237591
|
+
case "end":
|
|
237592
|
+
return _context.stop();
|
|
237593
|
+
}
|
|
237594
|
+
}
|
|
237595
|
+
}, _callee);
|
|
237596
|
+
}))();
|
|
237597
|
+
}
|
|
237598
|
+
}
|
|
237599
|
+
});
|
|
237600
|
+
// CONCATENATED MODULE: ./packages/jt-table/components/tabsCheckbox.vue?vue&type=script&lang=js&
|
|
237601
|
+
/* harmony default export */ var components_tabsCheckboxvue_type_script_lang_js_ = (tabsCheckboxvue_type_script_lang_js_);
|
|
237602
|
+
// CONCATENATED MODULE: ./packages/jt-table/components/tabsCheckbox.vue
|
|
237603
|
+
|
|
237604
|
+
|
|
237605
|
+
|
|
237606
|
+
|
|
237607
|
+
|
|
237608
|
+
/* normalize component */
|
|
237609
|
+
|
|
237610
|
+
var tabsCheckbox_component = normalizeComponent(
|
|
237611
|
+
components_tabsCheckboxvue_type_script_lang_js_,
|
|
237612
|
+
tabsCheckboxvue_type_template_id_0e0cb1dd_scoped_true_render,
|
|
237613
|
+
tabsCheckboxvue_type_template_id_0e0cb1dd_scoped_true_staticRenderFns,
|
|
237614
|
+
false,
|
|
237615
|
+
null,
|
|
237616
|
+
"0e0cb1dd",
|
|
237617
|
+
null
|
|
237618
|
+
|
|
237619
|
+
)
|
|
237620
|
+
|
|
237621
|
+
/* harmony default export */ var tabsCheckbox = (tabsCheckbox_component.exports);
|
|
237478
237622
|
// CONCATENATED MODULE: ./packages/jt-table/comp.js
|
|
237479
237623
|
|
|
237480
237624
|
|
|
237481
237625
|
|
|
237482
237626
|
|
|
237483
237627
|
|
|
237628
|
+
|
|
237484
237629
|
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.component(tabsBtn.name, tabsBtn);
|
|
237630
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.component(tabsCheckbox.name, tabsCheckbox);
|
|
237485
237631
|
index_common_default.a.renderer.add('TabsBtn', {
|
|
237486
237632
|
renderDefault: function renderDefault(h, renderOpts, params) {
|
|
237487
237633
|
var events = renderOpts.events,
|
|
@@ -237495,6 +237641,19 @@ index_common_default.a.renderer.add('TabsBtn', {
|
|
|
237495
237641
|
})];
|
|
237496
237642
|
}
|
|
237497
237643
|
});
|
|
237644
|
+
index_common_default.a.renderer.add('TabsCheckbox', {
|
|
237645
|
+
renderDefault: function renderDefault(h, renderOpts, params) {
|
|
237646
|
+
var events = renderOpts.events,
|
|
237647
|
+
parentRow = renderOpts.parentRow;
|
|
237648
|
+
return [h("tabs-checkbox", {
|
|
237649
|
+
"attrs": {
|
|
237650
|
+
"params": params,
|
|
237651
|
+
"events": events,
|
|
237652
|
+
"parentRow": parentRow
|
|
237653
|
+
}
|
|
237654
|
+
})];
|
|
237655
|
+
}
|
|
237656
|
+
});
|
|
237498
237657
|
// EXTERNAL MODULE: ./node_modules/moment/moment.js
|
|
237499
237658
|
var moment = __webpack_require__("c1df");
|
|
237500
237659
|
var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|