@leevan/jtui 2.0.27 → 2.0.29
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/data2.js +11362 -0
- package/examples/tableTest/table-ptbg.vue +8 -4
- package/lib/jtui.common.js +11 -4
- package/lib/jtui.umd.js +11 -4
- package/lib/jtui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/jt-table/index.vue +8 -2
- package/yarn.lock +9248 -0
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
|
|
101
101
|
<script>
|
|
102
102
|
import { data23 , data13,data7 ,data5} from '../../packages/jt-table-pc/data2';
|
|
103
|
-
import { data1 } from '../data2';
|
|
103
|
+
import { data1 ,data0} from '../data2';
|
|
104
104
|
export default {
|
|
105
105
|
data(){
|
|
106
106
|
return {
|
|
@@ -131,11 +131,12 @@ import { data1 } from '../data2';
|
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
created(){
|
|
134
|
-
const res =
|
|
134
|
+
const res = data0();
|
|
135
|
+
console.log(res)
|
|
135
136
|
this.tableData[0].retjson = res[0].retjson;
|
|
136
137
|
},
|
|
137
138
|
mounted(){
|
|
138
|
-
const res =
|
|
139
|
+
const res = data0();
|
|
139
140
|
let timeId = setTimeout(()=>{
|
|
140
141
|
this.$refs.tablePtbg.loadData(res[0].DataArray);
|
|
141
142
|
clearTimeout(timeId);
|
|
@@ -147,7 +148,10 @@ import { data1 } from '../data2';
|
|
|
147
148
|
this.$refs.tablePtbg.exportTableData();
|
|
148
149
|
},
|
|
149
150
|
exportDataExcel(){
|
|
150
|
-
this.$refs.tablePtbg.exportData({
|
|
151
|
+
this.$refs.tablePtbg.exportData({
|
|
152
|
+
type:'xlsx',
|
|
153
|
+
filename:'实时河道水情'
|
|
154
|
+
});
|
|
151
155
|
},
|
|
152
156
|
//导入数据
|
|
153
157
|
importData(){
|
package/lib/jtui.common.js
CHANGED
|
@@ -231258,7 +231258,7 @@ var es_function_name = __webpack_require__("b0c0");
|
|
|
231258
231258
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
231259
231259
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
231260
231260
|
|
|
231261
|
-
// 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=
|
|
231261
|
+
// 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=6d38a231&
|
|
231262
231262
|
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":{
|
|
231263
231263
|
type: 'xlsx',
|
|
231264
231264
|
types: ['xlsx', 'csv', 'html', 'xml', 'txt'],
|
|
@@ -231358,7 +231358,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
|
|
|
231358
231358
|
var staticRenderFns = []
|
|
231359
231359
|
|
|
231360
231360
|
|
|
231361
|
-
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=
|
|
231361
|
+
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=6d38a231&
|
|
231362
231362
|
|
|
231363
231363
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
231364
231364
|
var es_array_concat = __webpack_require__("99af");
|
|
@@ -232910,7 +232910,7 @@ var component = normalizeComponent(
|
|
|
232910
232910
|
}
|
|
232911
232911
|
},
|
|
232912
232912
|
objectTxt: function objectTxt(cellValue) {
|
|
232913
|
-
return _typeof(cellValue) == 'object' && cellValue != null ? JSON.stringify(cellValue) : cellValue;
|
|
232913
|
+
return _typeof(cellValue) == 'object' && cellValue != null ? JSON.stringify(cellValue) : cellValue === undefined ? '' : cellValue;
|
|
232914
232914
|
},
|
|
232915
232915
|
//枚举转换
|
|
232916
232916
|
formatEnum: function formatEnum(_ref) {
|
|
@@ -233221,11 +233221,19 @@ var component = normalizeComponent(
|
|
|
233221
233221
|
},
|
|
233222
233222
|
//导出数据
|
|
233223
233223
|
exportTableData: function exportTableData() {
|
|
233224
|
+
if (this.$listeners.scrollBottom) {
|
|
233225
|
+
this.$message.info('表格仅能导出已查询的数据,想要导出更多请继续滚动加载');
|
|
233226
|
+
}
|
|
233227
|
+
|
|
233224
233228
|
this.$refs[this.id].openExport({
|
|
233225
233229
|
isPrint: false
|
|
233226
233230
|
});
|
|
233227
233231
|
},
|
|
233228
233232
|
exportData: function exportData(obj) {
|
|
233233
|
+
if (this.$listeners.scrollBottom) {
|
|
233234
|
+
this.$message.info('表格仅能导出已查询的数据,想要导出更多请继续滚动加载');
|
|
233235
|
+
}
|
|
233236
|
+
|
|
233229
233237
|
this.$refs[this.id].exportData(obj);
|
|
233230
233238
|
},
|
|
233231
233239
|
//导入数据
|
|
@@ -233245,7 +233253,6 @@ var component = normalizeComponent(
|
|
|
233245
233253
|
this.reloadTreeChilds(row);
|
|
233246
233254
|
}
|
|
233247
233255
|
|
|
233248
|
-
;
|
|
233249
233256
|
this.$emit("handlerClick", value, row, rowIndex);
|
|
233250
233257
|
},
|
|
233251
233258
|
//普通表格转树表(仅支持一层)
|
package/lib/jtui.umd.js
CHANGED
|
@@ -231267,7 +231267,7 @@ var es_function_name = __webpack_require__("b0c0");
|
|
|
231267
231267
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
|
231268
231268
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
231269
231269
|
|
|
231270
|
-
// 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=
|
|
231270
|
+
// 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=6d38a231&
|
|
231271
231271
|
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":{
|
|
231272
231272
|
type: 'xlsx',
|
|
231273
231273
|
types: ['xlsx', 'csv', 'html', 'xml', 'txt'],
|
|
@@ -231367,7 +231367,7 @@ return [(_vm.handlerConfig.btnGroup)?_c('el-dropdown',[_c('el-button',{attrs:{"s
|
|
|
231367
231367
|
var staticRenderFns = []
|
|
231368
231368
|
|
|
231369
231369
|
|
|
231370
|
-
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=
|
|
231370
|
+
// CONCATENATED MODULE: ./packages/jt-table/index.vue?vue&type=template&id=6d38a231&
|
|
231371
231371
|
|
|
231372
231372
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
231373
231373
|
var es_array_concat = __webpack_require__("99af");
|
|
@@ -232919,7 +232919,7 @@ var component = normalizeComponent(
|
|
|
232919
232919
|
}
|
|
232920
232920
|
},
|
|
232921
232921
|
objectTxt: function objectTxt(cellValue) {
|
|
232922
|
-
return _typeof(cellValue) == 'object' && cellValue != null ? JSON.stringify(cellValue) : cellValue;
|
|
232922
|
+
return _typeof(cellValue) == 'object' && cellValue != null ? JSON.stringify(cellValue) : cellValue === undefined ? '' : cellValue;
|
|
232923
232923
|
},
|
|
232924
232924
|
//枚举转换
|
|
232925
232925
|
formatEnum: function formatEnum(_ref) {
|
|
@@ -233230,11 +233230,19 @@ var component = normalizeComponent(
|
|
|
233230
233230
|
},
|
|
233231
233231
|
//导出数据
|
|
233232
233232
|
exportTableData: function exportTableData() {
|
|
233233
|
+
if (this.$listeners.scrollBottom) {
|
|
233234
|
+
this.$message.info('表格仅能导出已查询的数据,想要导出更多请继续滚动加载');
|
|
233235
|
+
}
|
|
233236
|
+
|
|
233233
233237
|
this.$refs[this.id].openExport({
|
|
233234
233238
|
isPrint: false
|
|
233235
233239
|
});
|
|
233236
233240
|
},
|
|
233237
233241
|
exportData: function exportData(obj) {
|
|
233242
|
+
if (this.$listeners.scrollBottom) {
|
|
233243
|
+
this.$message.info('表格仅能导出已查询的数据,想要导出更多请继续滚动加载');
|
|
233244
|
+
}
|
|
233245
|
+
|
|
233238
233246
|
this.$refs[this.id].exportData(obj);
|
|
233239
233247
|
},
|
|
233240
233248
|
//导入数据
|
|
@@ -233254,7 +233262,6 @@ var component = normalizeComponent(
|
|
|
233254
233262
|
this.reloadTreeChilds(row);
|
|
233255
233263
|
}
|
|
233256
233264
|
|
|
233257
|
-
;
|
|
233258
233265
|
this.$emit("handlerClick", value, row, rowIndex);
|
|
233259
233266
|
},
|
|
233260
233267
|
//普通表格转树表(仅支持一层)
|