@leevan/jtui 2.0.22 → 2.0.24
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/echarts/moreCharts.vue +2 -2
- package/examples/tableTest/tree-table.vue +15 -8
- package/lib/jtui.common.js +28 -18
- package/lib/jtui.umd.js +28 -18
- package/lib/jtui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/jt-form-pc/JtFormPc.vue +7 -3
- package/packages/jt-table/index.vue +5 -1
package/package.json
CHANGED
|
@@ -260,6 +260,10 @@ export default {
|
|
|
260
260
|
collapseTags:{
|
|
261
261
|
type:Boolean,
|
|
262
262
|
default:false
|
|
263
|
+
},
|
|
264
|
+
lazyLoadParams:{
|
|
265
|
+
type: Object,
|
|
266
|
+
default: null
|
|
263
267
|
}
|
|
264
268
|
},
|
|
265
269
|
methods:{
|
|
@@ -307,7 +311,7 @@ export default {
|
|
|
307
311
|
loadData(config){
|
|
308
312
|
let _this = this;
|
|
309
313
|
let { path , childPath } = config;
|
|
310
|
-
let param = config.params || {};
|
|
314
|
+
// let param = config.params || {};
|
|
311
315
|
let multiple = config.multiple || false;
|
|
312
316
|
let checkStrictly = config.checkStrictly || false;
|
|
313
317
|
return {
|
|
@@ -317,7 +321,7 @@ export default {
|
|
|
317
321
|
async lazyLoad (node, resolve) {
|
|
318
322
|
const { level ,data:res } = node;
|
|
319
323
|
if(level === 0) {
|
|
320
|
-
const {data} = await _this.$axios.post(path + childPath,
|
|
324
|
+
const {data} = await _this.$axios.post(path + childPath,this.lazyLoadParams);
|
|
321
325
|
resolve(data.map(item => ({
|
|
322
326
|
label:item.name,
|
|
323
327
|
leaf:item.path === '-' || !item.path,
|
|
@@ -331,7 +335,7 @@ export default {
|
|
|
331
335
|
resolve();
|
|
332
336
|
return;
|
|
333
337
|
}
|
|
334
|
-
const {data} = await _this.$axios.post(path + res.path,
|
|
338
|
+
const {data} = await _this.$axios.post(path + res.path,this.lazyLoadParams);
|
|
335
339
|
resolve(data.map(item => ({
|
|
336
340
|
label:item.name,
|
|
337
341
|
leaf:item.path === '-' || !item.path,
|
|
@@ -948,6 +948,10 @@ export default {
|
|
|
948
948
|
type: Boolean,
|
|
949
949
|
default: false,
|
|
950
950
|
},
|
|
951
|
+
lazyLoadParams:{
|
|
952
|
+
type: Object,
|
|
953
|
+
default: null
|
|
954
|
+
}
|
|
951
955
|
},
|
|
952
956
|
data() {
|
|
953
957
|
return {
|
|
@@ -1457,7 +1461,7 @@ export default {
|
|
|
1457
1461
|
resolve(this.treeTempData);
|
|
1458
1462
|
} else {
|
|
1459
1463
|
const { data } = await this.$axios.post(
|
|
1460
|
-
this.treeTypeConfig.path + row.path
|
|
1464
|
+
this.treeTypeConfig.path + row.path,this.lazyLoadParams
|
|
1461
1465
|
);
|
|
1462
1466
|
if (data[0].Result > 0) {
|
|
1463
1467
|
resolve(data[0].DataArray);
|